1c6a7afb9bbbcae9b42d2333dc72d8d68e41a106
[gnulib.git] / ChangeLog
1 2013-10-21  Jim Meyering  <meyering@fb.com>
2
3         regex: also remove dependency on HAVE_WCSCOLL
4         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
5
6 2013-10-21  Reuben Thomas <rrt@sc3d.org>
7
8         xfreopen: Fix typo. s/frepoen/freopen/
9         * lib/xfreopen.c: Fix description.
10         * modules/xfreopen: Likewise.
11
12 2013-10-21  Jim Meyering  <meyering@fb.com>
13
14         regex: don't depend on wcscoll
15         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
16         It is no longer used.
17
18 2013-10-20  Jim Meyering  <meyering@fb.com>
19
20         error: add the printf attribute to a static function
21         * lib/error.c (error_tail): Add the printf attribute, to placate
22         gcc's -Werror=suggest-attribute=format option.
23
24 2013-10-12  Jim Meyering  <meyering@fb.com>
25
26         error: make the module depend on vfprintf-posix
27         * modules/error (Depends-on): Add vfprintf-posix, since error
28         calls vfprintf unconditionally, via error_tail.
29
30 2013-09-30  Jim Meyering  <meyering@fb.com>
31
32         fpending, obstack, strerror-override: use pure+const function attrs
33         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
34         * lib/obstack.c (_obstack_allocated_p): Likewise.
35         * lib/obstack.h (_obstack_memory_used): Likewise.
36         (_obstack_memory_used): Likewise.
37         * lib/strerror-override.h (strerror_override): Declare with
38         the "const" attribute.
39
40 2013-10-18  Eric Blake  <eblake@redhat.com>
41
42         extern-inline: make safe for -Wundef usage
43         Reported by Vladimir 'phcoder' Serbinenko in
44         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
45         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
46
47 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48
49         mkfifo-tests, etc.: allow HP-UX 11.11 bug
50         Problem reported by Daniel Richard G. in
51         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
52         * doc/posix-functions/mkfifo.texi (mkfifo):
53         * doc/posix-functions/mkfifoat.texi (mkfifoat):
54         * doc/posix-functions/mknod.texi (mknod):
55         * doc/posix-functions/mknodat.texi (mknodat):
56         Document the HP-UX 11.11 bug.
57         * tests/test-mkfifo.h (test_mkfifo):
58         Allow the HP-UX 11.11 bug.
59
60 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61
62         acl: allow cross-compilation to Gentoo
63         Problem reported by Gabriel Marcano in
64         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
65         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
66         test only whether it links.
67
68 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
69
70         mgetgroups: remove dependency on realloc-gnu
71         The dependency violates the comment in realloc-gnu, which
72         says that tests can't depend on realloc-gnu; some tests depend
73         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
74         Problem reported by Daniel Richard G. in
75         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
76         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
77         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
78         not realloc-gnu.
79
80 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
81
82         regex-tests: port to HP-UX 11.11
83         Problem reported by Daniel Richard G. in
84         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
85         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
86
87 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88
89         verify: document some 'assume' pitfalls
90         * doc/verify.texi (Compile-time Assertions):
91         Mention that 'assume (E)' can sometimes slow things down.
92         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
93
94 2013-10-10  Eric Blake  <eblake@redhat.com>
95
96         strtoumax: fix typo in previous commit.
97         * modules/strtoumax (Depends-on): Fix typo.
98         * modules/strtoimax (Depends-on): Likewise.
99
100 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
101
102         strtoumax: port to Solaris 8
103         This problem was introduced in the recent HP-UX patch.
104         Reported by Tom G. Christensen in
105         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
106         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
107         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
108
109 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
110
111         strtoimax, strtoumax: port to HP-UX 11.11
112         Problem reported by Daniel Richard G. in
113         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
114         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
115         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
116         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
117         REPLACE_STRTOUMAX.
118         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
119         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
120         Replace the function if defined as a macro but not as a function.
121         * modules/inttypes-incomplete (inttypes.h): Substitute
122         REPLACE_STRTOUMAX.
123         * modules/strtoumax (configure.ac): Replace strtoumax if
124         REPLACE_STRTOUMAX.
125
126 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
127
128         strtoimax: port to HP-UX 11.11
129         Problem reported by Daniel Richard G.
130         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
131         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
132         they might clash with inttypes.h.
133
134 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
135
136         New module 'count-trailing-zeros'.
137         * MODULES.html.sh: Mention it.
138         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
139         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
140         * modules/count-trailing-zeros-tests:
141         * tests/test-count-trailing-zeros.c:
142         New files.
143
144         count-leading-zeros: port to MSC; support types wider than 64 bits
145         The ideas behind the MSC port are stolen from Emacs.
146         * lib/count-leading-zeros.h:
147         Don't include verify.h: it's no longer needed, as types wider than
148         64 bits are now supported.
149         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
150         performance with MSC.  All uses changed.  Do not assume that TYPE
151         has at most 64 bits.
152         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
153         All uses changed.  Fold the subtraction from 31 into the table.
154
155         count-one-bits: port to MSC; support types wider than 64 bits
156         The ideas behind the MSC port are stolen from Emacs.
157         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
158         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
159         Don't include verify.h: it's no longer needed, as types wider than
160         64 bits are now supported.
161         (COUNT_ONE_BITS_GENERIC): New macro.
162         (popcount_supported) [_MSC_VER]: New inline function.
163         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
164         performance with MSC.  All uses changed.  Do not assume that TYPE
165         has at most 64 bits.
166         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
167
168 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
169
170         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
171         * lib/mountlist.c (read_file_system_list): fix leak of directory
172         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
173
174 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
175
176         tests: improve diagnostic when an assertion fails
177         * tests/macros.h (ASSERT): Report the assertion that failed.
178
179 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
180
181         verify: new macro 'assume'
182         This is taken from Emacs, and should be generally useful.
183         * doc/verify.texi (assume): Document it.
184         * lib/verify.h (assume): New macro.
185         (__has_builtin): Expand to 0 if not defined.
186
187 2013-09-26  Eric Blake  <eblake@redhat.com>
188
189         dup2, dup3: work around another cygwin crasher
190         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
191         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
192         * tests/test-dup2.c (main): Likewise.
193         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
194         * lib/dup3.c (dup3): Likewise.
195         * doc/posix-functions/dup2.texi (dup2): Document it.
196         * doc/glibc-functions/dup3.texi (dup3): Likewise.
197
198         getdtablesize: work around cygwin issue
199         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
200         * modules/getdtablesize (configure.ac): Build replacement.
201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
202         * modules/unistd (Makefile.am): Expose the witness.
203         * lib/unistd.in.h (getdtablesize): Declare replacement.
204         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
205         * tests/test-getdtablesize.c (main): Test it.
206         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
207
208 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
209
210         pmccabe2html: escaping of special characters
211         Escape all '<', '>', and '&' in HTML output.
212         * build-aux/pmccabe2html (html_fnc): Call gsub()
213         instead of sub() to capture all '<', '>', and '&'.
214         Neither of '<' and '>' is special in a regexp,
215         so first arguments to gsub() are corrected. Also,
216         in replacement strings, ampersand must be escaped.
217         Finally, '&' must be handled first, then '<' and '>'.
218
219 2013-09-24  Eric Blake  <eblake@redhat.com>
220
221         manywarnings: enable nicer gcc warning messages
222         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
223         some -f options for optimal warnings.
224
225 2013-09-21  Jim Meyering  <meyering@fb.com>
226
227         timespec: use the new TIMESPEC_RESOLUTION in a few more places
228         * lib/timespec-add.c (timespec_add): Also replace 999999999
229         with TIMESPEC_RESOLUTION - 1.
230         * lib/timespec-sub.c (timespec_sub): Likewise.
231
232 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
233
234         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
235         Problem reported by Dagobert Michelsen via Eric Blake in
236         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
237         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
238         not AC_COMPILE_IFELSE.
239
240 2013-09-23  Eric Blake  <eblake@redhat.com>
241
242         configmake: support new --runstatedir option
243         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
244         even if autoconf was too old to provide the command line option.
245         * modules/configmake (Makefile.am): Propagate it to .h file.
246
247 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
248
249         ctype, string: depend on extern-inline
250         This is needed to complete the recent OS X fixes.
251         Also, fix related documentation as suggested by Eric Blake.
252         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
253         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
254         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
255         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
256         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
257         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
258         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
259         * doc/posix-functions/toupper.texi:
260         List the 'ctype' gnulib module.
261         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
262         * doc/posix-functions/strncpy.texi:
263         List the 'string' gnulib module.
264         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
265         Add string.
266         * modules/ctype, modules/string (Depends-on): Add extern-inline.
267
268 2013-09-19  Pádraig Brady  <P@draigBrady.com>
269
270         userspec: support optional parameters to parse_user_spec()
271         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
272         then avoid group processing and treat the full spec as a user.
273         (parse_with_separator): Allow the USERNAME and GROUPNAME to
274         be optional params (NULL), in which case they're ignored.
275
276 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
277
278         timespec: new function make_timespec, and new constants
279         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
280         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
281         (make_timespec): New function.
282         * lib/dtotimespec.c (dtotimespec):
283         * lib/timespec-add.c (timespec_add):
284         * lib/timespec-sub.c (timespec_sub):
285         * lib/utimens.c (validate_timespec):
286         * lib/utimensat.c (rpl_utimensat):
287         Use these new constants and functions.
288
289         stdio: OS X port of putc_unlocked + extern inline
290         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
291         * doc/posix-functions/putc_unlocked.texi:
292         * doc/posix-functions/putchar_unlocked.texi:
293         Document this portability problem.
294
295         signal: OS X port of sigaddset etc. + extern inline
296         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
297         (sigismember): #undef on problematic Apple platforms.
298         * doc/posix-functions/sigaddset.texi:
299         * doc/posix-functions/sigdelset.texi:
300         * doc/posix-functions/sigemptyset.texi:
301         * doc/posix-functions/sigfillset.texi:
302         * doc/posix-functions/sigismember.texi:
303         Document this portability problem.
304
305         extern-inline: do not always suppress extern inline on OS X
306         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
307         extern inline on Apple only if the particular compile-time
308         configuration is known to have the problem.
309         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
310         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
311         other Gnulib modules.
312
313         extern-inline: document fixes for ctype and wctype macros
314         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
315         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
316         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
317         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
318         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
319         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
320         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
321         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
322         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
323         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
324         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
325         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
326         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
327         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
328         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
329         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
330         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
331         * doc/posix-functions/strncpy.texi:
332         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
333         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
334         Document that Gnulib fixes portability problems with these
335         functions on OS X 10.8 and earlier when called from plain inline
336         or extern inline functions.
337
338 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
339
340         fflush, freadahead, fseeko: Fix for Android
341         Suggested by Bruno Haible in:
342         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
343         * lib/stdio-impl.h: Use local __sfileext definition.
344
345 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
346
347         pmccabe2html: Portability to other awk versions.
348         The functions systime() and strftime() are available
349         in Gawk only.  Properly close two HTML-tags 'style'
350         and 'span'.
351         * build-aux/pmccabe2html (BEGIN): Store timing
352         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
353         systime() in HTML_COMMENT.
354         (html_header): Correctly close tag 'style'.
355         (END): Replace strftime() by CHRONOS_TIME.  Close
356         tag 'span' correctly, not as 'div'.
357
358 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
359
360         getgroups: statement without effect
361         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
362         Change equality conditional to expected assignment.
363
364 2013-09-09  Eric Blake  <eblake@redhat.com>
365
366         glob: fix compilation
367         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
368
369 2013-09-07  Eric Blake  <eblake@redhat.com>
370
371         glob: fix build for platforms without __THROW
372         * lib/glob.in.h (__THROW): Add definition again.
373
374 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
375
376         regex-quote: fix buffer access out of bounds
377         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
378         * lib/regex-quote.c (regex_quote_spec_pcre):
379         Fix typo that resulted in an out-of-bounds read.
380
381 2013-09-04  Eric Blake  <eblake@redhat.com>
382
383         glob: avoid -Wattribute warnings on glibc
384         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
385         __THROWNL, not __THROW, on static functions.
386         * lib/glob.in.h (__THROW): Adjust...
387         (__THROWNL): ...accordingly.
388
389 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
390
391         headers: check that _GL_INLINE_HEADER_BEGIN is defined
392         Suggested by Bruce Korb in:
393         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
394         * doc/extern-inline.texi (extern inline):
395         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
396         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
397         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
398         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
399         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
400         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
401         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
402         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
403         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
404         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
405         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
406         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
407         * lib/xtime.h:
408         Check that _GL_INLINE_HEADER_BEGIN is defined.
409
410 2013-08-29  Pádraig Brady  <P@draigBrady.com>
411
412         bootstrap: remove the --version requirement from ancillary tools
413         * build-aux/bootstrap (check_exists): A new refactored function to
414         determine if a command exists.
415         (find_tool): Use the new function which does not require the
416         --version option to be supported.
417         (check_versions): Use the new function.
418
419 2013-08-26  Simon Josefsson  <simon@josefsson.org>
420
421         gc: support HMAC-SHA256 and HMAC-SHA512.
422         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
423         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
424         functions.
425         (gc_hmac_md5): Use symbolic constant.
426         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
427         (gc_hmac_sha256, gc_hmac_sha512): New functions.
428         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
429         * m4/sha256.m4: Protect against empty expansion.
430         * m4/sha512.m4: Likewise.
431         * lib/hmac-sha256.c: New file.
432         * lib/hmac-sha512.c: Likewise.
433         * m4/gc-hmac-sha256.m4: Likewise.
434         * m4/gc-hmac-sha512.m4: Likewise.
435         * m4/gc-sha256.m4: Likewise.
436         * m4/gc-sha512.m4: Likewise.
437         * modules/crypto/gc-hmac-sha256: Likewise.
438         * modules/crypto/gc-hmac-sha256-tests: Likewise.
439         * modules/crypto/gc-hmac-sha512: Likewise.
440         * modules/crypto/gc-hmac-sha512-tests: Likewise.
441         * modules/crypto/hmac-sha256: Likewise.
442         * modules/crypto/hmac-sha256-tests: Likewise.
443         * modules/crypto/hmac-sha512: Likewise.
444         * modules/crypto/hmac-sha512-tests: Likewise.
445         * tests/test-gc-hmac-sha256.c: Likewise.
446         * tests/test-gc-hmac-sha512.c: Likewise
447         * tests/test-hmac-sha256.c: Likewise.
448         * tests/test-hmac-sha512.c: Likewise
449
450 2013-08-24  Daiki Ueno  <ueno@gnu.org>
451
452         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
453         of AC_CHECK_DECLS.
454
455 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
456
457         selinux-at: omit unnecessary include
458         * lib/selinux-at.c: Don't include dosname.h; not needed, since
459         this source file doesn't use its macros, and subsidiary files that
460         use the macros already include it.
461
462 2013-08-21  Eric Blake  <eblake@redhat.com>
463
464         d-ino: avoid false negative on symlink
465         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
466         Reported by Stephane Chazelas.
467
468 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
469
470         bootstrap: port to OpenBSD sed
471         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
472         does not interpret `-' as a file argument to mean stdin.
473
474 2013-08-15  Eric Blake  <eblake@redhat.com>
475
476         warnings: minor optimization
477         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
478
479         warnings: check -Wfoo rather than -Wno-foo
480         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
481         -Wno-, test if the compiler recognizes the positive form instead.
482
483 2013-08-15  Karl Berry  <karl@gnu.org>
484
485         * config/srclist-update: add option "doclicense" to placate
486         pulling *.texi files from Emacs.  Write terse usage
487         documentation at the top.
488
489 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
490
491         xvasprintf-tests: port to GCC with hardening flags
492         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
493         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
494         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
495
496 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
497
498         fpending: port to recent Cygwin change to stdio_ext.h
499         Reported by LRN in
500         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
501         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
502         just declare __fpending unless it's a macro.
503         A duplicate decl shouldn't hurt.
504         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
505         call compiles and links, instead of separately checking for
506         decl and lib function.
507         * modules/fpending (configure-ac):
508         Adjust to fpending.m4's renaming of shell variable.
509
510 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
511
512         sys_time: port to OpenBSD
513         * lib/sys_time.in.h: Simply delegate to the system's header
514         in the BSDish cases as well.  Problem reported by Mike Miller in
515         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
516         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
517         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
518         wider than time_t.
519
520 2013-08-09  Pádraig Brady <P@draigBrady.com>
521
522         bootstrap: support checksum utils having -c but not --status
523         * build-aux/bootstrap: Only look for sha1sum if updating po files.
524         Add sha1 to the list of supported checksum utils since it's now
525         supported through adjustments below.
526         (update_po_files): Remove the use of --status
527         in a way that will suppress all error messages, but since this is
528         only used to minimize updates, it shouldn't cause an issue.
529         Exit early if there is a problem updating the po file checksums.
530         (find_tool): Remove the check for --version support as this
531         is optional as per commit 86186b17.  Don't even check for the
532         presence of the command as if that is needed, it's supported
533         through configuring prerequisites in bootstrap.conf.
534         Prompt that when a tool isn't found, one can define an environment
535         variable to add to the hardcoded search list.
536
537 2013-08-05  Jim Meyering  <meyering@fb.com>
538
539         regex: port to non-glibc/lock-using systems
540         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
541         system with GNULIB_LOCK would fail due to absence of the
542         included "glthread/lock.h".  This would affect any package
543         for which the "lock" module is used only by the regex module,
544         and not explicitly used.
545         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
546         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
547         Add a dependency on the "lock" module.
548
549 2013-07-20  Daiki Ueno  <ueno@gnu.org>
550
551         localecharset: make locale_charset thread-safe on Mac OS X
552         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
553         instead of MB_CUR_MAX.
554
555 2013-07-20  Daiki Ueno  <ueno@gnu.org>
556
557         gettext: update to version 0.18.3
558         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
559         require AC_PROG_SED to allow user to specify custom sed command when
560         generating en@quot PO file.
561
562 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
563
564         bootstrap: use correct source when copying build-aux files
565         * build-aux/bootstrap (gnulib_extra_files): This variable is
566         relative to upstream gnulib layout, not downstream.
567
568 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
569
570         tmpdir: fix bug in VMS port
571         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
572         See Steven M. Schweda in
573         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
574
575 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
576
577         tmpdir: port to VMS, to // != /, and to long dirs
578         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
579         __secure_getenv, so that we're more like the glibc version.
580         All uses changed.
581         (path_search): Don't put slash after directory if __VMS.
582         Problem reported by Steven M. Schweda in
583         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
584         Simplify code to add slash; no need for a loop.
585         Do not remove trailing slash from "//".
586         Do not assume dlen <= INT_MAX.
587
588 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
589
590         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
591         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
592         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
593         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
594
595         accept4, dup3, pipe2: port to Cygwin
596         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
597         * lib/accept4.c (accept4) [O_BINARY]:
598         * lib/dup3.c (dup3) [O_BINARY]:
599         * lib/pipe2.c (pipe2) [O_BINARY]:
600         Use set_binary_mode, not setmode.
601         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
602         * modules/binary-io (Depends-on): Remove module indicator.
603         These last two bits undo the previous change to pipe2 and binary-io.
604
605 2013-07-09  Pádraig Brady  <P@draigBrady.com>
606
607         mountlist: add support for deallocating returned list entries
608         * lib/mountlist.c (free_mount_entry): A new exported function
609         to deallocate a mount list entry.
610         (read_file_system_list): Refactor to use the new deallocation function.
611         Suggested by Anton Ovchinnikov.
612
613 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
614
615         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
616         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
617         * lib/stdalign.in.h (_Alignas, _Alignof):
618         Port to FreeBSD 9.1, and to C11 and C++11.
619         (_Alignas): Also support ICC.
620         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
621         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
622
623 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
624
625         fnmatch: don't goto over declaration
626         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
627         undefined behavior for goto over a declaration.
628         Problem reported by Charlie Brown in
629         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
630
631         pipe2: decouple from binary-io a bit
632         This is for Emacs, which needs pipe2 but not binary-io.
633         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
634         * modules/binary-io (Depends-on): Add module indicator.
635
636 2013-07-03  Eric Blake  <eblake@redhat.com>
637
638         mgetgroups: relax license to LGPLv2+
639         * modules/getugroups (License): Change from GPLv3+.
640         * modules/mgetgroups (License): Likewise.
641         * modules/getgroups (License): Change from LGPLv3+.
642
643         xalloc-oversized: relax license to LGPLv2+
644         * modules/xalloc-oversized (License): Change from GPLv3+.
645
646         nproc: relax license to LGPLv2+
647         * modules/nproc (License): Change from LGPLv3+.
648
649         bootstrap: honor --no-git
650         * build-aux/bootstrap: Don't even try to use git when user is
651         pointing to a static checkout.
652
653 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
654
655         ignore-value: port to gcc -pedantic
656         * lib/ignore-value.h (ignore_value):
657         Port to gcc -pedantic, by using __extension__.
658         Reindent as per usual gnulib style nowadays.
659         Simplify GCC version check.
660
661 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
662
663         extern-inline: port to gcc -std=c89
664         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
665         Do not use __gnu_inline__ if pedantic and pre-C99.
666
667 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
668
669         doc: document extern-inline
670         * doc/extern-inline.texi: New file.
671         * doc/gnulib.texi (alloca-opt): Include it.
672         * m4/extern-inline.m4: Move some comments to documentation,
673         and others closer to what they describe.
674
675         doc: chatter less
676         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
677         (updated-stamp): Use it.  This causes 'make' to output just
678         one file name rather than zillions.
679
680         fflush, fseeko: port to musl cross-compiles
681         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
682         on some implementation that (1) is not known to be buggy,
683         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
684         cross-compiled to so we can't easily check for lack of
685         conformance.  This is for cross-compiling to musl.
686         Reported by Rich Felker in
687         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
688         * m4/fclose.m4 (gl_FUNC_FCLOSE):
689         * m4/fflush.m4 (gl_FUNC_FFLUSH):
690         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
691         Adjust to above change.
692         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
693         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
694         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
695         known not to work, or unknown.
696
697 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
698
699         msvc-inval: port to mingw-w64
700         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
701         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
702         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
703
704 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
705
706         getcwd-lgpl: port to Tru64
707         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
708         Problem reported by Steven M. Schweda in
709         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
710
711         tests: port large-fd POSIX spawn tests to OS X
712         Problem reported by Daiki Ueno in
713         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
714         * tests/test-posix_spawn_file_actions_addclose.c:
715         * tests/test-posix_spawn_file_actions_adddup2.c:
716         * tests/test-posix_spawn_file_actions_addopen.c:
717         Include <limits.h>, for OPEN_MAX, if available.
718         (big_fd): New static function.
719         (main): Use it.
720
721 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
722
723         tests/nap.h: use an adaptive delay to avoid ctime update issues
724         The recent change in nap.h (5191133e) decreased the probability of lost
725         races to about a third, however such problems could still be observed
726         in virtual machines and openSUSE's OBS.
727         Before, nap() detected the needed time once empirically and then used
728         that delay (together with a small correction multiplier) in further
729         calls.  This problem has been reported and discussed several times,
730         including guesses about possible kernel issues:
731         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
732         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
733         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
734         http://bugs.gnu.org/12820
735         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
736         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
737         Now, nap() avoids the race alltogether by verifying on a reference
738         file whether a timestamp difference has happened.
739         * tests/nap.h (nap_fd): Define file descriptor variable for the
740         witness file.
741         (nap_works): Change return value to bool.  Change passing
742         the old file's status by value instead of by reference as this function
743         does no longer update that timestamp; rename the function argument from
744         st to old_st.  Remove the local variables cdiff and mdiff because that
745         function now returns true/false instead of the precise delay.
746         (guess_delay): Remove function.
747         (clear_tmp_file): Add new function to close and unlink the witness file.
748         (nap): Instead of re-using the delay which has been calculated during
749         the first call, avoid the race by actually verifying that a timestamp
750         difference can be observed on the current file system.  Use an adaptive
751         approach for the delay to minimize execution time.  Assert that the
752         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
753         = 2^31 - 1 = 2.1s.
754         Use atexit to call clear_tmp_file when the process terminates.
755
756 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
757
758         sig2str: port to C++
759         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
760         Reported by Daniel J Sebald in
761         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
762
763 2013-05-30  Eric Blake  <eblake@redhat.com>
764
765         docs: mention cygwin shortcoming in <sys/un.h>
766         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
767
768         vasnprintf: silence mingw compiler warning
769         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
770
771 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
772
773         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
774         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
775         This fixes a porting bug I recently reintroduced in regex, and
776         some other instances that I discovered while testing the fix.
777         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
778         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
779         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
780         with an empty argument if this is a pedantic pre-C99 GCC.
781         * lib/verify.h: Do not use _Static_assert if this is a pedantic
782         pre-C11 GCC.
783
784         regex: adapt to locking regime instead of depending on pthread
785         Instead of depending on pthread, adapt to whatever thread
786         modules are in use.  Problem reported by Ludovic Courtès in
787         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
788         and by Mats Erik Andersson in
789         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
790         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
791         Support either the 'lock' module, or the 'pthread' module, or
792         no module.
793         (lock_lock, lock_unlock): New macros.
794         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
795         * modules/lock, modules/pthread (configure.ac): Add module indicator.
796         * modules/regex (Depends-on): Remove pthread.
797
798 2013-05-22  Eric Blake  <eblake@redhat.com>
799
800         getgroups: document portability issues
801         * doc/glibc-functions/initgroups.texi (initgroups): Mention
802         multithread safety.
803         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
804         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
805         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
806         getugroups.
807         * doc/posix-functions/getgroups.texi (getgroups): Mention
808         multithread safety and mgetgroups.
809
810 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
811
812         test-lchown, test-chown: also skip test if chown fails with EPERM
813         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
814         skip this test, to handle FAT file systems.
815         * tests/test-chown.h (test_chown): Likewise.
816
817 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
818
819         regex: fix dfa race in multithreaded uses
820         Problem reported by Ludovic Courtès in
821         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
822         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
823         New macros.  All uses of __libc_lock_define, __libc_lock_init
824         changed to use the first two of these.
825         (__libc_lock_lock, __libc_lock_unlock): New macros, for
826         non-glibc platforms.
827         (struct re_dfa_t): Define the lock unconditionally.
828         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
829         '#ifdef _LIBC"s.
830         * modules/regex (Depends-on): Add pthread, if we use the
831         included regex.
832
833         * lib/regcomp.c: Do actions that are not needed for glibc,
834         but may be needed elsewhere.
835         (regfree, re_compile_internal): Destroy the lock.
836         (re_compile_internal): Check for lock-initialization failure.
837
838         malloca: port to compilers that reject size-zero arrays
839         This fixes a bug introduced in my previous patch.
840         * lib/malloca.c (struct preliminary_header): Use an int
841         rather than a character array of size int; that's simpler.
842         (struct header): Remove, replacing with ...
843         (union header): New type.  This avoids the need for declaring a
844         character array of size zero, which is not allowed on some platforms.
845         All uses changed.
846
847 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
848
849         parse-datetime, tests: don't use "string" + int
850         Recent versions of 'clang' complain about C source code that
851         uses expressions of the form '"string literal" + integer',
852         I guess on the theory that it's confusing for readers who are
853         used to C++.  On those grounds I suppose it's OK to make this
854         minor style change.
855         * lib/parse-datetime.y (parse_datetime):
856         * tests/test-fchdir.c (main):
857         * tests/test-snprintf-posix.h (test_function):
858         * tests/test-snprintf.c (main):
859         * tests/test-vasnprintf-posix.c (test_function):
860         * tests/test-vasnprintf.c (test_function):
861         * tests/test-vsnprintf.c (main):
862         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
863         Rewrite '"str" + E' to '&"str"[E]'.
864
865 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
866
867         argmatch: port to C++
868         * lib/argmatch.h [__cplusplus]: Add extern "C".
869
870         argp: typo fix
871         * lib/argp-help.c: Typo in comment.
872
873 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
874
875         manywarnings: update for GCC 4.8.0
876         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
877         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
878         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
879         -Wmissing-noreturn, as they are duplicates of other warnings.
880         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
881         was documented to be flaky in earlier versions of GCC.
882
883         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
884         * tests/test-spawn.c (main):
885         * tests/test-sys_socket.c (main):
886         * tests/test-sys_wait.c (main):
887         Don't have a switch value that isn't covered by a case.
888
889         getaddrinfo-tests: port --enable-gcc-warnings to clang
890         * tests/test-getaddrinfo.c (simple):
891         Avoid casts from looser to stricter-aligned pointers.
892
893         thread: port --enable-gcc-warnings to clang
894         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
895         Include <signal.h>, to pacify a warning about pthread_sigmask.
896
897         stdio: use __REDIRECT for fwrite, fwrite_unlocked
898         * lib/stdio.in.h (fwrite):
899         When working around bug 11959, use __REDIRECT rather than '#define
900         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
901         fix the -Wunused-value issue with clang, and it works with GCC too.
902         Problem with targeting reported by Eric Blake in
903         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
904         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
905         debugging the fwrite issue.
906
907         stdio: port --enable-gcc-warnings to clang
908         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
909         since the GCC workaround for fwrite does not pacify clang.
910
911         sig2str: port --enable-gcc-warnings to clang
912         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
913
914         obstack: port --enable-gcc-warnings to clang
915         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
916         Avoid casts from looser to stricter-aligned pointers.
917
918         memchr2: port --enable-gcc-warnings to clang
919         * lib/memchr2.c (memchr2):
920         Avoid casts from looser to stricter-aligned pointers.
921
922         mbsstr: port --enable-gcc-warnings to clang
923         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
924         Avoid casts from looser to stricter-aligned pointers.
925
926         malloca: port --enable-gcc-warnings to clang
927         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
928         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
929
930         inttostr: port --enable-gcc-warnings to clang
931         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
932
933         warnings: port to clang
934         Problem reported by Daniel P. Berrange via Eric Blake in
935         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
936         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
937         (gl_WARN_ADD): Use it.
938
939 2013-05-11  Jim Meyering  <meyering@fb.com>
940
941         quotearg: do not read beyond end of buffer
942         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
943         end of an ARG for which no length was specified.  With an N-byte
944         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
945         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
946         via coreutils' misc/sort-debug-keys.sh test and detected by running
947         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
948         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
949         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
950         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
951         characters correctly."
952
953 2013-05-11  Daiki Ueno  <ueno@gnu.org>
954
955         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
956         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
957         compilation target is Mac OS X 10.6.
958         Problem reported by parafin and Andoni Morales in
959         <http://savannah.gnu.org/bugs/?37844> and
960         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
961
962 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
963
964         mkdir-p: remove assumptions about umask and mode
965         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
966         umask is 0, or that MODE is a subset of MODE_BITS.
967
968 2013-05-10  Eric Blake  <eblake@redhat.com>
969
970         maint.mk: catch more abuse of HAVE_DECL in syntax-check
971         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
972
973 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
974
975         deps: require Automake >= 1.9.6 in generated Makefile fragments
976
977         That is the same minimal version required in the DEPENDENCIES file.
978         Moreover, the old code generated a requirement of Automake >= 1.5,
979         and that is an insanely outdated version.
980
981         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
982         * tests/havelib/rpathlx/Makefile.am: Likewise.
983         * tests/havelib/rpathly/Makefile.am: Likewise.
984         * tests/havelib/rpathlyx/Makefile.am: Likewise.
985         * tests/havelib/rpathlz/Makefile.am: Likewise.
986         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
987         * tests/havelib/rpathx/Makefile.am: Likewise.
988         * tests/havelib/rpathy/Makefile.am: Likewise.
989         * tests/havelib/rpathz/Makefile.am: Likewise.
990
991 2013-05-08  Eric Blake  <eblake@redhat.com>
992
993         bootstrap: AC_INIT may have more than four parameters
994         * build-aux/bootstrap (extract_package_name): Correctly extract
995         non-empty tarname field.  Avoid range in regex.
996         Based on a report by Sami Kerola <kerolasa@iki.fi>.
997
998 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
999
1000         qacl: port to MS-Windows port of GNU Emacs
1001         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1002         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1003         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1004         <http://bugs.gnu.org/14295#14>.
1005
1006 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1007
1008         acl: include quote.h
1009         * lib/copy-acl.c: Include quote.h.
1010         * lib/set-acl.c: Likewise.
1011
1012 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1013
1014         fchownat, renameat, unlinkat: update statat dependencies
1015         These modules use statat and lstatat, not fstatat; so depend on
1016         the statat module, which was split out recently from fstatat.
1017         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1018         * modules/renameat: Likewise.  Also delete fstat.
1019         URL: http://bugs.gentoo.org/468790
1020
1021 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1022
1023         Assume gnulib is checked out from Git, not CVS
1024
1025         In fact, access to the gnulib repository through CVS has been
1026         disabled, or more precisely, got broken and was never restored; see:
1027         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1028
1029         Note that support for CVS is not removed completely and unthinkingly
1030         by this change: only support for CVS checkouts of gnulib itself is
1031         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1032         files and CVS directories, for the benefit of those poor gnulib clients
1033         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1034
1035         * gnulib-tool: Simplify accordingly.
1036         * posix-modules: Likewise.
1037         * MODULES.html.sh: Likewise.
1038         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1039         repository.
1040         * doc/gnulib-intro.texi: Likewise.
1041         * doc/gnulib-readme.texi: Likewise.
1042         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1043         sample '.gitignore' file rather than a sample '.cvsignore'.
1044         * NEWS: Update.
1045         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1046         to "CVS Autoconf" rather than "git Autoconf".
1047
1048 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1049
1050         utimensat-tests, etc.: try to fix some races
1051         Problem reported by Bernhard Voelker in
1052         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1053         I don't know whether this patch fixes that race condition, but it
1054         fixes *some* race conditions, so it should be a win.
1055         * modules/chown-tests (Depends-on):
1056         * modules/fchownat-tests (Depends-on):
1057         * modules/fdutimensat-tests (Depends-on):
1058         * modules/futimens-tests (Depends-on):
1059         * modules/lchown-tests (Depends-on):
1060         * modules/stat-time-tests (Depends-on):
1061         * modules/utimens-tests (Depends-on):
1062         * modules/utimensat-tests (Depends-on):
1063         Depend on nanosleep, not usleep.
1064         * modules/chown-tests (test_chown_LDADD):
1065         * modules/lchown-tests (test_lchown_LDADD):
1066         * modules/stat-time-tests (test_stat_time_LDADD):
1067         New macro.
1068         * modules/fchownat-tests (test_fchownat_LDADD):
1069         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1070         * modules/futimens-tests (test_futimens_LDADD):
1071         * modules/utimens-tests (test_utimens_LDADD):
1072         * modules/utimensat-tests (test_utimensat_LDADD):
1073         Add $(LIB_NANOSLEEP).
1074         * modules/stat-time-tests (Files): Add tests/nap.h.
1075         * tests/nap.h: Include <limits.h>, for INT_MAX.
1076         (lt_mtime): Remove.
1077         (diff_timespec): New function.
1078         (get_stat): Rename from get_mtime.  All callers changed.
1079         (nap_works): Determine the needed delay by inspecting the
1080         file system's timestamp jumps; this should be more reliable.
1081         Look at both mtime and ctime, and take the maximum of the two jumps.
1082         (nap_works, guess_delay):
1083         Return a nanosecond cound, not a microsecond count.
1084         All callers changed.
1085         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1086         failure.
1087         (nap): Multiply the guess by 1.125, to accommodate the case where
1088         the file system's clock is a bit slower than nanosleep's clock.
1089         * tests/test-stat-time.c (BASE): New macro.
1090         Include nap.h.
1091         (nap): Remove; nap.h now defines this.  This removes a duplicate
1092         implementation of 'nap'.
1093
1094         utimens, utimensat: work around Solaris UTIME_OMIT bug
1095         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1096         Linux kernel 2.6.32 does.  Work around it in the same way.
1097         * doc/posix-functions/futimens.texi (futimens):
1098         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1099         * lib/utimens.c (fdutimens, lutimens):
1100         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1101
1102         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1103         Formerly, it was your responsibility to do this for all Makefile.ams
1104         other than Gnulib's.  Now it's your responsibility to do it for
1105         Gnulib's Makefile.am, too.
1106         * NEWS: Document this.
1107         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1108
1109         acl: include errno.h to get errno
1110         Reported by Daiki Ueno in
1111         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1112         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1113
1114 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1115
1116         tests: don't assume getdtablesize () <= 10000000
1117         * modules/cloexec-tests:
1118         * modules/dup2-tests:
1119         * modules/dup3-tests:
1120         * modules/nonblocking-tests:
1121         * modules/posix_spawn_file_actions_addclose-tests:
1122         * modules/posix_spawn_file_actions_adddup2-tests:
1123         * modules/posix_spawn_file_actions_addopen-tests:
1124         * modules/unistd-safer-tests:
1125         Depend on the getdtablesize module.
1126         * tests/test-cloexec.c:
1127         * tests/test-dup-safer.c:
1128         * tests/test-dup2.c:
1129         * tests/test-dup3.c:
1130         * tests/test-fcntl.c:
1131         * tests/test-nonblocking.c:
1132         * tests/test-posix_spawn_file_actions_addclose.c:
1133         * tests/test-posix_spawn_file_actions_adddup2.c:
1134         * tests/test-posix_spawn_file_actions_addopen.c:
1135         Don't assume getdtablesize () <= 10000000.
1136
1137 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1138
1139         extern-inline: work around bug in Sun c99
1140         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1141         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1142
1143 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1144
1145         qacl: new module, broken out from the acl module
1146         This is for GNU Emacs, which wants the acl functions but does
1147         not want 'error' invoked when they fail.
1148         * lib/acl-internal.h: Do not include error.h, quote.h.
1149         (ENOSYS, ENOTSUP): Remove; no longer needed.
1150         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1151         * lib/acl.h: Include <stdbool.h>.
1152         (acl_errno_valid): New function.
1153         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1154         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1155         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1156         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1157         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1158         * lib/file-has-acl.c (file_has_acl):
1159         * lib/qcopy-acl.c (qcopy_acl):
1160         * lib/qset-acl.c (qset_acl):
1161         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1162         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1163         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1164         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1165         Add lib/set-acl.c.
1166         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1167         Add qacl.
1168         (configure.ac): Move gl_FUNC_ACL to qacl module.
1169         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1170         Rename set-mode-acl.c to set-acl.c.
1171         * lib/acl-errno-valid.c: New file.
1172         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1173         copy_acl function remains in copy-acl.c.
1174         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1175         (_): Remove; not needed.
1176         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1177         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1178         * modules/qacl: New file, moved from the old modules/acl.
1179         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1180         Remove set-mode-acl.c, copy-acl.c.
1181         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1182
1183         alignof, intprops, malloca: port better to IBM's C compiler
1184         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1185         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1186         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1187
1188 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1189
1190         wctype-h: fix gettext link error on mingw
1191         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1192         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1193         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1194         rpl_towupper and rpl_towupper.
1195
1196 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1197
1198         regex-tests, regex: allow glibc re_search behavior
1199         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1200         re_search input data to make the multi-character collating element
1201         in it clearly visible, and treat re_search return code 0 as valid.
1202         * m4/regex.m4 (gl_REGEX): Likewise.
1203
1204 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1205
1206         stdalign: doc fix
1207         * doc/posix-headers/stdalign.texi (stdalign.h):
1208         Gnulib doesn't support '_Alignof expr'.
1209
1210 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1211
1212         stdalign: port to stricter ISO C11
1213         ISO C11 says that _Alignof's operand must be a parenthesized type.
1214         Problem reported by Eli Zaretskii in
1215         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1216         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1217         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1218
1219 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1220
1221         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1222         Problem reported by Marco Atzeri in
1223         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1224         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1225         Simply delegate to the system <sys/select.h> in this case too.
1226         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1227         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1228         be needed on Solaris either.
1229         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1230         Simply delegate to the system <sys/time.h> in this case.
1231
1232 2013-03-19  Karl Berry  <karl@gnu.org>
1233
1234         * build-aux/gnupload: check for erroneous (with gnupload) use of
1235         ftp-upload.gnu.org, tweak help.
1236
1237 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1238
1239         copy-file, rpmatch: fix problems found by cppcheck
1240         Reported by Arno Onken in
1241         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1242         * lib/rpmatch.c (try): Fix memory leak.
1243         * lib/copy-file.c: Include "ignore-value.h".
1244         (qcopy_file_preserving): Ignore chown value.
1245         * modules/copy-file (Depends-on): Add ignore-value.
1246
1247 2013-01-27  Jim Meyering  <jim@meyering.net>
1248
1249         prefix-gnulib-mk: give better diagnostics
1250         * build-aux/prefix-gnulib-mk: Don't just "die".
1251         Give better diagnostics upon failure.
1252
1253 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1254
1255         putenv: port to Solaris 10
1256         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1257         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1258         is not what is wanted here.
1259         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1260         declaration, not for its existence.
1261
1262 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1263
1264         mktime: fix configure typo
1265         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1266
1267 2013-03-12  Eric Blake  <eblake@redhat.com>
1268
1269         regex-tests: skip UTF-8 test on mingw
1270         * modules/regex-tests (Depends-on): Add localcharset.
1271         * tests/test-regex.c (main): Use it to skip test on mingw.
1272
1273 2013-03-11  Eric Blake  <eblake@redhat.com>
1274
1275         tests: make it easier to bypass alarm time in debugger
1276         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1277         * tests/test-memmem.c (main): Likewise.
1278         * tests/test-passfd.c (main): Likewise.
1279         * tests/test-ptsname.c (main): Likewise.
1280         * tests/test-ptsname_r.c (main): Likewise.
1281         * tests/test-strcasestr.c (main): Likewise.
1282         * tests/test-strstr.c (main): Likewise.
1283
1284         regex: port to mingw's recent addition of undeclared alarm
1285         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1286         exists but still doesn't work in newer mingw.
1287         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1288         not existence.  Ensure SIGALRM is not trapped.
1289         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1290         * m4/regex.m4 (gl_REGEX): Likewise.
1291         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1292         * tests/test-regex.c (main): Use correct probe for alarm.
1293
1294         putenv: avoid compilation warning on mingw
1295         * lib/putenv.c (_unsetenv): Protect variable declaration.
1296         (putenv): Fix indentation.
1297
1298 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1299
1300         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1301         * lib/unistd.in.h: be careful not to include un-needed system
1302         stdlib.h from here, because that prevents gnulib stdlib.h from
1303         defining rpl_strtod correctly.
1304
1305 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1306
1307         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1308         changesets, but for the 'precision 0' test.
1309         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1310         round-to-even, since POSIX says rounding is implementation-defined
1311         and OS X 10.8.2 rounds 1.51 to 1 here.
1312
1313         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1314         changeset.
1315         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1316         round-to-even, since POSIX says rounding is implementation-defined
1317         and OS X 10.8.2 rounds 1.5 to 1 here.
1318
1319 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1320
1321         vasnprintf-posix-tests: allow rounding 1.5 to 1
1322         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1323         round-to-even, since POSIX says rounding is implementation-defined
1324         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1325         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1326
1327         bootstrap: port to FreeBSD
1328         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1329         that treat '--' differently.  Reported by Mats Erik Andersson in
1330         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1331
1332 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1333
1334         regex: rename remaining __attribute calls to __attribute__.
1335         2012-02-25 changed definition of __attribute, but left some uses
1336         unchanged, preventing compilation of regex module on most non-gcc
1337         environments.
1338         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1339         (lookup_collation_sequence_value, build_range_exp)
1340         (build_collating_symbol): Set attributes with newly renamed
1341         __attribute__ decorator.
1342         * lib/regex_internal.c (re_string_peek_byte_case)
1343         (re_node_set_compare, re_node_set_contains): Likewise.
1344         * lib/regexec.c (acquire_init_state_context): Likewise.
1345
1346 2013-03-06  Bruno Haible  <bruno@clisp.org>
1347
1348         execute: Revert last change, but use a different condition.
1349         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1350         on Windows.
1351
1352 2013-03-05  Eric Blake  <eblake@redhat.com>
1353
1354         execute: drop dead code
1355         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1356
1357 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1358
1359         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1360         * m4/non-recursive-gnulib-prefix-hack.m4
1361         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1362         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1363         <http://bugs.gnu.org/10305#237>.
1364
1365 2013-03-04  Eric Blake  <eblake@redhat.com>
1366
1367         test-getsockopt: avoid compiler warning
1368         * tests/test-getsockopt.c (includes): Ensure close is declared.
1369
1370 2013-03-02  Bruno Haible  <bruno@clisp.org>
1371
1372         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1373         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1374
1375 2013-03-02  Bruno Haible  <bruno@clisp.org>
1376
1377         gettext: Update to version 0.18.2.
1378         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1379         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1380                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1381
1382 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1383
1384         regex: merge patches from libc
1385
1386         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1387         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1388         All uses changed.
1389         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1390         (re_string_wchar_at, re_string_elem_size_at):
1391         Mark function as possibly unused.
1392
1393         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1394         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1395         elements compare against the byte sequence of it, not its name.
1396
1397 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1398
1399         putenv: port better to native Windows
1400         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1401         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1402         (_unsetenv): Use _putenv if available.
1403         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1404         a bit less likely to cause damage.
1405         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1406         Fix the wrong value with SetEnvironmentVariable.
1407         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1408         code better.
1409
1410 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1411
1412         regex: ignore old-style-definition warnings
1413         * lib/regex.c: Add pragma to ignore these warnings.
1414         Problem reported for GNU tar by Pavel Raiskup.
1415
1416 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1417
1418         getcwd: support coreutils better
1419         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1420         but this might not be correct in coreutils, which disables
1421         the raw decl checks.  Problem reported by Nagendra in
1422         <http://bugs.gnu.org/10305#192>.
1423         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1424         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1425         Test the getcwd function, not any macro, since getcwd.c wants the
1426         function.
1427         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1428         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1429         compile, as might happen if there's a macro but no function.
1430
1431         strtod: support coreutils better
1432         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1433         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1434         disables the raw decl checks.  This assumes there is an underlying
1435         strtod, but that's a safe assumption these days.
1436         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1437
1438         mountlist: port to HP NonStop
1439         Reported by Joachim Schmitz in
1440         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1441         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1442         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1443
1444 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1445
1446         extern-inline: avoid compilation error with HP-UX cc
1447         Reported by Richard Lloyd in
1448         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1449         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1450         Suppress extern inline with HP-UX cc.  This should be safe,
1451         though it may hurt performance.  Perhaps someone with some HP-UX
1452         experience can come up with a higher-performance fix.
1453
1454 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1455
1456         putenv: fix heap corruption with mixed putenv/_putenv
1457         Problem reported by Michael Goffioul in
1458         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1459         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1460         Rely on _putenv to allocate the new environment.
1461         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1462         * modules/putenv (configure.ac): Use it.
1463
1464 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1465
1466         unsetenv etc.: port to Solaris 11 + GNU Emacs
1467         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1468         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1469         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1470         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1471         idea but is too painful to fix right now), and without this gnulib
1472         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1473         compiling unsetenv.c on Solaris 11.  Fix the problem for
1474         unsetenv.c, and fix other similar occurrences.
1475
1476 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1477
1478         secure_getenv: fix C++ declaration typo
1479         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1480         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1481         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1482
1483 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1484
1485         careadlinkat: stop exporting careadlinkatcwd
1486         Only Emacs used it directly, and Emacs no longer needs it.
1487         * NEWS: Document this simplification.
1488         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1489         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1490         for readlink.
1491         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1492         Don't include stdlib.h; no longer needed.
1493         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1494         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1495         * modules/areadlink (Depends-on): Add readlink.
1496         (Maintainer): Add self.
1497         * modules/careadlinkat (Depends-on): Remove readlink.
1498
1499         extensions: port better to HP-UX
1500         This is merged from git Autoconf.
1501         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1502         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1503         so that it's compatible with the value used when compiling.
1504
1505         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1506         Problem reported by Mats Erik Andersson in
1507         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1508         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1509         openpty function exists, not merely when we intend to replace it.
1510         This corrects the 2013-01-31 patch, which mistakenly defined
1511         HAVE_OPENPTY even on hosts that lacked it.
1512
1513 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1514
1515         secure_getenv: fix include typo
1516         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1517
1518         secure_getenv: port better to FreeBSD and Solaris
1519         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1520         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1521         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1522         This works better on BSDish platforms.
1523         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1524         Test for issetugid if __secure_getenv is missing.
1525
1526 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1527
1528         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1529         Some of these changes are merged in from git Autoconf.
1530         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1531         When deciding whether to define _XOPEN_SOURCE, inspect the
1532         preprocessor macro __hpux instead of the more-heavyweight
1533         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1534         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1535         as the key for __EXTENSIONS__.
1536
1537         unistd: avoid namespace pollution on non-glibc systems
1538         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1539         This avoids namespace pollution on non-glibc systems, by causing
1540         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1541         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1542         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1543
1544 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1545
1546         tmpdir: use secure_getenv
1547         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1548         Define to secure_getenv, not getenv.
1549         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1550         as that's now secure_getenv's job.
1551         * modules/tmpdir (Depends-on): Add secure_getenv.
1552
1553         tempname: use secure_getenv
1554         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1555         Define to secure_getenv, not getenv.
1556         * modules/tempname (Depends-on):
1557         Add secure_getenv.
1558
1559         secure_getenv: new module
1560         * MODULES.html.sh (Extra functions based on ANSI C 89):
1561         Add secure_getenv.
1562         * doc/glibc-functions/secure_getenv.texi: New file.
1563         * doc/gnulib.texi: Include it.
1564         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1565         New files.
1566         * lib/stdlib.in.h (secure_getenv): New decl.
1567         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1568         * modules/stdlib (stdlib.h):
1569         Add secure_getenv checks.
1570
1571 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1572
1573         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1574         Reported for OS X 10.8.2 by Assaf Gordon in
1575         <http://bugs.gnu.org/13516>.
1576         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1577         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1578         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1579         so that they can be kept in sync more easily.  Avoid PATH_MAX
1580         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1581         mkdir or chdir failure.
1582         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1583         lib/getcwd.c.
1584         (test_abort_bug): Do not test for the deep directory bug unless we
1585         have openat support.  Avoid PATH_MAX test on the Hurd.
1586
1587         regex-tests, regex: fix bug: memset undeclared
1588         * tests/test-regex.c: Don't include regex.h twice.  Include
1589         string.h, to declare memset.  Christensen's report also mentioned
1590         this issue.
1591         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1592         test-regex.c, to avoid future problems like this.  Remove
1593         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1594         twice.
1595
1596         regex-tests: fix link errors on older Solaris
1597         These need to link with @LIBINTL@ to get libintl_gettext.
1598         Problem reported by Tom G. Christensen in
1599         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1600         * modules/regex-tests (test_regex_LDADD): New macro.
1601
1602 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1603
1604         regex-tests: new module
1605         * modules/regex-tests, tests/test-regex.c: New files.
1606
1607         regex: fix off-by-one error in configure test
1608         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1609
1610 2013-01-31  Eric Blake  <eblake@redhat.com>
1611
1612         regex: avoid infinite configure test
1613         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1614
1615 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1616
1617         openpty: fix bug where HAVE_OPENPTY wasn't defined
1618         See the thread starting at:
1619         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1620         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1621         openpty function exists, not merely when we intend to replace it.
1622
1623 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1624
1625         sys_time: port to Solaris 2.6
1626         There is a circularity problem on Solaris 2.6, where <time.h> includes
1627         <sys/time.h> for struct timespec.  The include nesting is gnulib
1628         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1629         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1630         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1631         <sys/siginfo.h>; the last, innermost file needs struct
1632         timestruc_t, which is defined in <sys/time.h>, which has not been
1633         fully parsed.  Problem reported by Tom G. Christensen in
1634         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1635         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1636         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1637         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1638         uses split double-inclusion guards.
1639
1640 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1641
1642         regex: test for buffer overrun
1643         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1644         for the just-fixed regex bug.
1645
1646 2013-01-29  Andreas Schwab  <schwab@suse.de>
1647
1648         regex: fix buffer overrun in regexp matcher [BZ #15078]
1649         * lib/regexec.c (extend_buffers): Add parameter min_len.
1650         (check_matching): Pass minimum needed length.
1651         (clean_state_log_if_needed): Likewise.
1652         (get_subexp): Likewise.
1653
1654 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1655
1656         mountlist: don't consider "devtmpfs" as dummy
1657         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1658         as there is storage associcated with it.
1659
1660 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1661
1662         futimens-tests, utimens-tests: Depend on gettext.
1663         This works around a problem introduced in my 2013-01-12 patch,
1664         which added @LIBINTL@ to these modules.
1665         * modules/futimens-tests (Depends-on):
1666         * modules/utimens-tests (Depends-on): Add gettext.
1667
1668 2013-01-26  Eric Blake  <eblake@redhat.com>
1669
1670         test-getpeername: fix typo
1671         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1672
1673 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1674
1675         bootstrap: remove the need for a sorted .gitignore file
1676         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1677         rename to insert_if_absent(), so that we don't need or generate
1678         a sorted .gitignore file.  We do require a .gitignore with no
1679         existing duplicate entries and enforce that.
1680         (sort_patterns): Remove this function as we now use the simpler
1681         technigue of inserting blacklist entries at the top of the file,
1682         assuming gnulib won't be inserting !whitelist entries.
1683
1684 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1685
1686         readlinkat: don't depend on gl_FUNC_OPENAT
1687         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1688         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1689         renameat.m4, symlinkat.m4; but one thing at a time.
1690
1691         statat: new module, split out from fstatat
1692         GNU Emacs needs the POSIX-specified fstatat, but not the
1693         gnulib-specified statat and lstat.  Split the latter two into a
1694         new module 'statat'.
1695         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1696         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1697         Rename from FSTATAT_INLINE. All uses changed.
1698         * modules/fstatat (Files): Remove lib/statat.c.
1699         (gl_MODULE_INDICATOR([fstatat])): Remove.
1700         (lib_SOURCES): Remove.
1701         (Maintainer): Add self.
1702         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1703         * tests/test-fstatat.c (BASE): Don't define if already defined.
1704         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1705
1706 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1707
1708         tests: don't assume fd 99 is closed
1709         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1710         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1711         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1712         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1713         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1714         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1715         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1716         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1717         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1718         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1719         * tests/test-fwrite.c, tests/test-getpeername.c:
1720         * tests/test-getsockname.c, tests/test-getsockopt.c:
1721         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1722         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1723         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1724         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1725         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1726         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1727         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1728         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1729         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1730         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1731         Close file descriptor 99, instead of assuming it's already closed.
1732
1733 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1734
1735         stpncpy: port to OS X 10.8
1736         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1737         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1738
1739 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1740
1741         unistd: port to recent mingw
1742         * lib/unistd.in.h: Remove special invocation convention for mingw,
1743         which breaks for the latest mingw version.  See John W. Eaton in
1744         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1745
1746         largefile: port better to Mac OS X 10.5
1747         This patch is backported from Autoconf git.
1748         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1749         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1750         with ino_t size being different for configuration time versus
1751         build/run time.  Problem reported by PHO in
1752         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1753
1754 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1755
1756         doc: clarify -Werror
1757         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1758         clarify that it's intended for developers, not for ordinary builds,
1759         and mention --enable-gcc-warnings as one possible use.
1760
1761 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1762
1763         stdint: fix build with Android's Bionic fox x86
1764         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1765         was already included as _SSIZE_T_DEFINED_ might also be defined
1766         in include/machine/_types.h, which is included by stdio.h
1767
1768 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1769
1770         net_if-tests: port to Solaris 7 + GCC 3.4.6
1771         Problem reported by Tom G. Christensen in
1772         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1773         * tests/test-net_if.c (ni): Move to next the code that uses it,
1774         so that it's declared only if needed.
1775
1776 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1777
1778         net_if-tests: port to older Solaris
1779         Problem reported by Tom G. Christensen in
1780         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1781         * modules/net_if-tests (NET_IF_LIB): New substitution.
1782         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1783         (HAVE_IF_NAMEINDEX): New C macro.
1784         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1785
1786         system-quote-tests: port to older Solaris
1787         Problem reported by Tom G. Christensen in
1788         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1789         * tests/test-system-quote-child.c (fopen, fread): Undef.
1790
1791         c-xvasprintf etc.: fix link errors on older Solaris
1792         These need to link with @LIBINTL@ to get libintl_gettext.
1793         Problem reported by Tom G. Christensen in
1794         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1795         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1796         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1797         * modules/futimens-tests (test_futimens_LDADD):
1798         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1799
1800 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1801
1802         locale: port to Solaris 2.6 and 7 + GNU gettext
1803         * lib/locale.in.h: Just include_next <locale.h> when
1804         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1805         when combining the localename module with GNU gettext 0.18.2.
1806         Problem reported by Tom G. Christensen in
1807         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1808
1809 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1810
1811         stdlib: port to Solaris 2.6
1812         Also, the code worked on Solaris 7 through 9 only by accident.
1813         Problem reported by Tom G. Christensen in
1814         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1815         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1816         simply include the system stdlib.h.
1817         * lib/getopt.in.h (__need_system_stdlib_h):
1818         * lib/pthread.in.h (__need_system_stdlib_h):
1819         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1820         Define when including <stdlib.h>, to avoid problems at least for
1821         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1822         with the system stdlib.h.
1823
1824 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1825
1826         doc: update main copyright year
1827         * doc/gnulib.texi: Update copyright date.
1828
1829         doc: improve ISO 8601 discussion
1830         * doc/parse-datetime.texi (Combined date and time of day items):
1831         Specify more carefully what formats are supported and what is
1832         done with excess precision.
1833
1834 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1835
1836         doc: avoid small caps
1837         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1838         they're more trouble than they're worth.  Suggested by Karl Berry
1839         in <http://bugs.gnu.org/13360>.
1840
1841         regex: conform to strict C
1842         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1843         From Aharon Robbins.
1844
1845         gnulib-tool: fix incompatibility with autopoint 0.18.2
1846         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1847         Problem reported by Tom G. Christensen in
1848         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1849
1850 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1851
1852         fprintftime: bring back and reword fwrite comment
1853         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1854
1855         stdio: remove now-unnecessary stdio.c
1856         Since stdio.in.h no longer uses inline functions, we no longer
1857         need to compile the extern versions.
1858         * lib/stdio.c: Remove.
1859         * modules/stdio (Files): Remove lib/stdio.c.
1860         (lib_SOURCES): Remove.
1861
1862         unicodeio: depend on stdio, not ignore-value
1863         * lib/unicodeio.c: Do not include ignore-value.h.
1864         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
1865         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
1866
1867         fprintftime: depend on stdio, not ignore-value
1868         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
1869         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
1870         since the stdio module arranges to silence that warning now.
1871         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
1872
1873 2012-10-04  Simon Josefsson  <simon@josefsson.org>
1874
1875         stdint-tests: Fix expanded-before-required-warning.
1876         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
1877
1878 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1879
1880         fwrite: silence __wur only for older glibc versions
1881         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
1882         This will help us remove this workaround some time in the far future.
1883
1884 2013-01-03  Eric Blake  <eblake@redhat.com>
1885
1886         fwrite: silence __wur without using inline
1887         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
1888         just gcc, and in a way that avoids inline issues.
1889         * modules/stdio (Depends-on): Drop extern-inline.
1890
1891 2013-01-03  Jim Meyering  <jim@meyering.net>
1892
1893         update-copyright: avoid copyright notice date corruption
1894         Given a sequence of copyright year numbers in which the final
1895         one was a two-digit number that happened to be a substring of
1896         a preceding four-digit year number, we would mistakenly update
1897         the substring (from two- to four-digit) rather than the two-digit
1898         number at the end, which, combined with the addition of the current
1899         4-digit year number would yield two 5-digit year numbers, e.g.,
1900         here, it would convert the first "99" to "1999, 2013" rather than
1901         the final one:
1902           1991, 99
1903           11999, 20131, 1999
1904         * build-aux/update-copyright: Tighten a regexp.
1905         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
1906         Reported by Joseph Myers in
1907         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
1908
1909 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1910
1911         regex: omit needless signed-pointer casts
1912         * lib/regcomp.c (build_charclass, build_charclass_op):
1913         Use char *, not unsigned char *, for class name and extra.
1914         The char values are always nonnegative so there's no need to
1915         insist on unsigned char * here, and using char * removes the need
1916         for casts.  Reported by Aharon Robbins in
1917         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1918
1919         regex: support Gawk, which never uses alloca
1920         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1921         Do not include in this case.  Gawk doesn't supply a substitute
1922         alloca.h and doesn't need one.
1923
1924         regex: port __libc_lock_define usage to C89
1925         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1926         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1927         does not conform to C89, as it has an empty macro argument.
1928         Reported by Aharon Robbins in
1929         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1930
1931 2013-01-01  Eric Blake  <eblake@redhat.com>
1932
1933         maint: update all copyright year number ranges
1934         Run "make update-copyright".
1935
1936         version-etc: bump copyright year reported in --version
1937         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1938
1939 2012-12-31  Eric Blake  <eblake@redhat.com>
1940
1941         sigprocmask-tests: skip test if pid is unexpectedly large
1942         * tests/test-sigprocmask.c (main): Add range check.
1943
1944         git-version-gen: avoid test -z portability glitch
1945         * build-aux/git-version-gen: Prefer portable test spelling, since
1946         git-version-gen is run on more than just developer machines.
1947
1948 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1949
1950         git-version-gen: add --fallback option to use if git is not present
1951         * build-aux/git-version-gen: Add support for the new option --fallback,
1952         which comes into play when there is no $tarball_version_file and
1953         git is not working.
1954         (scriptversion): Update.
1955
1956         maint.mk: handle missing git with more grace
1957         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1958         Quietly proceed if git is not present.
1959
1960 2012-12-31  Eric Blake  <eblake@redhat.com>
1961
1962         dup2: work around cygwin bug
1963         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1964         * lib/dup2.c (rpl_dup2): Work around it.
1965         * doc/posix-functions/dup2.texi (dup2): Document it.
1966
1967 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1968
1969         regex: remove unnecessary dependency on localcharset.h
1970         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1971         hasn't been needed for years.
1972         * modules/regex (Depends-on): Remove localcharset.
1973
1974         regex: revert single-byte change
1975         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1976         to this function.  This was alredy fixed in a different way, at
1977         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1978         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1979         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1980
1981         regex: simplify based on Gawk version
1982         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1983         Reported by Aharon Robbins in
1984         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1985
1986 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1987
1988         regex: check that pattern char is single-byte
1989         Reported by Aharon Robbins in
1990         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1991         * lib/regexec.c (check_node_accept_bytes):
1992         Return 0 if the pattern string has a multibyte character here.
1993
1994         regex: implement rational ranges
1995         Reported by Aharon Robbins in
1996         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1997         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1998         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1999         Implement rational ranges.
2000
2001         regex: avoid redefining __wctype
2002         Reported by Aharon Robbins in
2003         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2004         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2005         #undef before defining.
2006
2007         regex: port to hosts where malloc (0) == NULL
2008         Reported by Aharon Robbins in
2009         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2010         * lib/regex_internal.c (re_node_set_alloc):
2011         Don't assume that malloc (0) yields nonnull.
2012         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2013         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2014         * modules/regex (Files): Add m4/eealloc.m4.
2015
2016         regex: port to C89
2017         Reported by Aharon Robbins in
2018         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2019         * lib/regcomp.c (init_word_char): Declaration before statement.
2020
2021         regex: merge glibc changes
2022         Also, copy the license wording from glibc.  This simplifies
2023         merging changes.  gnulib-tool will change the wording to GPL as
2024         appropriate, when importing it to other packages.  The only
2025         glibc change made since the last merge, which needs merging, is:
2026         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2027         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2028
2029         * users.txt: Add Emacs.
2030
2031         doc: omit mention of version when not needed
2032         * doc/gnulib-intro.texi (Portability and Application Code):
2033         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2034         Don't mention particular dates or versions when not necessary, so
2035         that the documentation won't go out of date so quickly.
2036
2037         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2038
2039 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2040
2041         bootstrap: pass --force to autoreconf.
2042         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2043         Add "--force" so that Automake's ylwrap and other such tools
2044         be updated at each bootstrap invocation.
2045         Use it.
2046
2047 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2048
2049         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2050         The earlier patch forgot to update one of the #if conditions, causing
2051         a problem on Debian testing i386 reported by Mats Erik Andersson
2052         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2053         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2054         (__argp_fmtstream_puts, argp_fmtstream_puts)
2055         (__argp_fmtstream_write, argp_fmtstream_write)
2056         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2057
2058         * doc/gnulib-readme.texi: Minor fixups.
2059         (Portability guidelines): Modernize URLs.  Remove some repetition.
2060         (Indent with spaces not TABs): Reword to avoid too-long lines.
2061         Remove some '@ifset standalone' stuff that isn't used.
2062
2063         * doc/gnulib-readme.texi (Portability guidelines):
2064         ctype.h, not ctime.h.
2065
2066         Correct name of POSIX.1-2001.
2067         * doc/posix-functions/fgetc.texi (fgetc):
2068         * doc/posix-functions/fgets.texi (fgets):
2069         * doc/posix-functions/fread.texi (fread):
2070         * doc/posix-functions/fscanf.texi (fscanf):
2071         * doc/posix-functions/getc.texi (getc):
2072         * doc/posix-functions/getchar.texi (getchar):
2073         * doc/posix-functions/scanf.texi (scanf):
2074         POSIX.1-2001, not POSIX-2001.
2075
2076         doc: move README into manual
2077         * README: Move contents to new file doc/gnulib-readme.texi.
2078         Replace with a one-line summary.
2079         * doc/gnulib.texi (Brief Overview): New section,
2080         with old intro preface.  Include gnulib-readme.texi for contents.
2081         (Philosophy): Rename from "Introduction", since this
2082         section no longer introduces the rest.  Write a new preface.
2083         * doc/gnulib-readme.texi: New file, with the old contents of
2084         README texinfo-ized.  This way, the README info appears
2085         in the online and printed manual.
2086
2087 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2088
2089         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2090         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2091         c_vasprintf() prototype.
2092
2093 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2094
2095         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2096         * lib/c-vasprintf.h: Remove stray semicolon.
2097
2098 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2099
2100         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2101         It is obsolete and is planned to be removed from Automake 1.14; see
2102         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2103         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2104         (installdirs-data, installdirs-data-yes):
2105         Use $(MKDIR_P), not $(mkdir_p).
2106         * m4/intl.m4 (AM_INTL_SUBDIR):
2107         * m4/po.m4 (AM_PO_SUBDIRS):
2108         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2109
2110 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2111
2112         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2113         On this platform, we are not optimizing but we are using
2114         the substitute for extern inlines, so compile as if
2115         C99-style extern inline, or a substitute, is available.
2116         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2117         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2118         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2119         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2120         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2121         Declare as ARGP_FS_EI, not as extern.
2122         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2123         (__option_is_short, _option_is_end, __option_is_end)
2124         [!_LIBC && __USE_EXTERN_INLINES]:
2125         Declare as ARGP_EI, not as extern.
2126
2127 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2128
2129         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2130         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2131         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2132         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2133         ...), as the latter is fatal with older Autoconfs.
2134         Problem reported and fix suggested by Eric Blake in thread starting at
2135         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2136
2137 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2138
2139         AC_PROG_MKDIR_P: don't workaround if not buggy
2140         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2141         Define only for Autoconf versions before 2.62.
2142         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2143         undocumented m4_PACKAGE_VERSION, for consistency with the
2144         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2145         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2146         was introduced in 2.62.
2147
2148 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2149
2150         New 'c-*printf' modules for formatted output in C locale.
2151
2152         New module 'c-vasnprintf'.
2153         * modules/c-vasnprintf: New file.
2154         * lib/c-vasnprintf.c: New file.
2155         * lib/c-vasnprintf.h: New file.
2156
2157         New module 'c-snprintf'.
2158         * modules/c-snprintf: New file.
2159         * modules/c-snprintf-tests: New file.
2160         * lib/c-snprintf.c: New file.
2161         * lib/c-snprintf.h: New file.
2162         * tests/test-c-snprintf.c: New file.
2163         * tests/test-c-snprintf.sh: New file.
2164
2165         New module 'c-vsnprintf'.
2166         * modules/c-vsnprintf: New file.
2167         * modules/c-vsnprintf-tests: New file.
2168         * lib/c-vsnprintf.c: New file.
2169         * lib/c-vsnprintf.h: New file.
2170         * tests/test-c-vsnprintf.c: New file.
2171         * tests/test-c-vsnprintf.sh: New file.
2172
2173         New module 'c-vasprintf'.
2174         * modules/c-vasprintf: New file.
2175         * modules/c-vasprintf-tests: New file.
2176         * lib/c-asprintf.c: New file.
2177         * lib/c-vasprintf.c: New file.
2178         * lib/c-vasprintf.h: New file.
2179         * tests/test-c-vasprintf.c  +: New file.
2180         * tests/test-c-vasprintf.sh: New file.
2181
2182         New module 'c-xvasprintf'.
2183         * modules/c-xvasprintf: New file.
2184         * modules/c-xvasprintf-tests: New file.
2185         * lib/c-xasprintf.c: New file.
2186         * lib/c-xvasprintf.c: New file.
2187         * lib/c-xvasprintf.h: New file.
2188         * tests/test-c-xvasprintf.c: New file.
2189         * tests/test-c-xvasprintf.sh: New file.
2190
2191 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2192
2193         argp: better 'inline'
2194         Use extern-inline module to declare extern inline functions.
2195         This avoids some bogus warning diagnostics.  Problem discovered
2196         when modifying GNU tar to use the manywarnings module.
2197         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2198         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2199         Define based on extern-inline.
2200         * modules/argp (Depends-on): Add extern-inline.
2201
2202 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2203
2204         filemode, sys_stat: Handle MPX files a la AIX.
2205         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2206         * lib/sys_stat.in.h (S_ISMPX): New macro.
2207         * tests/test-sys_stat.c: Add tests for MPX files.
2208
2209 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2210
2211         x-to-1: honor $PERL
2212         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2213         a chance to use his preferred version of Perl.  This is typically
2214         required by Darwin users whose default /usr/bin/perl does not have all
2215         the libraries required by help2man, and who need to use their MacPorts
2216         installation of Perl instead.
2217
2218 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2219
2220         gnu-web-doc-update: add all the new files, even in new directories
2221         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2222         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2223         Use it.
2224         (main): Don't use cvsutils to get the list of unknown files,
2225         just add all the existing files and directories.
2226
2227 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2228
2229         gnu-web-doc-update: improve --help
2230         * build-aux/gnu-web-doc-update: Move comments into --help.
2231
2232 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2233
2234         mountlist: recognize more "dummy" file systems
2235         * lib/mountlist.c (ME_DUMMY_0):
2236         Add these dummy FS names to the list:
2237         - "debugfs" virtual filesystem for kernel debugging
2238         - "devpts" PTY slave filesystem
2239         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2240         - "fusectl" control filesystem for FUSE
2241         - "mqueue" enumerates POSIX message queues
2242         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2243         - "sysfs" is for exporting kernel objects
2244         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2245
2246 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2247
2248         extern-inline: avoid incompatibility with Darwin Libc
2249         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2250         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2251         Problem reported by Akim Demaille in
2252         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2253
2254 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2255
2256         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2257         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2258         let it handle password prompting.
2259
2260 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2261
2262         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2263         * lib/canonicalize.c (canonicalize_filename_mode):
2264         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2265         fetching the current directory.  Don't overrun the beginning of
2266         rpath if there's no slashes after the MS-Windows drive letter.
2267
2268 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2269
2270         maint.mk: avoid extra forks
2271         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2272         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2273         So use that instead of "$(shell test -f FILE && echo FILE)".
2274
2275 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2276
2277         vasnprintf: fix ASCII_ONLY typo
2278         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2279         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2280         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2281         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2282         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2283
2284 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2285
2286         list, oset, xlist, xoset: fix extern inline issue with C99
2287         This was introduced by my recent changes for 'inline'.
2288         Problem reported for gettext by Daiki Ueno in
2289         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2290         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2291         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2292         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2293         (gl_list_previous_node, gl_list_get_at)
2294         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2295         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2296         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2297         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2298         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2299         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2300         (gl_list_iterator_free, gl_sortedlist_search)
2301         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2302         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2303         (gl_sortedlist_remove):
2304         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2305         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2306         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2307         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2308         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2309         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2310         (gl_list_add_at, gl_sortedlist_add):
2311         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2312         Wrap these extern decls inside "#if 0", because they are implemented
2313         as inline functions, and extern inline is not what's wanted here.
2314         It would simplify these .h files to remove the extern decls entirely,
2315         although a downside would be less-clear separation between
2316         specification and implementation.
2317
2318 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2319
2320         sys_stat: no 'static inline'
2321         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2322         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2323
2324         extern-inline: no 'static inline'
2325         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2326         Do not require AC_C_INLINE.
2327         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2328         'static inline', for older compilers.
2329
2330         snippet/warn-on-use: no 'static inline'
2331         * build-aux/snippet/warn-on-use.h:
2332         Remove unnecessary 'inline' in comment.
2333
2334         rbtree-list, rbtreehash-list: no 'static inline'
2335         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2336         * lib/gl_anytree_list2.h (node_at):
2337         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2338         (gl_oset_first, add_nodes_to_buckets):
2339         Now static, not static inline.
2340
2341         regex: no 'static inline'
2342         * lib/regex_internal.c (calc_state_hash):
2343         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2344         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2345         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2346         Now static, not static inline.
2347         (inline) [__GNUC__ < 3 && _LIBC]:
2348         Remove macro; no longer needed.
2349
2350         xvasprintf: no 'static inline'
2351         * lib/xvasprintf.c (xstrcat):
2352         Now static, not static inline.
2353         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2354         Do not require AC_C_INLINE.
2355
2356         parse-datetime, parse-duration: no 'static inline'
2357         * lib/parse-datetime.y (to_uchar):
2358         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2359         (scale_n_add):
2360         Now static, not static inline.
2361         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2362         * modules/parse-duration (configure.ac):
2363         Do not require AC_C_INLINE.
2364
2365         getaddrinfo: no 'static inline'
2366         * lib/getaddrinfo.c (validate_family):
2367         Now static, not static inline.
2368         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2369         Do not require AC_C_INLINE.
2370
2371         ftruncate, fts, lstat, openat, raise: no 'static inline'
2372         * lib/ftruncate.c (chsize_nothrow):
2373         * lib/fts.c (opendirat, diropen):
2374         * lib/lstat.c (orig_lstat):
2375         * lib/openat.c (orig_openat):
2376         * lib/raise.c (raise_nothrow):
2377         Now static, not static inline.
2378         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2379         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2380         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2381         * m4/openat.m4 (gl_PREREQ_OPENAT):
2382         * m4/raise.m4 (gl_PREREQ_RAISE):
2383         Do not require AC_C_INLINE.
2384
2385         fflush, stat: no 'static inline'
2386         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2387         (clear_ungetc_buffer, disable_seek_optimization)
2388         (restore_seek_optimization, update_fpos_cache):
2389         * lib/stat.c (orig_stat):
2390         Now static, not static inline.
2391         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2392         (update_fpos_cache):
2393         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2394         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2395         * m4/stat.m4 (gl_PREREQ_STAT):
2396         Do not require AC_C_INLINE.
2397
2398         error, filevercmp: no 'static inline'
2399         * lib/error.c (is_open, flush_stdout):
2400         * lib/filevercmp.c (order):
2401         Now static, not static inline.
2402         * m4/error.m4 (gl_PREREQ_ERROR):
2403         * modules/filevercmp (configure.ac):
2404         Do not require AC_C_INLINE.
2405
2406         dup, execute, fatal-signal, etc.: no 'static inline'
2407         * lib/dup.c (dup_nothrow):
2408         * lib/execute.c (nonintr_close, nonintr_open):
2409         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2410         * lib/fopen.c (orig_fopen):
2411         * lib/freadseek.c (freadptrinc):
2412         * lib/freopen.c (orig_freopen):
2413         * lib/fstat.c (orig_fstat, fstat_nothrow):
2414         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2415         (get_rusage_as_via_iterator):
2416         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2417         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2418         * lib/isatty.c (_isatty_nothrow):
2419         * lib/open.c (orig_open):
2420         * lib/read.c (read_nothrow):
2421         * lib/sigprocmask.c (signal_nothrow):
2422         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2423         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2424         * lib/wait-process.c (unregister_slave_subprocess):
2425         * lib/write.c (write_nothrow):
2426         Now static, not static inline.
2427         * lib/spawn-pipe.c (nonintr_open): Define only if
2428         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2429         * m4/dup.m4 (gl_PREREQ_DUP):
2430         * m4/execute.m4 (gl_EXECUTE):
2431         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2432         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2433         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2434         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2435         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2436         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2437         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2438         * m4/open.m4 (gl_PREREQ_OPEN):
2439         * m4/read.m4 (gl_PREREQ_READ):
2440         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2441         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2443         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2444         * m4/write.m4 (gl_PREREQ_WRITE):
2445         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2446         Do not require AC_C_INLINE.
2447
2448         c-strtod, memcoll, readutmp: no 'static inline'
2449         * lib/c-strtod.c (c_locale):
2450         * lib/memcoll.c (strcoll_loop):
2451         * lib/readutmp.c (desirable_utmp_entry):
2452         Now static, not static inline.
2453         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2454         * m4/memcoll.m4 (gl_MEMCOLL):
2455         * m4/readutmp.m4 (gl_READUTMP):
2456         Do not require AC_C_INLINE.
2457
2458         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2459         * lib/arctwo.c (to_uchar):
2460         * lib/md4.c (set_uint32):
2461         * lib/md5.c (set_uint32):
2462         * lib/sha1.c (set_uint32):
2463         * lib/sha256.c (set_uint32):
2464         * lib/sha512.c (set_uint64):
2465         Now static, not static inline.  This is a bit simpler, and doesn't
2466         affect performance with GCC and default optimization.
2467         * m4/arctwo.m4 (gl_ARCTWO):
2468         * m4/md4.m4 (gl_MD4):
2469         * m4/md5.m4 (gl_MD5):
2470         * m4/sha1.m4 (gl_SHA1):
2471         * m4/sha256.m4 (gl_SHA256):
2472         * m4/sha512.m4 (gl_SHA512):
2473         Do not require AC_C_INLINE.
2474
2475         cond, lock, thread: better 'inline'
2476         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2477         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2478         New macros.  Use them instead of static inline, for header functions.
2479         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2480         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2481         * lib/glthread/lock.c (gl_waitqueue_init)
2482         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2483         * lib/glthread/thread.c (get_current_thread_handle):
2484         Change 'static inline' to 'inline'.
2485         * lib/glthread/cond.h, lib/glthread/thread.h:
2486         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2487         * m4/cond.m4 (gl_COND):
2488         * m4/lock.m4 (gl_PREREQ_LOCK):
2489         * m4/thread.m4 (gl_THREAD):
2490         Do not require AC_C_INLINE.
2491         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2492
2493         chdir-long, cycle-check, savewd: better 'inline'
2494         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2495         (find_non_slash):
2496         * lib/cycle-check.c (is_zero_or_power_of_two):
2497         * lib/savewd.c (savewd_delegating):
2498         Change 'static inline' to 'inline'.
2499         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2500         Replace all remaining uses of 'static inline' with it.
2501         * lib/savewd.h:
2502         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2503         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2504         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2505         * m4/savewd.m4 (gl_SAVEWD):
2506         Do not require AC_C_INLINE.
2507         * modules/savewd (Depends-on): Add extern-inline.
2508
2509         base32, base64: no need for 'inline'
2510         * lib/base32.c (to_uchar, get_8, decode_8):
2511         * lib/base64.c (to_uchar, get_4, decode_4):
2512         Change 'static inline' to 'inline'.
2513         * m4/base32.m4 (gl_PREREQ_BASE32):
2514         * m4/base64.m4 (gl_PREREQ_BASE64):
2515         Do not require AC_C_INLINE.
2516
2517         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2518         * lib/gl_array_oset.c (gl_array_nx_add_at):
2519         (gl_array_remove_at):
2520         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2521         (add_to_bucket, remove_from_bucket):
2522         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2523         Change 'static inline' to 'static', as it's simpler to omit
2524         'inline' unless there's a significant performance advantage.
2525
2526         list, oset, xlist, xoset, xsublist: simplify via extern inline
2527         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2528         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2529         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2530         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2531         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2532         New macro.  Replace all uses of 'static inline' with it.
2533         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2534         instead of as macros FOO that are defined to static inline
2535         functions FOO_inline.
2536         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2537         * lib/gl_xsublist.c:
2538         Reimplement from scratch, by defining the corresponding *_INLINE
2539         macro and including the corresponding .h file.  This is simpler.
2540         * modules/list, modules/oset, modules/xlist, modules/xoset:
2541         (Files): Remove m4/gl_list.m4.
2542         (configure.ac): Remove gl_LIST.
2543         * m4/gl_list.m4: Remove.
2544         * modules/list, modules/oset, modules/xlist, modules/xoset:
2545         * modules/xsublist:
2546         (Depends-on): Depend on extern-inline, not inline.
2547
2548         xalloc: better 'inline'
2549         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2550         New macro.  Replace all uses of 'static inline' with it.
2551         (static_inline): Remove.
2552         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2553         Let 'extern inline' do the work automatically, instead of doing
2554         it by hand.
2555         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2556         Remove.  All uses removed.
2557         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2558
2559         gethrxtime: better 'inline'
2560         * lib/xtime.c: New file.
2561         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2562         * lib/xtime.h (XTIME_INCLUDE):
2563         New macros.  Replace all uses of 'static inline' with them.
2564         * lib/gethrxtime.c (gethrxtime): Define only if
2565         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2566         this source file is now always compiled, because of the extern inline.
2567         * lib/gethrxtime.h, lib/xtime.h:
2568         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2569         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2570         if gethrtime works, as they're not needed in that case.
2571         (gl_XTIME): Do not require AC_C_INLINE.
2572         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2573         compiled now.  Move the check into gl_GETHRXTIME.
2574         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2575         (Depends-on): Add extern-inline.
2576         (configure.ac): gethrxtime is always compiled now.
2577         (lib_SOURCES): Add gethrxtime.c.
2578
2579         wctype-h: better 'inline'
2580         * lib/wctype-h.c: New file.
2581         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2582         New macro.  Replace all uses of 'static inline' with it.
2583         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2584         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2585         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2586         (Depends-on): Add extern-inline.
2587
2588         unistd: better 'inline'
2589         * lib/unistd.c: New file.
2590         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2591         New macro.  Replace all uses of 'static inline' with it.
2592         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2593         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2594         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2595         (Depends-on): Add extern-inline.
2596
2597         sys_socket: better 'inline'
2598         * lib/sys_socket.c: New file.
2599         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2600         New macro.  Replace all uses of 'static inline' with it.
2601         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2602         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2603         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2604         (Depends-on): Add extern-inline.
2605
2606         stdio: better 'inline'
2607         * lib/stdio.c: New file.
2608         * lib/stdio.in.h (_GL_STDIO_INLINE):
2609         New macro.  Replace all uses of 'static inline' with it.
2610         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2611         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2612         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2613         (Depends-on): Add extern-inline.
2614
2615         sigaction: better 'inline'
2616         * lib/sig-handler.c: New file.
2617         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2618         New macro.  Replace all uses of 'static inline' with it.
2619         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2620         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2621         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2622         (Depends-on): Add extern-inline.
2623
2624         selinux-h: better 'inline'
2625         * lib/se-context.c, lib/se-selinux.c: New files.
2626         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2627         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2628         New macro.  Replace all uses of 'static inline' with it.
2629         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2630         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2631         New macro.  Replace all uses of 'static inline' with it.
2632         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2633         * modules/selinux-h (Files, lib_SOURCES):
2634         Add lib/se-context.c, lib/se-selinux.c.
2635         (Depends-on): Add extern-inline.
2636         (configure.ac): Do not require AC_C_INLINE.
2637
2638         pthread: better 'inline'
2639         * lib/pthread.c: New file.
2640         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2641         New macro.  Replace all uses of 'static inline' with it.
2642         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2643         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2644         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2645         * modules/pthread (Files): Add lib/pthread.c.
2646         (Depends-on): Add extern-inline.
2647
2648         math: better 'inline'
2649         * lib/math.c: New file.
2650         * lib/math.in.h (_GL_MATH_INLINE):
2651         New macro.  Replace all uses of 'static inline' with it.
2652         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2653         * m4/math_h.m4 (gl_MATH_H):
2654         Do not require AC_C_INLINE.
2655         * modules/math (Files, lib_SOURCES):
2656         Add lib/math.c.
2657         (Depends-on): Add extern-inline.
2658
2659         count-one-bits: better 'inline'
2660         * lib/count-one-bits.c: New file.
2661         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2662         New macro.  Replace all uses of 'static inline' with it.
2663         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2664         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2665         Do not require AC_C_INLINE.
2666         * modules/count-one-bits (Files, lib_SOURCES):
2667         Add lib/count-one-bits.c.
2668         (Depends-on): Add extern-inline.
2669
2670         count-leading-zeros: better 'inline'
2671         * lib/count-leading-zeros.c: New file.
2672         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2673         New macro.  Replace all uses of 'static inline' with it.
2674         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2675         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2676         Do not require AC_C_INLINE.
2677         * modules/count-leading-zeros (Files, lib_SOURCES):
2678         Add lib/count-leading-zeros.c.
2679         (Depends-on): Add extern-inline.
2680
2681         bitrotate: better 'inline'
2682         * lib/bitrotate.c: New file.
2683         * lib/bitrotate.h (BITROTATE_INLINE):
2684         New macros.
2685         Replace all uses of 'static inline' with them.
2686         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2687         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2688         (Depends-on): Add extern-inline.
2689         (configure.ac): Do not require AC_C_INLINE.
2690
2691 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2692
2693         maint.mk: avoid gratuitous failure
2694         Reported by Stefano Lattarini in
2695         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2696         * top/maint.mk (public-submodule-commit): Quote more safely.
2697
2698 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2699
2700         canonicalize, canonicalize-lgpl: support MS-Windows file names
2701         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2702         for test cases, which it'd be nice to add at some point.
2703         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2704         * lib/canonicalize.c (canonicalize_filename_mode):
2705         * lib/canonicalize-lgpl.c (__realpath):
2706         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2707         slash is at the beginning of the file name.  Use ISSLASH, instead
2708         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2709         the first character with '/'.  Test for
2710         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2711         with a drive letter.
2712         * lib/canonicalize.c (SLASHES): New macro.
2713         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2714
2715 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2716
2717         fts: introduce FTS_VERBATIM
2718         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2719         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2720         * lib/fts.c (fts_open): Honor it.
2721
2722 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2723
2724         getlogin-tests: allow errno == ENXIO
2725         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2726         with errno == ENXIO (No controlling tty).
2727         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2728         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2729         with errno == ENOENT.  This was reported to happen in various
2730         situations on GNU/Linux.
2731
2732 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2733
2734         getlogin-tests: allow errno == ENOENT
2735         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2736         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2737         when running a test in an Emacs shell buffer.
2738
2739 2012-11-08  Jim Meyering  <jim@meyering.net>
2740
2741         tests/nap.h: avoid warning about unused variable
2742         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2743
2744         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2745         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2746         white space before each of the special-cased file names, to avoid
2747         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2748         in http://bugs.gnu.org/12830.
2749
2750 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2751
2752         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2753         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2754         fails with errno == EBADF when fd is opened with O_PATH.
2755         Reported by Jim Meyering in
2756         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2757         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2758         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2759
2760 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2761
2762         test-utimens: speed up by taking shorter naps
2763         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2764         New functions.
2765         (nap): Use them, to do a better job of guessing the delay.
2766         On Fedora 17 with ext4 atop md atop hard disks, this made
2767         test-utimens run 10x faster, because the test napped for
2768         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2769         <http://bugs.gnu.org/12820#11>.
2770
2771 2012-11-07  Jim Meyering  <jim@meyering.net>
2772
2773         mountlist.c: fix a compilation failure
2774         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2775         I introduced while transforming commit v0.0-7683-g613bcb6
2776
2777 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2778
2779         errno: port to LynxOS 178 2.2.2
2780         Problem reported by Joel Brobecker in
2781         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2782         * doc/posix-headers/errno.texi (errno.h): Document this.
2783         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2784         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2785         Supply a string for EILSEQ.
2786         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2787
2788 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2789
2790         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2791         Linux kernel 2.6.39 introduced O_PATH (see
2792         <http://lwn.net/Articles/433854/>) and this is a better fallback
2793         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2794         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2795         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2796         * lib/fcntl.in.h (O_ACCMODE):
2797         * tests/test-fcntl-h.c (main):
2798         Do not reject O_ACCMODE merely because it has more than the
2799         minimal number of bits, as POSIX allows extensions here.
2800
2801 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2802
2803         mountlist: do not classify a bind-mounted dir entry as "dummy"
2804         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2805         the "none"-testing clause.
2806         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2807         exception for bind-mounted directories.
2808
2809 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2810
2811         quote: provide a means to escape strings with nul characters
2812         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2813         (quote, quote_n): Rename formal arguments for consistency with
2814         quotearg.
2815
2816 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2817
2818         test-raise: don't assume 199 is an invalid signal
2819         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2820
2821         sh-quote-tests: port to Solaris 9
2822         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2823         Problem reported by Dagobert Michelsen in
2824         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2825
2826 2012-10-28  Jim Meyering  <jim@meyering.net>
2827
2828         maint.mk: rename a new configurable variable
2829         * top/maint.mk (_gl_translatable_string_re): Rename from
2830         translation-markers: _gl_ prefix to insulate from user Makefile code,
2831         and the _re suffix to inform that it's a regular expression.
2832
2833 2012-10-26  Eric Blake  <eblake@redhat.com>
2834
2835         maint.mk: let packages tweak sc_po_check pattern
2836         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2837         finding files with other translation markers.
2838
2839 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2840
2841         euidaccess: speed up 'configure' on GNU hosts
2842         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2843         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2844         it's needed only in this case.  Use AC_CHECK_DECLS, not
2845         AC_CHECK_DECLS_ONCE.
2846         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2847         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2848
2849         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2850
2851 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2852
2853         fchmodat, fchownat, fstatat: port to non-inlining compilers
2854         Problem reported for FreeBSD 9 by Jim Meyering in
2855         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2856         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2857         New files, which define FCHMODAT_INLINE etc.
2858         * lib/fchmodat.c (FCHMODAT_INLINE):
2859         * lib/fchownat.c (FCHOWNAT_INLINE):
2860         * lib/fstatat.c (FSTATAT_INLINE):
2861         Remove, as chmodat.c etc. now do this.
2862         * modules/fchmodat (Files): Add lib/chmodat.c.
2863         * modules/fchownat (Files): Add lib/chownat.c.
2864         * modules/fstatat (Files): Add lib/statat.c.
2865
2866 2012-10-15  Jim Meyering  <jim@meyering.net>
2867
2868         fchmodat.c, fchownat.c: compile-impeding typos
2869         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
2870         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
2871         Introduced in commit v0.0-7636-gd202279.
2872
2873 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2874
2875         fcntl-h: support GNU flags like O_IGNORE_CTTY
2876         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
2877         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
2878         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
2879         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
2880         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
2881         Define to 0 if not already defined.
2882         * tests/test-fcntl-h.c: Test these new flags.
2883
2884 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2885
2886         faccessat, etc.: support AT_FDCWD-only use
2887         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
2888         this function only if its first argument is AT_FDCWD.
2889         Emacs wants faccessat for AT_EACCESS but not for any first-arg
2890         values other than AT_FDCWD, so it doesn't want all the openat
2891         machinery with fchdir etc.
2892         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
2893         * modules/fstatat, modules/mkdirat, modules/openat (Files):
2894         * modules/unlinkat (Files):
2895         Remove lib/openat-priv.h, as at-internal supplies this file.
2896         Removing this file here allows us to support programs like Emacs
2897         that avoid at-internal.
2898
2899         faccessat: speed up 'configure' on mainstream hosts
2900         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
2901         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
2902         since it's only on unusual platforms that we need to check for
2903         'access', and it's better not to slow 'configure' down on all
2904         platforms.
2905
2906         faccessat: port to Solaris 10
2907         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
2908         Needed on Solaris 10, which doesn't have AT_EACCESS,
2909         so we need the Gnulib fcntl.h, which defines it.
2910
2911 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2912         canonicalize: fix C89 compilation
2913         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2914         declarations so C89 is supported.  Also remove the comment
2915         referencing memorty allocation as the suggested feature could
2916         not be implemented as suggested.
2917         Reported by Michael Goffioul.
2918
2919 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2920
2921         group-member: omit unnecessary dependencies
2922         This is for Emacs, which has its own allocator and where we
2923         don't want to use xalloc.
2924         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2925         since we no longer use xmalloc.  Do not include stdbool.h, since
2926         the changes below happen to remove the only use of bool.
2927         (GROUPBUF_SIZE): New constant.
2928         (struct group_info): Remove n_groups member.  Add groupbuf member.
2929         This lets us get the groups without using malloc, usually.
2930         (free_group_info, get_group_info): Adjust to this.
2931         (get_group_info): Return the number of groups found, or -1 on error.
2932         Use plain malloc not xmalloc, and treat its failure as if there
2933         are no groups, as the user already loses in case of error.
2934         (group_member): Simplify, based on changes to get_group_info.
2935         * modules/group-member (Depends-on): Remove dependencies on
2936         xalloc and stdbool.  Add dependency on xalloc-oversized.
2937
2938 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2939
2940         gethrxtime: port to C++
2941         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2942
2943 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2944
2945         ptsname: fix macro-name typo
2946         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2947
2948 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2949
2950         inttostr: Relax license.
2951         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2952
2953 2012-10-03  Eric Blake  <eblake@redhat.com>
2954
2955         ptsname_r: support ptys returned by FreeBSD posix_openpt
2956         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2957         lives in /dev/pts/.
2958
2959 2012-10-02  Eric Blake  <eblake@redhat.com>
2960
2961         pselect: reject invalid file descriptors
2962         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2963         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2964         * modules/pselect (Depends-on): Add dup2.
2965         * doc/posix-functions/pselect.texi (pselect): Document this.
2966
2967         select: reject invalid file descriptors
2968         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2969         * lib/select.c (rpl_select) [!win32]: Work around it.
2970         * modules/select (Depends-on): Add dup2.
2971         * doc/posix-functions/select.texi (select): Document this.
2972
2973         select: enhance test
2974         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2975         New functions.
2976         (test_function): Enhance test.
2977         (do_select_bad_fd): Avoid any stale errno values.
2978
2979         ptsname: reject invalid file descriptors
2980         http://www.austingroupbugs.net/view.php?id=503
2981         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2983         * modules/stdlib (Makefile.am): Replace witness.
2984         * lib/stdlib.in.h (ptsname): Allow for replacement.
2985         * modules/ptsname (configure.ac): Trigger replacement.
2986         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2987
2988 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2989
2990         hash-pjw-bare: new module
2991         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2992         * lib/hash-pjw-bare.h: Likewise.
2993         * modules/hash-pjw-bare: New file.
2994         * MODULES.html.sh (Misc): Add it.
2995
2996 2012-10-02  Eric Blake  <eblake@redhat.com>
2997
2998         manywarnings: cater to more gcc infelicities
2999         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3000         -Wuninitialized without -O.
3001
3002 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3003
3004         select, poll tests: Make setsockopt invocation effective.
3005         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3006         the bind() call.
3007         * tests/test-select.h (open_server_socket): Likewise.
3008
3009 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3010
3011         sockets, sys_stat: restore AC_C_INLINE
3012         This undoes the 2012-09-22 patch.
3013         * m4/sockets.m4 (gl_SOCKETS):
3014         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3015         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3016         and does not support plain 'inline'.  Reported by Bruno Haible in
3017         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3018
3019 2012-09-30  Bruno Haible  <bruno@clisp.org>
3020
3021         localeconv tests: Avoid test failure on OpenIndiana.
3022         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3023         skip the 'grouping' and 'mon_grouping' tests.
3024         Reported by Jim Meyering.
3025
3026 2012-09-30  Bruno Haible  <bruno@clisp.org>
3027
3028         havelib: Follow libtool developments.
3029         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3030         Suggested by Simon Josefsson.
3031
3032 2012-09-29  Jim Meyering  <meyering@redhat.com>
3033
3034         fstatat.c: fix a compile-impeding typo
3035         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3036         Introduced in commit v0.0-7636-gd202279.
3037         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3038
3039 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3040
3041         extern-inline: provide a -Wundef safe config.h
3042         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3043         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3044         to produce a -Wundef warning free config.h.
3045
3046 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3047
3048         hash-pjw: relax license to LGPLv2+
3049         * modules/hash-pjw (License): Relax, with consent of author.
3050
3051 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3052
3053         maint.mk: fix strict vs. lazy variable issues with RELEASE
3054         * top/maint.mk (_equal): New function.
3055         (member_check): Strip the result to avoid spurious spaces.
3056         (url_dir_list): Do not use ifeq, which is strict, as it will
3057         require RELEASE_TYPE to be defined.
3058         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3059         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3060         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3061         (announcement_Cc_beta,announcement_mail_headers_beta)
3062         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3063         (release): Do not depend on $(release-type), as it forces its
3064         evaluation.  Bounce to it.
3065
3066 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3067
3068         maint.mk: formatting changes
3069         * top/maint.mk: Indent bodies of if's.
3070
3071 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3072
3073         maint.mk: factor the validation of RELEASE_TYPE
3074         With help from Jim Meyering.
3075         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3076         * top/maint.mk (_empty, _sp): Move their definition earlier.
3077         (member-check, release-type): New.
3078         Use the latter instead of $(RELEASE_TYPE).
3079         Remove now useless local checks.
3080
3081 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3082
3083         maint.mk: provide "make upload" to ease uploading
3084         See
3085         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3086         Do not depend simply on the current $(VERSION), as there may have been
3087         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3088         as "make release-commit" already does.
3089
3090         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3091         "make TYPE".
3092
3093         * top/maint.mk (upload_command, upload, release): New.
3094         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3095         (VERSION): first word of $(RELEASE) is always right.
3096         (emit_upload_commands): Adjust.
3097         * top/README-release: Update.
3098
3099 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3100
3101         maint.mk: silent rules
3102         With help from Stefano Lattarini.
3103         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3104         (announcement): Use $(AM_V_at).
3105
3106 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3107
3108         localename: port gl_locale_name_thread_unsafe to FreeBSD
3109         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3110         and use the simpler FreeBSD implementation on Mac OS X as well.
3111         Original idea suggested by Ed Maste in
3112         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3113
3114 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3115
3116         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3117         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3118         * lib/mbuiter.c, lib/xsize.c: New files.
3119         * lib/binary-io.h (BINARY_IO_INLINE):
3120         * lib/eealloc.h (EEALLOC_INLINE):
3121         * lib/mbfile.h (MBFILE_INLINE):
3122         * lib/mbiter.h (MBITER_INLINE):
3123         * lib/mbuiter.h (MBUITER_INLINE):
3124         * lib/xsize.h (XSIZE_INLINE):
3125         New macros.
3126         Replace all uses of 'static inline' with them.
3127         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3128         * m4/eealloc.m4 (gl_EEALLOC):
3129         * m4/mbfile.m4 (gl_MBFILE):
3130         * m4/mbiter.m4 (gl_MBITER):
3131         * m4/xsize.m4 (gl_XSIZE):
3132         Do not require AC_C_INLINE.
3133         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3134         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3135         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3136         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3137         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3138         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3139         * modules/binary-io, modules/eealloc, modules/mbfile:
3140         * modules/mbiter, modules/mbuiter:
3141         (Depends-on): Add extern-inline.
3142
3143         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3144         * lib/pipe-filter-aux.c: New file.
3145         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3146         Replace all uses of 'static inline' with it.
3147         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3148         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3149         (filter_retcode): No real need for inline here.
3150         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3151         (Files): Add lib/pipe-filter-aux.c.
3152         (Depends-on): Add extern-inline.
3153         (configure.ac): Do not require AC_C_INLINE.
3154         (lib_SOURCES): Add pipe-filter-aux.c.
3155
3156         fdutimensat: omit unnecessary AC_C_INLINE
3157         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3158
3159         fchmodat, fchownat, fstatat: use extern-inline
3160         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3161         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3162         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3163         New macros.
3164         * lib/openat.h:
3165         Replace all uses of 'static inline' with them.
3166         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3167         * modules/fchmodat, modules/fchownat, modules/fstatat:
3168         * modules/openat-h:
3169         (Depends-on):
3170         Add extern-inline.
3171         (configure.ac): Remove AC_C_INLINE.
3172
3173         acl, mbchar, priv-set: use extern-inline
3174         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3175         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3176         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3177         New macros.
3178         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3179         Replace all uses of 'static inline' with it.
3180         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3181         * m4/acl.m4 (gl_FUNC_ACL):
3182         * m4/mbchar.m4 (gl_MBCHAR):
3183         * m4/priv-set.m4 (gl_PRIV_SET):
3184         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3185         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3186         Add extern-inline.
3187
3188         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3189         * m4/sockets.m4 (gl_SOCKETS):
3190         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3191         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3192         environments where it's already guaranteed to work, so we needn't
3193         check for it at 'configure'-time.
3194
3195         tls-tests: omit unnecessary 'inline'
3196         * tests/test-tls.c (perhaps_yield): No longer inline.
3197         Simplicity and portability trump efficiency in test cases.
3198
3199         utimens-tests: avoid unnecessary 'inline'
3200         * modules/fdutimensat-tests (configure.ac):
3201         * modules/futimens-tests (configure.ac):
3202         * modules/utimens-tests (configure.ac):
3203         * modules/utimensat-tests (configure.ac):
3204         Remove AC_C_INLINE.
3205         * tests/test-utimens-common.h (ctime_compare):
3206         No longer inline.  Simplicity and portability trump efficiency here.
3207
3208         misc: don't limit commentary to inline functions
3209         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3210         * lib/xalloc-oversized.h, lib/xsize.h:
3211         Contrast macros to functions in general, not just to inline functions,
3212         when the commentary does not apply only to inline functions.
3213
3214 2012-09-20  Jim Meyering  <meyering@redhat.com>
3215
3216         non-recursive-gnulib-prefix-hack: new module
3217         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3218         the file that originated in Bison.
3219         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3220         largely copied from a snippet that resided in bison's configure.ac.
3221         * modules/non-recursive-gnulib-prefix-hack: New file.
3222         * MODULES.html.sh (Support for maintaining and releasing projects):
3223         Add it.
3224
3225 2012-09-18  Jim Meyering  <meyering@redhat.com>
3226
3227         maint.mk: generalize _gl_tight_scope for non-recursive make
3228         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3229         that *.h would describe additional .h files in the directory
3230         specified by $(_gl_TS_dir).  I.e., add this...
3231         (_gl_TS_other_headers): New variable.
3232
3233         maint.mk: exempt trailing blanks found in "binary" files
3234         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3235         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3236         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3237
3238 2012-09-17  Jim Meyering  <meyering@redhat.com>
3239
3240         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3241         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3242         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3243         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3244
3245 2012-09-17  Jim Meyering  <meyering@redhat.com>
3246
3247         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3248         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3249         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3250         It is not in the same category as "exit (0)" or "exit (1)", and
3251         besides, I know of no symbolic name for that 77.  Reported by
3252         Richard W.M. Jones in
3253         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3254
3255 2012-09-17  Jim Meyering  <meyering@redhat.com>
3256
3257         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3258         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3259         all uses of #define, not just those that start in column 1.
3260         Richard W.M. Jones reported a false positive in
3261         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3262
3263 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3264
3265         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3266         * lib/localcharset.c (locale_charset) [DARWIN7]:
3267         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3268         as these two values are incompatible.  Problem reported by Max Horn.
3269         For more discussion, please see
3270         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3271
3272         doc: document sticky-EOF issue
3273         * doc/posix-functions/fgetc.texi (fgetc):
3274         * doc/posix-functions/fgets.texi (fgets):
3275         * doc/posix-functions/fread.texi (fread):
3276         * doc/posix-functions/fscanf.texi (fscanf):
3277         * doc/posix-functions/getc.texi (getc):
3278         * doc/posix-functions/getchar.texi (getchar):
3279         * doc/posix-functions/scanf.texi (scanf):
3280         Mention that glibc and default Solaris do not conform to
3281         C99 and POSIX-2001 or later, with respect to how getchar
3282         etc. behave when feof reports nonzero.
3283
3284 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3285
3286         poll: fix poll(0, NULL, msec)
3287         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3288         but nfd is 0.  In that case poll should behave like select.
3289
3290 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3291             Paolo Bonzini <bonzini@gnu.org>
3292
3293         poll: fix for systems that can't recv() on a non-socket
3294         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3295         is readable.  In this case POLLHUP will not be supported.
3296         * doc/posix-functions/poll.texi: Document this.
3297
3298 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3299
3300         poll/select: document portability problems not fixed by Gnulib.
3301         * doc/posix-functions/poll.texi: poll does not work well on
3302         pipes under Windows.  It has the same limitations as select on
3303         BeOS.
3304         * doc/posix-functions/select.texi: select does not work well
3305         on pipes under Windows.
3306
3307 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3308
3309         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3310         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3311         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3312         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3313
3314 2012-09-06  Eric Blake  <eblake@redhat.com>
3315
3316         net_if: give more details about the bug being fixed
3317         * doc/posix-headers/net_if.texi: Add clarification.
3318
3319 2012-09-05  Eric Blake  <eblake@redhat.com>
3320
3321         net_if: new module
3322         * modules/net_if: New module, borrowing ideas from netinet_in.
3323         * m4/net_if_h.m4: New file.
3324         * lib/net_if.in.h: Likewise.
3325         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3326         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3327         * tests/test-net_if.c: Make function checks conditional.
3328         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3329
3330 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3331
3332         readutmp: fix non-portable UT_PID use
3333         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3334         Use `UT_PID (u) > 0' as absolute condition.
3335
3336 2012-09-04  Jim Meyering  <meyering@redhat.com>
3337
3338         fts: reduce two or more trailing spaces to just one, usually
3339         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3340         or more slashes, trim all but the final one.  But if a name consists
3341         solely of two slashes, don't modify it.  If it consists solely of
3342         three or more slashes, strip all but one.
3343
3344         This is part of the solution to a minor problem with rm:
3345         it would print a bogus ELOOP diagnostic when failing to remove
3346         the slash-decorated name of a symlink-to-directory:
3347
3348             $ mkdir d && ln -s d s && env rm -r s/
3349             rm: cannot remove 's': Too many levels of symbolic links
3350
3351         With the change below and a trivial don't-trim-trailing-slashes
3352         adjustment to remove.c, it does this:
3353
3354             $ env rm -r s/
3355             rm: cannot remove 's/': Not a directory
3356
3357         Improved by: Eric Blake
3358
3359         fts: when there is no risk of overlap, use memcpy, not memmove
3360         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3361
3362 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3363
3364         stdbool: be more compatible with mixed C/C++ compiles
3365         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3366         Define to bool, true, false, respectively, as GCC's builtin
3367         stdbool.h does.  Problem reported by Michael Goffioul in
3368         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3369
3370 2012-08-28  Jim Meyering  <meyering@redhat.com>
3371
3372         revert last change: it was not needed
3373         * tests/test-vc-list-files-git.sh: There's already a test for
3374         a working git, just below.
3375
3376 2012-08-28  Jim Meyering  <meyering@redhat.com>
3377
3378         tests: test-vc-list-files-git.sh: skip if git is not available
3379         * tests/test-vc-list-files-git.sh: Skip this test when git is
3380         not available.
3381
3382 2012-08-26  Bruno Haible  <bruno@clisp.org>
3383
3384         gnulib-tool: Remove no-op option --no-changelog.
3385         * gnulib-tool (func_usage): Don't mention --no-changelog.
3386         (do_changelog): Remove variable.
3387         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3388
3389 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3390
3391         doc: remove fdl-1.2.texi
3392         It is no longer used or maintained, and its use of @acronym
3393         is problematic.  See the thread containing
3394         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3395         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3396         * doc/old-licenses/fdl-1.2.texi: Remove.
3397
3398         execinfo: port to FreeBSD
3399         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3400         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3401         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3402         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3403
3404 2012-08-23  Jim Meyering  <meyering@redhat.com>
3405
3406         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3407         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3408         to placate gcc's -Wold-style-declaration.
3409
3410 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3411
3412         doc: do not use @acronym
3413         * doc/inet_ntoa.texi (inet_ntoa):
3414         * doc/parse-datetime.texi (Seconds since the Epoch)
3415         (Specifying time zone rules):
3416         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3417         Don't use @acronym.  Problem reported by John Darlington in
3418         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3419
3420 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3421
3422         stdnoreturn: port to newer GCCs
3423         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3424         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3425         Problem reported by Jim Meyering in
3426         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3427         Also, rename the 'test' function to a void a clash with the
3428         already-supplied 'main' function; this fixes a bug that incorrectly
3429         rejected GCC 4.7.1's <stdnoreturn.h>.
3430         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3431         Document GCC problem.
3432
3433 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3434
3435         pipe-filter: fix comment typo
3436         * lib/pipe-filter.h: Mention correct function.
3437
3438 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3439
3440         execinfo: new module
3441         This is for Emacs.  Currently, it provides a no-effect stub
3442         on all platforms where it does not already work.
3443         It already works on glibc-based systems, and on Solaris 11.
3444         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3445         New files.
3446         * doc/glibc-headers/execinfo.texi (execinfo.h):
3447         * MODULES.html.sh (Misc): Document it.
3448
3449 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3450
3451         extern-inline: support old GCC 'inline'
3452         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3453         if available.  This applies to GCC versions 2.7 through 4.2, or
3454         when newer GCC is using -fgnu89-inline.  The goal is to address
3455         some of the performance issues mentioned by Bruno Haible in
3456         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3457
3458 2012-08-20  Eric Blake  <eblake@redhat.com>
3459
3460         maint.mk: avoid redundant file name in message
3461         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3462         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3463         (sc_makefile_path_separator_check): Remove bogus $(ME).
3464
3465 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3466
3467         timer-time: fix link order when static linking on glibc
3468         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3469         _after_ -lrt so that it's significant.
3470
3471 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3472
3473         timespec: omit unnecessary AC_C_INLINE
3474         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3475
3476         stat-time: omit unnecessary AC_C_INLINE
3477         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3478         Do not require AC_C_INLINE.
3479
3480         ignore-value: omit unnecessary AC_C_INLINE
3481         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3482
3483         sys_select: avoid 'static inline'
3484         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3485
3486         mktime: avoid 'static inline'
3487         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3488         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3489
3490 2012-08-19  Bruno Haible  <bruno@clisp.org>
3491
3492         gnulib-tool: Improve coding style.
3493         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3494         func_emit_lib_Makefile_am.
3495         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3496
3497 2012-08-19  Bruno Haible  <bruno@clisp.org>
3498
3499         gnulib-tool: Fix indentation.
3500         * gnulib-tool (func_import): Fix indentation.
3501
3502 2012-08-19  Bruno Haible  <bruno@clisp.org>
3503
3504         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3505         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3506         on the list of removed files.
3507
3508 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3509
3510         test-parse-datetime: avoid glibc leap-second glitch
3511         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3512         with the 2012 rules.  Problem reported by Bruce Dubbs in
3513         <http://bugs.gnu.org/12206>.
3514
3515 2012-08-14  Bruno Haible  <bruno@clisp.org>
3516
3517         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3518         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3519         from argument.
3520         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3521
3522 2012-08-14  Eric Blake  <eblake@redhat.com>
3523
3524         ldexp: relax license
3525         * modules/ldexp (License): Trivial relax, since the module only
3526         provides a permissively licensed m4 file.
3527
3528 2012-08-13  Bruno Haible  <bruno@clisp.org>
3529
3530         gnulib-tool: Fix persistence of --witness-c-macro option.
3531         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3532         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3533
3534 2012-08-11  Eric Blake  <eblake@redhat.com>
3535
3536         count-leading-zeros: use a lookup table on non-gcc compilers
3537         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3538         alternate implementation, suggested by Jim Meyering.
3539
3540 2012-08-10  Eric Blake  <eblake@redhat.com>
3541
3542         count-leading-zeros: new module
3543         * modules/count-leading-zeros: New module.
3544         * m4/count-leading-zeros.m4: New file.
3545         * lib/count-leading-zeros.h: Likewise.
3546         * modules/count-leading-zeros-tests: New test.
3547         * tests/test-count-leading-zeros.c: New file.
3548         * MODULES.html.sh (Integer arithmetic functions): Document it.
3549
3550 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3551             Jim Meyering  <meyering@redhat.com>
3552
3553         maintainer-makefile: Fix syntax error with dash.
3554         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3555         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3556
3557 2012-08-05  Jim Meyering  <meyering@redhat.com>
3558
3559         extern-inline: also ignore -Wmissing-declarations
3560         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3561         required with gcc-4.8.0-to-be.
3562
3563         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3564         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3565         for /error ?([^,]*)/.  This avoids false-positives for strings like
3566         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3567
3568 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3569
3570         gnumakefile: better interaction with Automake-NG
3571         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3572         Automake-NG always contain a definition of VPATH, even in non-VPATH
3573         builds (its value being simply '.' in that case).  So, in the
3574         'clean-GNUmakefile' rule, to determine whether running under a
3575         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3576         '$(VPATH)' expands to the empty string.
3577
3578 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3579
3580         base64: Use extern C scope in header file, for C++.
3581         * lib/base64.h: Add C++ namespace protection.
3582
3583 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3584
3585         stat-time, timespec, u64: support naive out-of-dir builds
3586         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3587         Use '#include "foo.h"', not '#include <foo.h>', when including
3588         one's own interface.  This works better when configuring with
3589         out-of-directory builds, since packages need not add an
3590         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3591
3592 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3593
3594         utimens: use extern-inline
3595         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3596         * lib/utimens.h: Add copyright notice, since this is now large enough
3597         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3598         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3599         * modules/utimens (Depends-on): Add extern-inline.
3600
3601         u64: use extern-inline
3602         * lib/u64.c: New file.
3603         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3604         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3605         * modules/u64 (Files): Add lib/u64.c.
3606         (Depends-on): Add extern-inline.
3607         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3608         does that now.
3609         (lib_SOURCES): Add u64.c.
3610
3611         timespec: use extern-inline
3612         * lib/timespec.c: New file.
3613         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3614         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3615         * modules/timespec (Files): Add lib/timespec.c.
3616         (Depends-on): Add extern-inline.
3617         (lib_SOURCES): Add timespec.c.
3618
3619         stat-time: use extern-inline
3620         * lib/stat-time.c: New file.
3621         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3622         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3623         * modules/stat-time (Files): Add lib/stat-time.c.
3624         (Depends-on): Add extern-inline.
3625         (lib_SOURCES): Add stat-time.c.
3626
3627         extern-inline: new module
3628         * modules/extern-inline, m4/extern-inline.m4: New files.
3629         This is for better support of 'extern inline' a la ISO C99,
3630         with a portable alternative on compilers that do not support
3631         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3632         of the Emacs executable, when compiled with debugging disabled,
3633         which is a typical way that Emacs is built while developing.
3634
3635 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3636
3637         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3638         * build-aux/do-release-commit-and-tag: Move variable definitions
3639         together.
3640         ($branch): Instead of defaulting to "master", default to the current
3641         branch (as gnu-web-doc-update does).
3642         (help): Display the current values of the option arguments.
3643         * top/maint.mk (release-commit): New.
3644         * top/README-release: Simplify the corresponding step.
3645
3646 2012-07-30  Eric Blake  <eblake@redhat.com>
3647
3648         passfd: fix comment on recvfd
3649         * lib/passfd.c (recvfd): Fix comment.
3650         Reported by Jann Horn <jannhorn@googlemail.com>.
3651
3652 2012-07-30  Jim Meyering  <meyering@redhat.com>
3653
3654         maint.mk: avoid a sub-shell
3655         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3656
3657 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3658
3659         maint.mk: use silent-rules support from Automake
3660         * top/maint.mk (news-check, vc-diff-check, announcement)
3661         (no-submodule-changes, alpha beta stable, release-prep)
3662         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3663
3664 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3665
3666         maint.mk: provide a web-manual-update target
3667         * top/maint.mk: here.
3668         * top/README-release: Use it to simplify the web manual update step.
3669
3670 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3671
3672         README-release: shorten the circuit to post a news
3673         * top/README-release: Point directly to the news submission form.
3674
3675 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3676
3677         gnu-web-doc-update: fix --help
3678         * build-aux/gnu-web-doc-update: The information "top level" was written
3679         twice.
3680
3681 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3682
3683         maint.mk: absolute VPATH issue
3684         * top/maint.mk (release-prep): Help Git find .git/.
3685         From Jim Meyering.
3686
3687 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3688
3689         gitlog-to-changelog: fix previous change
3690         * build-aux/gitlog-to-changelog: Fix condition.
3691         Add missing ";".
3692
3693 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3694
3695         gitlog-to-changelog: don't expect .git to be in $srcdir
3696         Reported by Bruno Haible.
3697         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3698         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3699         Use it.
3700
3701 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3702
3703         maint.mk: absolute VPATH build fix
3704         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3705         $(srcdir) is not a parent of $(builddir).
3706
3707 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3708
3709         clean-temp: Fix memory leak.
3710         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3711         'files' members of tmpdir.
3712
3713 2012-07-27  Jim Meyering  <meyering@redhat.com>
3714
3715         maint.mk: new rule: refresh-gnulib-patches
3716         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3717         Use this rule to refresh them.
3718         * top/maint.mk (refresh-gnulib-patches): New rule.
3719
3720 2012-07-24  Bruno Haible  <bruno@clisp.org>
3721
3722         gnulib-tool: Fix handling of inctests variable.
3723         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3724         Reported by Nick Bowler <nbowler@elliptictech.com>.
3725
3726 2012-07-22  Bruno Haible  <bruno@clisp.org>
3727
3728         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3729         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3730         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3731         Remove exemption for getpass.h.
3732         Suggested by Eric Blake.
3733
3734 2012-07-20  Eric Blake  <eblake@redhat.com>
3735
3736         verify: document conflict with -Wnested-externs
3737         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3738
3739         maint.mk: forbid exit(-1)
3740         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3741
3742 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3743
3744         fsusage: port back to Solaris
3745         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3746         error (fsd not declared) on Solaris 10.  Reported privately by
3747         Andrew Borodin.
3748
3749 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3750
3751         gnu-web-doc-update: fix error messages
3752         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3753
3754         gnu-web-doc-update: check the requirements.
3755         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3756         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3757         * build-aux/bootstrap (find_tool): Comment change.
3758
3759 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3760
3761         maint.mk: minor simplication.
3762         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3763         for default values.
3764
3765 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3766
3767         gitlog-to-changelog: VPATH build issues
3768         If builddir is not a subdirectory of srcdir, running git from it will
3769         fail.
3770         * build-aux/gitlog-to-changelog (--srcdir): New option.
3771
3772 2012-07-15  Bruno Haible  <bruno@clisp.org>
3773
3774         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3775         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3776         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3777         Remove exemption for fpending.h.
3778         Suggested by Eric Blake.
3779
3780 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3781
3782         pthread_sigmask: fix bug on FreeBSD 9
3783         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3784         Include string.h.
3785         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3786         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3787         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3788         but pthread_sigmask (1729, NULL, NULL) returns zero.
3789         See <http://bugs.gnu.org/11884>.
3790         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3791         by inspecting whether the main call changed the old mask.
3792
3793 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3794
3795         README-release: make it more legible
3796         * top/README-release: Improve typography slightly.
3797
3798 2012-07-15  Jim Meyering  <meyering@redhat.com>
3799
3800         maint: require that each sc_... command start with "@"
3801         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3802         "make sc_maint" helps us avoid this nit.
3803
3804 2012-07-15  Jim Meyering  <meyering@redhat.com>
3805
3806         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3807         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3808
3809 2012-07-13  Eric Blake  <eblake@redhat.com>
3810
3811         maint.mk: new syntax check for HAVE_DECL checks
3812         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3813         * cfg.mk
3814         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3815         Exempt some false positives.
3816         Based on a report by Karel Zak.
3817
3818         argp: make HAVE_DECL usage consistent
3819         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3820         macros, not whether they are defined.
3821         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3822         convention with other declaration checks.
3823         Reported by Karel Zak, with suggestions from Paul Eggert.
3824
3825         stat-time: relax license to LGPLv2+
3826         * modules/stat-time (License): Relax, with consent of all authors.
3827
3828         strndup: fix m4 usage error
3829         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3830         defined, to either 0 or 1.
3831         Reported by Karel Zak.
3832
3833 2012-07-11  Jim Meyering  <meyering@redhat.com>
3834
3835         maint: enable the sc_avoid_if_before_free syntax-check rule
3836         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3837         (if_before_free_offenders_): Define.
3838         (if_before_free_basename_re_): Define.
3839         Exempt current files with useless if-before-free.
3840
3841 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3842
3843         gettext: do not assume '#define ... defined ...' behavior
3844         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3845         Do not use '#define FOO ... defined BAR ...', as the C standard says
3846         it's not portable to expect that this works after macro expansion.
3847         Problem reported for gzip by Steven M. Schweda in
3848         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3849
3850 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3851
3852         getloadavg: clean out old Emacs and Autoconf cruft
3853         See Glenn Morris in <http://bugs.gnu.org/11905>.
3854         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3855         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3856         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3857         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3858
3859 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3860
3861         bootstrap: let warn be like tests/init.sh's warn_
3862         Reported by Jim Meyering.
3863         * build-aux/bootstrap (warn): Remove, replaced by...
3864         (warnf_, warn_): these.
3865         Adjust callers.
3866         Shorten messages that no longer fit in 80 columns.
3867
3868 2012-07-09  Bruno Haible  <bruno@clisp.org>
3869
3870         getopt: Simplify after Emacs changed.
3871         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
3872         (gl_GETOPT_IFELSE): Remove macro.
3873
3874 2012-07-09  Jim Meyering  <meyering@redhat.com>
3875
3876         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
3877         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
3878
3879         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
3880         Bugs in both of those conspired to make the
3881         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
3882         _sc_search_regexp's handling of non-empty $in_files would filter
3883         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
3884         choice of in_files value meant there would be no match in most
3885         projects, due to the presence of two or more Makefile.in files.
3886         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
3887         Fix a bug in how a non-empty $$in_files was processed:
3888         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
3889         in spite of the name, it's a regexp, not a list of file names.
3890
3891 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3892
3893         getloadavg, getopt: fix commentary re configure.in
3894         Autoconf is deprecating the name 'configure.in', so change it to
3895         to the new name 'configure.ac' in a couple of places.
3896         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
3897         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
3898         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
3899         Emacs has renamed it to configure.ac, and it no longer refers
3900         to these macros anyway.
3901
3902         timespec: mark functions with const attributes
3903         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
3904         Mark with _GL_ATTRIBUTE_CONST.
3905
3906 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3907
3908         canonicalize[-lgpl]: handle "guessing" values when cross-building
3909         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3910         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3911         matches "*yes" instead of just "yes".  Regression introduced in commit
3912         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3913
3914 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3915             Bruno Haible  <bruno@clisp.org>
3916
3917         canonicalize: make the right guess when cross-compiling to GNU
3918         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3919         determine whether cross-compiling to glibc systems, so as to
3920         include GNU/Hurd.
3921
3922 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3923
3924         timespec-sub: avoid duplicate include
3925         * lib/timespec-sub.c: Do not include <config.h> twice.
3926         Reported by Juanma Barranquero.
3927
3928 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3929
3930         bootstrap: use a more consistent error reporting scheme
3931         * build-aux/bootstrap (warn, die): New.
3932         Use them.
3933
3934 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3935
3936         sys_time: allow too-wide tv_sec
3937         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3938         timeval even if tv_sec is wider than time_t.  This allows
3939         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3940         as without this patch gnulib replaces struct timeval
3941         and OpenBSD futimes therefore has a type mismatch.
3942         * doc/posix-headers/sys_time.texi: Mention this.
3943
3944         pthread: check for both pthread_create and pthread_join
3945         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3946         alter the check so that it tests for both pthread_create and
3947         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3948         Suggested by Bruno Haible and Richard Yao in
3949         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3950
3951         parse-datetime: doc tuneup
3952         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3953         spacing issues.
3954
3955 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3956
3957         do-release-commit-and-tag: fix the previous commit
3958         * build-aux/do-release-commit-and-tag: Actually the test was right,
3959         but the comment and the error message were misleading.
3960         Fix comment, and improve error message.
3961         Perform check first, so that NEWS is not modified uselessly.
3962
3963         do-release-commit-and-tag: fix typo
3964         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3965         _not_ start with a stub.
3966
3967 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3968
3969         pthread: check for pthread_create, not pthread_join
3970         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3971         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3972         pthread_join in libc.  I hope this removes the need for all the
3973         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3974         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3975
3976 2012-07-04  Jim Meyering  <meyering@redhat.com>
3977
3978         parse-datetime: fix failure to diagnose invalid input
3979         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3980         rather than diagnosing the invalid input.  Now it reports this:
3981         date: invalid date '\260'
3982         * lib/parse-datetime.y (to_uchar): Define.
3983         (yylex): Don't sign-extend "other" bytes.
3984         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3985         Thanks to Bruno Haible for the patch to this file.
3986         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3987         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3988
3989 2012-07-03  Jim Meyering  <meyering@redhat.com>
3990
3991         bootstrap: do not require now-removed build-aux/missing
3992         Now that build-aux/missing is, er, missing, bootstrap would
3993         silently fail.
3994         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3995         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3996         no longer part of gnulib.
3997         Diagnose the failure.
3998
3999 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4000
4001         alloca: add support for HP NonStop TNS/E native
4002         * lib/alloca.in.h (alloca): Support the new host.
4003         From a suggestion by Joachim Schmitz in
4004         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4005
4006 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4007
4008         fsusage: remove code not needed on non GNU/Linux systems.
4009
4010         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4011         Don't include headers no longer needed in this case.
4012         * lib/fsusage.c [STAT_STATVFS &&
4013         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4014         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4015
4016 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4017
4018         fsusage: include files needed for glibc 2.6 fallback
4019         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4020         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4021         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4022         Problem reported by Ludovic Courtès in
4023         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4024
4025         fsusage: avoid needless check on GNU/Linux
4026         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4027         on GNU/Linux systems, since it can't possibly work.
4028
4029 2012-07-01  Bruno Haible  <bruno@clisp.org>
4030
4031         log: Fix an autoconf >= 2.64 warning.
4032         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4033         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4034
4035 2012-06-28  Bruno Haible  <bruno@clisp.org>
4036
4037         log10f: Fix possible configuration problem.
4038         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4039         $LOGF_LIBM.
4040         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4041
4042 2012-06-28  Bruno Haible  <bruno@clisp.org>
4043
4044         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4045         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4046         not gl_cv_func_unlink_works.
4047         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4048
4049 2012-06-27  Eric Blake  <eblake@redhat.com>
4050
4051         config: drop scripts that automake says are not independent
4052         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4053         * build-aux/elisp-comp: Delete.
4054         * build-aux/missing: Likewise.
4055         * build-aux/ylwrap: Likewise.
4056         * modules/elisp-comp: Likewise.
4057         * MODULES.html.sh: Drop mention of elisp-comp.
4058         * NEWS: Mention this.
4059
4060 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4061
4062         root-uid: new module
4063         This is for portability to Tandem's NonStop Kernel.
4064         * lib/root-uid.h, modules/root-uid: New files.
4065         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4066         * lib/write-any-file.c, tests/test-sethostname2.c:
4067         Include "root-uid.h".
4068         * lib/euidaccess.c (euidaccess):
4069         * lib/pt_chown.c (main):
4070         * lib/unlinkdir.c (cannot_unlink_dir):
4071         * lib/write-any-file.c (can_write_any_file):
4072         * m4/mknod.m4 (gl_FUNC_MKNOD):
4073         * tests/test-sethostname2.c (geteuid, main):
4074         Don't assume ROOT_UID == 0.
4075         * modules/euidaccess (Depends-on):
4076         * modules/pt_chown (Depends-on):
4077         * modules/sethostname-tests (Depends-on):
4078         * modules/unlinkdir (Depends-on):
4079         * modules/write-any-file (Depends-on):
4080         Add root-uid.
4081
4082         regex: use locale-independent comparison for codeset name
4083         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4084         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4085         for codeset name.
4086         * lib/regex_internal.h: Do not include <strings.h>, since we
4087         no longer use strcasecmp.
4088         * modules/regex (Depends-on): Remove strcase.
4089
4090 2012-06-23  Bruno Haible  <bruno@clisp.org>
4091
4092         getopt-posix: No longer guarantee that option processing is resettable.
4093         * doc/posix-functions/getopt.texi: Drop description of problem with
4094         internal state. Fix info about mingw and msvc9.
4095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4096         option processing by getopt(). Run three test programs instead of one.
4097         Simplify cross-compilation guess.
4098         * NEWS: Mention the change.
4099         Reported by Rich Felker <dalias@aerifal.cx>.
4100
4101 2012-06-26  Bruno Haible  <bruno@clisp.org>
4102
4103         argp, regex: Ensure strcasecmp gets declared.
4104         * lib/argp-help.c: Include <strings.h>.
4105         * lib/regex_internal.h: Likewise.
4106         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4107
4108 2012-06-24  Bruno Haible  <bruno@clisp.org>
4109
4110         ptsname_r: Make it consistent with ptsname on AIX.
4111         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4112         implementation as for OSF/1.
4113         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4114         a pty master.
4115
4116         ptsname_r: Make it consistent with ptsname on OSF/1.
4117         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4118         OSF/1.
4119
4120 2012-06-24  Bruno Haible  <bruno@clisp.org>
4121
4122         ttyname_r: Fix result on OSF/1, Solaris.
4123         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4124
4125 2012-06-24  Bruno Haible  <bruno@clisp.org>
4126
4127         ptsname_r: Add support for Solaris.
4128         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4129         Solaris.
4130
4131         ptsname_r: Fix test failure on native Windows.
4132         * modules/ptsname_r (Depends-on): Add isatty.
4133
4134         ptsname_r: Fix test failures on IRIX, Solaris.
4135         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4136         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4137         accordingly.
4138         * lib/ptsname_r.c: Include <fcntl.h>.
4139         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4140         set errno if fd is invalid.
4141         * tests/test-isatty.c (main): Update comments.
4142
4143 2012-06-24  Bruno Haible  <bruno@clisp.org>
4144
4145         ptsname test: Extend test.
4146         * tests/test-ptsname.c: Include <errno.h>.
4147         (main): Test behaviour with invalid file descriptor.
4148
4149 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4150
4151         time: fix obsolete comment
4152         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4153         reference to HAVE_STRUCT_TIMESPEC in comment.
4154
4155 2012-06-23  Bruno Haible  <bruno@clisp.org>
4156
4157         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4158         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4159         does not handle abbreviated long options with equivalent
4160         disambiguations, set gl_replace_getopt to yes.
4161         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4162
4163 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4164
4165         time_r: fix typo that always overrode localtime_r decl
4166         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4167         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4168         not in a standard include.
4169
4170 2012-06-22  Bruno Haible  <bruno@clisp.org>
4171
4172         Write "Mac OS X" instead of "MacOS X".
4173         * README: Write "Mac OS X" instead of "MacOS X".
4174         * build-aux/bootstrap: Likewise.
4175         * build-aux/install-reloc: Likewise.
4176         * lib/acl-internal.h: Likewise.
4177         * lib/acl_entries.c: Likewise.
4178         * lib/argp-ba.c: Likewise.
4179         * lib/argp-pv.c: Likewise.
4180         * lib/config.charset: Likewise.
4181         * lib/copy-acl.c: Likewise.
4182         * lib/csharpexec.c: Likewise.
4183         * lib/euidaccess.c: Likewise.
4184         * lib/fbufmode.c: Likewise.
4185         * lib/fflush.c: Likewise.
4186         * lib/file-has-acl.c: Likewise.
4187         * lib/filemode.h: Likewise.
4188         * lib/fpurge.c: Likewise.
4189         * lib/freadable.c: Likewise.
4190         * lib/freadahead.c: Likewise.
4191         * lib/freading.c: Likewise.
4192         * lib/freadptr.c: Likewise.
4193         * lib/freadseek.c: Likewise.
4194         * lib/fseeko.c: Likewise.
4195         * lib/fseterr.c: Likewise.
4196         * lib/fsusage.c: Likewise.
4197         * lib/fwritable.c: Likewise.
4198         * lib/fwriting.c: Likewise.
4199         * lib/get-rusage-as.c: Likewise.
4200         * lib/get-rusage-data.c: Likewise.
4201         * lib/getdomainname.c: Likewise.
4202         * lib/idpriv-drop.c: Likewise.
4203         * lib/idpriv-droptemp.c: Likewise.
4204         * lib/localcharset.c: Likewise.
4205         * lib/locale.in.h: Likewise.
4206         * lib/localename.c: Likewise.
4207         * lib/mbsrtowcs-state.c: Likewise.
4208         * lib/nproc.c: Likewise.
4209         * lib/passfd.c: Likewise.
4210         * lib/posix_openpt.c: Likewise.
4211         * lib/printf-parse.c: Likewise.
4212         * lib/progreloc.c: Likewise.
4213         * lib/safe-read.h: Likewise.
4214         * lib/safe-write.h: Likewise.
4215         * lib/sched.in.h: Likewise.
4216         * lib/set-mode-acl.c: Likewise.
4217         * lib/signal.in.h: Likewise.
4218         * lib/stdint.in.h: Likewise.
4219         * lib/stdio-impl.h: Likewise.
4220         * lib/stdlib.in.h: Likewise.
4221         * lib/strtod.c: Likewise.
4222         * lib/sys_select.in.h: Likewise.
4223         * lib/tcgetsid.c: Likewise.
4224         * lib/unistd.in.h: Likewise.
4225         * lib/unlockpt.c: Likewise.
4226         * lib/vasnprintf.c: Likewise.
4227         * lib/vma-iter.c: Likewise.
4228         * lib/wcsrtombs-state.c: Likewise.
4229         * m4/acl.m4: Likewise.
4230         * m4/acosl.m4: Likewise.
4231         * m4/asinl.m4: Likewise.
4232         * m4/atanl.m4: Likewise.
4233         * m4/c-stack.m4: Likewise.
4234         * m4/cosl.m4: Likewise.
4235         * m4/expl.m4: Likewise.
4236         * m4/extensions.m4: Likewise.
4237         * m4/fdatasync.m4: Likewise.
4238         * m4/fmal.m4: Likewise.
4239         * m4/frexp.m4: Likewise.
4240         * m4/frexpf.m4: Likewise.
4241         * m4/frexpl.m4: Likewise.
4242         * m4/fsusage.m4: Likewise.
4243         * m4/getdomainname.m4: Likewise.
4244         * m4/getloadavg.m4: Likewise.
4245         * m4/getopt.m4: Likewise.
4246         * m4/gettext.m4: Likewise.
4247         * m4/gnulib-common.m4: Likewise.
4248         * m4/intdiv0.m4: Likewise.
4249         * m4/intlmacosx.m4: Likewise.
4250         * m4/largefile.m4: Likewise.
4251         * m4/ldexpl.m4: Likewise.
4252         * m4/link-follow.m4: Likewise.
4253         * m4/locale-ar.m4: Likewise.
4254         * m4/locale-fr.m4: Likewise.
4255         * m4/locale-ja.m4: Likewise.
4256         * m4/locale-tr.m4: Likewise.
4257         * m4/locale-zh.m4: Likewise.
4258         * m4/locale_h.m4: Likewise.
4259         * m4/lock.m4: Likewise.
4260         * m4/logl.m4: Likewise.
4261         * m4/mathfunc.m4: Likewise.
4262         * m4/minus-zero.m4: Likewise.
4263         * m4/mktime.m4: Likewise.
4264         * m4/mmap-anon.m4: Likewise.
4265         * m4/multiarch.m4: Likewise.
4266         * m4/nanosleep.m4: Likewise.
4267         * m4/nocrash.m4: Likewise.
4268         * m4/poll.m4: Likewise.
4269         * m4/printf-frexpl.m4: Likewise.
4270         * m4/printf.m4: Likewise.
4271         * m4/signbit.m4: Likewise.
4272         * m4/sinl.m4: Likewise.
4273         * m4/sqrtl.m4: Likewise.
4274         * m4/strerror_r.m4: Likewise.
4275         * m4/tanl.m4: Likewise.
4276         * m4/threadlib.m4: Likewise.
4277         * m4/ttyname_r.m4: Likewise.
4278         * m4/unlink.m4: Likewise.
4279         * m4/visibility.m4: Likewise.
4280         * m4/wcwidth.m4: Likewise.
4281         * tests/minus-zero.h: Likewise.
4282         * tests/test-alloca-opt.c: Likewise.
4283         * tests/test-copy-acl.sh: Likewise.
4284         * tests/test-copy-file.sh: Likewise.
4285         * tests/test-fdatasync.c: Likewise.
4286         * tests/test-file-has-acl.sh: Likewise.
4287         * tests/test-flock.c: Likewise.
4288         * tests/test-fsync.c: Likewise.
4289         * tests/test-localename.c: Likewise.
4290         * tests/test-malloca.c: Likewise.
4291         * tests/test-nonblocking-pipe.h: Likewise.
4292         * tests/test-nonblocking-socket.h: Likewise.
4293         * tests/test-openpty.c: Likewise.
4294         * tests/test-posix_openpt.c: Likewise.
4295         * tests/test-ptsname.c: Likewise.
4296         * tests/test-ptsname_r.c: Likewise.
4297         * tests/test-sameacls.c: Likewise.
4298         * tests/test-select.h: Likewise.
4299         * tests/test-set-mode-acl.sh: Likewise.
4300         * tests/test-snprintf-posix.h: Likewise.
4301         * tests/test-sprintf-posix.h: Likewise.
4302         * tests/test-strtod.c: Likewise.
4303         * tests/test-time.c: Likewise.
4304         * tests/test-vasnprintf-posix.c: Likewise.
4305         * tests/test-vasprintf-posix.c: Likewise.
4306         * doc/acl-resources.txt: Likewise.
4307         * doc/**/*.texi: Likewise.
4308         Reported by Max Horn <max@quendi.de>.
4309
4310 2012-06-22  Bruno Haible  <bruno@clisp.org>
4311
4312         grantpt: Relax requirement regarding invalid file descriptors.
4313         * lib/grantpt.c: Don't include <fcntl.h>.
4314         (grantpt): Don't verify the validity of the file descriptor.
4315         * modules/grantpt (Depends-on): Remove fcntl-h.
4316         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4317         file descriptors.
4318         * doc/posix-functions/grantpt.texi: Document more platforms on which
4319         grantpt succeeds for invalid file descriptors.
4320         Reported by Rich Felker <dalias@aerifal.cx>.
4321
4322 2012-06-22  Bruno Haible  <bruno@clisp.org>
4323
4324         fbufmode test: Don't test unportable behaviour.
4325         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4326         (main): Invoke it three times.
4327         Reported by Szabolcs Nagy <nsz@port70.net>
4328         and Rich Felker <dalias@aerifal.cx>.
4329
4330 2012-06-21  Bruno Haible  <bruno@clisp.org>
4331
4332         gnulib-tool: Refactor inctests variable.
4333         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4334         (func_modules_transitive_closure,
4335         func_modules_transitive_closure_separately,
4336         func_import, func_create_testdir): Update.
4337
4338         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4339         * gnulib-tool: Accept option --without-tests.
4340         (func_usage): Document --without-tests option. Rearrange.
4341         (inctests): Normalize according to the mode.
4342         * NEWS: Mention the change.
4343         Suggested by Simon Josefsson.
4344
4345 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4346
4347         parse-duration test: Avoid spurious output.
4348         * tests/test-parse-duration.sh: Reindent with leading tabs.
4349
4350 2012-06-21  Jim Meyering  <meyering@redhat.com>
4351
4352         maint: disable the strncpy prohibition
4353         * cfg.mk: Do not prohibit strncpy here.
4354
4355 2012-06-21  Bruno Haible  <bruno@clisp.org>
4356
4357         nonblocking: Avoid compilation error on mingw64.
4358         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4359         fscanf.
4360         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4361         * modules/vfscanf (configure.ac): Likewise.
4362         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4363         definition only if stdio.h has prepared it.
4364         Reported by Daniel P. Berrange <berrange@redhat.com>.
4365
4366 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4367
4368         gnulib-tool: Use readlink if it is available.
4369         * gnulib-tool (func_readlink): Choose function more appropriately.
4370
4371 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4372
4373         posixtm-tests: port to buggy compiler
4374         Problem reported by Simon Josefsson in
4375         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4376         * modules/posixtm-tests (Depends-on): Add stdint.
4377         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4378         Now of type int_least64_t, not int64_t, both because that's
4379         what INT64_C returns and because int_least64_t works even
4380         on 72-bit hosts.
4381         (T): Use INT64_C on constants outside the traditional int range,
4382         to work around compiler bug noted by Simon.
4383
4384         mktime: fix integer overflow in 'configure'-time test
4385         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4386         after integer overflow.  Problem reported by Rich Felker in
4387         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4388         Also, don't look for further instances of a bug if we've already
4389         found one instance; this helps 'configure' run faster.
4390
4391 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4392
4393         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4394         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4395         GetVersionEx correctly.
4396         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4397
4398 2012-06-20  Bruno Haible  <bruno@clisp.org>
4399
4400         fdopen: Allow implementations that don't reject invalid fd arguments.
4401         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4402         succeeds.
4403         Reported by Rich Felker <dalias@aerifal.cx>.
4404
4405 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4406
4407         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4408         bring in LIBINTL.
4409
4410 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4411
4412         init.sh: do not rely on autoupated PWD
4413         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4414         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4415         Although Nelson's bug was not necessarily fixed by this patch,
4416         it seems wise to make the change for safety.
4417         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4418         automagically after 'cd'; this is not reliable on older shells.
4419         (setup_): Fail if we cannot cd to temporary directory.
4420
4421 2012-06-19  Bruno Haible  <bruno@clisp.org>
4422
4423         stat, fstat: Avoid warnings on mingw64.
4424         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4425         redefining.
4426         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4427         Reported by Daniel P. Berrange <berrange@redhat.com>.
4428
4429 2012-06-19  Bruno Haible  <bruno@clisp.org>
4430
4431         stdioext: Add support for musl libc.
4432
4433         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4434         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4435
4436         * m4/fseterr.m4: New file.
4437         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4438         function exists.
4439         * modules/fseterr (Files): Add m4/fseterr.m4.
4440         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4441         __fseterr does not exist.
4442         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4443
4444         * lib/freadable.h: Update comment.
4445
4446         * lib/fwritable.h: Update comment.
4447
4448         * lib/freading.h: Update comment.
4449
4450         * lib/fwriting.h: Update comment.
4451
4452         * m4/freadahead.m4: New file.
4453         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4454         that function exists.
4455         * modules/freadahead (Files): Add m4/freadahead.m4.
4456         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4457         __freadahead does not exist.
4458         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4459
4460         * m4/freadptr.m4: New file.
4461         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4462         function exists.
4463         * modules/freadptr (Files): Add m4/freadptr.m4.
4464         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4465         __freadptr does not exist.
4466         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4467
4468         * m4/freadseek.m4: New file.
4469         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4470         exists.
4471         * modules/freadseek (Files): Add m4/freadseek.m4.
4472         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4473
4474         * lib/fpurge.c (fpurge): Update comment.
4475
4476         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4477
4478 2012-06-19  Bruno Haible  <bruno@clisp.org>
4479
4480         *printf-posix: Put more info into config.log.
4481         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4482         exit code into config.log.
4483
4484 2012-06-19  Bruno Haible  <bruno@clisp.org>
4485
4486         getopt-gnu: Fix exit code overflow in autoconf test.
4487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4488         to keep them below < 128.
4489
4490 2012-06-17  Jim Meyering  <meyering@redhat.com>
4491
4492         maint.mk: fix typo in code to derive GPG key at release time
4493         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4494
4495 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4496
4497         regex: avoid warning when pointers are not long
4498         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4499         and uintptr_t, not long, for portability to hosts where pointers and
4500         long have different sizes.  Issue noted by Daniel P. Berrange in
4501         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4502         and fix suggested by Bruno Haible in
4503         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4504
4505 2012-06-17  Bruno Haible  <bruno@clisp.org>
4506
4507         dummy: Relicense into the public domain.
4508         * modules/dummy (License): Set to "public domain".
4509         Suggested by Reuben Thomas.
4510
4511 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4512
4513         announce-gen: VPATH issues
4514         * build-aux/announce-gen (--srcdir): New option, used to trim the
4515         $srcdir part of the path from $builddir to NEWS.
4516         * top/maint.mk (announcement): Adjust.
4517
4518 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4519
4520         gnu-web-doc-update: VPATH builds
4521         * build-aux/gnu-web-doc-update (--builddir): New option.
4522         Revamp the handling of options.
4523         Prefer $(...) to `...`.
4524         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4525         the template, and it is GNU mktemp specific.
4526         Prefer set -e to long series of &&.
4527         Restore the initial git branch, not "master".
4528         Properly initialize submodules (don't rely only on bootstrap).
4529         Do not reconfigure blindly, use config.status.
4530         * top/README-release: Update instructions for gnu-web-doc-update.
4531
4532 2012-06-11  Jim Meyering  <meyering@redhat.com>
4533
4534         maint.mk: revert most of the previous change re "all these"
4535         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4536         For rationale, see the discussion at
4537         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4538
4539 2012-06-10  Karl Berry  <karl@gnu.org>
4540
4541         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4542
4543         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4544
4545 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4546
4547         parse-duration: Relicense under LGPLv2+.
4548         * modules/parse-duration (License): Change to LGPLv2+.
4549
4550 2012-06-10  Jim Meyering  <meyering@redhat.com>
4551
4552         maint.mk: prohibit common grammar error: "all these"
4553         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4554         the list of prohibited word sequences.  It should be "all of these".
4555         * lib/tempname.c (__gen_tempname): Fix one of them.
4556
4557 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4558
4559         do-release-commit-and-tag: support VPATH builds
4560         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4561         (noteworthy): Defined earlier to factor its value.
4562         (noteworthy_stub): New.
4563         Use it to factor.
4564         (help_version): Split into...
4565         (help, version): these.
4566         Adjust the option processing part.
4567         Support "--option=value" in addition to "--option value".
4568         (builddir): New.
4569         (--builddir): New option.
4570         * top/README-release: Document this.
4571         Reword slightly so that the reader cannot understand that he
4572         has to do these steps before calling do-release-commit-and-tag.
4573
4574 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4575
4576         readme-release: also require announce-gen and maintainer-makefile
4577         * modules/readme-release (Depends-on): here.
4578         * modules/announce-gen, modules/do-release-commit-and-tag,
4579         modules/gnu-web-doc-update, modules/maintainer-makefile
4580         (Description): Point to readme-release.
4581
4582 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4583
4584         maint.mk: fix VPATH issues.
4585         * top/maint.mk (news-check): GNU Make understand $< very well.
4586         (release-prep): NEWS is in $(srcdir).
4587
4588 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4589
4590         readme-release: require the promoted modules.
4591         * modules/readme-release (Depends-on): Add
4592         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4593         in this text.
4594
4595 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4596             Bruno Haible  <bruno@clisp.org>
4597
4598         error, strerror-override: Support mingw64 from Fedora 17.
4599         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4600         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4601         EINPROGRESS.
4602         * lib/strerror-override.h (strerror_override): Test it.
4603         * lib/strerror-override.c (strerror_override): Likewise.
4604         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4605
4606 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4607             Bruno Haible  <bruno@clisp.org>
4608
4609         error, strerror-override: Support mingw64 from Fedora 17.
4610         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4611         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4612         * lib/strerror-override.h (strerror_override): Test it.
4613         * lib/strerror-override.c (strerror_override): Likewise.
4614
4615 2012-06-03  Bruno Haible  <bruno@clisp.org>
4616
4617         error, strerror-override: Support new errno values from POSIX:2008.
4618         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4619         ENOTRECOVERABLE.
4620         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4621         platforms.
4622         * lib/strerror-override.c (strerror_override): Conditionalize the
4623         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4624         * lib/strerror-override.h (strerror_override): Declare also if
4625         GNULIB_defined_EOWNERDEAD is defined.
4626         * tests/test-errno.c (e130, e131): New variables.
4627         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4628         ENOTRECOVERABLE.
4629         Reported by Paolo Bonzini.
4630
4631 2012-05-31  Jim Meyering  <meyering@redhat.com>
4632
4633         savewd: add missing dependency on sys_wait module
4634         * modules/savewd (Depends-on): Add sys_wait, needed at least
4635         for MSVC.  Report and suggested change by Michael Goffioul.
4636
4637 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4638
4639         system-quote-tests: port to CentOS 5
4640         Problem reported by Tom G. Christensen in
4641         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4642         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4643
4644 2012-05-29  Jim Meyering  <meyering@redhat.com>
4645
4646         maint: fix typos in comments and ChangeLog
4647         Culprits identified and fixed mostly automatically using these commands:
4648         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4649         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4650         using http://github.com/lyda/misspell-check
4651         * ChangeLog: Fix typos.
4652         * doc/solaris-versions: Likewise.
4653         * lib/regexec.c (re_search_stub): Likewise.
4654         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4655
4656 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4657
4658         manywarnings: remove duplicate -Wmultichar entry
4659         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4660         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4661         so keep the entry marked as documented.
4662
4663 2012-05-27  Karl Berry  <karl@gnu.org>
4664
4665         * config/srclist.txt (mktime.c): remove last libc sync,
4666         perhaps just temporarily.
4667
4668 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4669
4670         regex: don't assume uint64_t or uint32_t
4671         * lib/regcomp.c (init_word_char): Don't assume that the types
4672         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4673         them, and on some 32-bit compilers there is no uint64_t.
4674         Problem reported by Gianluigi Tiesi in
4675         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4676
4677 2012-05-25  Jim Meyering  <meyering@redhat.com>
4678
4679         maint.mk: add strncpy-prohibiting syntax-check rule
4680         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4681
4682 2012-05-24  Jim Meyering  <meyering@redhat.com>
4683
4684         maint.mk: compute $(gpg_key_ID) more portably
4685         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4686         That use of sed is not portable to some fringe systems.
4687         Reported by Paul Eggert in
4688         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4689
4690 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4691
4692         mktime: sync from glibc
4693         * config/srclist.txt: Uncomment mktime.c.
4694         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4695         First, indent with tabs, since glibc uses tabs and doesn't want to
4696         change and we'd rather be identical to glibc.  Also, two small
4697         coding changes:
4698         (isdst_differ): Use &&, not &, as && is the usual style.
4699         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4700         for clarity.
4701
4702 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4703
4704         announce-gen: du -h is more portable than du --human
4705         * build-aux/announce-gen (sizes): Invoke du with -h instead
4706         of --human.  Accept leading white space in its output.
4707
4708 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4709
4710         announce-gen: Improve diagnostics.
4711         * build-aux/announce-gen: When parsing command line options,
4712         prefer "announce-gen: option --release-type requires an argument"
4713         to "Option release-type requires an argument".
4714
4715 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4716
4717         maint.mk: gpg_key_ID: use sed more portably
4718         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4719         the closing brace.
4720         (refresh-po): Fuse two sed invocations into one.
4721
4722 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4723
4724         gitlog-to-changelog: support the log message format used in Bison.
4725         * build-aux/gitlog-to-changelog: Support --strip-tab and
4726         --strip-cherry-picked.
4727
4728 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4729
4730         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4731         the rest of the current time slice to another thread in the current
4732         process. So if the thread that feeds the file decscriptor we're
4733         polling is not in the current process, we get busy-waiting.
4734         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4735         Patch from Theodore Leblond.
4736         * lib/select.c: Split polling out of the loop that sets the output
4737         fd_sets.  Check for zero result and loop if the wait timeout is
4738         infinite.
4739
4740 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4741
4742         select: Fix build error on IRIX 6.5.
4743         * lib/select.c: Include stddef.h for NULL.
4744
4745 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4746
4747         gc: fix libgcrypt detection on older machines.
4748         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4749         copyright years because the file has been distributed every year
4750         since it was created.
4751
4752 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4753
4754         crypto: fix bug in large buffer handling
4755         Problem reported by Serge Belyshev for glibc in
4756         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4757         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4758         * lib/md4.c (md4_process_block):
4759         * lib/md5.c (md5_process_block):
4760         * lib/sha1.c (sha1_process_block):
4761         * lib/sha256.c (sha256_process_block):
4762         Don't assume the buffer length is less than 2**32.
4763         * lib/sha512.c (sha512_process_block): Likewise.
4764         Here, the bug is present only in the rare case where the host does
4765         not support uint64_t or where size_t is wider than 64 bits.
4766         Use u64size to work around the problems.
4767         * lib/u64.h (u64size): New macro.
4768
4769 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4770
4771         fsusage: fix block size returned on older Linux 2.6
4772
4773         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4774         which is available since Linux 2.6.
4775         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4776         when the member is available so it can be used as a fallback.
4777         * doc/posix-functions/statvfs.texi: Mention the hang issue
4778         on Linux < 2.6.36.
4779
4780 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4781
4782         bootstrap: suppress stderr chatter
4783         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4784         Omit unnecessary chatter to stderr.  The main program chatter
4785         was there only inadvertantly.
4786
4787         bootstrap: .gitignore files created by autopoint, libtool
4788         I ran into this problem when bootstrapping the latest diffutils.
4789         After './bootstrap', 'git status' reported lots of untracked files
4790         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4791         autopoint and do not need to be version-controlled.
4792         * build-aux/bootstrap: Put into .gitignore the files that
4793         autopoint and libtool create, by keeping track of files that exist
4794         after but not before these programs are run.
4795         (version_controlled_file): Move up.  2nd arg is now full file
4796         name, not base name; this is more convenient.  Put CVS at the end,
4797         as it's now somewhat deprecated.
4798
4799 2012-05-14  Jim Meyering  <meyering@redhat.com>
4800
4801         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4802         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4803         definition.  Reported by Bruno Haible.
4804
4805 2012-05-13  Bruno Haible  <bruno@clisp.org>
4806             Paul Eggert  <eggert@cs.ucla.edu>
4807
4808         binary-io: Define set_binary_mode function.
4809         * lib/binary-io.h (set_binary_mode): New function.
4810         (SET_BINARY): Define in terms of set_binary_mode.
4811         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4812         * tests/test-binary-io.c (main): Accept an argument, and test either
4813         set_binary_mode or SET_BINARY depending on the argument.
4814         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4815         argument. Clean up also t-bin-out0.tmp.
4816
4817 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4818
4819         bootstrap: take advantage of POSIX shell features
4820
4821         The 'bootstrap' script offered by Gnulib script already uses POSIX
4822         shell features (like $((...)) arithmetic expansions) that are not
4823         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4824         means that bootstrap must already be run using a proper POSIX shell,
4825         which will thus provide more features, like ${var#pattern} parameter
4826         expansion or inversion of a command exit status with '!'.  We can
4827         thus use these features to improve the clarity and the performances
4828         of the bootstrap script.
4829
4830         Suggested by Eric Blake.
4831
4832         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4833         of sed/expr plus command substitutions, to save some forks.  While
4834         we are at it, prefer the POSIX $(...) form of command substitution,
4835         rather than the legacy form `...` (since the former is visually
4836         clearer and interacts better with quoting), and prefer the idiom:
4837           "if ! CMD; then ACTION ..."
4838         over the idiom:
4839           "if CMD; then :; else ACTION ..."
4840         which was required by legacy Bourne shells not supporting '!'.
4841
4842 2012-05-12  Bruno Haible  <bruno@clisp.org>
4843
4844         system-quote: Add more comments.
4845         * lib/system-quote.h: Add more comments about wilcards and limitations.
4846         Suggested by Eli Zaretskii <eliz@gnu.org>.
4847
4848         sh-quote, system-quote: Add comments about wildcards.
4849         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4850         * lib/system-quote.h: Likewise.
4851         Reported by Eli Zaretskii <eliz@gnu.org>.
4852
4853 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4854
4855         fsusage: check for GNU/Linux statvfs problem dynamically
4856         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4857         Define STAT_STATFS2_BSIZE too, since in this case the code now
4858         checks dynamically whether statvfs is reliable, falling back on
4859         Linux-style statfs otherwise.
4860         (statvfs_works): New function, for dynamically testing statvfs.
4861         (get_fs_usage) [STAT_STATVFS]: Use it.
4862         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
4863         statvfs on GNU/Linux hosts, since it's now done dynamically.
4864
4865 2012-05-10  Bruno Haible  <bruno@clisp.org>
4866
4867         system-quote, execute, spawn-pipe: Escape '?' on Windows.
4868         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
4869         '?' character.
4870         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
4871         * tests/test-system-quote-main.c (check_all): Check also strings like
4872         "??????????".
4873         Reported by Eli Zaretskii <eliz@gnu.org>.
4874
4875 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4876
4877         _Noreturn: port config.h to gcc -Wundef
4878         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
4879         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
4880         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
4881
4882 2012-05-10  Bruno Haible  <bruno@clisp.org>
4883
4884         system-quote: Refactor.
4885         * lib/system-quote.h (system_quote_copy): Fix comment.
4886         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
4887         New functions, extracted from system_quote_copy.
4888         (system_quote_length, system_quote_copy): Use these functions.
4889         Reported by Paul Eggert.
4890
4891 2012-05-08  Bruno Haible  <bruno@clisp.org>
4892
4893         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4894         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
4895
4896 2012-05-08  Bruno Haible  <bruno@clisp.org>
4897
4898         Tests for module 'system-quote'.
4899         * modules/system-quote-tests: New file.
4900         * tests/test-system-quote.sh: New file.
4901         * tests/test-system-quote-main.c: New file.
4902         * tests/test-system-quote-child.c: New file.
4903
4904         New module 'system-quote'.
4905         * lib/system-quote.h: New file.
4906         * lib/system-quote.c: New file.
4907         * modules/system-quote: New file.
4908
4909 2012-05-08  Bruno Haible  <bruno@clisp.org>
4910
4911         sh-quote: Make C++ safe and allow multiple inclusion.
4912         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4913         declarations in extern "C".
4914
4915 2012-05-08  Bruno Haible  <bruno@clisp.org>
4916
4917         sh-quote tests: Make tests stricter.
4918         * tests/test-sh-quote.c (check_one): Check the return value of
4919         shell_quote_copy.
4920         (main): Check a string with a CR character. Check a string that
4921         contains UCHAR_MAX.
4922
4923 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4924
4925         warnings.m4: provide a means to specify the program to compile.
4926         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4927         (gl_WARN_ADD): here.
4928         Use gl_AS_VAR_APPEND.
4929         Support an argument to specify the program to compile.
4930         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4931         AC_SUBST the WARN_CFLAGS when they are used.
4932         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4933         leave this to gl_WARN_ADD.
4934
4935 2012-05-08  Eric Blake  <eblake@redhat.com>
4936
4937         doc: recommendations on gettext version
4938         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4939         choice between versions.
4940         * DEPENDENCIES (gettext): Cover both approaches.
4941
4942 2012-05-08  Jim Meyering  <meyering@redhat.com>
4943
4944         init.sh: explain why EXEEXT support uses aliases rather than functions
4945         * tests/init.sh: Add a comment.
4946
4947         init.sh: don't let bash aliases interfere with tests
4948         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4949         is bash.  This avoids problems for those who alias standard commands to
4950         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4951         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4952
4953 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4954
4955         stdint: be more consistent with glibc, SunOS libc
4956         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4957         (gl_int_fast16_t, gl_uint_fast16_t)
4958         (gl_int_fast32_t, gl_uint_fast32_t)
4959         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4960         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4961         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4962         Be consistent with glibc by default, and with SunOS 5.10 and later
4963         if __sun is defined.  This lessens the likelihood of clashes if
4964         code compiled for older hosts is combined with code compiled for
4965         newer ones.  Problem reported by Niels Möller in
4966         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4967
4968 2012-05-07  Eric Blake  <eblake@redhat.com>
4969
4970         isatty: relax license to LGPLv2+
4971         * modules/isatty (License): Relax license.
4972
4973 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4974
4975         stat-size: comment fix
4976         * lib/stat-size.h: Remove obsolete comment about indenting.
4977
4978 2012-05-06  Bruno Haible  <bruno@clisp.org>
4979
4980         Tests for module 'sh-quote'.
4981         * modules/sh-quote-tests: New file.
4982         * tests/test-sh-quote.c: New file.
4983
4984 2012-05-06  Bruno Haible  <bruno@clisp.org>
4985
4986         sh-quote: Improve shell_quote_argv's signature.
4987         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4988         * lib/sh-quote.c (shell_quote_argv): Likewise.
4989
4990 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4991
4992         stdint: document issues with int_fast8_t etc.
4993         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4994         stdint.h substitutes may define these types differently.  See
4995         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4996
4997 2012-05-05  Bruno Haible  <bruno@clisp.org>
4998
4999         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5000         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5001         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5002         or 'guessing no (mishandles large arguments)'.
5003
5004 2012-05-05  Bruno Haible  <bruno@clisp.org>
5005
5006         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5007         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5008         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5009         set gl_cv_func_link_follows_symlink to "guessing no".
5010
5011 2012-05-05  Bruno Haible  <bruno@clisp.org>
5012
5013         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5014         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5015         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5016         "guessing no".
5017         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5018
5019 2012-05-05  Bruno Haible  <bruno@clisp.org>
5020
5021         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5022         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5023         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5024         set gl_cv_struct_dirent_d_ino to "guessing yes".
5025
5026 2012-05-05  Bruno Haible  <bruno@clisp.org>
5027
5028         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5029         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5030         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5031         "guessing yes".
5032
5033 2012-05-05  Bruno Haible  <bruno@clisp.org>
5034
5035         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5036         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5037         compiling to a glibc system, set gl_cv_func_signbit and
5038         gl_cv_func_signbit_gcc to "guessing yes".
5039
5040 2012-05-05  Bruno Haible  <bruno@clisp.org>
5041
5042         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5043         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5044         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5045         to "guessing yes".
5046         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5047         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5048
5049 2012-05-05  Bruno Haible  <bruno@clisp.org>
5050
5051         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5052         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5053         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5054         gl_cv_func_realpath_works to "guessing yes".
5055
5056 2012-05-05  Bruno Haible  <bruno@clisp.org>
5057
5058         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5059         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5060         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5061
5062 2012-05-04  Bruno Haible  <bruno@clisp.org>
5063
5064         Tweak last commit.
5065         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5066         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5067
5068 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5069
5070         unistd_h: make it easier to avoid sys_types_h
5071         This is useful for Emacs, which has its own method of porting to
5072         Windows, and which therefore does not need the sys_types_h module.
5073         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5074         code moved here from gl_SYS_TYPES_H.
5075         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5076         using the code directly.
5077         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5078         gl_SYS_TYPES_H.
5079         * modules/sys_types (Files):
5080         * modules/unistd (Files): Add m4/off_t.m4.
5081
5082 2012-05-03  Bruno Haible  <bruno@clisp.org>
5083
5084         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5085         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5086         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5087         "guessing yes" or "guessing no".
5088         (gl_FUNC_LSTAT): Update.
5089         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5090         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5091         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5092
5093 2012-05-03  Bruno Haible  <bruno@clisp.org>
5094
5095         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5096         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5097         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5098         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5099         cross-compiling, choose the first alternative on glibc systems.
5100         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5101
5102 2012-05-03  Bruno Haible  <bruno@clisp.org>
5103
5104         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5105         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5106         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5107
5108 2012-05-03  Bruno Haible  <bruno@clisp.org>
5109
5110         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5111         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5112
5113 2012-05-03  Bruno Haible  <bruno@clisp.org>
5114
5115         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5116         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5117         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5118         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5119         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5120         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5121         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5122         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5123         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5124         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5125         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5126         gl_cv_func_chown_ctime_works to "guessing yes".
5127         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5128         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5129         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5130         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5131         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5132         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5133         compiling to glibc systems, set gl_cv_func_open_directory_works to
5134         "guessing yes".
5135         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5136         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5137         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5138         "guessing yes".
5139         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5140         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5141         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5142         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5143         "guessing yes".
5144         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5145         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5146         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5147         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5148         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5149         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5150         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5151         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5152         "guessing yes".
5153         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5154         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5155         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5156         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5157         "guessing yes".
5158         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5159         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5160         "guessing yes".
5161         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5162         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5163         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5164         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5165         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5166         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5167         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5168         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5169         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5170         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5171         "guessing yes".
5172         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5173         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5174         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5175         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5176         "guessing yes".
5177         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5178         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5179         "guessing yes".
5180         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5181         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5182         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5183         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5184         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5185         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5186         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5187         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5188         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5189         "guessing yes".
5190         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5191         compiling to glibc systems, set gl_cv_func_mknod_works to
5192         "guessing yes".
5193         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5194         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5195         "guessing yes".
5196         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5197         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5198         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5199         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5200         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5201         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5202         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5203         compiling to glibc systems, set gl_cv_func_svid_putenv to
5204         "guessing yes".
5205         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5206         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5207         "guessing yes".
5208         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5209         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5210         "guessing yes".
5211         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5212         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5213         to "guessing yes".
5214         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5215         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5216         to "guessing yes".
5217         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5218         compiling to glibc systems, set gl_cv_func_rmdir_works to
5219         "guessing yes".
5220         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5221         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5222         gl_cv_func_unlink_parent_fails to "guessing yes".
5223         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5224         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5225         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5226         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5227         gl_cv_func_rename_dest_works to "guessing yes".
5228         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5229         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5230         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5231         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5232         "guessing yes".
5233         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5234         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5235         "guessing yes".
5236         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5237         compiling to glibc systems, set gl_cv_func_setenv_works to
5238         "guessing yes".
5239         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5240         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5241         "guessing yes".
5242         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5243         compiling to glibc systems, set gl_cv_func_sleep_works to
5244         "guessing yes".
5245         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5246         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5247         "guessing yes".
5248         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5249         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5250         "guessing yes".
5251         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5252         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5253         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5254         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5255         "guessing yes".
5256         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5257         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5258         "guessing yes".
5259         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5260         compiling to glibc systems, set gl_cv_func_usleep_works to
5261         "guessing yes".
5262         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5263         compiling to glibc systems, set gl_cv_func_futimesat_works to
5264         "guessing yes".
5265
5266 2012-05-03  Bruno Haible  <bruno@clisp.org>
5267
5268         Say "guessing yes" or "guessing no" when cross-compiling.
5269         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5270         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5271         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5272         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5273         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5274         am_cv_func_working_getline to "guessing yes" or "guessing no".
5275         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5276         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5277         (gl_FUNC_MEMMEM): When cross-compiling, set
5278         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5279         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5280         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5282         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5283         "guessing no".
5284         (gl_FUNC_STRCASESTR): When cross-compiling, set
5285         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5286         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5287         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5288         (gl_FUNC_STRSTR): When cross-compiling, set
5289         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5290         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5291         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5292         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5293         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5294
5295 2012-05-01  Bruno Haible  <bruno@clisp.org>
5296
5297         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5298         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5299         * build-aux/reloc-ldflags: Likewise.
5300         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5301
5302 2012-05-01  Bruno Haible  <bruno@clisp.org>
5303
5304         gnulib-tool: Remove transitional code.
5305         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5306         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5307
5308 2012-05-01  Bruno Haible  <bruno@clisp.org>
5309
5310         getcwd: Fix misindentation.
5311         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5312
5313 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5314
5315         exclude: process exclude and include directives in order
5316         This restores the pre-2009 behavior, and is part of a fix of a
5317         grep bug reported by Quentin Arce in
5318         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5319         * lib/exclude.c (struct exclude): Remove 'tail' member.
5320         (new_exclude_segment): Prepend the new segment instead of appending.
5321         Return void, since that's now more convenient.
5322         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5323         (file_name_matches): Renamed from excluded_file_name_p.
5324         (file_pattern_matches, file_name_matches):
5325         Return true if the pattern matches, not if it excludes.
5326         All callers changed.
5327         (excluded_file_name): Process the list in reverse order;
5328         since the list is now reversed this restores the pre-2009 behavior.
5329         (add_exclude): Adjust to new reversed-order list.  Use local var
5330         rather than macro, for clarity.
5331         * tests/test-exclude7.sh: Adjust to corrected behavior.
5332
5333         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5334         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5335         it's not possible here.  Handle the case of \ at end of pattern
5336         without dumping core.
5337         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5338
5339         _Noreturn: future-proof non-GNU and non-MSVC compilers
5340         * build-aux/snippet/_Noreturn.h (_Noreturn):
5341         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5342         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5343         C11 or later.  This is more likely to work with random future C
5344         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5345         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5346
5347         exclude: handle wildcards with FNM_EXTMATCH
5348         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5349         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5350         comment that "has wildcards" really means "has or may have
5351         wildcards".  Simplify by avoiding the need to call strcspn.
5352
5353 2012-04-29  Bruno Haible  <bruno@clisp.org>
5354
5355         gnulib-tool: Fix list of authors.
5356         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5357
5358 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5359
5360         bootstrap: support Automake-NG in $buildreq
5361         * bootstrap (check_versions): Handle automake and aclocal from
5362         Automake-NG specially.  They can be specified as respectively
5363         the "automake-ng" and "aclocal-ng" requirements.
5364
5365 2012-04-25  Eric Blake  <eblake@redhat.com>
5366
5367         bootstrap: only force latest Makefile.in.in for gettext module
5368         * build-aux/bootstrap (with_gettext): Only install latest
5369         Makefile.in.in for projects requesting bleeding edge gettext.
5370
5371 2012-04-22  Bruno Haible  <bruno@clisp.org>
5372
5373         doc: Mention reason for replacement on glibc/Linux systems.
5374         * doc/posix-functions/dprintf.texi: Mention the problem with special
5375         'long double' values.
5376         * doc/posix-functions/fprintf.texi: Likewise.
5377         * doc/posix-functions/printf.texi: Likewise.
5378         * doc/posix-functions/snprintf.texi: Likewise.
5379         * doc/posix-functions/sprintf.texi: Likewise.
5380         * doc/posix-functions/vdprintf.texi: Likewise.
5381         * doc/posix-functions/vfprintf.texi: Likewise.
5382         * doc/posix-functions/vprintf.texi: Likewise.
5383         * doc/posix-functions/vsnprintf.texi: Likewise.
5384         * doc/posix-functions/vsprintf.texi: Likewise.
5385         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5386         platforms with F_DUPFD_CLOEXEC problems.
5387         * doc/posix-functions/glob.texi: Mention which platforms are affected
5388         by the problem with symbolic links.
5389         * doc/posix-functions/linkat.texi: Mention the problem with
5390         AT_SYMLINK_FOLLOW on Linux.
5391
5392 2012-04-22  Bruno Haible  <bruno@clisp.org>
5393
5394         pwrite: Don't replace on all platforms.
5395         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5396
5397 2012-04-22  Bruno Haible  <bruno@clisp.org>
5398
5399         rint* tests: Avoid gcc warnings.
5400         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5401         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5402         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5403
5404 2012-04-21  Bruno Haible  <bruno@clisp.org>
5405
5406         users.txt: Update.
5407         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5408         switched from CVS to git, bzr, or svn.
5409
5410 2012-04-21  Bruno Haible  <bruno@clisp.org>
5411
5412         Large File Support for native Windows platforms.
5413
5414         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5415         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5416
5417         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5418         type.
5419         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5420         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5421         * doc/posix-headers/sys_types.texi: Mention the effect of the
5422         'largefile' module.
5423
5424         * lib/fcntl.in.h: Add comments about off_t.
5425         * modules/fcntl-h (Depends-on): Add sys_types.
5426
5427         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5428         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5429         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5430         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5431         * modules/unistd (Depends-on): Add sys_types.
5432         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5433
5434         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5435         instead of lseek.
5436         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5437         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5438         * modules/lseek (Depends-on): Add sys_types.
5439
5440         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5441         msvc-nothrow.h.
5442         (SetFileSize): New function.
5443         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5444         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5445         if Large File Support is requested.
5446         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5447         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5448
5449         * lib/stdio.in.h: Add comments about off_t.
5450         * modules/stdio (Depends-on): Add sys_types.
5451
5452         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5453         instead of ftello.
5454         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5455         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5456         (gl_PREREQ_FTELLO): New macro.
5457         * modules/ftello (Depends-on): Add sys_types.
5458         (configure.ac): Incoke gl_PREREQ_FTELLO.
5459
5460         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5461         instead of fseeko.
5462         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5463         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5464         (gl_PREREQ_FSEEKO): New macro.
5465         * modules/fseeko (Depends-on): Add sys_types.
5466         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5467
5468         * lib/sys_stat.in.h: Add comments about off_t.
5469         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5470         64-bit integer for st_size in 'struct stat'.
5471         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5472         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5473         * modules/sys_stat (Depends-on): Add sys_types.
5474         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5475
5476         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5477         instead of stat or _stat.
5478
5479         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5480         'struct _stati64' instead of fstat and 'struct stat'.
5481         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5482         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5483
5484         Reported by Ray Satiro <raysatiro@yahoo.com>.
5485
5486 2012-04-19  Eric Blake  <eblake@redhat.com>
5487
5488         bootstrap: accommodate older libtool
5489         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5490         Reported by Daniel P. Berrange.
5491
5492 2012-04-19  Jim Meyering  <meyering@redhat.com>
5493
5494         announce-gen: avoid failure due to lack of Digest::SHA1
5495         Even with the preferred Digest::SHA available, this script
5496         would fail when the backup module, Digest::SHA1, was not installed.
5497         * build-aux/announce-gen: Quote the conditional use of "use".
5498         Reported by Reuben Thomas in:
5499         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5500
5501         bootstrap: don't let a user's CDPATH setting affect this script
5502         When CDPATH is set, cd will sometimes generate output.
5503         When "cd" is run in a subshell whose output matters, that
5504         surprising-to-some output can cause malfunction.
5505         Unsetting CDPATH turns off this shell "feature."
5506         * build-aux/bootstrap (CDPATH): Unset.
5507         Reported by Reuben Thomas in:
5508         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5509         and inspired by his patch here:
5510         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5511
5512 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5513         and Jim Meyering  <meyering@redhat.com>
5514
5515         maint.mk: catch "see @xref{}" and similar
5516         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5517         prohibit "See also @xref{", "Also see @pxref{", and similar.
5518
5519 2012-04-16  Jim Meyering  <meyering@redhat.com>
5520
5521         bootstrap: really use gnulib's po/Makefile.in.in
5522         * build-aux/bootstrap: Correct the source file name in previous change.
5523         Reported by Akim Demaille.
5524
5525         configmake: correct minor inconsistency in Makefile rule
5526         * modules/configmake (Makefile.am): All other rules like this one
5527         run the final "mv -f ..." in the same backslash-continued command
5528         as the one that does everything else.  This one put the mv -f ...
5529         command on a separate, non-backslash-continued line.
5530         Make it like the others.
5531
5532         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5533         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5534         the one from gettext.  Reported by Akim Demaille.
5535
5536 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5537
5538         Fix recursion of install-* into po directories.
5539         Bison's install-pdf bug reported by Hans Aberg at
5540         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5541         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5542         (install-info, install-pdf, install-ps): New targets.
5543
5544 2012-04-16  Jim Meyering  <meyering@redhat.com>
5545
5546         maint: avoid spurious "make sc_maint" failure
5547         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5548         exempt all *.class file names, for lib/javaversion.class.
5549
5550 2012-04-15  Bruno Haible  <bruno@clisp.org>
5551
5552         lseek: Make configure test independent of environment.
5553         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5554         Windows, we know that lseek() on pipes is broken; skip the runtime
5555         test.
5556
5557 2012-04-14  Bruno Haible  <bruno@clisp.org>
5558
5559         stat: Bypass buggy override in mingw64.
5560         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5561         * lib/stat.c (stat) [mingw64]: Define to _stat.
5562         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5563
5564 2012-04-14  Bruno Haible  <bruno@clisp.org>
5565
5566         pathmax: Fix compilation error on MSVC 9.
5567         * modules/pathmax (Depends-on): Add unistd.
5568
5569 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5570
5571         README: document pointer comparison assumption
5572         * README (Portability guidelines): Document assumption about
5573         pointer comparisons, in response to a recent bug-gnulib comment by
5574         Jeffrey Kegler.
5575
5576 2012-04-12  Bruno Haible  <bruno@clisp.org>
5577
5578         Tests for module 'getrusage'.
5579         * modules/getrusage-tests: New file.
5580         * tests/test-getrusage.c: New file.
5581
5582         New module 'getrusage'.
5583         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5584         warn-on-use.h.
5585         (getrusage): New declaration.
5586         * lib/getrusage.c: New file.
5587         * m4/getrusage.m4: New file.
5588         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5589         is declared.
5590         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5591         HAVE_GETRUSAGE.
5592         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5593         snippet/c++defs, snippet/warn-on-use.
5594         (Makefile.am): Update generation of sys/resource.h. Substitute
5595         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5596         * modules/getrusage: New file.
5597         * doc/posix-functions/getrusage.texi: Mention the new module.
5598
5599 2012-04-12  Bruno Haible  <bruno@clisp.org>
5600
5601         Tests for module 'sys_resource'.
5602         * modules/sys_resource-tests: New file.
5603         * tests/test-sys_resource.c: New file.
5604
5605         New module 'sys_resource'.
5606         * lib/sys_resource.in.h: New file.
5607         * m4/sys_resource_h.m4: New file.
5608         * modules/sys_resource: New file.
5609         * doc/posix-headers/sys_resource.texi: Mention the new module.
5610
5611 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5612
5613         ioctl: Fix compilation error on mingw.
5614         * lib/ioctl.c: Include <windows.h>.
5615         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5616
5617 2012-04-04  Jim Meyering  <meyering@redhat.com>
5618
5619         regex: correct #pragma guard expression
5620         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5621         not 4.3.  Correct its cpp guard expression.
5622
5623 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5624
5625         regex: remove unnecessary type punning
5626         Problem reported by Vladimir Serbinenko in
5627         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5628         * lib/regex.h (struct re_pattern_buffer): Change the type of
5629         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5630         Fix comment to match code.
5631         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5632         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5633         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5634         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5635         (set_regs):
5636         Omit no-longer-necessary casts.
5637
5638 2012-04-03  Bruno Haible  <bruno@clisp.org>
5639
5640         Tests for module 'ilogbl'.
5641         * modules/ilogbl-tests: New file.
5642         * tests/test-ilogbl.c: New file.
5643
5644         New module 'ilogbl'.
5645         * lib/math.in.h (ilogbl): New declaration.
5646         * lib/ilogbl.c: New file.
5647         * m4/ilogbl.m4: New file.
5648         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5650         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5651         Split sed invocation, to avoid the limit of 100 substitutions of
5652         HP-UX 'sed'.
5653         * modules/ilogbl: New file.
5654         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5655         * doc/posix-functions/ilogbl.texi: Mention the new module.
5656
5657 2012-04-03  Bruno Haible  <bruno@clisp.org>
5658
5659         Tests for module 'ilogbf'.
5660         * modules/ilogbf-tests: New file.
5661         * tests/test-ilogbf.c: New file.
5662
5663         New module 'ilogbf'.
5664         * lib/math.in.h (ilogbf): New declaration.
5665         * lib/ilogbf.c: New file.
5666         * m4/ilogbf.m4: New file.
5667         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5668         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5669         REPLACE_ILOGBF.
5670         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5671         REPLACE_ILOGBF.
5672         * modules/ilogbf: New file.
5673         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5674         * doc/posix-functions/ilogbf.texi: Mention the new module.
5675
5676 2012-04-03  Bruno Haible  <bruno@clisp.org>
5677
5678         Tests for module 'ilogb'.
5679         * modules/ilogb-tests: New file.
5680         * tests/test-ilogb.c: New file.
5681         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5682         tests/test-logb-ieee.h.
5683
5684         New module 'ilogb'.
5685         * lib/math.in.h (ilogb): New declaration.
5686         * lib/ilogb.c: New file.
5687         * m4/ilogb.m4: New file.
5688         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5690         REPLACE_ILOGB.
5691         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5692         REPLACE_ILOGB.
5693         * modules/ilogb: New file.
5694         * tests/test-math-c++.cc: Check the declaration of ilogb.
5695         * doc/posix-functions/ilogb.texi: Mention the new module.
5696
5697 2012-04-03  Bruno Haible  <bruno@clisp.org>
5698
5699         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5700         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5701         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5702         (main): Check their values.
5703         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5704         problem.
5705
5706 2012-04-03  Bruno Haible  <bruno@clisp.org>
5707
5708         Tests for module 'logbl-ieee'.
5709         * modules/logbl-ieee-tests: New file.
5710         * tests/test-logbl-ieee.c: New file.
5711
5712         New module 'logbl-ieee'.
5713         * modules/logbl-ieee: New file.
5714
5715         Tests for module 'logb-ieee'.
5716         * modules/logb-ieee-tests: New file.
5717         * tests/test-logb-ieee.c: New file.
5718
5719         New module 'logb-ieee'.
5720         * modules/logb-ieee: New file.
5721
5722         Tests for module 'logbf-ieee'.
5723         * modules/logbf-ieee-tests: New file.
5724         * tests/test-logbf-ieee.c: New file.
5725         * tests/test-logb-ieee.h: New file.
5726
5727         New module 'logbf-ieee'.
5728         * modules/logbf-ieee: New file.
5729
5730 2012-04-03  Bruno Haible  <bruno@clisp.org>
5731
5732         Tests for module 'logbl'.
5733         * modules/logbl-tests: New file.
5734         * tests/test-logbl.c: New file.
5735
5736         New module 'logbl'.
5737         * lib/math.in.h (logbl): New declaration.
5738         * lib/logbl.c: New file.
5739         * m4/logbl.m4: New file.
5740         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5742         REPLACE_LOGBL.
5743         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5744         REPLACE_LOGBL.
5745         * modules/logbl: New file.
5746         * tests/test-math-c++.cc: Check the declaration of logbl.
5747         * doc/posix-functions/logbl.texi: Mention the new module.
5748
5749 2012-04-02  Bruno Haible  <bruno@clisp.org>
5750
5751         Tests for module 'logbf'.
5752         * modules/logbf-tests: New file.
5753         * tests/test-logbf.c: New file.
5754
5755         New module 'logbf'.
5756         * lib/math.in.h (logbf): New declaration.
5757         * lib/logbf.c: New file.
5758         * m4/logbf.m4: New file.
5759         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5761         REPLACE_LOGBF.
5762         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5763         REPLACE_LOGBF.
5764         * modules/logbf: New file.
5765         * tests/test-math-c++.cc: Check the declaration of logbf.
5766         * doc/posix-functions/logbf.texi: Mention the new module.
5767
5768 2012-04-02  Bruno Haible  <bruno@clisp.org>
5769
5770         logb tests: More tests.
5771         * tests/test-logb.h: New file, based on tests/test-logb.c and
5772         tests/test-frexp.h.
5773         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5774         (main): Just invoke test_function.
5775         * modules/logb-tests (Files): Add tests/test-logb.h,
5776         tests/minus-zero.h, tests/randomd.c.
5777         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5778
5779         logb: Provide replacement and workarounds.
5780         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5781         is 1.
5782         * lib/logb.c: New file.
5783         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5784         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5786         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5787         * modules/logb (Files): Add lib/logb.c.
5788         (Depends-on): Add isfinite, frexp, isnand.
5789         (configure.ac): Compile the replacement code logb.c if needed.
5790         * tests/test-math-c++.cc: Check the declaration of logb.
5791         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5792         with subnormal numbers.
5793
5794 2012-04-02  Bruno Haible  <bruno@clisp.org>
5795
5796         log10* tests: Speed up.
5797         * tests/test-log10.h (test_function): Reduce amount of random numbers
5798         to test.
5799
5800 2012-04-01  Bruno Haible  <bruno@clisp.org>
5801
5802         logf-ieee: Fix test whether logf works.
5803         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5804
5805 2012-04-01  Bruno Haible  <bruno@clisp.org>
5806
5807         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5808         * lib/log10l.c: Include <float.h>
5809         (log10l): On IRIX, normalize the +Infinity value.
5810         * modules/log10l (Depends-on): Add 'float'.
5811         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5812         +Infinity.
5813
5814         log10f-ieee: Work around test failure on NetBSD 5.1.
5815         * m4/log10f-ieee.m4: New file.
5816         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5817         test whether log10f works with a negative argument. Replace it if not.
5818         * lib/log10f.c (log10f): For negative arguments, return NaN.
5819         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5820         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5821         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5822
5823         log10f-ieee: Work around test failure on Solaris 9.
5824         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5825         (configure.ac): Require gl_FUNC_LOG10F.
5826
5827         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5828         * m4/log10-ieee.m4: New file.
5829         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5830         whether log10 works with a negative argument. Replace it if not.
5831         * lib/log10.c (log10): For negative arguments, return NaN.
5832         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5833         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5834         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5835
5836         Tests for module 'log10l-ieee'.
5837         * modules/log10l-ieee-tests: New file.
5838         * tests/test-log10l-ieee.c: New file.
5839
5840         New module 'log10l-ieee'.
5841         * modules/log10l-ieee: New file.
5842
5843         Tests for module 'log10-ieee'.
5844         * modules/log10-ieee-tests: New file.
5845         * tests/test-log10-ieee.c: New file.
5846
5847         New module 'log10-ieee'.
5848         * modules/log10-ieee: New file.
5849
5850         Tests for module 'log10f-ieee'.
5851         * modules/log10f-ieee-tests: New file.
5852         * tests/test-log10f-ieee.c: New file.
5853         * tests/test-log10-ieee.h: New file.
5854
5855         New module 'log10f-ieee'.
5856         * modules/log10f-ieee: New file.
5857
5858 2012-04-01  Bruno Haible  <bruno@clisp.org>
5859
5860         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5861         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5862         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
5863         workaround.
5864         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
5865         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
5866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
5867         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
5868         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
5869         (Depends-on): Update conditions.
5870         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
5871         IRIX 6.5, OSF/1 5.1 problems.
5872
5873 2012-04-01  Bruno Haible  <bruno@clisp.org>
5874
5875         log10f: Work around OSF/1 5.1 bug.
5876         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
5877         * lib/log10f.c (log10f): If logf exists, use it and provide just the
5878         workaround.
5879         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
5880         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
5881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
5882         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
5883         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
5884         (Depends-on): Update conditions.
5885         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
5886
5887 2012-04-01  Bruno Haible  <bruno@clisp.org>
5888
5889         log10: Work around OSF/1 5.1 bug.
5890         * lib/math.in.h (log10): New declaration.
5891         * lib/log10.c: New file.
5892         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
5893         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
5894         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
5895         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
5896         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
5897         * modules/log10 (Files): Add lib/log10.c.
5898         (Depends-on): Add math.
5899         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
5900         * tests/test-math-c++.cc: Check the declaration of log10.
5901         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
5902
5903 2012-03-31  Bruno Haible  <bruno@clisp.org>
5904
5905         log10l tests: More tests.
5906         * modules/log10l-tests (Files): Add tests/test-log10l.h,
5907         tests/minus-zero.h, tests/randoml.c.
5908         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
5909         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
5910         (main): Invoke test_function.
5911
5912         log10f tests: More tests.
5913         * modules/log10f-tests (Files): Add tests/test-log10.h,
5914         tests/minus-zero.h, tests/randomf.c.
5915         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5916         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5917         (main): Invoke test_function.
5918
5919         log10 tests: More tests.
5920         * tests/test-log10.h: New file.
5921         * modules/log10-tests (Files): Add tests/test-log10.h,
5922         tests/minus-zero.h, tests/randomd.c.
5923         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5924         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5925         (main): Invoke test_function.
5926
5927 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5928
5929         fflush: Fix syntax error.
5930         * lib/fflush.c: Include unused-parameter.h, needed for
5931         _GL_UNUSED_PARAMETER.
5932         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5933
5934 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5935
5936         regex: pacify GCC when compiling GRUB
5937         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5938         a diagnostic.  Reported by Vladimir Serbinenko in
5939         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5940
5941 2012-03-29  Eric Blake  <eblake@redhat.com>
5942
5943         stdio: don't assume gets any more
5944         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5945         support.
5946         * modules/stdio (Makefile.am): Likewise.
5947         * lib/stdio-read.c (gets): Likewise.
5948         * tests/test-stdio-c++.cc: Likewise.
5949         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5950         * lib/stdio.in.h (gets): Make warning occur in more places.
5951         * doc/posix-functions/gets.texi (gets): Update documentation.
5952         Reported by Christer Solskogen.
5953
5954         maint.mk: fix syntax checks without exclusions
5955         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5956         Reported by Daniel P. Berrange.
5957
5958         strerror_r: avoid compiler warning
5959         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5960         level.
5961
5962         fflush: avoid compiler warning
5963         * lib/fflush.c (update_fpos_cache): Mark variables that are
5964         potentially unused.
5965
5966 2012-03-25  Bruno Haible  <bruno@clisp.org>
5967
5968         Tests for module 'localeconv'.
5969         * modules/localeconv-tests: New file.
5970         * tests/test-localeconv.c: New file.
5971
5972         New module 'localeconv'.
5973         * lib/locale.in.h (localeconv): New declaration.
5974         * lib/localeconv.c: New file.
5975         * m4/localeconv.m4: New file.
5976         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5977         REPLACE_LOCALECONV.
5978         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5979         REPLACE_LOCALECONV.
5980         * modules/localeconv: New file.
5981         * modules/nl_langinfo (Depends-on): Add localeconv.
5982         * modules/human (Depends-on): Likewise.
5983         * doc/posix-functions/localeconv.texi: Mention the new module.
5984
5985 2012-03-25  Bruno Haible  <bruno@clisp.org>
5986
5987         locale: Provide a complete 'struct lconv'.
5988         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5989         'struct lconv' does not contain int_p_cs_precedes.
5990         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5991         * doc/posix-headers/locale.texi: Update.
5992
5993         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5994         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5995         * doc/posix-headers/locale.texi: Update.
5996
5997         locale: Provide a working 'struct lconv'.
5998         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5999         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6000         'struct lconv' does not even contain decimal_point.
6001         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6002         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6003         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6004         * doc/posix-headers/locale.texi: Mention the problems with
6005         'struct lconv'.
6006         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6007
6008 2012-03-24  Bruno Haible  <bruno@clisp.org>
6009
6010         Enable common subexpression optimization in GCC.
6011         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6012         macros.
6013         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6014         GCC attribute 'const'.
6015         (uc_locale_language): Declare with GCC attribute 'pure'.
6016         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6017         with GCC attribute 'const'.
6018         * lib/unictype.in.h (uc_is_general_category_withtable,
6019         uc_combining_class, uc_combining_class_name,
6020         uc_combining_class_long_name, uc_bidi_class_name,
6021         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6022         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6023         uc_decimal_value, uc_digit_value, uc_numeric_value,
6024         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6025         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6026         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6027         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6028         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6029         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6030         Declare with GCC attribute 'const'.
6031         (uc_general_category_name, uc_general_category_long_name,
6032         uc_general_category_byname, uc_general_category,
6033         uc_is_general_category, uc_combining_class_byname,
6034         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6035         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6036         Declare with GCC attribute 'pure'.
6037         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6038         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6039         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6040         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6041         with GCC attribute 'pure'.
6042         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6043         'const'.
6044         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6045         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6046         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6047         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6048         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6049         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6050         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6051         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6052         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6053         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6054         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6055         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6056         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6057         GCC attribute 'pure'.
6058         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6059         'const'.
6060         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6061         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6062         u32_strwidth): Declare with GCC attribute 'pure'.
6063
6064         Enable common subexpression optimization in GCC.
6065         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6066         (alphasort): Declare with GCC attribute 'pure'.
6067         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6068         (atoll): Declare with GCC attribute 'pure'.
6069         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6070         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6071         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6072         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6073         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6074         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6075         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6076
6077 2012-03-24  Bruno Haible  <bruno@clisp.org>
6078
6079         gnulib-tool: Avoid unintended error output from 'cmp'.
6080         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6081         "cmp -s", not "cmp > /dev/null".
6082
6083 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6084
6085         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6086
6087         It's not just Automake versions < 1.9b that creates an empty
6088         pkgdatadir at installation time if pkgdata_DATA is specified
6089         to empty; modern automake versions do this as well, at least
6090         until automake 1.11.4 (not yet released at the moment of writing,
6091         but soon to appear).  That behaviour was generally considered a
6092         feature rather than a bug, at least until this discussion:
6093         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6094
6095         See also automake bugs #10997 and #11030.
6096
6097         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6098         reference to relevant automake bug numbers.
6099         (func_emit_tests_Makefile_am): Likewise.
6100
6101 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6102
6103         announce-gen: use Digest::SHA when possible
6104         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6105         back to Digest::SHA1 if necessary.
6106
6107 2012-03-20  Jim Meyering  <meyering@redhat.com>
6108
6109         tests: avoid gcc warnings about argv vs. const initializers
6110         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6111         warnings about discarding 'const' qualifier from pointer target type.
6112         * tests/test-posix_spawn2.c (main): Likewise.
6113
6114 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6115
6116         README-release: simplify slightly
6117         * top/README-release: Run "git checkout master" only once.
6118
6119 2012-03-15  Mark Wielaard  <mark@klomp.org>
6120
6121         git-merge-changelog: add specific example on how to use with hg.
6122         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6123
6124 2012-03-18  Mark Wielaard  <mark@klomp.org>
6125
6126         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6127
6128 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6129
6130         git-version-gen: don't let "prefix" envvar cause trouble
6131         * build-aux/git-version-gen (prefix): Initialize properly,
6132         so as not to use a value specified via the environment.
6133         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6134
6135 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6136
6137         regex: diagnose too-large repeat counts in EREs
6138         Previously, the code did not diagnose the too-large repeat count
6139         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6140         as if it were 'b\{1000000000}', which is unexpected.
6141         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6142         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6143         is a reasonable one for this problem.  Another option would be to
6144         create a new REG_OVERFLOW error for repeat counts that are too large.
6145         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6146         count is too large, so that the caller can distinguish the two cases.
6147         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6148         "Too large" return code, and that repeat counts are one example of this.
6149
6150 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6151
6152         doc: some glibc x32 integer width issues
6153         * doc/posix-headers/sys_types.texi (sys/types.h):
6154         * doc/posix-headers/time.texi (time.h):
6155         Mention that glibc x32 does not conform to POSIX in a couple of
6156         areas related to integer widths.
6157
6158 2012-03-15  Bruno Haible  <bruno@clisp.org>
6159
6160         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6161         * lib/fma.c (VOLATILE): New macro.
6162         (FUNC): Use it to work around a GCC compiler bug.
6163
6164 2012-03-13  Bruno Haible  <bruno@clisp.org>
6165
6166         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6167         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6168         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6169         REPLACE_HYPOTL to 1.
6170         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6171
6172 2012-03-13  Bruno Haible  <bruno@clisp.org>
6173
6174         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6175         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6176         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6177         REPLACE_REMAINDERL to 1.
6178         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6179         bug.
6180
6181 2012-03-13  Bruno Haible  <bruno@clisp.org>
6182
6183         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6184         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6185         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6186         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6187         too big rounding errors.
6188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6189         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6190         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6191         (Depends-on): Update conditions.
6192         * tests/test-sqrtl.c (my_ldexpl): New function.
6193         (main): Add test of a particular value.
6194         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6195
6196 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6197
6198         doc: Update timer_* platform portability notes.
6199         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6200         that always return ENOSYS.
6201         * doc/posix-functions/timer_delete.texi: Likewise.
6202         * doc/posix-functions/timer_gettime.texi: Likewise.
6203         * doc/posix-functions/timer_settime.texi: Likewise.
6204
6205 2012-03-13  Bruno Haible  <bruno@clisp.org>
6206
6207         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6208         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6209         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6210         REPLACE_CBRTL to 1.
6211         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6212
6213 2012-03-13  Bruno Haible  <bruno@clisp.org>
6214
6215         remainderl: Avoid compilation error on AIX >= 5.2.
6216         * lib/math.in.h (remainderl): Undefine macro from the system header.
6217
6218 2012-03-13  Bruno Haible  <bruno@clisp.org>
6219
6220         Avoid compilation errors with MSVC option -fp:strict.
6221         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6222         * lib/cbrtf.c: Likewise.
6223         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6224
6225 2012-03-12  Bruno Haible  <bruno@clisp.org>
6226
6227         uninorm: Don't crash in out-of-memory conditions.
6228         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6229         gracefully.
6230         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6231         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6232
6233 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6234
6235         quote: fix syntax-check
6236         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6237         also exports quote_quoting_options.
6238
6239 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6240
6241         Collapse list of copyright years to ranges.  See
6242         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6243         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6244         build-aux/csharpexec.sh.in, build-aux/gnupload,
6245         build-aux/install-reloc, build-aux/javacomp.sh.in,
6246         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6247         build-aux/move-if-change, build-aux/reloc-ldflags,
6248         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6249
6250 2012-03-11  Bruno Haible  <bruno@clisp.org>
6251
6252         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6253         * m4/log2f-ieee.m4: New file.
6254         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6255         whether log2f works with a minus zero argument. Replace it if not.
6256         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6257         (Depends-on): Add log2-ieee.
6258         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6259         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6260
6261         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6262         * m4/log2-ieee.m4: New file.
6263         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6264         whether log2 works with a minus zero argument. Replace it if not.
6265         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6266         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6267         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6268
6269         Tests for module 'log2l-ieee'.
6270         * modules/log2l-ieee-tests: New file.
6271         * tests/test-log2l-ieee.c: New file.
6272
6273         New module 'log2l-ieee'.
6274         * modules/log2l-ieee: New file.
6275
6276         Tests for module 'log2-ieee'.
6277         * modules/log2-ieee-tests: New file.
6278         * tests/test-log2-ieee.c: New file.
6279
6280         New module 'log2-ieee'.
6281         * modules/log2-ieee: New file.
6282
6283         Tests for module 'log2f-ieee'.
6284         * modules/log2f-ieee-tests: New file.
6285         * tests/test-log2f-ieee.c: New file.
6286         * tests/test-log2-ieee.h: New file.
6287
6288         New module 'log2f-ieee'.
6289         * modules/log2f-ieee: New file.
6290
6291 2012-03-11  Bruno Haible  <bruno@clisp.org>
6292
6293         Tests for module 'log2l'.
6294         * modules/log2l-tests: New file.
6295         * tests/test-log2l.c: New file.
6296
6297         New module 'log2l'.
6298         * lib/math.in.h (log2l): New declaration.
6299         * lib/log2l.c: New file.
6300         * m4/log2l.m4: New file.
6301         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6303         REPLACE_LOG2L.
6304         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6305         REPLACE_LOG2L.
6306         * modules/log2l: New file.
6307         * tests/test-math-c++.cc: Check the declaration of log2l.
6308         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6309         and OSF/1 problems.
6310
6311 2012-03-11  Bruno Haible  <bruno@clisp.org>
6312
6313         Tests for module 'log2f'.
6314         * modules/log2f-tests: New file.
6315         * tests/test-log2f.c: New file.
6316
6317         New module 'log2f'.
6318         * lib/math.in.h (log2f): New declaration.
6319         * lib/log2f.c: New file.
6320         * m4/log2f.m4: New file.
6321         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6323         REPLACE_LOG2F.
6324         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6325         REPLACE_LOG2F.
6326         * modules/log2f: New file.
6327         * tests/test-math-c++.cc: Check the declaration of log2f.
6328         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6329         and OSF/1 and Cygwin problems.
6330
6331 2012-03-11  Bruno Haible  <bruno@clisp.org>
6332
6333         Tests for module 'log2'.
6334         * modules/log2-tests: New file.
6335         * tests/test-log2.c: New file.
6336         * tests/test-log2.h: New file.
6337
6338         New module 'log2'.
6339         * lib/math.in.h (log2): New declaration.
6340         * lib/log2.c: New file.
6341         * m4/log2.m4: New file.
6342         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6344         REPLACE_LOG2.
6345         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6346         REPLACE_LOG2.
6347         * modules/log2: New file.
6348         * tests/test-math-c++.cc: Check the declaration of log2.
6349         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6350         and OSF/1 and Cygwin problems.
6351
6352 2012-03-11  Bruno Haible  <bruno@clisp.org>
6353
6354         exp2* tests: More tests.
6355         * tests/test-exp2.h (test_function): Test all integral arguments that
6356         don't need to overflow or denormalized numbers.
6357         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6358         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6359         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6360
6361 2012-03-10  Bruno Haible  <bruno@clisp.org>
6362
6363         log1pl-ieee: Work around test failure on AIX 7.1.
6364         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6365
6366         log1pl-ieee: Work around test failure on IRIX 6.5.
6367         * m4/log1pl-ieee.m4: New file.
6368         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6369         test whether log1pl works with a minus zero argument. Replace it if
6370         not.
6371         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6373         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6374         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6375         (Depends-on): Update conditions.
6376         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6377         m4/signbit.m4.
6378         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6379         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6380
6381         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6382         * m4/log1pf-ieee.m4: New file.
6383         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6384         test whether log1pf works with a minus zero argument. Replace it if
6385         not.
6386         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6387         m4/signbit.m4.
6388         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6389         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6390
6391         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6392         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6393         (configure.ac): Require gl_FUNC_LOG1PF.
6394
6395         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6396         * m4/log1p-ieee.m4: New file.
6397         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6398         whether log1p works with a minus zero argument. Replace it if not.
6399         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6401         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6402         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6403         (Depends-on): Update conditions.
6404         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6405         m4/signbit.m4.
6406         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6407         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6408
6409         Tests for module 'log1pl-ieee'.
6410         * modules/log1pl-ieee-tests: New file.
6411         * tests/test-log1pl-ieee.c: New file.
6412
6413         New module 'log1pl-ieee'.
6414         * modules/log1pl-ieee: New file.
6415
6416         Tests for module 'log1p-ieee'.
6417         * modules/log1p-ieee-tests: New file.
6418         * tests/test-log1p-ieee.c: New file.
6419
6420         New module 'log1p-ieee'.
6421         * modules/log1p-ieee: New file.
6422
6423         Tests for module 'log1pf-ieee'.
6424         * modules/log1pf-ieee-tests: New file.
6425         * tests/test-log1pf-ieee.c: New file.
6426         * tests/test-log1p-ieee.h: New file.
6427
6428         New module 'log1pf-ieee'.
6429         * modules/log1pf-ieee: New file.
6430
6431 2012-03-10  Bruno Haible  <bruno@clisp.org>
6432
6433         Tests for module 'log1pl'.
6434         * modules/log1pl-tests: New file.
6435         * tests/test-log1pl.c: New file.
6436
6437         New module 'log1pl'.
6438         * lib/math.in.h (log1pl): New declaration.
6439         * lib/log1pl.c: New file.
6440         * m4/log1pl.m4: New file.
6441         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6442         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6443         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6444         * modules/log1pl: New file.
6445         * tests/test-math-c++.cc: Check the declaration of log1pl.
6446         * doc/posix-functions/log1pl.texi: Mention the new module.
6447
6448 2012-03-10  Bruno Haible  <bruno@clisp.org>
6449
6450         Tests for module 'log1pf'.
6451         * modules/log1pf-tests: New file.
6452         * tests/test-log1pf.c: New file.
6453
6454         New module 'log1pf'.
6455         * lib/math.in.h (log1pf): New declaration.
6456         * lib/log1pf.c: New file.
6457         * m4/log1pf.m4: New file.
6458         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6459         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6460         REPLACE_LOG1PF.
6461         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6462         REPLACE_LOG1PF.
6463         * modules/log1pf: New file.
6464         * tests/test-math-c++.cc: Check the declaration of log1pf.
6465         * doc/posix-functions/log1pf.texi: Mention the new module.
6466
6467 2012-03-10  Bruno Haible  <bruno@clisp.org>
6468
6469         log1p tests: More tests.
6470         * tests/test-log1p.h: New file.
6471         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6472         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6473         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6474         (main): Invoke test_function.
6475
6476         log1p: Provide replacement for Minix and MSVC.
6477         * lib/math.in.h (log1p): New declaration.
6478         * lib/log1p.c: New file.
6479         * m4/log1p.m4: New file.
6480         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6482         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6483         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6484         (Depends-on): Add math, isnand, log, round.
6485         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6486         HAVE_LOG1P is 0.
6487         * tests/test-math-c++.cc: Check the declaration of log1p.
6488         * doc/posix-functions/log1p.texi: Mention the replacement.
6489
6490 2012-03-10  Bruno Haible  <bruno@clisp.org>
6491
6492         math tests: Small simplification.
6493         * tests/test-exp.h (test_function): Use the same err_bound for
6494         'double' on platforms with sizeof (long double) == sizeof (double)
6495         than on platforms with sizeof (long double) > sizeof (double).
6496         * tests/test-exp2.h (test_function): Likewise.
6497         * tests/test-expm1.h (test_function): Likewise.
6498         * tests/test-log.h (test_function): Likewise.
6499
6500 2012-03-10  Bruno Haible  <bruno@clisp.org>
6501
6502         Fix some comments.
6503         * lib/expl.c: Fix an ambiguous comment.
6504         * lib/expm1.c: Likewise.
6505         * lib/expm1l.c: Likewise.
6506         * lib/exp2.c: Likewise.
6507         * lib/exp2l.c: Likewise.
6508
6509 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6510
6511         regex: allow inclusion of <regex.h> before <limits.h>
6512         Without this patch, portable programs had to include <limits.h> before
6513         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6514         I ran into this problem with a test version of GNU grep on Solaris 8.
6515         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6516         This is done conditionally so that this change can be merged
6517         back to glibc.
6518         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6519         using the included regex.
6520
6521         fts: depend on fdopendir
6522         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6523         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6524         problem was introduced when fdopendir was split out.
6525
6526 2012-03-10  Bruno Haible  <bruno@clisp.org>
6527
6528         Remove unused variables.
6529         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6530         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6531
6532 2012-03-10  Bruno Haible  <bruno@clisp.org>
6533
6534         isnanf-nolibm: Fix last commit.
6535         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6536
6537         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6538         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6539
6540 2012-03-10  Bruno Haible  <bruno@clisp.org>
6541
6542         logf-ieee: Work around test failure on NetBSD 5.1.
6543         * m4/logf-ieee.m4: New file.
6544         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6545         whether logf works with a negative argument. Replace it if not.
6546         * lib/logf.c (logf): For negative arguments, return NaN.
6547         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6548         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6549         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6550
6551         logf-ieee: Work around test failure on Solaris 9.
6552         * modules/logf-ieee (Depends-on): Add log-ieee.
6553         (configure.ac): Require gl_FUNC_LOGF.
6554
6555         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6556         * m4/log-ieee.m4: New file.
6557         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6558         log works with a negative argument. Replace it if not.
6559         * lib/log.c (log): For negative arguments, return NaN.
6560         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6561         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6562         * doc/posix-functions/log.texi: Mention the log-ieee module.
6563
6564         Tests for module 'logl-ieee'.
6565         * modules/logl-ieee-tests: New file.
6566         * tests/test-logl-ieee.c: New file.
6567
6568         New module 'logl-ieee'.
6569         * modules/logl-ieee: New file.
6570
6571         Tests for module 'log-ieee'.
6572         * modules/log-ieee-tests: New file.
6573         * tests/test-log-ieee.c: New file.
6574
6575         New module 'log-ieee'.
6576         * modules/log-ieee: New file.
6577
6578         Tests for module 'logf-ieee'.
6579         * modules/logf-ieee-tests: New file.
6580         * tests/test-logf-ieee.c: New file.
6581         * tests/test-log-ieee.h: New file.
6582
6583         New module 'logf-ieee'.
6584         * modules/logf-ieee: New file.
6585
6586 2012-03-10  Bruno Haible  <bruno@clisp.org>
6587
6588         log: Fix bug introduced on 2012-03-09.
6589         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6590
6591 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6592
6593         timer-time: link explicitly with pthreads on glibc
6594         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6595         to support static linking, when newer glibc is
6596         detected, as that contains pthread emulation of
6597         POSIX timer functions where required.
6598         * modules/timer-time: Depend on threadlib to
6599         pull in the appropriate library to link.
6600
6601 2012-03-10  Bruno Haible  <bruno@clisp.org>
6602
6603         log* tests: More tests.
6604         * tests/test-log.h: New file.
6605         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6606         (main): Invoke test_function.
6607         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6608         (main): Invoke test_function.
6609         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6610         (main): Invoke test_function.
6611         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6612         tests/randomd.c.
6613         (Makefile.am): Add randomd.c to test_log_SOURCES.
6614         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6615         tests/randomf.c.
6616         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6617         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6618         tests/randoml.c.
6619         (Depends-on): Add 'float'.
6620         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6621
6622 2012-03-09  Bruno Haible  <bruno@clisp.org>
6623
6624         logl: Work around OSF/1 5.1 bug.
6625         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6626         * lib/logl.c (logl): If logl exists, use it and provide just the
6627         workaround.
6628         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6629         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6631         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6632         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6633         (Depends-on): Update conditions.
6634         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6635
6636 2012-03-09  Bruno Haible  <bruno@clisp.org>
6637
6638         logf: Work around OSF/1 5.1 bug.
6639         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6640         * lib/logf.c (logf): If logf exists, use it and provide just the
6641         workaround.
6642         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6643         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6645         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6646         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6647         (Depends-on): Update conditions.
6648         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6649
6650 2012-03-09  Bruno Haible  <bruno@clisp.org>
6651
6652         log: Work around OSF/1 5.1 bug.
6653         * lib/math.in.h (log): New declaration.
6654         * lib/log.c: New file.
6655         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6656         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6657         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6659         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6660         * modules/log (Files): Add lib/log.c.
6661         (Depends-on): Add math.
6662         (configure.ac): If REPLACE_LOG is 1, compile an override.
6663         * tests/test-math-c++.cc: Check the declaration of log.
6664         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6665
6666 2012-03-09  Jim Meyering  <meyering@redhat.com>
6667
6668         readtokens.c: adjust wording in a comment
6669         * lib/readtokens.c: Insert omitted "that" in a comment.
6670
6671 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6672
6673         modechange: add notations +40, 00440, etc.
6674         * lib/modechange.c (mode_compile): Support new notations
6675         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6676
6677 2012-03-08  Bruno Haible  <bruno@clisp.org>
6678
6679         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6680         * m4/exp2l-ieee.m4: New file.
6681         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6682         test whether exp2l works with a NaN argument and with a negative
6683         infinity argument. Replace it if not.
6684         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6686         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6687         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6688         (Depends-on): Update conditions.
6689         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6690         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6691         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6692
6693         Tests for module 'exp2l-ieee'.
6694         * modules/exp2l-ieee-tests: New file.
6695         * tests/test-exp2l-ieee.c: New file.
6696
6697         New module 'exp2l-ieee'.
6698         * modules/exp2l-ieee: New file.
6699
6700         Tests for module 'exp2-ieee'.
6701         * modules/exp2-ieee-tests: New file.
6702         * tests/test-exp2-ieee.c: New file.
6703
6704         New module 'exp2-ieee'.
6705         * modules/exp2-ieee: New file.
6706
6707         Tests for module 'exp2f-ieee'.
6708         * modules/exp2f-ieee-tests: New file.
6709         * tests/test-exp2f-ieee.c: New file.
6710         * tests/test-exp2-ieee.h: New file.
6711
6712         New module 'exp2f-ieee'.
6713         * modules/exp2f-ieee: New file.
6714
6715 2012-03-08  Bruno Haible  <bruno@clisp.org>
6716
6717         Tests for module 'exp2l'.
6718         * modules/exp2l-tests: New file.
6719         * tests/test-exp2l.c: New file.
6720
6721         New module 'exp2l'.
6722         * lib/math.in.h (exp2l): New declaration.
6723         * lib/exp2l.c: New file.
6724         * lib/expl-table.c: New file, extracted from lib/expl.c.
6725         * lib/expl.c (gl_expl_table): New declaration.
6726         (expl): Remove expl_table. Update reference.
6727         * m4/exp2l.m4: New file.
6728         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6730         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6731         * modules/exp2l: New file.
6732         * modules/expl (Files): Add lib/expl-table.c.
6733         (configure.ac): Compile also expl-table.c.
6734         * tests/test-math-c++.cc: Check the declaration of exp2l.
6735         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6736         problem.
6737
6738 2012-03-08  Bruno Haible  <bruno@clisp.org>
6739
6740         Tests for module 'exp2f'.
6741         * modules/exp2f-tests: New file.
6742         * tests/test-exp2f.c: New file.
6743
6744         New module 'exp2f'.
6745         * lib/math.in.h (exp2f): New declaration.
6746         * lib/exp2f.c: New file.
6747         * m4/exp2f.m4: New file.
6748         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6749         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6750         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6751         * modules/exp2f: New file.
6752         * tests/test-math-c++.cc: Check the declaration of exp2f.
6753         * doc/posix-functions/exp2f.texi: Mention the new module and the
6754         IRIX problem.
6755
6756 2012-03-08  Bruno Haible  <bruno@clisp.org>
6757
6758         Tests for module 'exp2'.
6759         * modules/exp2-tests: New file.
6760         * tests/test-exp2.c: New file.
6761         * tests/test-exp2.h: New file.
6762
6763         New module 'exp2'.
6764         * lib/math.in.h (exp2): New declaration.
6765         * lib/exp2.c: New file.
6766         * m4/exp2.m4: New file.
6767         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6769         REPLACE_EXP2.
6770         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6771         REPLACE_EXP2.
6772         * modules/exp2: New file.
6773         * tests/test-math-c++.cc: Check the declaration of exp2.
6774         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6775         and OpenBSD problems.
6776
6777 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6778
6779         savedir: fix comment typo
6780         * lib/savedir.c (savedirstream): Fix typo in comment.
6781
6782 2012-03-08  Bruno Haible  <bruno@clisp.org>
6783
6784         test-readtokens.c: use const; remove unwarranted cast
6785         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6786
6787 2012-03-08  Bruno Haible  <bruno@clisp.org>
6788
6789         fmal: Avoid compilation error on AIX.
6790         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6791         AIX 5.2..7.1.
6792
6793 2012-03-08  Bruno Haible  <bruno@clisp.org>
6794
6795         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6796         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6797         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6798         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6799         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6800         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6801         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6802
6803 2012-03-08  Bruno Haible  <bruno@clisp.org>
6804
6805         remainderf: Override buggy system function on IRIX 6.5.
6806         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6807         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6808         when it exists.
6809         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6810
6811 2012-03-08  Jim Meyering  <meyering@redhat.com>
6812
6813         test-readtokens.c: avoid const-related compilation warnings
6814         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6815
6816 2012-03-07  Jim Meyering  <meyering@redhat.com>
6817             Bruno Haible  <bruno@clisp.org>
6818
6819         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6820         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6821         tests/randomd.c.
6822         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6823         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6824         tests/randoml.c.
6825         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6826
6827 2012-03-07  Bruno Haible  <bruno@clisp.org>
6828
6829         expm1l: Avoid compilation error on AIX.
6830         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6831         AIX 5.2..7.1.
6832
6833 2012-03-07  Bruno Haible  <bruno@clisp.org>
6834
6835         expm1l: Don't override undeclared system function on IRIX 6.5.
6836         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6837         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6838         it exists. Set HAVE_DECL_EXPM1L.
6839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6840         HAVE_EXPM1L.
6841         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6842         HAVE_EXPM1L.
6843         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6844
6845 2012-03-07  Bruno Haible  <bruno@clisp.org>
6846
6847         remainderl: Don't override undeclared system function on IRIX 6.5.
6848         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6849         HAVE_REMAINDERL.
6850         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6851         declared when it exists. Set HAVE_DECL_REMAINDERL.
6852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6853         not HAVE_REMAINDERL.
6854         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6855         HAVE_REMAINDERL.
6856         * doc/posix-functions/remainderl.texi: Mention missing declaration
6857         problem.
6858
6859 2012-03-07  Bruno Haible  <bruno@clisp.org>
6860
6861         rintf: Don't override undeclared system function on IRIX 6.5.
6862         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
6863         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
6864         exists. Set HAVE_DECL_RINTF.
6865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
6866         HAVE_RINTF.
6867         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
6868         HAVE_RINTF.
6869         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
6870
6871 2012-03-07  Bruno Haible  <bruno@clisp.org>
6872
6873         roundl: Avoid compilation error on AIX.
6874         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
6875         AIX 5.2..7.1.
6876
6877 2012-03-07  Bruno Haible  <bruno@clisp.org>
6878
6879         roundl: Don't override undeclared system function on IRIX 6.5.
6880         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
6881         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
6882         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6883         * modules/roundl (configure.ac): For replacement code, test
6884         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6885         (Depends-on): Update conditions.
6886         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
6887
6888 2012-03-07  Bruno Haible  <bruno@clisp.org>
6889
6890         roundf: Don't override undeclared system function on IRIX 6.5.
6891         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
6892         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
6893         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6894         * modules/roundf (configure.ac): For replacement code, test
6895         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6896         (Depends-on): Update conditions.
6897         * modules/roundf-ieee (Depends-on): Update conditions.
6898         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
6899
6900 2012-03-07  Bruno Haible  <bruno@clisp.org>
6901
6902         round: Don't override undeclared system function on IRIX 6.5.
6903         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
6904         argument.
6905         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
6906         also when it is not declared. Set HAVE_ROUND. For replacement code,
6907         test HAVE_ROUND, not HAVE_DECL_ROUND.
6908         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
6909         not HAVE_DECL_ROUND.
6910         (Depends-on): Update conditions.
6911         * modules/round-ieee (Depends-on): Update conditions.
6912         * doc/posix-functions/round.texi: Mention the IRIX problem.
6913
6914 2012-03-07  Bruno Haible  <bruno@clisp.org>
6915
6916         copysignf: Don't override undeclared system function on IRIX 6.5.
6917         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6918         HAVE_COPYSIGNF.
6919         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6920         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6922         not HAVE_COPYSIGNF.
6923         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6924         HAVE_COPYSIGNF.
6925         * doc/posix-functions/copysignf.texi: Mention missing declaration
6926         problem.
6927
6928 2012-03-07  Jim Meyering  <meyering@redhat.com>
6929
6930         readtokens: add tests
6931         * modules/readtokens-tests: New file.
6932         * tests/test-readtokens.c: New file.
6933
6934 2012-03-07  Jim Meyering  <meyering@redhat.com>
6935
6936         quotearg: the module must now include quote.h
6937         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6938         So must the module.
6939         * modules/quotearg (Files): Add quote.h.
6940
6941 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6942
6943         readtokens: avoid core dumps with unusual calling patterns
6944         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6945         * lib/readtokens.c: Include limits.h.
6946         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6947         (readtoken): Don't cache the delimiters; the cache code was buggy
6948         if !delim && saved_delim, or if the new n_delim differs from the old.
6949         Also, it wasn't thread-safe.
6950
6951 2012-03-07  Bruno Haible  <bruno@clisp.org>
6952
6953         quote: Adhere to common module description layout.
6954         * modules/quote (Makefile.am): Add back empty section.
6955
6956 2012-03-06  Akim Demaille  <demaille@gostai.com>
6957
6958         quote: fuse into quotearg
6959         This patch is made for the benefit of Bison.
6960         quote does not leave the choice of the quoting style to the user.
6961         quoting_style provides poor customizability, yet quoting_options,
6962         which is very rich, is hidden inside quotearg.c.  So in order to
6963         allow quote customization, move its implementation to quotearg.c.
6964         * lib/quote.c: Remove.
6965         * modules/quote: Adjust.
6966         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6967         warning: provide all the members of literal structs.
6968         (quote_quoting_options): New.
6969         (quote, quote_n): Import implementation from quote.c.
6970         * lib/quote.h: Import the comments from quote.c.
6971         (quote_quoting_options): New.
6972
6973 2012-03-06  Bruno Haible  <bruno@clisp.org>
6974
6975         Tests for module 'expm1l-ieee'.
6976         * modules/expm1l-ieee-tests: New file.
6977         * tests/test-expm1l-ieee.c: New file.
6978
6979         New module 'expm1l-ieee'.
6980         * modules/expm1l-ieee: New file.
6981
6982         Tests for module 'expm1f-ieee'.
6983         * modules/expm1f-ieee-tests: New file.
6984         * tests/test-expm1f-ieee.c: New file.
6985
6986         New module 'expm1f-ieee'.
6987         * modules/expm1f-ieee: New file.
6988
6989         Tests for module 'expm1-ieee'.
6990         * modules/expm1-ieee-tests: New file.
6991         * tests/test-expm1-ieee.c: New file.
6992         * tests/test-expm1-ieee.h: New file.
6993
6994         New module 'expm1-ieee'.
6995         * modules/expm1-ieee: New file.
6996         * m4/expm1-ieee.m4: New file.
6997         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6998         whether expm1 works with a minus zero argument. Replace it if not.
6999         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7001         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7002         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7003         (Depends-on): Update conditions.
7004         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7005         AIX problem.
7006
7007 2012-03-06  Bruno Haible  <bruno@clisp.org>
7008
7009         Work around expm1f bug on IRIX 6.5.
7010         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7011         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7012         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7013         not work.
7014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7015         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7016         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7017         (Depends-on): Update conditions.
7018         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7019
7020 2012-03-06  Bruno Haible  <bruno@clisp.org>
7021
7022         Tests for module 'expm1l'.
7023         * modules/expm1l-tests: New file.
7024         * tests/test-expm1l.c: New file.
7025
7026         New module 'expm1l'.
7027         * lib/math.in.h (expm1l): New declaration.
7028         * lib/expm1l.c: New file.
7029         * m4/expm1l.m4: New file.
7030         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7032         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7033         * modules/expm1l: New file.
7034         * tests/test-math-c++.cc: Check the declaration of expm1l.
7035         * doc/posix-functions/expm1l.texi: Mention the new module.
7036
7037 2012-03-06  Bruno Haible  <bruno@clisp.org>
7038
7039         Tests for module 'expm1f'.
7040         * modules/expm1f-tests: New file.
7041         * tests/test-expm1f.c: New file.
7042
7043         New module 'expm1f'.
7044         * lib/math.in.h (expm1f): New declaration.
7045         * lib/expm1f.c: New file.
7046         * m4/expm1f.m4: New file.
7047         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7049         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7050         * modules/expm1f: New file.
7051         * tests/test-math-c++.cc: Check the declaration of expm1f.
7052         * doc/posix-functions/expm1f.texi: Mention the new module.
7053
7054 2012-03-06  Bruno Haible  <bruno@clisp.org>
7055
7056         Tests for module 'expm1'.
7057         * modules/expm1-tests: New file.
7058         * tests/test-expm1.c: New file.
7059         * tests/test-expm1.h: New file.
7060
7061         New module 'expm1'.
7062         * lib/math.in.h (expm1): New declaration.
7063         * lib/expm1.c: New file.
7064         * m4/expm1.m4: New file.
7065         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7067         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7068         * modules/expm1: New file.
7069         * tests/test-math-c++.cc: Check the declaration of expm1.
7070         * doc/posix-functions/expm1.texi: Mention the new module.
7071
7072 2012-03-06  Bruno Haible  <bruno@clisp.org>
7073
7074         math: Ensure declarations of math functions.
7075         * modules/acosf (Depends-on): Add 'extensions'.
7076         * modules/asinf (Depends-on): Likewise.
7077         * modules/atan2f (Depends-on): Likewise.
7078         * modules/atanf (Depends-on): Likewise.
7079         * modules/cbrt (Depends-on): Likewise.
7080         * modules/cbrtf (Depends-on): Likewise.
7081         * modules/cbrtl (Depends-on): Likewise.
7082         * modules/copysignf (Depends-on): Likewise.
7083         * modules/copysignl (Depends-on): Likewise.
7084         * modules/cosf (Depends-on): Likewise.
7085         * modules/coshf (Depends-on): Likewise.
7086         * modules/expf (Depends-on): Likewise.
7087         * modules/fabsf (Depends-on): Likewise.
7088         * modules/fabsl (Depends-on): Likewise.
7089         * modules/fmaf (Depends-on): Likewise.
7090         * modules/fmal (Depends-on): Likewise.
7091         * modules/fmodf (Depends-on): Likewise.
7092         * modules/fmodl (Depends-on): Likewise.
7093         * modules/frexpf (Depends-on): Likewise.
7094         * modules/frexpl (Depends-on): Likewise.
7095         * modules/hypot (Depends-on): Likewise.
7096         * modules/hypotf (Depends-on): Likewise.
7097         * modules/hypotl (Depends-on): Likewise.
7098         * modules/ldexpf (Depends-on): Likewise.
7099         * modules/ldexpl (Depends-on): Likewise.
7100         * modules/log10f (Depends-on): Likewise.
7101         * modules/log10l (Depends-on): Likewise.
7102         * modules/log1p (Depends-on): Likewise.
7103         * modules/logb (Depends-on): Likewise.
7104         * modules/logf (Depends-on): Likewise.
7105         * modules/modff (Depends-on): Likewise.
7106         * modules/modfl (Depends-on): Likewise.
7107         * modules/powf (Depends-on): Likewise.
7108         * modules/remainderf (Depends-on): Likewise.
7109         * modules/remainderl (Depends-on): Likewise.
7110         * modules/rintf (Depends-on): Likewise.
7111         * modules/rintl (Depends-on): Likewise.
7112         * modules/sinf (Depends-on): Likewise.
7113         * modules/sinhf (Depends-on): Likewise.
7114         * modules/sqrtf (Depends-on): Likewise.
7115         * modules/tanf (Depends-on): Likewise.
7116         * modules/tanhf (Depends-on): Likewise.
7117         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7118         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7119         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7120         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7121         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7122         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7123         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7124         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7125         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7126         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7127         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7128         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7129         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7130         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7131         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7132         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7133         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7134         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7135         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7136         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7137         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7138         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7139         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7140         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7141         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7142         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7143         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7144         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7145         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7146         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7147         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7148         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7149         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7150         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7151         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7152         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7153         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7154         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7155         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7156         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7157         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7158
7159 2012-03-06  Bruno Haible  <bruno@clisp.org>
7160
7161         math: Update module names in warnings.
7162         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7163         tanl): Use specific module name in warn-on-use warning.
7164
7165 2012-03-06  Bruno Haible  <bruno@clisp.org>
7166
7167         expl: Simplify computation.
7168         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7169
7170 2012-03-05  Bruno Haible  <bruno@clisp.org>
7171
7172         exp* tests: More tests.
7173         * tests/test-exp.h: New file.
7174         * tests/test-exp.c: Include <float.h> and test-exp.h.
7175         (main): Invoke test_function.
7176         * tests/test-expf.c: Include <float.h> and test-exp.h.
7177         (main): Invoke test_function.
7178         * tests/test-expl.c: Include <float.h> and test-exp.h.
7179         (main): Invoke test_function.
7180         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7181         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7182         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7183         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7184         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7185         (Depends-on): Add 'float'.
7186         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7187
7188         expl: Fix precision of computed result.
7189         * lib/expl.c: Completely rewritten.
7190         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7191         (Maintainer): Add me.
7192         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7193
7194 2012-03-05  Bruno Haible  <bruno@clisp.org>
7195
7196         cbrt* tests: More tests.
7197         * tests/test-cbrt.h: New file.
7198         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7199         (main): Invoke test_function.
7200         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7201         (main): Invoke test_function.
7202         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7203         (main): Invoke test_function.
7204         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7205         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7206         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7207         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7208         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7209         (Depends-on): Add 'float'.
7210         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7211
7212 2012-03-05  Bruno Haible  <bruno@clisp.org>
7213
7214         hypot* tests: More tests.
7215         * tests/test-hypot.h: New file, partially extracted from
7216         tests/test-hypotl.c.
7217         * tests/test-hypot.c: Include test-hypot.h.
7218         (main): Invoke test_function.
7219         * tests/test-hypotf.c: Include test-hypot.h.
7220         (main): Invoke test_function.
7221         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7222         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7223         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7224         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7225         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7226         tests/randomf.c.
7227         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7228         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7229         tests/randoml.c.
7230         (Depends-on): Add 'fpucw', 'float'.
7231         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7232
7233 2012-03-05  Bruno Haible  <bruno@clisp.org>
7234
7235         fpucw: Doc about FreeBSD.
7236         * lib/fpucw.h: Mention FreeBSD in comments.
7237
7238 2012-03-04  Bruno Haible  <bruno@clisp.org>
7239
7240         sqrt* tests: More tests.
7241         * tests/test-sqrt.h: New file.
7242         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7243         (main): Invoke test_function.
7244         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7245         (main): Invoke test_function.
7246         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7247         (main): Invoke test_function.
7248         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7249         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7250         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7251         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7252         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7253         (Depends-on): Add 'float'.
7254         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7255
7256 2012-03-04  Bruno Haible  <bruno@clisp.org>
7257
7258         remainder* tests: More tests.
7259         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7260         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7261         (main): Invoke test_function.
7262         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7263         (main): Invoke test_function.
7264         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7265         (main): Invoke test_function.
7266         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7267         tests/randomd.c.
7268         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7269         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7270         tests/randomf.c.
7271         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7272         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7273         tests/randoml.c.
7274         (Depends-on): Add 'float'.
7275         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7276
7277 2012-03-04  Bruno Haible  <bruno@clisp.org>
7278
7279         remainder, remainderf, remainderl: Fix computation for large quotients.
7280         * lib/remainder.c: Completely rewritten.
7281         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7282         USE_FLOAT.
7283         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7284         USE_LONG_DOUBLE.
7285         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7286         isnand, isinf. Remove round, fma.
7287         * modules/remainderf (Files): Add lib/remainder.c.
7288         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7289         Remove roundf, fmaf.
7290         * modules/remainderl (Files): Add lib/remainder.c.
7291         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7292         isinf. Remove roundl, fmal.
7293         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7294         REMAINDER_LIBM.
7295         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7296         REMAINDERF_LIBM.
7297         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7298         REMAINDERL_LIBM.
7299
7300 2012-03-04  Bruno Haible  <bruno@clisp.org>
7301
7302         fmod* tests: More tests.
7303         * tests/test-fmod.h (my_ldexp): New function.
7304         (test_function): Reduce amount of random numbers to test. Add tests
7305         of very large quotients x / y.
7306         * tests/test-fmod.c (MAX_EXP): New macro.
7307         * tests/test-fmodf.c (MAX_EXP): Likewise.
7308         * tests/test-fmodl.c (MAX_EXP): Likewise.
7309
7310 2012-03-04  Bruno Haible  <bruno@clisp.org>
7311
7312         fmod, fmodl: Fix computation for large quotients x / y.
7313         * lib/fmod.c: Completely rewritten.
7314         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7315         USE_LONG_DOUBLE.
7316         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7317         isnand. Remove fma.
7318         * modules/fmodl (Files): Add lib/fmod.c.
7319         (Depends-on): Add float, isfinite, signbit, fabsl,
7320         frexpl, ldexpl, isnanl. Remove fma.
7321         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7322         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7323
7324 2012-03-03  Bruno Haible  <bruno@clisp.org>
7325
7326         fmod* tests: More tests.
7327         * tests/test-fmod.h: New file.
7328         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7329         (main): Invoke test_function.
7330         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7331         (main): Invoke test_function.
7332         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7333         (main): Invoke test_function.
7334         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7335         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7336         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7337         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7338         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7339         (Depends-on): Add 'float'.
7340         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7341
7342 2012-03-03  Bruno Haible  <bruno@clisp.org>
7343
7344         rint* tests: More tests.
7345         * tests/test-rint.h: New file, partially extracted from
7346         tests/test-rintl.c.
7347         * tests/test-rint.c: Include test-rint.h.
7348         (main): Invoke test_function.
7349         * tests/test-rintf.c: Include test-rint.h.
7350         (main): Invoke test_function.
7351         * tests/test-rintl.c: Include test-rint.h.
7352         (main): Invoke test_function.
7353         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7354         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7355         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7356         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7357         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7358         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7359
7360 2012-03-03  Bruno Haible  <bruno@clisp.org>
7361
7362         modf* tests: More tests.
7363         * tests/test-modf.h: New file.
7364         * tests/test-modf.c: Include <float.h> and test-modf.h.
7365         (main): Invoke test_function.
7366         * tests/test-modff.c: Include <float.h> and test-modf.h.
7367         (main): Invoke test_function.
7368         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7369         (main): Invoke test_function.
7370         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7371         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7372         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7373         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7374         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7375         (Depends-on): Add 'float'.
7376         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7377
7378 2012-03-03  Bruno Haible  <bruno@clisp.org>
7379
7380         fabs* tests: More tests.
7381         * tests/test-fabs.h: New file, partially extracted from
7382         tests/test-fabsl.c.
7383         * tests/test-fabs.c (RANDOM): New macro.
7384         * tests/test-fabsf.c (RANDOM): New macro.
7385         * tests/test-fabsl.c (RANDOM): New macro.
7386         * modules/fabs-tests (Files): Add tests/randomd.c.
7387         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7388         * modules/fabsf-tests (Files): Add tests/randomf.c.
7389         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7390         * modules/fabsl-tests (Files): Add tests/randoml.c.
7391         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7392
7393 2012-03-03  Bruno Haible  <bruno@clisp.org>
7394
7395         ldexp* tests: More tests.
7396         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7397         * tests/test-ldexp.c (RANDOM): New macro.
7398         * tests/test-ldexpf.c (RANDOM): New macro.
7399         * tests/test-ldexpl.c (RANDOM): New macro.
7400         * modules/ldexp-tests (Files): Add tests/randomd.c.
7401         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7402         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7403         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7404         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7405         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7406
7407 2012-03-03  Bruno Haible  <bruno@clisp.org>
7408
7409         frexp* tests: More tests.
7410         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7411         * tests/test-frexp.c (RANDOM): New macro.
7412         * tests/test-frexpf.c (RANDOM): New macro.
7413         * tests/test-frexpl.c (RANDOM): New macro.
7414         * modules/frexp-tests (Files): Add tests/randomd.c.
7415         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7416         * modules/frexpf-tests (Files): Add tests/randomf.c.
7417         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7418         * modules/frexpl-tests (Files): Add tests/randoml.c.
7419         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7420
7421 2012-03-03  Bruno Haible  <bruno@clisp.org>
7422
7423         Support for pseudo-random numbers in tests.
7424         * tests/randomf.c: New file.
7425         * tests/randomd.c: New file.
7426         * tests/randoml.c: New file.
7427         * tests/macros.h (randomf, randomd, randoml): New declarations.
7428
7429 2012-03-03  Bruno Haible  <bruno@clisp.org>
7430
7431         frexp* tests: Refactor.
7432         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7433         * tests/test-frexp.c: Include and use it.
7434         * tests/test-frexpf.c: Likewise.
7435         * tests/test-frexpl.c: Likewise.
7436         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7437         * modules/frexpf-tests (Files): Likewise.
7438         * modules/frexpl-tests (Files): Likewise.
7439
7440 2012-03-02  Jim Meyering  <meyering@redhat.com>
7441
7442         maint: don't specify XZ_OPT=-9ev in dist-related rule
7443         Using xz's -9 option is warranted only if you have a very large
7444         tarball (see xz's documentation for the sizes vs. presets), and
7445         requires 64MiB of memory at decompression time.
7446         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7447         Automake's default of just "-e" is fine.  Override on a
7448         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7449
7450 2012-03-01  Eric Blake  <eblake@redhat.com>
7451
7452         maint.mk: allow announcement for non-gnulib project
7453         * maint.mk (announcement): Skip gnulib version if not used.
7454
7455 2012-03-01  Jim Meyering  <meyering@redhat.com>
7456
7457         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7458         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7459         envvar settings cannot interfere.  Otherwise, setting envvars like
7460         prohibit=foo require=bar, etc. would cause spurious test failures.
7461
7462 2012-03-01  Eric Blake  <eblake@redhat.com>
7463
7464         maint.mk: add per-line exclusions to prohibitions
7465         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7466         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7467         (sc_const_long_option): Use it.
7468
7469 2012-03-01  Bruno Haible  <bruno@clisp.org>
7470
7471         Tests for module 'expl-ieee'.
7472         * modules/expl-ieee-tests: New file.
7473         * tests/test-expl-ieee.c: New file.
7474
7475         New module 'expl-ieee'.
7476         * modules/expl-ieee: New file.
7477
7478         Tests for module 'exp-ieee'.
7479         * modules/exp-ieee-tests: New file.
7480         * tests/test-exp-ieee.c: New file.
7481
7482         New module 'exp-ieee'.
7483         * modules/exp-ieee: New file.
7484
7485         Tests for module 'expf-ieee'.
7486         * modules/expf-ieee-tests: New file.
7487         * tests/test-expf-ieee.c: New file.
7488         * tests/test-exp-ieee.h: New file.
7489
7490         New module 'expf-ieee'.
7491         * modules/expf-ieee: New file.
7492
7493 2012-02-29  Bruno Haible  <bruno@clisp.org>
7494
7495         cbrtl-ieee: Work around test failure on IRIX 6.5.
7496         * m4/cbrtl-ieee.m4: New file.
7497         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7498         test whether cbrtl works with a minus zero argument. Replace it if not.
7499         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7501         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7502         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7503         (Depends-on): Update conditions.
7504         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7505         m4/signbit.m4.
7506         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7507         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7508         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7509
7510         Tests for module 'cbrtl-ieee'.
7511         * modules/cbrtl-ieee-tests: New file.
7512         * tests/test-cbrtl-ieee.c: New file.
7513
7514         New module 'cbrtl-ieee'.
7515         * modules/cbrtl-ieee: New file.
7516
7517         Tests for module 'cbrt-ieee'.
7518         * modules/cbrt-ieee-tests: New file.
7519         * tests/test-cbrt-ieee.c: New file.
7520
7521         New module 'cbrt-ieee'.
7522         * modules/cbrt-ieee: New file.
7523
7524         Tests for module 'cbrtf-ieee'.
7525         * modules/cbrtf-ieee-tests: New file.
7526         * tests/test-cbrtf-ieee.c: New file.
7527         * tests/test-cbrt-ieee.h: New file.
7528
7529         New module 'cbrtf-ieee'.
7530         * modules/cbrtf-ieee: New file.
7531
7532 2012-02-29  Bruno Haible  <bruno@clisp.org>
7533
7534         cbrtf: Work around bug in IRIX 6.5 system function.
7535         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7536         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7537         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7538         work.
7539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7540         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7541         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7542         (Depends-on): Update conditions.
7543         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7544
7545 2012-02-29  Bruno Haible  <bruno@clisp.org>
7546
7547         Tests for module 'cbrtl'.
7548         * modules/cbrtl-tests: New file.
7549         * tests/test-cbrtl.c: New file.
7550
7551         New module 'cbrtl'.
7552         * lib/math.in.h (cbrtl): New declaration.
7553         * lib/cbrtl.c: New file.
7554         * m4/cbrtl.m4: New file.
7555         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7556         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7557         HAVE_DECL_CBRTL.
7558         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7559         HAVE_DECL_CBRTL.
7560         * modules/cbrtl: New file.
7561         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7562         * doc/posix-functions/cbrtl.texi: Mention the new module.
7563
7564 2012-02-29  Bruno Haible  <bruno@clisp.org>
7565
7566         Tests for module 'cbrtf'.
7567         * modules/cbrtf-tests: New file.
7568         * tests/test-cbrtf.c: New file.
7569
7570         New module 'cbrtf'.
7571         * lib/math.in.h (cbrtf): New declaration.
7572         * lib/cbrtf.c: New file.
7573         * m4/cbrtf.m4: New file.
7574         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7576         HAVE_DECL_CBRTF.
7577         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7578         HAVE_DECL_CBRTF.
7579         * modules/cbrtf: New file.
7580         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7581         * doc/posix-functions/cbrtf.texi: Mention the new module.
7582
7583 2012-02-29  Bruno Haible  <bruno@clisp.org>
7584
7585         cbrt: Provide replacement on MSVC and Minix.
7586         * lib/math.in.h (cbrt): New declaration.
7587         * lib/cbrt.c: New file.
7588         * m4/cbrt.m4: New file.
7589         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7591         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7592         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7593         (Depends-on): Add dependencies.
7594         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7595         * tests/test-math-c++.cc: Check the declaration of cbrt.
7596         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7597         replacement.
7598
7599 2012-02-29  Bruno Haible  <bruno@clisp.org>
7600
7601         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7602         * m4/hypotl-ieee.m4: New file.
7603         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7604         test whether hypotl works with mixed NaN and Infinity arguments.
7605         Replace it if not.
7606         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7608         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7609         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7610         (Depends-on): Update conditions.
7611         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7612         (Depends-on): Add hypot-ieee.
7613         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7614         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7615
7616         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7617         * m4/hypotf-ieee.m4: New file.
7618         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7619         test whether hypotf works with mixed NaN and Infinity arguments.
7620         Replace it if not.
7621         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7622         (Depends-on): Add hypot-ieee.
7623         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7624         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7625
7626         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7627         * lib/math.in.h (hypot): New declaration.
7628         * lib/hypot.c: New file.
7629         * m4/hypot-ieee.m4: New file.
7630         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7631         whether hypot works with mixed NaN and Infinity arguments. Replace it
7632         if not.
7633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7634         REPLACE_HYPOT.
7635         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7636         * modules/hypot (Files): Add lib/hypot.c.
7637         (Depends-on): Add dependencies.
7638         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7639         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7640         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7641         * tests/test-math-c++.cc: Check the declaration of hypot.
7642         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7643
7644         Tests for module 'hypotl-ieee'.
7645         * modules/hypotl-ieee-tests: New file.
7646         * tests/test-hypotl-ieee.c: New file.
7647
7648         New module 'hypotl-ieee'.
7649         * modules/hypotl-ieee: New file.
7650
7651         Tests for module 'hypot-ieee'.
7652         * modules/hypot-ieee-tests: New file.
7653         * tests/test-hypot-ieee.c: New file.
7654
7655         New module 'hypot-ieee'.
7656         * modules/hypot-ieee: New file.
7657
7658         Tests for module 'hypotf-ieee'.
7659         * modules/hypotf-ieee-tests: New file.
7660         * tests/test-hypotf-ieee.c: New file.
7661         * tests/test-hypot-ieee.h: New file.
7662
7663         New module 'hypotf-ieee'.
7664         * modules/hypotf-ieee: New file.
7665
7666 2012-02-29  Bruno Haible  <bruno@clisp.org>
7667
7668         Remove unused variables.
7669         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7670         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7671         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7672         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7673
7674 2012-02-29  Eric Blake  <eblake@redhat.com>
7675
7676         termios: fix pid_t always, not just for tcgetsid
7677         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7678         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7679         just when building tcgetsid.
7680
7681 2012-02-29  Bruno Haible  <bruno@clisp.org>
7682
7683         Tests for module 'hypotl'.
7684         * modules/hypotl-tests: New file.
7685         * tests/test-hypotl.c: New file.
7686
7687         New module 'hypotl'.
7688         * lib/math.in.h (hypotl): New declaration.
7689         * lib/hypotl.c: New file.
7690         * m4/hypotl.m4: New file.
7691         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7693         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7694         * modules/hypotl: New file.
7695         * tests/test-math-c++.cc: Check the hypotl declaration.
7696         * doc/posix-functions/hypotl.texi: Mention the new module.
7697
7698 2012-02-29  Eric Blake  <eblake@redhat.com>
7699
7700         tcgetsid: fix cygwin header bug
7701         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7702
7703         docs: update cygwin progress
7704         * doc/posix-functions/llround.texi (llround): Added in cygwin
7705         1.7.8.
7706         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7707         * doc/glibc-functions/program_invocation_name.texi
7708         (program_invocation_name): Likewise.
7709         * doc/glibc-functions/program_invocation_short_name.texi
7710         (program_invocation_short_name): Likewise.
7711         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7712         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7713         Likewise.
7714         * doc/posix-functions/pthread_spin_destroy.texi
7715         (pthread_spin_destroy): Added in cygwin 1.7.10.
7716         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7717         Likewise.
7718         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7719         Likewise.
7720         * doc/posix-functions/pthread_spin_trylock.texi
7721         (pthread_spin_trylock): Likewise.
7722         * doc/posix-functions/pthread_spin_unlock.texi
7723         (pthread_spin_unlock): Likewise.
7724         * doc/posix-functions/pthread_setschedprio.texi
7725         (pthread_setschedprio): Likewise.
7726         * doc/posix-functions/pthread_attr_getstack.texi
7727         (pthread_attr_getstack): Likewise.
7728         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7729         (pthread_attr_getstackaddr): Likewise.
7730         * doc/glibc-functions/pthread_getattr_np.texi
7731         (pthread_getattr_np): Likewise.
7732         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7733         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7734         * doc/posix-functions/clock_settime.texi (clock_settime):
7735         Likewise.
7736         * doc/posix-functions/pthread_attr_getguardsize.texi
7737         (pthread_attr_getguardsize): Likewise.
7738         * doc/posix-functions/pthread_attr_setguardsize.texi
7739         (pthread_attr_setguardsize): Likewise.
7740         * doc/posix-functions/pthread_attr_setstack.texi
7741         (pthread_attr_setstack): Likewise.
7742         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7743         (pthread_attr_setstackaddr): Likewise.
7744         * doc/posix-functions/clock_getcpuclockid.texi
7745         (clock_getcpuclockid): Likewise.
7746         * doc/posix-functions/pthread_getcpuclockid.texi
7747         (pthread_getcpuclockid): Likewise.
7748         * doc/glibc-functions/error.texi (error): Likewise.
7749         * doc/glibc-functions/error_at_line.texi (error_at_line):
7750         Likewise.
7751         * doc/glibc-functions/error_message_count.texi
7752         (error_message_count): Likewise.
7753         * doc/glibc-functions/error_one_per_line.texi
7754         (error_one_per_line): Likewise.
7755         * doc/glibc-functions/error_print_progname.texi
7756         (error_print_progname): Likewise.
7757         * doc/posix-functions/pthread_condattr_getclock.texi
7758         (pthread_condattr_getclock): Likewise.
7759         * doc/posix-functions/pthread_condattr_setclock.texi
7760         (pthread_condattr_setclock): Likewise.
7761         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7762         Likewise.
7763         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7764         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7765         * doc/glibc-functions/get_current_dir_name.texi
7766         (get_current_dir_name): Likewise.
7767         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7768         Likewise.
7769         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7770         wrong return type.
7771         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7772         1.7.11.
7773
7774 2012-02-29  Bruno Haible  <bruno@clisp.org>
7775
7776         Tests for module 'hypotf'.
7777         * modules/hypotf-tests: New file.
7778         * tests/test-hypotf.c: New file.
7779
7780         New module 'hypotf'.
7781         * lib/math.in.h (hypotf): New declaration.
7782         * lib/hypotf.c: New file.
7783         * m4/hypotf.m4: New file.
7784         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7786         REPLACE_HYPOTF.
7787         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7788         REPLACE_HYPOTF.
7789         * modules/hypotf: New file.
7790         * tests/test-math-c++.cc: Check the hypotf declaration.
7791         * doc/posix-functions/hypotf.texi: Mention the new module.
7792
7793         hypot: Prepare for hypotf module.
7794         * m4/hypot.m4: New file.
7795         * modules/hypot (Files): Add m4/hypot.m4.
7796         (configure.ac): Invoke gl_FUNC_HYPOT.
7797
7798 2012-02-29  Bruno Haible  <bruno@clisp.org>
7799
7800         hypot tests: More tests.
7801         * tests/test-hypot.c: Include <float.h>.
7802         (main): Add tests about overflow and underflow.
7803
7804 2012-02-29  Bruno Haible  <bruno@clisp.org>
7805
7806         math code: Add comments.
7807         * lib/acosl.c: Add comment about related glibc source files.
7808         * lib/asinl.c: Likewise.
7809         * lib/atanl.c: Likewise.
7810         * lib/expl.c: Likewise.
7811         * lib/logl.c: Likewise.
7812         * lib/sincosl.c: Likewise.
7813         * lib/sinl.c: Likewise.
7814         * lib/tanl.c: Likewise.
7815         * lib/trigl.c: Likewise.
7816         * lib/cosl.c: Likewise. Fix comments.
7817
7818 2012-02-28  Bruno Haible  <bruno@clisp.org>
7819
7820         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7821         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7822         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7823         HUGE_VALL are defined.
7824         (numeric_equald): Renamed from numeric_equal.
7825         (numeric_equalf, numeric_equall): New functions.
7826         (main): Check also HUGE_VALF, HUGE_VALL.
7827         * modules/math-tests (Files): Add tests/macros.h.
7828         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7829         HUGE_VALL.
7830
7831 2012-02-28  Bruno Haible  <bruno@clisp.org>
7832
7833         doc: Move ISO C11 feature notes into POSIX chapters.
7834         * doc/posix-functions/aligned_alloc.texi: Renamed from
7835         doc/glibc-functions/aligned_alloc.texi.
7836         * doc/posix-functions/quick_exit.texi: Renamed from
7837         doc/glibc-functions/quick_exit.texi.
7838         * doc/posix-headers/uchar.texi: Renamed from
7839         doc/glibc-headers/uchar.texi.
7840         * doc/posix-functions/c16rtomb.texi: Renamed from
7841         doc/glibc-functions/c16rtomb.texi.
7842         * doc/posix-functions/c32rtomb.texi: Renamed from
7843         doc/glibc-functions/c32rtomb.texi.
7844         * doc/posix-functions/mbrtoc16.texi: Renamed from
7845         doc/glibc-functions/mbrtoc16.texi.
7846         * doc/posix-functions/mbrtoc32.texi: Renamed from
7847         doc/glibc-functions/mbrtoc32.texi.
7848         * doc/gnulib.texi: Update.
7849         (Glibc uchar.h): Remove section.
7850         Suggested by Eric Blake.
7851
7852 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7853
7854         stdnoreturn: port to MSVC better
7855         MSVC standard headers use __declspec(noreturn), so #define noreturn
7856         to empty on that platform.  Reported by Bruno Haible in
7857         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7858         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7859         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7860
7861 2012-02-28  Bruno Haible  <bruno@clisp.org>
7862
7863         doc: Mention new glibc headers and functions.
7864         * doc/glibc-headers/uchar.texi: New file.
7865         * doc/glibc-functions/aligned_alloc.texi: New file.
7866         * doc/glibc-functions/c16rtomb.texi: New file.
7867         * doc/glibc-functions/c32rtomb.texi: New file.
7868         * doc/glibc-functions/clock_adjtime.texi: New file.
7869         * doc/glibc-functions/fanotify_init.texi: New file.
7870         * doc/glibc-functions/fanotify_mark.texi: New file.
7871         * doc/glibc-functions/inet6_opt_append.texi: New file.
7872         * doc/glibc-functions/inet6_opt_find.texi: New file.
7873         * doc/glibc-functions/inet6_opt_finish.texi: New file.
7874         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
7875         * doc/glibc-functions/inet6_opt_init.texi: New file.
7876         * doc/glibc-functions/inet6_opt_next.texi: New file.
7877         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
7878         * doc/glibc-functions/inet6_rth_add.texi: New file.
7879         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
7880         * doc/glibc-functions/inet6_rth_init.texi: New file.
7881         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
7882         * doc/glibc-functions/inet6_rth_segments.texi: New file.
7883         * doc/glibc-functions/inet6_rth_space.texi: New file.
7884         * doc/glibc-functions/login.texi: New file.
7885         * doc/glibc-functions/mbrtoc16.texi: New file.
7886         * doc/glibc-functions/mbrtoc32.texi: New file.
7887         * doc/glibc-functions/name_to_handle_at.texi: New file.
7888         * doc/glibc-functions/ntp_gettimex.texi: New file.
7889         * doc/glibc-functions/open_by_handle_at.texi: New file.
7890         * doc/glibc-functions/prlimit.texi: New file.
7891         * doc/glibc-functions/process_vm_readv.texi: New file.
7892         * doc/glibc-functions/process_vm_writev.texi: New file.
7893         * doc/glibc-functions/recvmmsg.texi: New file.
7894         * doc/glibc-functions/scandirat.texi: New file.
7895         * doc/glibc-functions/sendmmsg.texi: New file.
7896         * doc/glibc-functions/setns.texi: New file.
7897         * doc/glibc-functions/timespec_get.texi: New file.
7898         * doc/gnulib.texi: Include them.
7899         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
7900         sections.
7901         Reported by Eric Blake.
7902
7903 2012-02-28  Bruno Haible  <bruno@clisp.org>
7904
7905         Avoid compilation errors with MSVC option -fp:strict.
7906         * lib/floor.c: Use MSVC specific pragma fenv_access.
7907         * lib/ceil.c: Likewise.
7908         * lib/trunc.c: Likewise.
7909         * lib/round.c: Likewise.
7910         * lib/rint.c: Likewise.
7911         * lib/fma.c: Likewise.
7912         * lib/integer_length.c: Likewise.
7913         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7915         * tests/test-floor2.c: Likewise.
7916         * tests/test-floorf2.c: Likewise.
7917         * tests/test-ceil2.c: Likewise.
7918         * tests/test-ceilf2.c: Likewise.
7919         * tests/test-trunc2.c: Likewise.
7920         * tests/test-truncf2.c: Likewise.
7921         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7922
7923 2012-02-27  Bruno Haible  <bruno@clisp.org>
7924
7925         Tests for module 'sqrtl-ieee'.
7926         * modules/sqrtl-ieee-tests: New file.
7927         * tests/test-sqrtl-ieee.c: New file.
7928
7929         New module 'sqrtl-ieee'.
7930         * modules/sqrtl-ieee: New file.
7931
7932         Tests for module 'sqrt-ieee'.
7933         * modules/sqrt-ieee-tests: New file.
7934         * tests/test-sqrt-ieee.c: New file.
7935
7936         New module 'sqrt-ieee'.
7937         * modules/sqrt-ieee: New file.
7938
7939         Tests for module 'sqrtf-ieee'.
7940         * modules/sqrtf-ieee-tests: New file.
7941         * tests/test-sqrtf-ieee.c: New file.
7942         * tests/test-sqrt-ieee.h: New file.
7943
7944         New module 'sqrtf-ieee'.
7945         * modules/sqrtf-ieee: New file.
7946
7947 2012-02-27  Bruno Haible  <bruno@clisp.org>
7948
7949         remainderl-ieee: Work around test failure on OSF/1.
7950         * m4/remainderl-ieee.m4: New file.
7951         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7952         present, test whether remainderl works with a zero second argument.
7953         Replace it if not.
7954         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7956         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7957         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7958         (Depends-on): Update conditions.
7959         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7960         (Depends-on): Add remainder-ieee.
7961         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7962         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7963         module.
7964
7965         remainderf-ieee: Work around test failure on OSF/1.
7966         * m4/remainderf-ieee.m4: New file.
7967         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7968         present, test whether remainderf works with a zero second argument.
7969         Replace it if not.
7970         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7972         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7973         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7974         (Depends-on): Update conditions.
7975         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7976         (Depends-on): Add remainder-ieee.
7977         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7978         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7979         module.
7980
7981         remainder-ieee: Work around test failure on OSF/1.
7982         * m4/remainder-ieee.m4: New file.
7983         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7984         present, test whether remainder works with a zero second argument.
7985         Replace it if not.
7986         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7988         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7989         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7990         (Depends-on): Update dependencies.
7991         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7992         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7993         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7994
7995         Tests for module 'remainderl-ieee'.
7996         * modules/remainderl-ieee-tests: New file.
7997         * tests/test-remainderl-ieee.c: New file.
7998
7999         New module 'remainderl-ieee'.
8000         * modules/remainderl-ieee: New file.
8001
8002         Tests for module 'remainder-ieee'.
8003         * modules/remainder-ieee-tests: New file.
8004         * tests/test-remainder-ieee.c: New file.
8005
8006         New module 'remainder-ieee'.
8007         * modules/remainder-ieee: New file.
8008
8009         Tests for module 'remainderf-ieee'.
8010         * modules/remainderf-ieee-tests: New file.
8011         * tests/test-remainderf-ieee.c: New file.
8012         * tests/test-remainder-ieee.h: New file.
8013
8014         New module 'remainderf-ieee'.
8015         * modules/remainderf-ieee: New file.
8016
8017 2012-02-27  Bruno Haible  <bruno@clisp.org>
8018
8019         modff, modfl: Fix configure syntax error.
8020         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8021         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8022
8023 2012-02-27  Bruno Haible  <bruno@clisp.org>
8024
8025         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8026         * m4/fmodl-ieee.m4: New file.
8027         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8028         whether fmodl works with zero arguments. Replace it if not.
8029         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8030         (Depends-on): Add fmod-ieee.
8031         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8032         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8033
8034         fmodf-ieee: Work around test failure on OSF/1.
8035         * m4/fmodf-ieee.m4: New file.
8036         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8037         whether fmodf works with zero arguments. Replace it if not.
8038         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8040         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8041         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8042         (Depends-on): Update dependencies.
8043         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8044         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8045         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8046
8047         fmodf-ieee: Work around test failure on MSVC 9.
8048         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8049         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8050
8051         fmod-ieee: Work around test failures on OSF/1, mingw.
8052         * m4/fmod-ieee.m4: New file.
8053         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8054         whether fmod works with zero arguments. Replace it if not.
8055         * lib/math.in.h (fmod): New declaration.
8056         * lib/fmod.c: New file.
8057         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8059         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8060         * modules/fmod (Files): Add lib/fmod.c.
8061         (Depends-on): Add math, isinf, trunc, fma.
8062         (configure.ac): Arrange to compile lib/fmod.c if needed.
8063         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8064         m4/signbit.m4.
8065         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8066         * tests/test-math-c++.cc: Check the declaration of fmod.
8067         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8068
8069         fmodl-ieee: Fix test failures.
8070         * lib/fmodl.c (fmodl): Treat Inf specially.
8071         * modules/fmodl (Depends-on): Add isinf.
8072
8073         Tests for module 'fmodl-ieee'.
8074         * modules/fmodl-ieee-tests: New file.
8075         * tests/test-fmodl-ieee.c: New file.
8076
8077         New module 'fmodl-ieee'.
8078         * modules/fmodl-ieee: New file.
8079
8080         Tests for module 'fmod-ieee'.
8081         * modules/fmod-ieee-tests: New file.
8082         * tests/test-fmod-ieee.c: New file.
8083
8084         New module 'fmod-ieee'.
8085         * modules/fmod-ieee: New file.
8086
8087         Tests for module 'fmodf-ieee'.
8088         * modules/fmodf-ieee-tests: New file.
8089         * tests/test-fmodf-ieee.c: New file.
8090         * tests/test-fmod-ieee.h: New file.
8091
8092         New module 'fmodf-ieee'.
8093         * modules/fmodf-ieee: New file.
8094
8095 2012-02-27  Bruno Haible  <bruno@clisp.org>
8096
8097         Tests for module 'rintl-ieee'.
8098         * modules/rintl-ieee-tests: New file.
8099         * tests/test-rintl-ieee.c: New file.
8100
8101         New module 'rintl-ieee'.
8102         * modules/rintl-ieee: New file.
8103
8104         Tests for module 'rint-ieee'.
8105         * modules/rint-ieee-tests: New file.
8106         * tests/test-rint-ieee.c: New file.
8107
8108         New module 'rint-ieee'.
8109         * modules/rint-ieee: New file.
8110
8111         Tests for module 'rintf-ieee'.
8112         * modules/rintf-ieee-tests: New file.
8113         * tests/test-rintf-ieee.c: New file.
8114         * tests/test-rint-ieee.h: New file.
8115
8116         New module 'rintf-ieee'.
8117         * modules/rintf-ieee: New file.
8118
8119 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8120
8121         regex: re_search etc. should return -2 when memory exhausted
8122         This bug was uncovered when testing 'grep'.  Without the fix,
8123         re_search and friends return -1 when memory is exhausted, but -1
8124         means no match, and this causes grep to falsely report no-match
8125         instead of memory-exhaustion.  See
8126         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8127         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8128         trouble; this can occur if re_search_internal ran out of memory.
8129
8130 2012-02-26  Bruno Haible  <bruno@clisp.org>
8131
8132         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8133         * m4/modfl-ieee.m4: New file.
8134         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8135         whether modfl works with Inf. Replace it if not.
8136         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8138         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8139         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8140         (Depends-on): Update dependencies.
8141         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8142         m4/signbit.m4.
8143         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8144         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8145
8146         modfl-ieee: Fix dependencies.
8147         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8148
8149         modfl-ieee: Fix test failures.
8150         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8151         * modules/modfl (Depends-on): Add isfinite, isinf.
8152
8153         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8154         * m4/modff-ieee.m4: New file.
8155         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8156         whether modff works with NaN and Inf. Replace it if not.
8157         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8159         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8160         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8161         (Depends-on): Update dependencies.
8162         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8163         m4/signbit.m4.
8164         (Depends-on): Add modf-ieee.
8165         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8166         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8167
8168         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8169         * m4/modf-ieee.m4: New file.
8170         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8171         whether modf works with NaN and Inf. Replace it if not.
8172         * lib/math.in.h (modf): New declaration.
8173         * lib/modf.c: New file.
8174         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8176         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8177         * modules/modf (Files): Add lib/modf.c.
8178         (Depends-on): Add math, isfinite, trunc, isinf.
8179         (configure.ac): Addrange to compile lib/modf.c if needed.
8180         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8181         m4/signbit.m4.
8182         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8183         * tests/test-math-c++.cc: Check the declaration of modf.
8184         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8185
8186         Tests for module 'modfl-ieee'.
8187         * modules/modfl-ieee-tests: New file.
8188         * tests/test-modfl-ieee.c: New file.
8189
8190         New module 'modfl-ieee'.
8191         * modules/modfl-ieee: New file.
8192
8193         Tests for module 'modf-ieee'.
8194         * modules/modf-ieee-tests: New file.
8195         * tests/test-modf-ieee.c: New file.
8196
8197         New module 'modf-ieee'.
8198         * modules/modf-ieee: New file.
8199
8200         Tests for module 'modff-ieee'.
8201         * modules/modff-ieee-tests: New file.
8202         * tests/test-modff-ieee.c: New file.
8203         * tests/test-modf-ieee.h: New file.
8204
8205         New module 'modff-ieee'.
8206         * modules/modff-ieee: New file.
8207
8208 2012-02-26  Bruno Haible  <bruno@clisp.org>
8209
8210         Tests for module 'fabsl-ieee'.
8211         * modules/fabsl-ieee-tests: New file.
8212         * tests/test-fabsl-ieee.c: New file.
8213
8214         New module 'fabsl-ieee'.
8215         * modules/fabsl-ieee: New file.
8216
8217         Tests for module 'fabs-ieee'.
8218         * modules/fabs-ieee-tests: New file.
8219         * tests/test-fabs-ieee.c: New file.
8220
8221         New module 'fabs-ieee'.
8222         * modules/fabs-ieee: New file.
8223
8224         Tests for module 'fabsf-ieee'.
8225         * modules/fabsf-ieee-tests: New file.
8226         * tests/test-fabsf-ieee.c: New file.
8227         * tests/test-fabs-ieee.h: New file.
8228
8229         New module 'fabsf-ieee'.
8230         * modules/fabsf-ieee: New file.
8231
8232 2012-02-26  Bruno Haible  <bruno@clisp.org>
8233
8234         Tests for module 'fmal-ieee'.
8235         * modules/fmal-ieee-tests: New file.
8236         * tests/test-fmal-ieee.c: New file.
8237
8238         New module 'fmal-ieee'.
8239         * modules/fmal-ieee: New file.
8240
8241         Tests for module 'fma-ieee'.
8242         * modules/fma-ieee-tests: New file.
8243         * tests/test-fma-ieee.c: New file.
8244
8245         New module 'fma-ieee'.
8246         * modules/fma-ieee: New file.
8247
8248         Tests for module 'fmaf-ieee'.
8249         * modules/fmaf-ieee-tests: New file.
8250         * tests/test-fmaf-ieee.c: New file.
8251         * tests/test-fma-ieee.h: New file.
8252
8253         New module 'fmaf-ieee'.
8254         * modules/fmaf-ieee: New file.
8255
8256 2012-02-26  Bruno Haible  <bruno@clisp.org>
8257
8258         Tests for module 'ldexpl-ieee'.
8259         * modules/ldexpl-ieee-tests: New file.
8260         * tests/test-ldexpl-ieee.c: New file.
8261
8262         New module 'ldexpl-ieee'.
8263         * modules/ldexpl-ieee: New file.
8264
8265         Tests for module 'ldexp-ieee'.
8266         * modules/ldexp-ieee-tests: New file.
8267         * tests/test-ldexp-ieee.c: New file.
8268
8269         New module 'ldexp-ieee'.
8270         * modules/ldexp-ieee: New file.
8271
8272         Tests for module 'ldexpf-ieee'.
8273         * modules/ldexpf-ieee-tests: New file.
8274         * tests/test-ldexpf-ieee.c: New file.
8275         * tests/test-ldexp-ieee.h: New file.
8276
8277         New module 'ldexpf-ieee'.
8278         * modules/ldexpf-ieee: New file.
8279
8280 2012-02-26  Bruno Haible  <bruno@clisp.org>
8281
8282         Refactor frexp*-ieee tests.
8283         * tests/test-frexp-ieee.h: New file.
8284         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8285         (main): Just call test_function.
8286         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8287         (main): Just call test_function.
8288         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8289         (main): Just call test_function.
8290         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8291         * modules/frexp-ieee-tests (Files): Likewise.
8292         * modules/frexpl-ieee-tests (Files): Likewise.
8293
8294         Tests for module 'frexpl-ieee'.
8295         * modules/frexpl-ieee-tests: New file.
8296         * tests/test-frexpl-ieee.c: New file.
8297
8298         New module 'frexpl-ieee'.
8299         * modules/frexpl-ieee: New file.
8300
8301         Tests for module 'frexp-ieee'.
8302         * modules/frexp-ieee-tests: New file.
8303         * tests/test-frexp-ieee.c: New file.
8304
8305         New module 'frexp-ieee'.
8306         * modules/frexp-ieee: New file.
8307
8308         Tests for module 'frexpf-ieee'.
8309         * modules/frexpf-ieee-tests: New file.
8310         * tests/test-frexpf-ieee.c: New file.
8311
8312         New module 'frexpf-ieee'.
8313         * modules/frexpf-ieee: New file.
8314
8315 2012-02-26  Bruno Haible  <bruno@clisp.org>
8316
8317         roundl-ieee tests: More tests.
8318         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8319         (main): Add tests for [MX] shaded specification in POSIX.
8320         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8321         (Depends-on): Add isnanl-nolibm.
8322
8323         round-ieee tests: More tests.
8324         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8325         (main): Add tests for [MX] shaded specification in POSIX.
8326         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8327         (Depends-on): Add isnand-nolibm.
8328
8329         roundf-ieee tests: More tests.
8330         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8331         (main): Add tests for [MX] shaded specification in POSIX.
8332         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8333         (Depends-on): Add isnanf-nolibm.
8334
8335         truncl-ieee tests: More tests.
8336         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8337         (main): Add tests for [MX] shaded specification in POSIX.
8338         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8339         (Depends-on): Add isnanl-nolibm.
8340
8341         trunc-ieee tests: More tests.
8342         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8343         (main): Add tests for [MX] shaded specification in POSIX.
8344         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8345         (Depends-on): Add isnand-nolibm.
8346
8347         truncf-ieee tests: More tests.
8348         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8349         (main): Add tests for [MX] shaded specification in POSIX.
8350         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8351         (Depends-on): Add isnanf-nolibm.
8352
8353         ceill-ieee tests: More tests.
8354         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8355         (main): Add tests for [MX] shaded specification in POSIX.
8356         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8357         (Depends-on): Add isnanl-nolibm.
8358
8359         ceil-ieee tests: More tests.
8360         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8361         (main): Add tests for [MX] shaded specification in POSIX.
8362         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8363         (Depends-on): Add isnand-nolibm.
8364
8365         ceilf-ieee tests: More tests.
8366         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8367         (main): Add tests for [MX] shaded specification in POSIX.
8368         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8369         (Depends-on): Add isnanf-nolibm.
8370
8371         floorl-ieee tests: More tests.
8372         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8373         (main): Add tests for [MX] shaded specification in POSIX.
8374         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8375         (Depends-on): Add isnanl-nolibm.
8376
8377         floor-ieee tests: More tests.
8378         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8379         (main): Add tests for [MX] shaded specification in POSIX.
8380         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8381         (Depends-on): Add isnand-nolibm.
8382
8383         floorf-ieee tests: More tests.
8384         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8385         (main): Add tests for [MX] shaded specification in POSIX.
8386         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8387         (Depends-on): Add isnanf-nolibm.
8388
8389 2012-02-26  Bruno Haible  <bruno@clisp.org>
8390
8391         fpieee: More comments.
8392         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8393
8394 2012-02-25  Bruno Haible  <bruno@clisp.org>
8395
8396         Tests for module 'log10l'.
8397         * modules/log10l-tests: New file.
8398         * tests/test-log10l.c: New file.
8399         * tests/test-math-c++.cc: Check the declaration of log10l.
8400
8401         New module 'log10l'.
8402         * lib/math.in.h (log10l): New declaration.
8403         * lib/log10l.c: New file.
8404         * m4/log10l.m4: New file.
8405         * modules/log10l: New file.
8406         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8408         HAVE_DECL_LOG10L.
8409         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8410         HAVE_DECL_LOG10L.
8411         * doc/posix-functions/log10l.texi: Mention the new module.
8412
8413 2012-02-25  Bruno Haible  <bruno@clisp.org>
8414
8415         fmodl, remainder*: Avoid wrong results due to rounding errors.
8416         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8417         expected bounds.
8418         * lib/remainderf.c (remainderf): Likewise.
8419         * lib/remainder.c (remainder): Likewise.
8420         * lib/remainderl.c (remainderl): Likewise.
8421
8422 2012-02-25  Bruno Haible  <bruno@clisp.org>
8423
8424         Tests for module 'remainderl'.
8425         * modules/remainderl-tests: New file.
8426         * tests/test-remainderl.c: New file.
8427         * tests/test-math-c++.cc: Check the declaration of remainderl.
8428
8429         New module 'remainderl'.
8430         * lib/math.in.h (remainderl): New declaration.
8431         * lib/remainderl.c: New file.
8432         * m4/remainderl.m4: New file.
8433         * modules/remainderl: New file.
8434         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8436         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8437         HAVE_REMAINDERL.
8438         * doc/posix-functions/remainderl.texi: Mention the new module.
8439
8440 2012-02-25  Bruno Haible  <bruno@clisp.org>
8441
8442         Tests for module 'remainderf'.
8443         * modules/remainderf-tests: New file.
8444         * tests/test-remainderf.c: New file.
8445         * tests/test-math-c++.cc: Check the declaration of remainderf.
8446
8447         New module 'remainderf'.
8448         * lib/math.in.h (remainderf): New declaration.
8449         * lib/remainderf.c: New file.
8450         * m4/remainderf.m4: New file.
8451         * modules/remainderf: New file.
8452         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8454         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8455         HAVE_REMAINDERF.
8456         * doc/posix-functions/remainderf.texi: Mention the new module.
8457
8458 2012-02-25  Bruno Haible  <bruno@clisp.org>
8459
8460         remainder: Support for MSVC.
8461         * lib/math.in.h (remainder): New declaration.
8462         * lib/remainder.c: New file.
8463         * m4/remainder.m4: New file.
8464         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8465         (Depends-on): Add math, round, fma.
8466         (configure.ac): Use results of gl_FUNC_REMAINDER.
8467         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8469         HAVE_DECL_REMAINDER.
8470         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8471         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8472         * tests/test-math-c++.cc: Check the declaration of remainder.
8473         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8474         problems are fixed.
8475
8476 2012-02-25  Bruno Haible  <bruno@clisp.org>
8477
8478         Tests for module 'fmodl'.
8479         * modules/fmodl-tests: New file.
8480         * tests/test-fmodl.c: New file.
8481         * tests/test-math-c++.cc: Check the declaration of fmodl.
8482
8483         New module 'fmodl'.
8484         * lib/math.in.h (fmodl): New declaration.
8485         * lib/fmodl.c: New file.
8486         * m4/fmodl.m4: New file.
8487         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8489         REPLACE_FMODL.
8490         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8491         REPLACE_FMODL.
8492         * modules/fmodl: New file.
8493         * doc/posix-functions/fmodl.texi: Mention the new module.
8494
8495 2012-02-25  Bruno Haible  <bruno@clisp.org>
8496
8497         Tests for module 'modfl'.
8498         * modules/modfl-tests: New file.
8499         * tests/test-modfl.c: New file.
8500         * tests/test-math-c++.cc: Check the declaration of modfl.
8501
8502         New module 'modfl'.
8503         * lib/math.in.h (modfl): New declaration.
8504         * lib/modfl.c: New file.
8505         * m4/modfl.m4: New file.
8506         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8507         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8508         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8509         * modules/modfl: New file.
8510         * doc/posix-functions/modfl.texi: Mention the new module.
8511
8512 2012-02-25  Bruno Haible  <bruno@clisp.org>
8513
8514         Tests for module 'fabsl'.
8515         * modules/fabsl-tests: New file.
8516         * tests/test-fabsl.c: New file.
8517         * tests/test-math-c++.cc: Check the declaration of fabsl.
8518
8519         New module 'fabsl'.
8520         * lib/math.in.h (fabsl): New declaration.
8521         * lib/fabsl.c: New file.
8522         * m4/fabsl.m4: New file.
8523         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8525         REPLACE_FABSL.
8526         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8527         REPLACE_FABSL.
8528         * modules/fabsl: New file.
8529         * doc/posix-functions/fabsl.texi: Mention the new module.
8530
8531 2012-02-25  Bruno Haible  <bruno@clisp.org>
8532
8533         fabs tests: More tests.
8534         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8535         (zero): New variable.
8536         (main): Add tests for signed zero.
8537         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8538
8539         fabsf tests: More tests.
8540         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8541         (zero): New variable.
8542         (main): Add tests for signed zero.
8543         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8544
8545 2012-02-24  Bruno Haible  <bruno@clisp.org>
8546
8547         atanl: Provide function definition on MSVC.
8548         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8549         function pointer.
8550         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8551
8552 2012-02-24  Bruno Haible  <bruno@clisp.org>
8553
8554         acosl: Provide function definition on MSVC.
8555         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8556         function pointer.
8557         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8558
8559 2012-02-24  Bruno Haible  <bruno@clisp.org>
8560
8561         asinl: Provide function definition on MSVC.
8562         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8563         function pointer.
8564         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8565
8566 2012-02-24  Bruno Haible  <bruno@clisp.org>
8567
8568         tanl: Provide function definition on MSVC.
8569         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8570         function pointer.
8571         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8572
8573 2012-02-24  Bruno Haible  <bruno@clisp.org>
8574
8575         cosl: Provide function definition on MSVC.
8576         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8577         function pointer.
8578         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8579
8580 2012-02-24  Bruno Haible  <bruno@clisp.org>
8581
8582         sinl: Provide function definition on MSVC.
8583         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8584         function pointer.
8585         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8586
8587 2012-02-24  Bruno Haible  <bruno@clisp.org>
8588
8589         logl: Provide function definition on MSVC.
8590         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8591         function pointer.
8592         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8593
8594 2012-02-24  Bruno Haible  <bruno@clisp.org>
8595
8596         expl: Provide function definition on MSVC.
8597         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8598         function pointer.
8599         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8600
8601 2012-02-24  Bruno Haible  <bruno@clisp.org>
8602
8603         sqrtl: Provide function definition on MSVC.
8604         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8605         a function pointer.
8606         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8607
8608 2012-02-24  Bruno Haible  <bruno@clisp.org>
8609
8610         ceill: Provide function definition on MSVC.
8611         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8612         used as a function pointer.
8613         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8614
8615 2012-02-24  Bruno Haible  <bruno@clisp.org>
8616
8617         floorl: Provide function definition on MSVC.
8618         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8619         used as a function pointer.
8620         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8621
8622 2012-02-24  Bruno Haible  <bruno@clisp.org>
8623
8624         ceilf: Provide function definition on MSVC.
8625         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8626         used as a function pointer.
8627         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8628
8629 2012-02-24  Bruno Haible  <bruno@clisp.org>
8630
8631         floorf: Provide function definition on MSVC.
8632         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8633         used as a function pointer.
8634         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8635
8636 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8637
8638         stdnoreturn: new module
8639         This implements a replacement for C11's <stdnoreturn.h>.
8640         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8641         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8642         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8643         * tests/test-stdnoreturn.c: New files.
8644
8645 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8646
8647         regex: fix false multibyte matches in some regular expressions
8648         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8649         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8650         * lib/regex_internal.c (re_string_skip_chars):
8651         Fix miscomputation of remain_len that may cause incomplete
8652         multi-byte character and false match.
8653
8654 2012-02-24  Jim Meyering  <meyering@redhat.com>
8655
8656         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8657         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8658         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8659         Remove now-unnecessary str''cmp obfuscation.
8660         Suggested by Akim Demaille.
8661
8662 2012-02-24  Bruno Haible  <bruno@clisp.org>
8663
8664         streq: Rename macro.
8665         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8666         * NEWS: Mention the change.
8667         * lib/mbrtowc.c (mbrtowc): Update.
8668         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8669         * lib/wcwidth.c (wcwidth): Update.
8670         Suggested by Akim Demaille and Jim Meyering.
8671
8672 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8673
8674         regex: fix typo in definition of MIN
8675         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8676         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8677
8678 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8679             Bruno Haible  <bruno@clisp.org>
8680
8681         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8682         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8683         entries into a stack-allocated buffer directly.
8684         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8685
8686 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8687             Bruno Haible  <bruno@clisp.org>
8688
8689         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8690
8691          - There were several instances of this pattern:
8692
8693              for (;;) {
8694                n = acl (f, GETACLCNT, 0, NULL);
8695                [ allocate an array A of size N ]
8696                if (acl (f, GETACL, n, a) == n)
8697                  break;
8698              }
8699
8700            This loop might never terminate if some other process is constantly
8701            manipulating the file's ACL.  The loop should be rewritten to
8702            terminate.
8703
8704          - The acl (... GETACLNT ...) call is merely an optimization; its value
8705            is merely a hint as to how big to make the array.  A better
8706            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8707            and just guess a reasonably-big size, growing the size and trying
8708            again if it's not large enough.  This guarantees termination, and
8709            saves a system call.
8710
8711         * lib/acl-internal.h: Include <limits.h>.
8712         (MIN, SIZE_MAX): New macros.
8713         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8714         a stack-allocated buffer, and use malloc if it does not fit. Don't
8715         use GETACLCNT.
8716         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8717
8718 2012-02-19  Bruno Haible  <bruno@clisp.org>
8719
8720         acl: Fix endless loop on Solaris with vxfs.
8721         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8722         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8723         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8724         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8725         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8726         Reported by Bill Jones in
8727         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8728
8729 2012-02-19  Bruno Haible  <bruno@clisp.org>
8730
8731         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8732         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8733         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8734         that this function returns 0 in some more cases.
8735
8736 2012-02-19  Bruno Haible  <bruno@clisp.org>
8737
8738         acl: Update doc references.
8739         * doc/acl-resources.txt: Update links to Solaris documentation.
8740
8741 2012-02-19  Bruno Haible  <bruno@clisp.org>
8742
8743         Fix test failure in many locales on Solaris 11.
8744         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8745         'tr' arguments.
8746         * tests/test-pipe-filter-ii1.c (main): Likewise.
8747         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8748         expressions in the C locale.
8749         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8750         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8751
8752 2012-02-19  Bruno Haible  <bruno@clisp.org>
8753
8754         gnulib-tool: Improve usage message.
8755         * gnulib-tool (func_usage): Move doc of --help and --version to the
8756         section "Operation modes".
8757
8758 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8759
8760         README-release: make it easier to execute commands
8761         * top/README-release: break commands out on to separate lines.
8762
8763 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8764
8765         GNUmakefile: simplify detection of unconfigured trees
8766         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8767         whether the tree make is being run from is already configured or
8768         not.  Related simplifications.
8769
8770 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8771
8772         * gnulib-tool (func_usage): Document --help and --version.
8773
8774 2012-02-11  Jim Meyering  <meyering@redhat.com>
8775
8776         bootstrap: don't exit 0 upon gnulib-tool failure
8777         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8778         its exit status, not 0.
8779
8780 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8781
8782         README-release: various improvements
8783         * top/README-release: Give a command to push changes for the
8784         release.  Add "distcheck" to list of other pre-release checks.
8785         Fix instance of "make stable" which should be "make TYPE".
8786
8787 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8788
8789         maint: replace FSF snail-mail addresses with URLs
8790         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8791         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8792         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8793         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8794         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8795         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8796         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8797         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8798         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8799         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8800         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8801         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8802         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8803         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8804         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8805         * lib/glthread/thread.c, lib/glthread/thread.h:
8806         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8807         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8808         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8809         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8810         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8811         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8812         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8813         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8814         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8815         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8816         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8817         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8818         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8819         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8820         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8821         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8822         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8823         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8824         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8825         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8826         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8827         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8828         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8829         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8830         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8831         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8832         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8833         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8834         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8835         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8836         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8837         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8838         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8839         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8840         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8841         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8842         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8843         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8844         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8845         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8846         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8847         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8848         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8849         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8850         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8851         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8852         * tests/test-poll.c, tests/test-quotearg-simple.c:
8853         * tests/test-quotearg.c, tests/test-quotearg.h:
8854         * tests/test-round-ieee.c, tests/test-round1.c:
8855         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8856         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8857         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8858         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8859         * tests/test-strerror.c, tests/test-strerror_r.c:
8860         * tests/test-strsignal.c, tests/test-strverscmp.c:
8861         * tests/test-xmemdup0.c:
8862         Replace FSF snail mail addresses with URLs, as per GNU coding
8863         standards.  See glibc bug
8864         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
8865
8866 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8867
8868         README-release: capitalize a word and split a line
8869         * top/README-release: Fix punctuation and spacing.
8870
8871 2012-02-08  Akim Demaille  <demaille@gostai.com>
8872
8873         fatal-signal: use C prototypes (with explicit void).
8874         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8875         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
8876
8877 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8878
8879         regex: spelling fix
8880         * lib/regexec.c: spelling fix
8881
8882         regex: rely on stdint.h for SIZE_MAX
8883         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
8884
8885 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8886
8887         regex: merge glibc changes
8888
8889         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
8890         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
8891         (init_word_char): Work even if bitset words are not exactly 32 or
8892         64 bits wide.  Don't assume there are no padding bits.
8893         * lib/regex.c [_LIBC]: Do not include <config.h>.
8894         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
8895         and -Wtype-limits.
8896         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
8897         needless disagreement with glibc.  All uses changed.  Define it to
8898         1 only if _GNU_SOURCE, to match glibc.
8899         (_REG_RM_NAME): Remove; no longer needed, since the names in
8900         question are now all protected by __USE_GNU.
8901         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
8902         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
8903         * lib/regex_internal.h (MIN): New macro.
8904
8905         2012-01-03 Ulrich Drepper <drepper@gmail.com>
8906         * lib/regcomp.c (init_word_char): Optimize regex a bit.
8907
8908         2011-12-30 Jakub Jelinek <jakub@redhat.com>
8909         * lib/regex_internal.c (re_string_fetch_byte_case):
8910         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8911         is miscompiled, and it turns out it is because of an incorrect
8912         attribute on re_string_fetch_byte_case.  Unlike
8913         re_string_peek_byte_case, this one is really not pure, it modifies
8914         memory (increments pstr->cur_idx), and with the pure attribute GCC
8915         assumed it doesn't and it cached the presumed value of
8916         regexp->cur_idx in a variable across the
8917          for (;; ++i)
8918            {
8919              if (i >= BRACKET_NAME_BUF_SIZE)
8920                return REG_EBRACK;
8921              if (token->type == OP_OPEN_CHAR_CLASS)
8922                ch = re_string_fetch_byte_case (regexp);
8923              else
8924                ch = re_string_fetch_byte (regexp);
8925              if (re_string_eoi(regexp))
8926                return REG_EBRACK;
8927              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8928                break;
8929              elem->opr.name[i] = ch;
8930            }
8931
8932         2011-11-29 Andreas Schwab <schwab@redhat.com>
8933         * lib/regcomp.c (build_equiv_class):
8934         Fix access after end of search string in regex matcher.
8935
8936         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8937         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8938
8939         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8940         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8941
8942         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8943         * lib/regcomp.c (parse_branch, parse_sub_exp):
8944         More regex memory leak fixes and tests.
8945         (parse_sub_exp, parse_bracket_exp):
8946         Fix memory leak for some invalid regular expressions.
8947
8948         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8949         * lib/regex_internal.c, lib/regexec.c:
8950         Fix unnecessary overallocation due to incomplete character.  When
8951         incomplete characters are found at the end of a string the code
8952         ran amok and allocated lots of memory.  Stricter limits are now in
8953         place.
8954
8955         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8956         * lib/regex.h: Update documentation.
8957
8958         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8959         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8960
8961         2010-05-05 Andreas Schwab <schwab@redhat.com>
8962         * lib/regexec.c (find_collation_sequence_value):
8963         Fix lookup of collation sequence value during regexp matching.
8964
8965         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8966         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8967
8968         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8969         * lib/regex.h: Cleanup namespace.
8970
8971         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8972         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8973
8974         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8975         * lib/regex_internal.h: Prevent some declarations and definitions
8976         to be seen when used in tests.
8977
8978         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8979         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8980         __libc_lock_* macros if not _LIBC.
8981         (struct re_dfa_t): Add lock.
8982
8983 2012-02-07  Eric Blake  <eblake@redhat.com>
8984
8985         maint.mk: also prohibit lower-case @var@
8986         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8987         lower case, like @top_srcdir@.
8988
8989 2012-02-04  Eric Blake  <eblake@redhat.com>
8990
8991         canonicalize: avoid uninitialized memory use
8992         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8993         random '/' left in dest.
8994         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8995
8996 2012-02-04  Bruno Haible  <bruno@clisp.org>
8997
8998         isatty: Fix test failure of ptsname_r on native Windows.
8999         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9000         and don't set errno.
9001         (isatty): Test first whether fd is valid. Set errno when returning 0.
9002
9003 2012-02-04  Bruno Haible  <bruno@clisp.org>
9004
9005         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9006         * tests/test-spawn-pipe-main.c: Include progname.h.
9007         (main): Invoke set_program_name.
9008         * modules/spawn-pipe-tests (Depends-on): Add progname.
9009
9010         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9011         * tests/test-nonblocking-socket-main.c: Include progname.h.
9012         (main): Invoke set_program_name.
9013         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9014
9015         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9016         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9017         (main): Invoke set_program_name.
9018         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9019
9020 2012-02-04  Eric Blake  <eblake@redhat.com>
9021
9022         canonicalize-lgpl: fix // handling
9023         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9024
9025         canonicalize: fix // handling
9026         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9027         /// to //, since only // is special.
9028
9029 2012-02-04  Bruno Haible  <bruno@clisp.org>
9030
9031         ioctl: Fix test failure on native Windows.
9032         * lib/ioctl.c: Include msvc-nothrow.h.
9033         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9034
9035 2012-02-04  Bruno Haible  <bruno@clisp.org>
9036
9037         fsync: Avoid test failure on native Windows.
9038         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9039         read-only.
9040
9041 2012-02-04  Bruno Haible  <bruno@clisp.org>
9042
9043         sys_select: Avoid syntax error on OpenBSD 5.0.
9044         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9045         currently being included, just include the system's <sys/select.h>.
9046
9047 2012-02-04  Bruno Haible  <bruno@clisp.org>
9048
9049         sys_select: Avoid syntax error on OpenBSD 5.0.
9050         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9051         <sys/select.h>, not before.
9052         Reported by Jiri B <jirib@devio.us>.
9053
9054 2012-02-04  Bruno Haible  <bruno@clisp.org>
9055
9056         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9057         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9058         global variables.
9059         * tests/test-get-rusage-data.c (main): Likewise.
9060         Reported by Jim Meyering.
9061
9062 2012-02-04  Bruno Haible  <bruno@clisp.org>
9063
9064         stdioext: Fix last commit.
9065         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9066
9067 2012-02-03  Bruno Haible  <bruno@clisp.org>
9068
9069         stdioext: Add tentative support for Plan9.
9070         * lib/stdio-impl.h: Include <errno.h>.
9071         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9072         * lib/freadable.c (freadable): Likewise.
9073         * lib/fwritable.c (fwritable): Likewise.
9074         * lib/fbufmode.c (fbufmode): Likewise.
9075         * lib/freading.c (freading): Likewise.
9076         * lib/fwriting.c (fwriting): Likewise.
9077         * lib/freadptr.c (freadptr): Likewise.
9078         * lib/freadseek.c (freadptrinc): Likewise.
9079         * lib/freadahead.c (freadahead): Likewise.
9080         * lib/fpurge.c (fpurge): Likewise.
9081         * lib/fseeko.c (rpl_fseeko): Likewise.
9082         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9083         Reported by Jens Staal <staal1978@gmail.com>.
9084
9085 2012-02-02  Jim Meyering  <meyering@redhat.com>
9086
9087         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9088         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9089         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9090         not even to try to add the attribute.  Instead, add a pragma to suppress
9091         the suggestion/warning.
9092
9093 2012-01-31  Karl Berry  <karl@gnu.org>
9094
9095         setstate doc: typo.
9096         * doc/posix-functions/setstate.texi (setstate): { not (.
9097
9098 2012-01-31  Bruno Haible  <bruno@clisp.org>
9099
9100         popen: Make more robust on Windows.
9101         * lib/popen.c: On native Windows, use the _popen based code even if
9102         HAVE_POPEN is set.
9103         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9104         environment variable on native Windows.
9105
9106 2012-01-30  Bruno Haible  <bruno@clisp.org>
9107
9108         pclose: Fix typo.
9109         * lib/stdio.in.h (pclose): Fix typo in warning message.
9110
9111 2012-01-30  Bruno Haible  <bruno@clisp.org>
9112
9113         doc about getlogin_r, setstate.
9114         * doc/posix-functions/getlogin_r.texi: List the incompatible
9115         declaration problem under "not fixed by gnulib".
9116         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9117         problem on Solaris 11 and other platforms.
9118
9119 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9120             Bruno Haible  <bruno@clisp.org>
9121
9122         poll tests: Make test more robust.
9123         * tests/test-poll.c: Include macros.h.
9124         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9125         return value of various I/O operations.
9126         * modules/poll-tests (Files): Add tests/macros.h.
9127
9128 2012-01-30  Bruno Haible  <bruno@clisp.org>
9129
9130         sys_stat: Fix support for mingw64 and MSVC.
9131         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9132         header files already do it.
9133         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9134         stat itself.
9135         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9136
9137 2012-01-30  Bruno Haible  <bruno@clisp.org>
9138
9139         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9141         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9142
9143 2012-01-29  Bruno Haible  <bruno@clisp.org>
9144
9145         quotearg: Fix test failure on MacOS X 10.5.
9146         * tests/test-quotearg-simple.c: Include localcharset.h.
9147         (main): If the locale encoding is not ASCII, bypass the tests of
9148         locale_quoting_style and clocale_quoting_style.
9149         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9150
9151 2012-01-29  Jim Meyering  <meyering@redhat.com>
9152
9153         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9154         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9155         detect uses of canonicalize_file_name.
9156
9157 2012-01-28  Bruno Haible  <bruno@clisp.org>
9158
9159         test-framework-sh: Fix test failure with AIX 7.1 diff.
9160         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9161         in column 1, like 'diff -c' does.
9162         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9163         whether 'diff -u' is used. Instead, test whether the output contains
9164         some '@' character.
9165
9166 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9167
9168         strtoimax: eliminate need for stdint.h, inttypes.h checks
9169         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9170         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9171         the prerequisites for a recently-introduced strtoimax test.
9172         I guess this might cause strtoimax to be replaced when not
9173         strictly necessary on older hosts, but this shouldn't introduce
9174         any bugs and it should make Emacs 'configure' faster on typical
9175         modern hosts.  Problem discovered when importing the latest gnulib
9176         to an Emacs test version.
9177         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9178
9179 2012-01-28  Bruno Haible  <bruno@clisp.org>
9180
9181         sys_time: Override 'struct timeval' on some native Windows platforms.
9182         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9183         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9184         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9185         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9186         needs to be overridden.
9187         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9188         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9189         * tests/test-sys_select.c: Check that the tv_sec member has the same
9190         size as a 'time_t'.
9191         * tests/test-sys_time.c: Likewise.
9192         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9193         is set, set also REPLACE_GETTIMEOFDAY.
9194         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9195         convert the resulting 'struct timeval' before returning.
9196         * lib/select.c: Include <sys/time.h>.
9197         (select, timeval): Undefine at the right place.
9198         * modules/select (Depends-on): Add sys_time.
9199         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9200         some Windows platforms.
9201         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9202
9203 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9204
9205         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9206         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9207         an integer.
9208         * lib/fcntl.c (dupfd): Likewise.
9209         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9210
9211 2012-01-28  Bruno Haible  <bruno@clisp.org>
9212
9213         fcntl: Avoid compilation error on native Windows.
9214         * modules/fcntl (Depends-on): Add 'close'.
9215
9216 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9217
9218         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9219         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9220         pointer to an integer.
9221         * lib/poll.c (IsConsoleHandle): Likewise.
9222         * lib/isatty.c (IsConsoleHandle): Likewise.
9223
9224 2012-01-28  Jim Meyering  <meyering@redhat.com>
9225
9226         doc: clarify README-release
9227         * top/README-release: Clarify: you should make a point to have
9228         the latest stable versions of build tools in your PATH, and the
9229         reference to buildreq is solely for its list of tool names, not
9230         for its minimal-functional version numbers.
9231         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9232
9233         maint.mk: use more readable (yet functionally equivalent) quoting
9234         It is common to quote a single quote in a single quoted string like
9235         this:  '...'\''...'.  Unless you know the idiom, that looks like
9236         gibberish, so prefer to double-quote the string when possible.
9237         Then you can use a more readable, lone single quote: "...'..."
9238         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9239         "don't" is more readable than the equivalent 'don'\''t'.
9240         (sc_cast_of_x_alloc_return_value): Likewise.
9241         (sc_cast_of_alloca_return_value): Likewise.
9242         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9243         rather than '\'':'\''.
9244
9245 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9246
9247         stdalign: relax _Alignof and tighten _Alignas test
9248         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9249         as it was too strict: alignof must divide offsetof, but it need
9250         not equal offsetof.  Inspired by Joseph S. Myers's comment
9251         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9252         Conversely, tighten the _Alignas test a bit, as the resulting
9253         alignment must be exactly 8.
9254
9255 2012-01-27  Bruno Haible  <bruno@clisp.org>
9256
9257         stdalign: Document the last change.
9258         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9259
9260 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9261
9262         stdalign: check that alignof and offsetof are consistent
9263         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9264         Problem reported for gnulib by Richard W.M. Jones in
9265         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9266
9267 2012-01-27  Jim Meyering  <meyering@redhat.com>
9268
9269         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9270         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9271         convert a sequence with gaps to the minimal containing range.
9272         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9273         * tests/test-update-copyright.sh: Test for this.
9274         The FSF confirmed it is ok to do this, assuming there is at
9275         least one significant change per year in the affected range:
9276         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9277
9278 2012-01-26  Bruno Haible  <bruno@clisp.org>
9279
9280         pipe2: refine doc about thread-safety
9281         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9282         multithread-safety problem.
9283         * doc/glibc-functions/accept4.texi: Likewise.
9284
9285 2012-01-26  Bruno Haible  <bruno@clisp.org>
9286
9287         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9288         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9289         In the test program, include <fcntl.h>, for O_RDONLY.
9290
9291 2012-01-26  Eric Blake  <eblake@redhat.com>
9292
9293         pipe2: document lack of thread-safety in replacement
9294         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9295         issue in replacement.
9296         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9297         Based on a report by Eric Wong.
9298
9299 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9300             Bruno Haible  <bruno@clisp.org>
9301
9302         malloca: Avoid warnings on x86_64 mingw64.
9303         * lib/malloca.c: Include <stdint.h>.
9304         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9305         * modules/malloca (Depends-on): Add stdint.
9306         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9307
9308 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9309
9310         obstack: remove __STDC__ conditionals
9311         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9312         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9313         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9314         m4/include_next.m4 as the only gnulib-maintained places that still
9315         refer to __STDC__.
9316
9317 2012-01-24  Bruno Haible  <bruno@clisp.org>
9318
9319         havelib: Modern quoting.
9320         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9321         the recent change to the GNU coding standards.
9322
9323 2012-01-24  Bruno Haible  <bruno@clisp.org>
9324
9325         stdint: Improve support for Android.
9326         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9327         Reported by Simon Josefsson <simon@josefsson.org>.
9328
9329 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9330
9331         doc: omit trailing empty lines from INSTALL etc.
9332         * doc/Makefile (INSTALL): Omit trailing empty lines.
9333         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9334         omit trailing empty lines.  This simplifies the build procedure.
9335
9336 2012-01-23  Jim Meyering  <meyering@redhat.com>
9337
9338         tests: avoid spurious warnings about gl_sockets_startup
9339         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9340         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9341         reporting a "statement with no effect".
9342         * tests/test-accept.c (main): Mark as "(void)".
9343         * tests/test-accept4.c (main): Likewise.
9344         * tests/test-bind.c (main): Likewise.
9345         * tests/test-connect.c (main): Likewise.
9346         * tests/test-getpeername.c (main): Likewise.
9347         * tests/test-getsockname.c (main): Likewise.
9348         * tests/test-getsockopt.c (main): Likewise.
9349         * tests/test-listen.c (main): Likewise.
9350         * tests/test-recv.c (main): Likewise.
9351         * tests/test-recvfrom.c (main): Likewise.
9352         * tests/test-send.c (main): Likewise.
9353         * tests/test-sendto.c (main): Likewise.
9354         * tests/test-setsockopt.c (main): Likewise.
9355         * tests/test-shutdown.c (main): Likewise.
9356
9357 2012-01-21  Bruno Haible  <bruno@clisp.org>
9358
9359         locale-fr.m4: Fix for Android.
9360         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9361         failure of the test program on Bionic libc.
9362
9363 2012-01-21  Jim Meyering  <meyering@redhat.com>
9364
9365         bootstrap: fail when bootstrap_post_import_hook fails
9366         Otherwise, it's far too easy to miss diagnostics emitted
9367         between gnulib-tool's output and that of running configure.
9368         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9369
9370 2012-01-17  Jim Meyering  <meyering@redhat.com>
9371
9372         maint: enable sc_trailing_blank
9373         * build-aux/pmccabe.css: Remove trailing blanks.
9374         * doc/acl-cygwin.txt: Likewise.
9375         * doc/gnu-oids.texi: Likewise
9376         * cfg.mk: Enable sc_trailing_blank.
9377         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9378
9379 2012-01-17  Jim Meyering  <meyering@redhat.com>
9380
9381         maint: enable sc_prohibit_openat_without_use
9382         * cfg.mk: Enable sc_prohibit_openat_without_use.
9383         Exempt lib/selinux-at.c.
9384
9385 2012-01-17  Jim Meyering  <meyering@redhat.com>
9386
9387         maint: enable sc_prohibit_cloexec_without_use
9388         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9389         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9390
9391 2012-01-17  Jim Meyering  <meyering@redhat.com>
9392
9393         maint: enable sc_prohibit_intprops_without_use
9394         * cfg.mk: Enable sc_prohibit_intprops_without_use
9395         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9396
9397 2012-01-17  Jim Meyering  <meyering@redhat.com>
9398
9399         maint: enable sc_prohibit_hash_pjw_without_use
9400         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9401         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9402         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9403         following " (".
9404
9405 2012-01-17  Jim Meyering  <meyering@redhat.com>
9406
9407         maint: enable double-word-prohibiting rule
9408         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9409         Exempt three files.
9410
9411 2012-01-17  Jim Meyering  <meyering@redhat.com>
9412
9413         maint: remove empty lines at EOF, but excluding modules/*
9414         Apply syntax rules at home as well as abroad.  Most changes
9415         were induced by running this:
9416           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9417             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9418             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9419         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9420         Exempt modules/* and two binary files.
9421         Also exempt doc/INSTALL*, per request from Bruno Haible.
9422         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9423         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9424         * doc/Copyright/request-assign.future: Likewise.
9425         * doc/Copyright/request-disclaim.changes: Likewise.
9426         * doc/INSTALL: Likewise.
9427         * doc/INSTALL.ISO: Likewise.
9428         * doc/INSTALL.UTF-8: Likewise.
9429         * doc/acl-cygwin.txt: Likewise.
9430         * doc/acl-resources.txt: Likewise.
9431         * doc/fdl-1.2.texi: Likewise.
9432         * doc/fdl-1.3.texi: Likewise.
9433         * doc/fdl.texi: Likewise.
9434         * lib/argp-pin.c: Likewise.
9435         * lib/round.c: Likewise.
9436         * lib/unicase/u16-totitle.c: Likewise.
9437         * lib/unictype/block_test.c: Likewise.
9438         * lib/uninorm/canonical-decomposition.c: Likewise.
9439         * m4/README: Likewise.
9440         * m4/relocatable-lib.m4: Likewise.
9441         * tests/test-isnand-nolibm.c: Likewise.
9442         * tests/test-isnand.c: Likewise.
9443         * tests/uninorm/NormalizationTest.txt: Likewise.
9444
9445 2012-01-17  Jim Meyering  <meyering@redhat.com>
9446
9447         maint: add framework to run syntax-check rules against gnulib sources
9448         * cfg.mk: New file, to disable all currently-failing tests.
9449         We'll enable them one by one, as they are made to pass.
9450         * Makefile (sc_maint): New rule.
9451
9452 2012-01-21  Bruno Haible  <bruno@clisp.org>
9453
9454         stdint: Add support for Android.
9455         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9456         include the system's <stdint.h>.
9457         Reported by Simon Josefsson <simon@josefsson.org>.
9458
9459 2012-01-19  Jim Meyering  <meyering@redhat.com>
9460
9461         bootstrap: add bootstrap_post_import_hook
9462         Bison does still need something like the gnulib_mk_hook whose
9463         invocation I had to remove along with slurp in commit 767ccd40.
9464         Technically, we could get along without it, but doing so would
9465         have required living with a warning and a mandatory post-bootstrap
9466         automake rerun.
9467         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9468         (bootstrap_post_import_hook): New function.
9469         Invoke it after gnulib-tool --import and before autoreconf.
9470
9471 2012-01-18  Jim Meyering  <meyering@redhat.com>
9472
9473         gitlog-to-changelog: don't use "no_"-prefixed variable name
9474         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9475         to enable both --cluster and --no-cluster.  Change variable name,
9476         s/\$no_cluster/$cluster/, and reverse usage to match.
9477
9478         gitlog-to-changelog: use "||", not "or" in expressions
9479         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9480         expressions.
9481
9482 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9483
9484         gitlog-to-changelog: new option --no-cluster
9485         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9486         clustering of adjacent commit messages.
9487
9488 2012-01-17  Jim Meyering  <meyering@redhat.com>
9489
9490         maint: spell file systems with two words, not one
9491         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9492         two words, not one.
9493
9494 2012-01-16  Jim Meyering  <meyering@redhat.com>
9495
9496         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9497         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9498
9499 2012-01-16  Eric Blake  <eblake@redhat.com>
9500
9501         bootstrap: cater to autoconf 2.59
9502         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9503         is not available.
9504
9505         bootstrap: properly check for libtool
9506         * build-aux/bootstrap (libtoolize): Also run libtool when older
9507         usage is detected.
9508
9509 2012-01-15  Bruno Haible  <bruno@clisp.org>
9510
9511         Improve support for MSVC 9.
9512         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9513         clashes on MSVC.
9514         * lib/fcntl.in.h: Likewise.
9515         * lib/stdlib.in.h: Likewise.
9516         * lib/sys_stat.in.h: Likewise.
9517
9518 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9519
9520         gnupload: we hold the master copy of this script now
9521         For motivation and more information, see:
9522         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9523         * build-aux/gnupload: Make it clear in the heading comments that the
9524         master copy of this file is maintained by gnulib.  Since we are at
9525         it, bump its copyright year and ...
9526         ($scriptversion): ... the date in its version.
9527         ($usage): Patches and bug reports should be sent to the gnulib list,
9528         not the automake one.
9529         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9530         anymore.
9531
9532 2012-01-15  Bruno Haible  <bruno@clisp.org>
9533
9534         Fix module 'random'.
9535         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9536         initstate, setstate are declared.
9537
9538 2012-01-14  Bruno Haible  <bruno@clisp.org>
9539
9540         Tests for module 'random'.
9541         * modules/random-tests: New file.
9542         * tests/test-random.c: New file, based on tests/test-random_r.c.
9543
9544         New module 'random'.
9545         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9546         declarations.
9547         * lib/random.c: New file, based on glibc/stdlib/random.c.
9548         * m4/random.m4: New file.
9549         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9550         HAVE_RANDOM.
9551         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9552         * modules/random: New file.
9553         * config/srclist.txt: Add an entry for random.c.
9554         * doc/posix-functions/random.texi: Mention the 'random' module.
9555         * doc/posix-functions/initstate.texi: Likewise.
9556         * doc/posix-functions/setstate.texi: Likewise.
9557         * doc/posix-functions/srandom.texi: Likewise.
9558
9559 2012-01-12  Bruno Haible  <bruno@clisp.org>
9560
9561         random_r: Use common idioms.
9562         * lib/random_r.c: Include <stdlib.h> first.
9563
9564         random_r: Override incompatible API on AIX, OSF/1.
9565         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9566         Override the system function if REPLACE_RANDOM_R is 1.
9567         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9568         and OSF/1, set REPLACE_RANDOM_R.
9569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9570         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9571         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9572         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9573         * doc/glibc-functions/random_r.texi: Likewise.
9574         * doc/glibc-functions/setstate_r.texi: Likewise.
9575
9576         random_r: Support for MSVC 9.
9577         * lib/random_r.c: Include stdint.h, not inttypes.h.
9578
9579 2012-01-12  Eric Blake  <eblake@redhat.com>
9580
9581         inet_ntop: guard extra work by IF_LINT
9582         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9583         better code generation when not checking for warnings.
9584         Suggested by Paul Eggert and Jim Meyering.
9585
9586         strptime: fix regression on mingw
9587         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9588         Fix regression.  Reported by Bruno Haible.
9589
9590 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9591             Bruno Haible  <bruno@clisp.org>
9592
9593         copy-file: add error-code-returning variant.
9594         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9595         (qcopy_file_preserving): New declaration.
9596         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9597         copy_file_preserving. Change return type to 'int'. Don't emit an error
9598         message here.
9599         (copy_file_preserving): New function.
9600         * tests/test-copy-file.c: Include <stdlib.h>.
9601         (main): Test qcopy_file_preserving if the environment variable
9602         NO_STDERR_OUTPUT is set.
9603         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9604         with NO_STDERR_OUTPUT
9605         * tests/test-copy-file-2.sh: Likewise.
9606
9607 2012-01-10  Bruno Haible  <bruno@clisp.org>
9608
9609         copy-file: Use 'quote' module consistently.
9610         * lib/copy-file.c (copy_file_preserving): Use quote().
9611
9612         copy-file: Refactor.
9613         * lib/copy-file.c: Include quote.h.
9614         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9615         message here.
9616         * modules/copy-file (Depends-on): Add quote.
9617
9618         acl: Export qcopy_acl.
9619         * lib/acl.h (qcopy_acl): New declaration.
9620         * lib/copy-acl.c (qcopy_acl): Make non-static.
9621
9622         acl: Rename a local variable.
9623         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9624
9625         acl: Align return values of copy_acl and qcopy_acl.
9626         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9627         maybe < -1.
9628
9629 2012-01-11  Eric Blake  <eblake@redhat.com>
9630
9631         strptime: silence gcc warnings
9632         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9633         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9634         Reported by Daniel P. Berrange.
9635
9636         inet_ntop: silence gcc warning
9637         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9638         Reported by Daniel P. Berrange.
9639
9640 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9641
9642         getloadavg test: skip the test on GNU/Linux without /proc mounted
9643         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9644         file.  When /proc is not mounted, it always fails with ENOENT.
9645         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9646         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9647
9648 2012-01-10  Bruno Haible  <bruno@clisp.org>
9649
9650         regex: Avoid link error on MSVC 9.
9651         * modules/regex (Depends-on): Add wctype.
9652
9653 2012-01-10  Bruno Haible  <bruno@clisp.org>
9654
9655         doc: Mention --with-tests option.
9656         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9657         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9658         --with-tests.
9659         Reported by Reuben Thomas.
9660
9661 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9662
9663         users.txt: order package names lexicographically.
9664         * users.txt: Order package names lexicographically.
9665
9666 2012-01-10  Jim Meyering  <meyering@redhat.com>
9667
9668         maint.mk: fix description in comment
9669         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9670
9671         ignore-value: remove deprecated ignore_ptr function
9672         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9673         * NEWS: Note this.
9674
9675 2012-01-09  Jim Meyering  <meyering@redhat.com>
9676
9677         test-init.sh: avoid a subshell
9678         * tests/test-init.sh: Remove protective subshell.
9679         Suggested by Bernhard Voelker.  While a subshell is normally
9680         required to protect against older shells (Solaris, FreeBSD) that
9681         warn about a missing program before performing redirection, the
9682         shell-selection tests performed by init.sh probably exclude any
9683         offending shell.
9684
9685 2012-01-08  Bruno Haible  <bruno@clisp.org>
9686
9687         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9688         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9689         variable.
9690
9691 2012-01-08  Bruno Haible  <bruno@clisp.org>
9692
9693         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9694         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9695         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9696         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9697         macro.
9698         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9699         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9700         * lib/spawn_faction_addopen.c: Add workaround implementation if
9701         HAVE_WORKING_POSIX_SPAWN.
9702         * modules/spawn (Makefile): Substitute
9703         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9704         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9705         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9706         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9707         (Depends-on): Update conditions.
9708         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9709         the Solaris 11 bug.
9710
9711 2012-01-08  Bruno Haible  <bruno@clisp.org>
9712
9713         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9714         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9715         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9716         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9717         macro.
9718         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9719         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9720         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9721         HAVE_WORKING_POSIX_SPAWN.
9722         * modules/spawn (Makefile): Substitute
9723         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9724         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9725         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9726         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9727         (Depends-on): Update conditions.
9728         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9729         the Solaris 11 bug.
9730
9731 2012-01-08  Bruno Haible  <bruno@clisp.org>
9732
9733         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9734         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9735         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9736         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9737         HAVE_WORKING_POSIX_SPAWN.
9738         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9739         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9740         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9741         * lib/spawn_faction_addclose.c: Add workaround implementation if
9742         HAVE_WORKING_POSIX_SPAWN.
9743         * modules/spawn (Makefile): Substitute
9744         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9745         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9746         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9747         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9748         (Depends-on): Update conditions.
9749         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9750         the Solaris 11 bug.
9751
9752 2012-01-08  Bruno Haible  <bruno@clisp.org>
9753
9754         doc: Update for Solaris 11 2011-11.
9755         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9756         * m4/printf.m4: Update comments.
9757
9758 2012-01-08  Bruno Haible  <bruno@clisp.org>
9759
9760         mktime: Avoid compilation error on Solaris 11.
9761         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9762
9763 2012-01-08  Bruno Haible  <bruno@clisp.org>
9764
9765         doc: Small fix.
9766         * doc/posix-headers/nl_types.texi: Correct platforms list.
9767
9768 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9769
9770         Add lgpl-3.0 module.
9771         * MODULES.html.sh (Support for building documentation): Add
9772         lgpl-3.0.
9773         * modules/lgpl-3.0: New file.
9774
9775 2012-01-08  Jim Meyering  <meyering@redhat.com>
9776
9777         select.c: indent with spaces, not TABs
9778         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9779
9780 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9781
9782         quotearg: do not use grave accent for left quote
9783         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9784         locale_quoting_style.
9785         (quotearg_buffer_restyled): Fix example.
9786         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9787
9788 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9789
9790         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9791         Most programs do not have translation catalogs for English and much
9792         less separate catalogs for British and American English.  Drop the
9793         suggestion to translators about these two, and provide it
9794         automatically for Unicode locales.  Like most programs, even those
9795         using American English, we use single quotation marks.  This conflicts
9796         with the American typographic convention, but works better when you
9797         cite the entire error message within double quotes.  It also tries not
9798         to clash with established practice and with what non-gnulib programs
9799         will usually do.
9800         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9801         using an UTF-8 or GB-18030 locale.  The list of other locales with
9802         quotes was provided by Bruno Haible.
9803         (quotearg_buffer_restyled): Adjust instructions to translators.
9804         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9805         text, since this would be wrong when using Unicode.
9806         * modules/quotearg: Depend on c-strcaseeq.
9807
9808 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9809
9810         quotearg: fix Wikipedia link
9811         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9812
9813 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9814
9815         Fix for mingw with MSVC9.
9816         * m4/ld-version-script.m4: Check that compiler rejects version
9817         scripts with syntax errors.  Reported by Bruno Haible
9818         <bruno@clisp.org>.
9819
9820 2012-01-06  Bruno Haible  <bruno@clisp.org>
9821
9822         Talk about "native Windows API", not "Woe32".
9823         * lib/accept4.c: Update comments to mention native Windows.
9824         * lib/execute.c: Likewise.
9825         * lib/fatal-signal.c: Likewise.
9826         * lib/localcharset.c: Likewise.
9827         * lib/nanosleep.c: Likewise.
9828         * lib/nl_langinfo.c: Likewise.
9829         * lib/pclose.c: Likewise.
9830         * lib/pipe-filter-gi.c: Likewise.
9831         * lib/pipe-filter-ii.c: Likewise.
9832         * lib/pipe.c: Likewise.
9833         * lib/pipe2.c: Likewise.
9834         * lib/popen.c: Likewise.
9835         * lib/progreloc.c: Likewise.
9836         * lib/relocatable.c: Likewise.
9837         * lib/sigaction.c: Likewise.
9838         * lib/sigprocmask.c: Likewise.
9839         * lib/spawn-pipe.h: Likewise.
9840         * lib/spawn-pipe.c: Likewise.
9841         * lib/spawni.c: Likewise.
9842         * lib/stat-time.h: Likewise.
9843         * lib/w32spawn.h: Likewise.
9844         * tests/test-isatty.c: Likewise.
9845         * lib/config.charset: More comments.
9846         * doc/gnulib-intro.texi: Mention native Windows.
9847         * doc/posix-functions/_Exit_C99.texi: Likewise.
9848         * doc/posix-headers/fcntl.texi: Likewise.
9849
9850 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9851
9852         argp: Avoid crash if translator uses % characters in a translation.
9853         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9854         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9855
9856 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9857
9858         doc: C11 and C++11 are now official
9859         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9860         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9861         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9862         * modules/stdalign:
9863         Replace references to draft C1X to C11, and to draft C++0X to C++11.
9864
9865 2012-01-06  Bruno Haible  <bruno@clisp.org>
9866
9867         uc-is-grapheme-break tests: Tweak.
9868         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
9869         message.
9870
9871 2012-01-06  Bruno Haible  <bruno@clisp.org>
9872
9873         test-init.sh: correct the test for diff -u
9874         * tests/test-init.sh: Also redirect stdout to /dev/null.
9875
9876 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9877
9878         Use ', not `, for quoting output.
9879         * build-aux/announce-gen (usage, sizes, print_news_deltas)
9880         (print_changelog_deltas, get_tool_versions, main program):
9881         * build-aux/git-version-gen:
9882         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
9883         * build-aux/move-if-change (help):
9884         * build-aux/useless-if-before-free (usage, main program):
9885         * check-module (parse_module_file, usage)
9886         (find_included_lib_files, check_module):
9887         * lib/argmatch.c (main) [TEST]:
9888         * lib/argp-help.c (_help):
9889         * lib/getopt1.c (main) [TEST]:
9890         * lib/git-merge-changelog.c (usage):
9891         * lib/xstrtol-error.c (xstrtol_error):
9892         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
9893         * m4/argz.m4 (gl_FUNC_ARGZ):
9894         * m4/bison.m4 (gl_BISON):
9895         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
9896         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9897         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9898         * m4/fpending.m4 (gl_PREREQ_FPENDING):
9899         * m4/gc-random.m4 (gl_GC_RANDOM):
9900         * m4/intl.m4 (gt_CHECK_DECL):
9901         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
9902         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
9903         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
9904         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
9905         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9906         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
9907         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
9908         * tests/test-dirname.c (main):
9909         * tests/test-getpass.c (main):
9910         * tests/test-iconvme.c (main):
9911         * tests/test-parse-datetime.c (LOG):
9912         * tests/test-xstrtoimax.sh:
9913         * tests/test-xstrtol.sh:
9914         * tests/test-xstrtoll.sh:
9915         * tests/test-xstrtoumax.sh:
9916         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9917         * top/GNUmakefile (abort-due-to-no-makefile):
9918         Quote 'like this', not `like this', as per the recent change to
9919         the GNU coding standards.
9920
9921 2012-01-05  Bruno Haible  <bruno@clisp.org>
9922
9923         strtoimax: Don't force a replacement on systems where intmax_t is int.
9924         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9925         'intmax_t' is not larger than 'int'.
9926         Reported by Pádraig Brady <P@draigBrady.com>.
9927
9928 2012-01-05  Bruno Haible  <bruno@clisp.org>
9929
9930         doc: Mention NetBSD bugs.
9931         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9932         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9933
9934 2012-01-05  Bruno Haible  <bruno@clisp.org>
9935
9936         strtoumax tests: Enhance tests.
9937         * tests/test-strtoumax.c (main): Add tests for large values.
9938
9939 2012-01-05  Bruno Haible  <bruno@clisp.org>
9940
9941         strtoimax: Work around AIX 5.1 bug.
9942         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9943         definition.
9944         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9945         Set HAVE_STRTOIMAX.
9946         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9947         REPLACE_STRTOIMAX.
9948         * modules/inttypes-incomplete (Makefile.am): Substitute
9949         REPLACE_STRTOIMAX.
9950         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9951         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9952         (Depends-on): Update conditions.
9953         * tests/test-strtoimax.c (main): Add tests for large values.
9954         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9955
9956 2012-01-05  Bruno Haible  <bruno@clisp.org>
9957
9958         inttypes: Modernize.
9959         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9960         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9961         (Makefile.am): Update inttypes.h rule.
9962
9963 2012-01-05  Jim Meyering  <meyering@redhat.com>
9964
9965         init.sh: don't waste a subshell just to redirect stderr
9966         * tests/init.sh: In testing for diff -u and diff -c, use a
9967         stderr-redirecting exec inside `...` rather than a subshell.
9968
9969         test-init.sh: avoid failure on HP-UX 11.00
9970         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9971         resolves to diff -c or cmp.  Reported by Bruno Haible.
9972
9973 2012-01-05  Bruno Haible  <bruno@clisp.org>
9974
9975         Tests for module 'strtoull'.
9976         * modules/strtoull-tests: New file.
9977         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9978
9979 2012-01-05  Bruno Haible  <bruno@clisp.org>
9980
9981         Tests for module 'strtoll'.
9982         * modules/strtoll-tests: New file.
9983         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9984
9985 2012-01-05  Bruno Haible  <bruno@clisp.org>
9986
9987         Tests for module 'strtoul'.
9988         * modules/strtoul-tests: New file.
9989         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9990
9991 2012-01-05  Bruno Haible  <bruno@clisp.org>
9992
9993         Tests for module 'strtol'.
9994         * modules/strtol-tests: New file.
9995         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9996
9997 2012-01-04  Jim Meyering  <meyering@redhat.com>
9998
9999         test-init.sh: accommodate Solaris 5.10's different diff -u output
10000         * tests/test-init.sh: Also exempt @@ lines from the comparison
10001         of diff output, since Solaris 5.10 and GNU diff formats differ.
10002         Reported by Stefano Lattarini.
10003
10004 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10005
10006         test-posixtm: don't assume signed integer wraparound
10007         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10008         after signed integer overflow.  Inspired by (though it may not
10009         fix) Bruno Haible's bug report in
10010         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10011
10012         Spell out "Windows 9x" and "Windows XP".
10013         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10014         "Windows 9x" and "WinXP" with "Windows XP".
10015
10016 2012-01-04  Jim Meyering  <meyering@redhat.com>
10017
10018         test-vc-list-files-cvs.sh: remove obsolete comment
10019         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10020         double exit.  Now that's all encapsulated via skip_ and Exit.
10021
10022 2012-01-04  Bruno Haible  <bruno@clisp.org>
10023
10024         Talk about "native Windows API", not "Win32".
10025         * lib/classpath.c: Update comments to mention native Windows.
10026         * lib/csharpexec.c: Likewise.
10027         * lib/dup2.c: Likewise.
10028         * lib/error.c: Likewise.
10029         * lib/fcntl.c: Likewise.
10030         * lib/filename.h: Likewise.
10031         * lib/findprog.c: Likewise.
10032         * lib/get-rusage-as.c: Likewise.
10033         * lib/get-rusage-data.c: Likewise.
10034         * lib/getpagesize.c: Likewise.
10035         * lib/javaexec.c: Likewise.
10036         * lib/msvc-inval.c: Likewise.
10037         * lib/msvc-nothrow.c: Likewise.
10038         * lib/nanosleep.c: Likewise.
10039         * lib/nonblocking.c: Likewise.
10040         * lib/printf-parse.c: Likewise.
10041         * lib/setlocale.c: Likewise.
10042         * lib/sigaction.c: Likewise.
10043         * lib/strerror_r.c: Likewise.
10044         * lib/tmpdir.c: Likewise.
10045         * lib/vasnprintf.c: Likewise.
10046         * lib/w32spawn.h: Likewise.
10047         * lib/waitpid.c: Likewise.
10048         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10049         * m4/locale-ar.m4: Likewise.
10050         * m4/locale-fr.m4: Likewise.
10051         * m4/locale-ja.m4: Likewise.
10052         * m4/locale-tr.m4: Likewise.
10053         * m4/locale-zh.m4: Likewise.
10054         * m4/printf.m4: Likewise.
10055         * tests/test-cloexec.c: Likewise.
10056         * tests/test-copy-acl.sh: Likewise.
10057         * tests/test-copy-file.sh: Likewise.
10058         * tests/test-file-has-acl.sh: Likewise.
10059         * tests/test-set-mode-acl.sh: Likewise.
10060         * tests/test-dup-safer.c: Likewise.
10061         * tests/test-dup2.c: Likewise.
10062         * tests/test-dup3.c: Likewise.
10063         * tests/test-fcntl.c: Likewise.
10064         * tests/test-nonblocking-pipe.h: Likewise.
10065         * tests/test-nonblocking-socket.h: Likewise.
10066         * tests/test-pipe.c: Likewise.
10067         * tests/test-pipe2.c: Likewise.
10068         * tests/test-spawn-pipe-child.c: Likewise.
10069         * doc/acl-resources.txt: Likewise.
10070         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10071         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10072         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10073         * lib/localcharset.c: Update comments to mention native Windows.
10074         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10075         * lib/localename.c: Likewise.
10076         * lib/progreloc.c: Likewise.
10077         * lib/relocatable.c: Likewise.
10078         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10079         (windows_compute_revents): Renamed from win32_compute_revents.
10080         (windows_compute_revents_socket): Renamed from
10081         win32_compute_revents_socket.
10082         * lib/select.c: Update comments to mention native Windows.
10083         (windows_poll_handle): Renamed from win32_poll_handle.
10084         * m4/threadlib.m4: Update comments to mention native Windows.
10085         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10086         --enable-threads=windows instead of --enable-threads=win32. Set
10087         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10088         * lib/glthread/lock.h: Update comments to mention native Windows.
10089         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10090         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10091         USE_WIN32_THREADS.
10092         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10093         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10094         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10095         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10096         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10097         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10098         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10099         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10100         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10101         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10102         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10103         * tests/test-tls.c: Likewise.
10104         Rationale:
10105         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10106         on both 32-bit and 64-bit Windows systems.
10107         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10108         line of distinction is between "native Windows" on one side and Unix/
10109         POSIX systems on the other side. More details in
10110         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10111         Suggested by Paul Eggert.
10112
10113 2012-01-03  Bruno Haible  <bruno@clisp.org>
10114
10115         isatty: Support for MSVC 9.
10116         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10117         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10118         (_isatty_nothrow): New function.
10119         (isatty): Use it instead of _isatty.
10120         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10121         * lib/poll.c (IsConsoleHandle): Likewise.
10122         * lib/select.c (IsConsoleHandle): Likewise.
10123         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10124         (gl_PREREQ_ISATTY): New macro.
10125         * modules/isatty (Depends-on): Add msvc-inval.
10126         (configure.ac): Invoke gl_PREREQ_ISATTY.
10127
10128 2012-01-03  Jim Meyering  <meyering@redhat.com>
10129
10130         maint.mk: remove temporary transition aid from over 1.5 years ago
10131         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10132         purpose was to aid in the transition (avoiding silent malfunction)
10133         from that old name to the new _sc_search_regexp.  This shim was
10134         added by commit 219c504b.
10135
10136         init.sh: do not try to accommodate compare arguments starting with "-"
10137         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10138         compare arguments that start with "-".  Besides, we do not worry
10139         about this when invoking diff or cmp; why start now with sed?
10140         Using "--" to separate options from argument would trigger sed
10141         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10142         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10143
10144 2012-01-02  Bruno Haible  <bruno@clisp.org>
10145
10146         Enhance tests for module 'isatty'.
10147         * modules/isatty-tests (Depends-on): Add pipe-posix.
10148         * tests/test-isatty.c: Include <fcntl.h>.
10149         (DEV_NULL): New macro.
10150         (main): Test the resut of isatty() also on regular files, pipes, and
10151         /dev/null.
10152
10153         New module 'isatty'.
10154         * lib/unistd.in.h (isatty): New declaration.
10155         * lib/isatty.c: New file, based on an idea of
10156         Bastien Roucariès <roucaries.bastien@gmail.com>.
10157         * m4/isatty.m4: New file.
10158         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10159         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10160         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10161         REPLACE_ISATTY.
10162         * modules/isatty: New file.
10163         * doc/posix-functions/isatty.texi: Mention the new module.
10164         Suggested by Paolo Bonzini.
10165
10166 2012-01-02  Bruno Haible  <bruno@clisp.org>
10167
10168         canonicalize: Tweak 2011-12-29 commit.
10169         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10170         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10171
10172 2012-01-02  Jim Meyering  <meyering@redhat.com>
10173
10174         gitlog-to-changelog: describe input syntax in --help output
10175         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10176
10177         gitlog-to-changelog: fix typo in --help: show backslash before email @
10178         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10179         in sources, but not in actual output.
10180
10181 2011-12-30  Jim Meyering  <meyering@redhat.com>
10182
10183         gitlog-to-changelog: don't malfunction when name contains %-directive
10184         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10185         in a name string cause trouble.  E.g., with a user name of "%s",
10186         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10187
10188 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10189
10190         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10191         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10192         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10193         the "  (tiny change)" notation that is appended to the standard
10194         ChangeLog "date  name  email" header line.
10195
10196 2012-01-01  Jim Meyering  <meyering@redhat.com>
10197
10198         test-framework-sh: init.sh: fix "make dist" failure
10199         When using gnulib-tool's --with-tests option and any module that
10200         depends on test-framework-sh, "make dist" would fail due to the
10201         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10202         in the gltests directory, and not in the gllib/ directory.
10203         One way to work around that is to move the EXTRA_DIST += init.sh
10204         from the primary module to the -tests one:
10205         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10206         * modules/test-framework-sh (Makefile.am): ...not here.
10207         Reported by Tom G. Christensen in
10208         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10209
10210         version-etc: update copyright year reported by --version
10211         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10212
10213 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10214
10215         canonicalize: only stat() if required
10216         * lib/canonicalize.c (canonicalize_filename_mode):
10217         Avoid calling l?stat() when both CAN_MISSING,
10218         and CAN_NOLINKS are set, as we neither need
10219         to resolve symlinks or test component existence.
10220
10221 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10222
10223         doc: cover st_ino issues once; add OpenVMS etc.
10224         * doc/posix-functions/stat.texi (stat):
10225         * doc/posix-functions/lstat.texi (lstat):
10226         * doc/posix-functions/fstatat.texi (fstatat):
10227         * doc/posix-functions/fstat.texi (fstat):
10228         Move general 'struct stat' stuff to sys_stat.texi,
10229         leaving behind a pointer.
10230         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10231         Merge duplicate info about 'struct stat' problems into here.
10232         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10233         and suggest partial workarounds.
10234
10235         same-inode: port to OpenVMS
10236         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10237         three st_ino values.
10238
10239 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10240
10241         canonicalize: fix references to stat() and lstat()
10242         * lib/canonicalize.c (canonicalize_filename_mode):
10243         Ensure references always resolve to a replacement
10244         function if required (even via a macro).
10245
10246 2011-12-30  Jim Meyering  <meyering@redhat.com>
10247
10248         gitlog-to-changelog: remove a little duplication
10249         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10250         rather than twice.
10251
10252 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10253
10254         canonicalize: add support for not resolving symlinks
10255         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10256         indicate we don't want to follow symlinks.  Also
10257         provide CAN_MODE_MASK to aid setting these existing
10258         mutually exclusive values.
10259         * lib/canonicalize.c (canonicalize_filename_mode):
10260         Extract the flags from can_mode parameter, which
10261         are currently just used to select between stat()
10262         and lstat().  Also ensure that mutually exclusive
10263         values are flagged immediately as invalid.
10264         * tests/test-canonicalize.c: Verify symlinks are
10265         not followed, and that invalid flag combinations
10266         are diagnosed.
10267
10268 2011-12-25  Jim Meyering  <meyering@redhat.com>
10269
10270         gitlog-to-changelog: do not clump multi-paragraph entries
10271         Identical header lines (date,name,email+coauthors) are suppressed,
10272         thus putting all entries with those same characteristics under
10273         a single header.  However, when a log entry consists of two or
10274         more paragraphs, it may not be clear where it starts and ends.
10275         This change makes it so that such an entry is always separated
10276         from others by a header line, even when that header would
10277         otherwise be suppressed.
10278         * build-aux/gitlog-to-changelog: Implement the above.
10279         Inspired by a related request from Stefano Lattarini in
10280         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10281
10282 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10283
10284         announce-gen: fix `cmd' typo in diagnostic
10285         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10286         diagnostic: a missing '$' meant that the command was not output.
10287
10288 2011-12-23  Jim Meyering  <meyering@redhat.com>
10289
10290         test-framework-sh: distribute init.sh
10291         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10292         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10293         fail due to the lack of init.sh.
10294
10295         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10296         * modules/atexit-tests: Rather than listing tests/init.sh,
10297         now that there's a module for it, simply depend on that new module.
10298         * modules/closein-tests: Likewise.
10299         * modules/exclude-tests: Likewise.
10300         * modules/getcwd-tests: Likewise.
10301         * modules/perror-tests: Likewise.
10302         * modules/pread-tests: Likewise.
10303         * modules/pwrite-tests: Likewise.
10304         * modules/vc-list-files-tests: Likewise.
10305         * modules/verify-tests: Likewise.
10306         * modules/xalloc-die-tests: Likewise.
10307         * modules/xstrtoimax-tests: Likewise.
10308         * modules/xstrtol-tests: Likewise.
10309         * modules/xstrtoll-tests: Likewise.
10310         * modules/xstrtoumax-tests: Likewise.
10311         * modules/yesno-tests: Likewise.
10312
10313 2011-12-22  Jim Meyering  <meyering@redhat.com>
10314
10315         test-framework-sh: add minimal tests of init.sh's compare function
10316         * modules/test-framework-sh-tests: New file.
10317         * tests/test-init.sh: New file.
10318
10319         test-framework-sh: new module
10320         * modules/test-framework-sh: New file.
10321         * MODULES.html.sh (Support for maintaining and releasing projects):
10322         List it.
10323
10324         init.sh: do not emit simulated diff output to stderr
10325         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10326
10327 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10328
10329         .gitignore: ignore gnulib.dvi and regex.info
10330         * doc/.gitignore:add gnulib.dvi and regex.info
10331
10332 2011-12-22  Jim Meyering  <meyering@redhat.com>
10333
10334         init.sh: correct previous change
10335         * tests/init.sh (compare): My previous change was wrong.
10336         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10337
10338         init.sh: avoid unwarranted test failure when using "set -e"
10339         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10340         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10341         a use like "compare exp out" would get evoke an unconditional failure.
10342
10343 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10344
10345         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10346         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10347         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10348         autoreconf that did not.
10349         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10350         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10351
10352 2011-12-17  Jim Meyering  <meyering@redhat.com>
10353
10354         bootstrap: remove some now-unneeded code
10355         This script arose back when gnulib-tool was young.
10356         Since then, it has seen improvements that render much of this
10357         script unnecessary.  In particular, it can now make symlinks
10358         to the files it uses.  Also, I no longer see as much value in
10359         marking files as read-only via comments.
10360         If you relied on the symlink-creation feature of the preceding
10361         version of this script, you can get most of that functionality
10362         by adding the --symlink option to the definition of
10363         gnulib_tool_option_extras in your bootstrap.conf file.
10364         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10365         Run autopoint and libtoolize *before* gnulib-tool.
10366         After it, run an abbreviated autoreconf, rather than a loop around
10367         all tools.
10368         (slirp, bt_mark_as_generated): Remove functions.
10369
10370 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10371
10372         ftoastr: fix typo
10373         * lib/ftoastr.h: Fix misspelling in comment.
10374
10375 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10376
10377         * top/README-release: fix punctuation.
10378
10379 2011-12-17  Jim Meyering  <meyering@redhat.com>
10380
10381         bootstrap: correct the recent buildreq change
10382         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10383         had no effect.
10384         * build-aux/bootstrap (buildreq): Bracket each search term with
10385         "*...*", so that the shell "case" statement works as intended.
10386         Add comments.
10387
10388 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10389
10390         build: let bootstrap resort to wget when downloading .po files
10391         * build-aux/bootstrap (download_po_files): Fallback to wget when
10392         downloading the .po files via rsync fails.  This is necessary to
10393         bootstrap from behind a strict firewall.
10394
10395 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10396
10397         stdint: don't assume C++11 when compiling with g++
10398         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10400         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10401         work also in C++ before C++11, as that improperly inhibits
10402         generating a substitute stdint.h for that case.
10403
10404 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10405
10406         alloca: protect comment from gnulib-tool
10407         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10408         that gnulib-tool doesn't think it's a license, and munge it to
10409         say "GCC version 3".
10410
10411 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10412
10413         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10414         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10415         $(abs_top_builddir) instead of $(top_builddir).
10416
10417 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10418
10419         strftime-tests: also test nanoseconds
10420         * tests/test-strftime.c (T): Add a test of %N.
10421
10422 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10423
10424         inttypes, stdint: add C++11 support
10425         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10426         when including inttypes.h and stdint.h.  Support this change to
10427         the standard.
10428         * doc/posix-headers/inttypes.texi (inttypes.h):
10429         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10430         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10431         Define if not defined already, for the benefit of pre-C++11 hosts.
10432         Define the standard format macros (e.g., PRId8) always.
10433         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10434         Likewise, if __cpluspus.  Define the standard constant and limit
10435         macros (e.g., INT8_C, INT8_MAX) always.
10436         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10437         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10438         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10439         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10440         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10441         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10442         Likewise.
10443
10444 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10445
10446         nonblocking tests: Fix test failure on Linux/PPC.
10447         Suggested by Prerna Saxena in
10448         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10449         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10450         Set to 1100000.
10451
10452 2011-12-12  Jim Meyering  <meyering@redhat.com>
10453
10454         argmatch: don't hard-code `' when listing valid option arguments
10455         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10456         use the quote function to add quotes.  Use fputs rather than
10457         fprintf for the format string with no format directive.
10458
10459 2011-12-07  Eric Blake  <eblake@redhat.com>
10460
10461         bootstrap: detect tools required by gnulib-tool
10462         * build-aux/bootstrap (buildreq): Provide minimum implicit
10463         dependencies.
10464         * DEPENDENCIES: Mention patch as a prereq.
10465
10466 2011-12-04  Bruno Haible  <bruno@clisp.org>
10467
10468         sethostname: Port to Windows platforms.
10469         * lib/sethostname.c: Provide an alternate implementation for Windows
10470         platforms.
10471         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10472         (main): Skip the test if sethostname() fails with EPERM. On Windows
10473         platforms, don't check the result of gethostname().
10474
10475 2011-12-04  Bruno Haible  <bruno@clisp.org>
10476             Jim Meyering  <meyering@redhat.com>
10477
10478         tests: Avoid spurious error message on platforms without mktemp program.
10479         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10480
10481 2011-12-04  Bruno Haible  <bruno@clisp.org>
10482
10483         sethostname: Fix documentation.
10484         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10485         "not fixed" section.
10486
10487 2011-12-03  Bruno Haible  <bruno@clisp.org>
10488
10489         gnulib-tool: Verify that the License field is present and non-empty.
10490         * gnulib-tool (func_get_license_raw): New function, extracted from
10491         func_get_license.
10492         (func_get_license): Use it. Warn if the module is not a test module and
10493         has no license.
10494         Suggested by Jim Meyering.
10495
10496 2011-12-03  Bruno Haible  <bruno@clisp.org>
10497
10498         sethostname tests: Fix link error on mingw.
10499         * tests/test-sethostname1.c: New file, extracted from
10500         tests/test-sethostname.c.
10501         * tests/test-sethostname2.c: New file, extracted from
10502         tests/test-sethostname.c.
10503         * tests/test-sethostname.c: Remove file.
10504         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10505         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10506         (Depends-on): Add gethostname.
10507         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10508         Link the latter with $(GETHOSTNAME_LIB).
10509
10510         sethostname tests: Fix compilation error on mingw.
10511         * tests/test-sethostname.c: Don't include <sys/types.h>.
10512         (geteuid): Use a dummy value without uid_t.
10513         * modules/sethostname-tests (Depends-on): Remove sys_types.
10514
10515         sethostname tests: Avoid a gcc warning.
10516         * tests/test-sethostname.c (main): Remove an unused variable.
10517
10518         Tweak last commit.
10519         * modules/sethostname-tests (Files): Sort by decreasing importance.
10520         (configure.ac): Check for geteuid.
10521         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10522         the test when there's nothing to test. Drop an unnecessary cast.
10523         Improve an error message. Verify that the final sethostname() call
10524         succeeds.
10525
10526 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10527
10528         Add a test suite for the sethostname module.
10529         * modules/sethostname-tests: New file.  A test program
10530         for the sethostname module.
10531         * tests/test-sethostname.c: Likewise.
10532
10533 2011-12-03  Bruno Haible  <bruno@clisp.org>
10534
10535         Tweak last commit.
10536         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10537         Fix preprocessor directives indentation. Fix typos.
10538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10539         * modules/unistd (Makefile): Likewise.
10540
10541 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10542
10543         Integrate the sethostname module into unistd.
10544         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10545         into the unistd.h header.
10546         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10547         preprocessor directives.
10548         * modules/unistd: Setup the Makefile substitutions of the
10549         SETHOSTNAME preprocessor directives.
10550
10551 2011-12-03  Bruno Haible  <bruno@clisp.org>
10552
10553         Tweak last commit.
10554         * lib/sethostname.c: Don't include <string.h>.
10555         (sethostname): No need to copy the argument string to the stack. Don't
10556         call clearerr. Preserve errno when fprintf failed.
10557         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10558         Don't invoke AC_REPLACE_FUNCS.
10559         * modules/sethostname (Link): Remove empty section.
10560         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10561         failure problem.
10562
10563 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10564
10565         New module 'sethostname'.
10566         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10567         for systems that lack it.
10568         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10569         sethostname declaration and function.
10570         * modules/sethostname: New file.  Define the sethostname module.
10571
10572 2011-12-03  Bruno Haible  <bruno@clisp.org>
10573
10574         Tweak last commit.
10575         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10576
10577 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10578
10579         Split the HOST_NAME_MAX detection into a separate m4 macro.
10580         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10581         macro so it can be used by the pending sethostname module.
10582
10583 2011-12-03  Bruno Haible  <bruno@clisp.org>
10584
10585         Fix module descriptions syntax.
10586         * modules/argv-iter (License): Fix syntax.
10587         * modules/di-set (License): Likewise.
10588         * modules/ino-map (License): Likewise.
10589         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10590
10591 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10592
10593         stdalign: port to Clang 3.0
10594         Problem reported by Simon Josefsson in
10595         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10596         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10597         which has <stdalign.h> but which does not define alignof.
10598         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10599
10600 2011-12-01  Eric Blake  <eblake@redhat.com>
10601
10602         mktempd: silence dd usage
10603         * build-aux/mktempd (rand_bytes): Silence dd.
10604
10605 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10606
10607         manywarnings: Don't mention gcc version in docstring.
10608         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10609         Jim Meyering <meyering@redhat.com>.
10610
10611 2011-11-30  Jim Meyering  <meyering@redhat.com>
10612
10613         hash: mark a few floating point constants with "f" suffix
10614         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10615         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10616         floating point constants with "f", since they're destined to be
10617         saved/used as "float"s.
10618
10619 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10620
10621         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10622         * tests/test-float.c (test_long_double): Correct and re-enable the
10623         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10624
10625 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10626
10627         Avoid subtracting two pointers that don't point into the same block.
10628         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10629         only pointers into the same memory block are subtracted. We cannot
10630         assume that sizeof (ptrdiff_t) == sizeof (void *).
10631
10632 2011-11-29  Eric Blake  <eblake@redhat.com>
10633
10634         maint.mk: add syntax check for use of compare from init.sh
10635         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10636         moved here from coreutils.
10637
10638         manywarnings: drop -Wunsuffixed-float-constants
10639         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10640         '1.0D', which is the only way to silence this warning for 'double'.
10641
10642 2011-11-29  Jim Meyering  <meyering@redhat.com>
10643
10644         hash: mark compute_bucket_size with the pure attribute
10645         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10646
10647         quotearg, propername: correct pragma guard expression
10648         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10649         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10650
10651 2011-11-28  Jim Meyering  <meyering@redhat.com>
10652
10653         propername: do not mark proper_name with the const attribute
10654         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10655         since it examines data pointed to by its parameter.
10656         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10657         the suggestion from -Wsuggest-attribute=const.
10658
10659         propername: mark one more function as const
10660         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10661
10662 2011-11-27  Jim Meyering  <meyering@redhat.com>
10663
10664         mark functions with const and pure attributes
10665
10666         Mark functions per suggestions from gcc-4.6 when using these options:
10667         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10668         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10669         Follow these guidelines: when possible, apply the attribute to
10670         an extern declaration, not to its definition.  Apply it to the
10671         definition only when the definition is static.
10672         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10673         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10674         * lib/base64.h (isbase64): Likewise.
10675         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10676         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10677         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10678         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10679         (c_tolower, c_toupper): Likewise.
10680         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10681         * lib/chdir-long.c (find_non_slash): Likewise.
10682         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10683         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10684         * lib/file-type.h (file_type): Likewise.
10685         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10686         * lib/filevercmp.c (verrevcmp): Likewise.
10687         * lib/freadahead.h (freadahead): Likewise.
10688         * lib/fts.c (fts_maxarglen): Likewise.
10689         * lib/hash-pjw.h (hash_pjw): Likewise.
10690         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10691         * lib/hash.c (is_prime, next_prime): Likewise.
10692         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10693         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10694         (hash_table_ok, hash_get_first, hash_string): Likewise.
10695         (compute_bucket_size): Likewise.
10696         * lib/i-ring.h (i_ring_empty): Likewise.
10697         * lib/isnan.c (isnanl): Likewise.
10698         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10699         * lib/memcasecmp.h (memcasecmp): Likewise.
10700         * lib/memchr2.h (memchr2): Likewise.
10701         * lib/memcmp2.h (memcmp2): Likewise.
10702         * lib/parse-datetime.y (lookup_zone): Likewise.
10703         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10704         [!WINDOWS_SOCKETS]: Likewise.
10705         * lib/strnlen1.h (strnlen1): Likewise.
10706         * lib/uniwidth.in.h (uc_width): Likewise.
10707         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10708         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10709         (quoting_options_from_style): Add a comment.
10710         * lib/propername.h (proper_name): Add a comment.
10711
10712 2011-11-27  Bruno Haible  <bruno@clisp.org>
10713
10714         Remove unused macros from !_LIBC code in glibc-borrowed files.
10715         * lib/fnmatch.c (STRCOLL): Remove macro.
10716         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10717         * lib/glob.c (__stat, __readdir64): Remove macros.
10718         * lib/tempname.c (__open64, __xstat64): Remove macros.
10719         Suggested by Paul Eggert.
10720
10721 2011-11-27  Bruno Haible  <bruno@clisp.org>
10722
10723         getcwd: Fix link error on MSVC 9.
10724         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10725
10726 2011-11-27  Bruno Haible  <bruno@clisp.org>
10727
10728         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10729         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10730         HAVE_OPENDIR is 0.
10731         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10732         HAVE_CLOSEDIR is 0.
10733         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10734         is 0.
10735         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10736
10737 2011-11-27  Bruno Haible  <bruno@clisp.org>
10738
10739         getcwd: Fix bug from 2011-08-17.
10740         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10741         platforms that need it.
10742         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10743         code of 4 to be a failure, not a success. This ensures that
10744         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10745
10746 2011-11-27  Bruno Haible  <bruno@clisp.org>
10747
10748         binary-io tests: Avoid test failure on mingw when libtool is used.
10749         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10750         Don't verify the size of t-bin-out1.tmp here.
10751         * tests/test-binary-io.sh: Verify it here.
10752         Reported by Simon Josefsson.
10753
10754 2011-11-26  Bruno Haible  <bruno@clisp.org>
10755
10756         Fix conflict between two instantiations of module 'unistd'.
10757         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10758         ${include_guard_prefix} also in the autoconf snippet.
10759         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10761         GNULIB_UNISTD_H_GETOPT.
10762         * modules/getopt-posix (configure.ac): Set the
10763         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10764         * modules/getopt-gnu (configure.ac): Likewise.
10765         * modules/unistd (Makefile.am): Change the substitution value of
10766         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10767         Reported by Simon Josefsson.
10768
10769 2011-11-25  Bruno Haible  <bruno@clisp.org>
10770
10771         pagealign_alloc: Doc and comments.
10772         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10773         module.
10774         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10775
10776 2011-11-25  Jim Meyering  <meyering@redhat.com>
10777
10778         test-update-copyright.sh: avoid false-positive failure
10779         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10780         around false positive failure on Cygwin/Windows.  The latter was
10781         matching erroneously-created files with names like
10782         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10783
10784 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10785
10786         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10787         * m4/valgrind-tests.m4: Check that the parameters that will be
10788         used works, not just a subset of them.  Reported by Bruno Haible
10789         <bruno@clisp.org>.
10790
10791 2011-11-24  Jim Meyering  <meyering@redhat.com>
10792
10793         test-stdalign.c: comment out long double tests
10794         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10795         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10796         error: '_Alignas' specifiers cannot reduce alignment of \
10797         'static_longdouble_alignas'.
10798
10799 2011-11-22  Jim Meyering  <meyering@redhat.com>
10800
10801         init.sh: make "compare /dev/null FILE" output more readable
10802         * tests/init.sh (compare_): Document the preferred order of arguments.
10803         (emit_diff_u_header_): New function.
10804         (compare_dev_null_): Emit a simulated diff, rather than just the
10805         contents of the unexpected file.  Suggestion from Bruno Haible.
10806
10807 2011-11-21  Jim Meyering  <meyering@redhat.com>
10808             Eric Blake  <eblake@redhat.com>
10809
10810         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10811         * tests/init.sh: Make our compare function slightly more portable.
10812         Reported by Bruno Haible in
10813         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10814
10815 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10816
10817         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10818         before using it, in code that ends up in config.h.
10819
10820 2011-11-20  Bruno Haible  <bruno@clisp.org>
10821
10822         getcwd: Work around getcwd bug on AIX 5..7.
10823         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10824         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10825         Use a different value for gl_cv_func_getcwd_path_max. Move the
10826         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10827         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10828         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10829         Define HAVE_MINIMALLY_WORKING_GETCWD.
10830         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10831         where it is not even minimally working, that is, on AIX.
10832         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10833         m4/getcwd-path-max.m4.
10834         (main): Update exit code computation.
10835         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10836         getcwd does not handle long file names.
10837
10838 2011-11-20  Bruno Haible  <bruno@clisp.org>
10839
10840         getcwd: Fix bug from 2009-09-10.
10841         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10842         like "no".
10843
10844 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10845
10846         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10847
10848 2011-11-20  Bruno Haible  <bruno@clisp.org>
10849
10850         fma tests: Avoid shadowing local variables.
10851         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10852         expected.
10853
10854 2011-11-20  Bruno Haible  <bruno@clisp.org>
10855
10856         copysignf tests: Fix.
10857         * tests/test-copysignf.c: Fix signature check.
10858
10859 2011-11-20  Bruno Haible  <bruno@clisp.org>
10860
10861         fma: Remove unused code.
10862         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
10863         unused macros.
10864
10865 2011-11-20  Bruno Haible  <bruno@clisp.org>
10866
10867         sethostname: Fix doc about AIX.
10868         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
10869         sethostname; it has it.
10870
10871         sethostname: Mention more portability problems.
10872         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
10873         problem.
10874         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10875
10876 2011-11-19  Bruno Haible  <bruno@clisp.org>
10877
10878         Depend on module fcntl-h when AT_FDCWD is used.
10879         * modules/utimens (Depends-on): Add fcntl-h.
10880         * modules/areadlinkat (Depends-on): Likewise.
10881         * modules/areadlinkat-with-size (Depends-on): Likewise.
10882         * modules/faccessat (Depends-on): Likewise.
10883         * modules/fchmodat (Depends-on): Likewise.
10884         * modules/fchownat (Depends-on): Likewise.
10885         * modules/getcwd (Depends-on): Likewise.
10886         * modules/mkdirat (Depends-on): Likewise.
10887         * modules/mkfifoat (Depends-on): Likewise.
10888         * modules/readlinkat (Depends-on): Likewise.
10889         * modules/symlinkat (Depends-on): Likewise.
10890         * modules/dup2-tests (Depends-on): Likewise.
10891         * modules/fdutimensat-tests (Depends-on): Likewise.
10892         * modules/futimens-tests (Depends-on): Likewise.
10893
10894 2011-11-19  Bruno Haible  <bruno@clisp.org>
10895
10896         euidaccess: Update a comment.
10897         * lib/euidaccess.c: Update comment about platforms with faccessat.
10898
10899 2011-11-19  Bruno Haible  <bruno@clisp.org>
10900
10901         openat: Fix file list.
10902         * modules/openat (Files): Remove lib/at-func.c.
10903
10904 2011-11-19  Bruno Haible  <bruno@clisp.org>
10905
10906         fstatat: Simplify.
10907         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
10908         gnulib should define rpl_fstatat, there is a
10909         "#define fstatat rpl_fstatat" in <sys/stat.h>.
10910
10911 2011-11-19  Bruno Haible  <bruno@clisp.org>
10912
10913         Ensure 'inline' can be used in tests/test-utimens-common.h.
10914         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10915         * modules/futimens-tests (configure.ac): Likewise.
10916         * modules/utimens-tests (configure.ac): Likewise.
10917         * modules/utimensat-tests (configure.ac): Likewise.
10918
10919 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10920
10921         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10922         not hash_insert0.
10923         (hash_insert_if_absent): Doc fix.
10924
10925 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10926
10927         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10928
10929 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10930
10931         test-getcwd: disambiguate exit status
10932         * tests/test-getcwd.c (test_long_name): Return 0..7.
10933         (main): Exit with an unambiguous exit status.  The old
10934         code yielded a mysterious mixture of two failure codes.
10935
10936         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10937         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10938         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10939         rpl_fstatat or fstatat.  This should fix the other problem
10940         reported by Kai Habel in
10941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10942         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10943         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10944         and I reproduced it on a Solaris 8 host we still have in production.
10945
10946 2011-11-18  Jim Meyering  <meyering@redhat.com>
10947
10948         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10949         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10950         Add a sentence to the comment.
10951         (hash_insert0): New function that simply calls hash_insert_if_absent.
10952         * lib/hash.h (hash_insert_if_absent): Declare it.
10953         (hash_insert0): Add deprecation attribute.
10954         (_GL_ATTRIBUTE_DEPRECATED): Define.
10955         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10956         not hash_insert0.
10957         * NEWS: Mention it, even though it's not really an incompatible change.
10958
10959 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10960
10961         openat: avoid compilation failure due to lack of <errno.h> inclusion
10962         * lib/openat.c: Include <errno.h>.
10963
10964 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10965
10966         * modules/getcwd (Depends-on): Add fdopendir.
10967         This fixes one of the two problems reported by Kai Habel in
10968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10969
10970         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10971         stdalign problem reported by Ian Beckwith in
10972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10973         * modules/crypto/gc-arcfour (Depends-on):
10974         Depend conditionally on crypto/arcfour.
10975         * modules/crypto/gc-arctwo (Depends-on):
10976         Depend conditionally on crypto/arctwo.
10977         * modules/crypto/gc-des (Depends-on):
10978         Depend conditionally on crypto/des.
10979         * modules/crypto/gc-hmac-md5 (Depends-on):
10980         Depend conditionally on crypto/hmac-md5.
10981         * modules/crypto/gc-hmac-sha1 (Depends-on):
10982         Depend conditionally on crypto/hmac-sha1.
10983         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10984         * modules/crypto/gc-md4 (Depends-on):
10985         Depend conditionally on crypto/md4.
10986         * modules/crypto/gc-md5 (Depends-on):
10987         Depend conditionally on crypto/md5.
10988         * modules/crypto/gc-rijndael (Depends-on):
10989         Depend conditionally on crypto/rijndael.
10990         * modules/crypto/gc-sha1 (Depends-on):
10991         Depend conditionally on crypto/sha1.
10992         * modules/crypto/gc-arcfour:
10993         * modules/crypto/gc-arctwo:
10994         * modules/crypto/gc-des:
10995         * modules/crypto/gc-hmac-md5:
10996         * modules/crypto/gc-hmac-sha1:
10997         * modules/crypto/gc-md2:
10998         * modules/crypto/gc-md4:
10999         * modules/crypto/gc-md5:
11000         * modules/crypto/gc-rijndael:
11001         * modules/crypto/gc-sha1:
11002         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11003         now that the conditional dependencies do the work for us.
11004
11005 2011-11-17  Jim Meyering  <meyering@redhat.com>
11006
11007         tests: factor st_ctime-comparison out of two headers
11008         * tests/test-utimens-common.h (ctime_compare): Define.
11009         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11010         * tests/test-lutimens.h (test_lutimens): Likewise.
11011         * tests/test-utimens.h (test_utimens): Likewise.
11012
11013         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11014         Invoke the test program via an init.sh-using wrapper.
11015         * tests/test-getcwd.sh: New file.
11016         * modules/getcwd-tests (Files): Add it.
11017         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11018
11019 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11020
11021         gitlog-to-changelog: support multi-author commits.
11022         The FSF cares about keeping track of all authors of patches to its
11023         projects, but Git doesn't provide obvious support for multi-author
11024         changesets. Consensus seems to be forming around the use of extra
11025         Signed-off-by inspired lines in the log message formatted as
11026         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11027         multi-author commits between version control systems.
11028         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11029         log message and output in standard ChangeLog multi-author format.
11030         Reported by Peter Rosin <peda@lysator.liu.se>
11031
11032 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11033             Bruno Haible  <bruno@clisp.org>
11034
11035         Fix some modules' file list.
11036         * modules/fstatat (Files): Add m4/lstat.m4.
11037         * modules/openat (Files): Likewise.
11038         * modules/unlinkat (Files): Likewise.
11039
11040 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11041
11042         maint.mk: fix tight-scope.mk generation in VPATH builds.
11043         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11044         reference with $(srcdir) so that the file is found correctly even
11045         when running `make syntax-check' in a VPATH build.
11046
11047 2011-11-13  Bruno Haible  <bruno@clisp.org>
11048             Jim Meyering  <meyering@redhat.com>
11049
11050         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11051         * tests/init.sh (compare): Remove "No differences encountered" or
11052         synonymous output from the 'diff' program.
11053
11054 2011-11-13  Bruno Haible  <bruno@clisp.org>
11055
11056         Makefile: Tweak indentation.
11057         * Makefile: Use tab as first character in every line that contains rule
11058         commands.
11059
11060 2011-11-13  Bruno Haible  <bruno@clisp.org>
11061
11062         Syntax check for copyright statements.
11063         * check-copyright: New file.
11064         * Makefile (sc_check_copyright): New rule.
11065
11066 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11067
11068         * build-aux/git-version-gen: Add --prefix to configure the tag
11069         match string.
11070
11071 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11072
11073         * build-aux/git-version-gen: Add --help and --version.
11074
11075 2011-11-12  Jim Meyering  <meyering@redhat.com>
11076
11077         revamp the other test-exclude?.sh scripts to use init.sh, too
11078         * tests/test-exclude1.sh: Use init.sh.
11079         * tests/test-exclude2.sh: Likewise.
11080         * tests/test-exclude3.sh: Likewise.
11081         * tests/test-exclude4.sh: Likewise.
11082         * tests/test-exclude5.sh: Likewise.
11083         * tests/test-exclude6.sh: Likewise.
11084         * tests/test-exclude7.sh: Likewise.
11085         * tests/test-exclude8.sh: Likewise.
11086         * modules/exclude-tests (Files): List init.sh.
11087
11088         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11089         These shell scripts ignored failure of the binary test-exclude,
11090         so making the latter return 77 didn't cause them to be skipped.
11091         * tests/test-exclude5.sh: Exit with test-exclude's error status
11092         when that program fails.  Revamp to use init.sh.
11093         * tests/test-exclude2.sh: Likewise.
11094
11095         test-exclude: fix a typo
11096         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11097
11098 2011-11-11  Bruno Haible  <bruno@clisp.org>
11099
11100         obstack: Fix compilation error on MSVC 9.
11101         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11102
11103 2011-11-11  Jim Meyering  <meyering@redhat.com>
11104
11105         test-exclude: skip tests rather than failing on deficient systems
11106         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11107         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11108         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11109         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11110
11111 2011-11-10  Bruno Haible  <bruno@clisp.org>
11112
11113         ptsname_r test: Avoid gcc warning on glibc systems.
11114         * tests/test-ptsname_r.c (null_ptr): New function.
11115         (test_errors): Use it.
11116
11117 2011-11-10  Bruno Haible  <bruno@clisp.org>
11118
11119         ptsname_r: Avoid compilation error on OSF/1 5.1.
11120         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11122         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11123         function is not declared or incompatibly declared.
11124         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11125         * modules/ptsname_r (Depends-on, configure.ac): Update.
11126         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11127
11128 2011-11-10  Bruno Haible  <bruno@clisp.org>
11129
11130         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11131         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11132         When cross-compiling, guess yes on all platforms except AIX.
11133         Reported by Ludovic Courtès <ludo@gnu.org>.
11134
11135 2011-11-09  Bruno Haible  <bruno@clisp.org>
11136
11137         ptsname_r tests: Fix bugs.
11138         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11139         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11140
11141 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11142
11143         fstatat: work with cross-compilation
11144         Problem reported by Ludovic Courtès in
11145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11146         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11147         "cross-compiling" and assume the bug is present.  Replace
11148         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11149         an inverted sense, to be more conservative about our assumptions.
11150         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11151
11152 2011-11-09  Bruno Haible  <bruno@clisp.org>
11153
11154         Improve MODULES.html output.
11155         * modules/mkfifoat (Description): Use the word "function".
11156         * modules/readlinkat (Description): Likewise.
11157         * modules/symlinkat (Description): Likewise.
11158
11159 2011-11-09  Eric Blake  <eblake@redhat.com>
11160
11161         ptsname_r-tests: new test module
11162         * modules/ptsname_r-tests: New module.
11163         * tests/test-ptsname_r.c: New file.
11164
11165         ptsname_r: new module
11166         * modules/ptsname_r: New module.
11167         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11168         * lib/ptsname.c (__ptsname_r): Split...
11169         * lib/ptsname_r.c: ...into new file.
11170         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11171         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11172         * modules/stdlib (Makefile.am): Substitute witnesses.
11173         * lib/stdlib.in.h (ptsname_r): Declare it.
11174         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11175         * MODULES.html.sh (Misc): Likewise.
11176         * modules/ptsname (Depends-on): Alter dependency.
11177         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11178
11179 2011-11-09  Jim Meyering  <meyering@redhat.com>
11180
11181         announce-gen: be more concise when there's only one URL+tarball
11182         * build-aux/announce-gen (get_tool_versions): When you distribute
11183         only one type of tarball, combine the first two "Here are..."
11184         sections and make the key-checking grammar independent of
11185         how many tarballs there are.
11186
11187 2011-11-09  Eric Blake  <eblake@redhat.com>
11188
11189         openpty: provide a stub on mingw
11190         * lib/pty.in.h (includes): Provide forward declarations.
11191         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11192
11193         raise: fix mingw handling of SIGPIPE
11194         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11195
11196 2011-11-08  Bruno Haible  <bruno@clisp.org>
11197
11198         More conditional dependencies.
11199         * modules/faccessat (Depends-on): Add conditions.
11200         * modules/fchmodat (Depends-on): Likewise.
11201         * modules/fchownat (Depends-on): Likewise.
11202         * modules/fstatat (Depends-on): Likewise.
11203         * modules/mkfifoat (Depends-on): Likewise.
11204         * modules/readlinkat (Depends-on): Likewise.
11205         * modules/symlinkat (Depends-on): Likewise.
11206         * modules/unlinkat (Depends-on): Likewise.
11207         * modules/utimensat (Depends-on): Likewise.
11208         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11209         * modules/linkat (Depends-on): Refine the conditions.
11210         * modules/renameat (Depends-on): Likewise.
11211
11212 2011-11-08  Bruno Haible  <bruno@clisp.org>
11213
11214         faccessat: Move AC_LIBOBJ invocation to module description.
11215         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11216         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11217         invocation from here...
11218         * modules/faccessat (configure.ac): ... to here. Invoke
11219         gl_PREREQ_FACCESSAT.
11220
11221 2011-11-08  Bruno Haible  <bruno@clisp.org>
11222
11223         faccessat: Simplify autoconf macro.
11224         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11225         gl_FUNC_EUIDACCESS.
11226
11227 2011-11-08  Bruno Haible  <bruno@clisp.org>
11228
11229         renameat: Fix dependencies.
11230         * modules/renameat (Depends-on): Add stdbool.
11231
11232 2011-11-08  Bruno Haible  <bruno@clisp.org>
11233
11234         mkfifoat: Fix module description.
11235         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11236         not gl_UNISTD_MODULE_INDICATOR.
11237
11238 2011-11-08  Bruno Haible  <bruno@clisp.org>
11239
11240         fstatat: Remove unused dependency.
11241         * modules/fstatat (Depends-on): Remove fstat.
11242
11243 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11244
11245         GNUmakefile: behave when Makefile is missing.
11246         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11247
11248 2011-11-08  Bruno Haible  <bruno@clisp.org>
11249
11250         openat: Conditionalize dependencies.
11251         * lib/openat.c: Reduce the scope of some #includes.
11252         * modules/openat (Depends-on): Add conditions.
11253
11254 2011-11-07  Jim Meyering  <meyering@redhat.com>
11255
11256         maint.mk: extract GPG key ID without using a temporary file
11257         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11258         without using a temporary file.  Based on a suggestion from Werner Koch
11259         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11260
11261 2011-11-07  Eric Blake  <eblake@redhat.com>
11262
11263         grantpt: fix typo
11264         * lib/stdlib.in.h (grantpt): Check correct function.
11265
11266         maint.mk: silence new syntax check
11267         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11268
11269 2011-11-06  Bruno Haible  <bruno@clisp.org>
11270
11271         Doc about floating-point and math API.
11272         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11273         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11274
11275 2011-11-06  Bruno Haible  <bruno@clisp.org>
11276
11277         stdalign tests: Skip the test when compiled by Sun C.
11278         * tests/test-stdalign.c (main): Skip the test on Sun C.
11279
11280 2011-11-06  Bruno Haible  <bruno@clisp.org>
11281
11282         ansi-c++-opt: Complete the 2011-06-05 change.
11283         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11284         does not support namespaces, set the variable to "no", not to ":".
11285
11286 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11287
11288         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11289
11290 2011-11-06  Bruno Haible  <bruno@clisp.org>
11291
11292         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11293         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11294         (minus_zerol) [HP-UX]: New macro.
11295         (unary_minus) [HP-UX]: New function.
11296         (copysignl) [HP-UX]: Use unary_minus function.
11297
11298 2011-11-06  Bruno Haible  <bruno@clisp.org>
11299
11300         ldexp, ldexpf, ldexpl: Enhance tests.
11301         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11302         and tests/test-ldexpl.c.
11303         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11304         LDEXP, MIN_EXP, MAX_EXP): New macros.
11305         Include test-ldexp.h.
11306         (main): Just call test_function.
11307         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11308         infinity.h, nan.h.
11309         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11310         MAX_EXP): New macros.
11311         Include test-ldexp.h.
11312         (x, y): Remove variables.
11313         (main): Just call test_function.
11314         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11315         infinity.h, nan.h.
11316         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11317         MAX_EXP): New macros.
11318         Include test-ldexp.h.
11319         (x, y): Remove variables.
11320         (main): Just call test_function.
11321         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11322         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11323         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11324         (Depends-on): Add isnand-nolibm, signbit, float.
11325         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11326         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11327         (Depends-on): Add isnanf-nolibm, signbit, float.
11328
11329 2011-11-06  Bruno Haible  <bruno@clisp.org>
11330
11331         math tests: Cosmetics.
11332         * tests/test-math-c++.cc: Reorder declarations.
11333
11334 2011-11-05  Bruno Haible  <bruno@clisp.org>
11335
11336         fma*: Simplify test.
11337         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11338         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11339
11340         Tests for module 'fmal'.
11341         * modules/fmal-tests: New file.
11342         * tests/test-fmal1.c: New file.
11343         * tests/test-fmal2.c: New file.
11344
11345         New module 'fmal'.
11346         * lib/math.in.h (fmal): New declaration.
11347         * lib/fmal.c: New file.
11348         * m4/fmal.m4: New file.
11349         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11351         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11352         REPLACE_FMAL.
11353         * modules/fmal: New file.
11354         * doc/posix-functions/fmal.texi: Mention the new module and the various
11355         bugs.
11356
11357         Tests for module 'fmaf'.
11358         * modules/fmaf-tests: New file.
11359         * tests/test-fmaf1.c: New file.
11360         * tests/test-fmaf2.c: New file.
11361
11362         New module 'fmaf'.
11363         * lib/math.in.h (fmaf): New declaration.
11364         * lib/fmaf.c: New file.
11365         * m4/fmaf.m4: New file.
11366         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11368         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11369         REPLACE_FMAF.
11370         * modules/fmaf: New file.
11371         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11372         bugs.
11373
11374         Tests for module 'fma'.
11375         * modules/fma-tests: New file.
11376         * tests/test-fma1.c: New file.
11377         * tests/test-fma1.h: New file.
11378         * tests/test-fma2.c: New file.
11379         * tests/test-fma2.h: New file.
11380
11381         New module 'fma'.
11382         * lib/math.in.h (fma): New declaration.
11383         * lib/fma.c: New file.
11384         * m4/fma.m4: New file.
11385         * m4/fegetround.m4: New file.
11386         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11387         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11388         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11389         REPLACE_FMA.
11390         * modules/fma: New file.
11391         * doc/posix-functions/fma.texi: Mention the new module and the various
11392         bugs.
11393
11394         Extend gl_MATHFUNC.
11395         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11396         Support 'void' as argument type.
11397         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11398
11399 2011-11-05  Jim Meyering  <meyering@redhat.com>
11400
11401         maint.mk: also prohibit inclusion of dirent.h without use
11402         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11403
11404 2011-11-05  Bruno Haible  <bruno@clisp.org>
11405
11406         ldexpl tests: Avoid test failure on MSVC 9.
11407         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11408         value. Needed in order to enforce the conversion from a value greater
11409         than LDBL_MAX to Infinity.
11410
11411 2011-11-05  Bruno Haible  <bruno@clisp.org>
11412
11413         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11414         * modules/at-internal: New file, extracted from modules/openat.
11415         * modules/openat-h: New file.
11416         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11417         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11418         * modules/openat (Description): Add reference to POSIX function.
11419         (Files): Remove lib/openat.h, lib/openat-proc.c.
11420         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11421         intprops, unistd.
11422         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11423         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11424         gl_FCNTL_MODULE_INDICATOR.
11425         (Include): Remove unistd.h, openat.h.
11426         * modules/areadlinkat (Files): Add lib/at-func.c.
11427         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11428         openat-die, openat-h, save-cwd.
11429         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11430         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11431         openat-die, openat-h, save-cwd, unistd.
11432         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11433         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11434         openat-h, save-cwd. Remove fcntl-h, openat.
11435         * modules/fchmodat (Files): Remove lib/openat.h.
11436         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11437         openat, stdbool, unistd.
11438         * modules/fchownat (Files): Remove lib/openat.h.
11439         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11440         openat, stdbool, sys_stat.
11441         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11442         lib/openat-proc.c.
11443         (Depends-on): Add at-internal.
11444         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11445         * modules/fstatat (Files): Remove lib/openat.h.
11446         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11447         stdbool, unistd.
11448         * modules/fts (Depends-on): Add openat-h.
11449         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11450         openat.
11451         * modules/mkdirat (Files): Remove lib/openat.h.
11452         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11453         openat, stdbool, sys_stat.
11454         * modules/mkfifoat (Files): Add lib/at-func.c.
11455         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11456         openat-h, save-cwd. Remove fcntl-h, openat.
11457         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11458         * modules/readlinkat (Files): Add lib/at-func.c.
11459         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11460         openat-h, save-cwd. Remove fcntl-h, openat.
11461         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11462         openat.
11463         * modules/selinux-at (Files): Add lib/at-func.c.
11464         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11465         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11466         * modules/symlinkat (Files): Add lib/at-func.c.
11467         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11468         openat-h, save-cwd. Remove fcntl-h, openat.
11469         * modules/unlinkat (Files): Remove lib/openat.h.
11470         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11471         stdbool.
11472         * modules/utimensat (Files): Add lib/at-func.c.
11473         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11474         openat-die, openat-h, save-cwd.
11475         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11476         * modules/fdutimensat-tests (Depends-on): Add openat.
11477         * modules/fstatat-tests (Depends-on): Add openat-h.
11478         * modules/readlinkat-tests (Depends-on): Add openat.
11479         * modules/symlinkat-tests (Depends-on): Add openat.
11480
11481 2011-11-05  Bruno Haible  <bruno@clisp.org>
11482
11483         openat: Include <stdbool.h>.
11484         * lib/openat.c: Include <stdbool.h>.
11485
11486 2011-11-04  Bruno Haible  <bruno@clisp.org>
11487
11488         fchownat, renameat, unlinkat: Fix dependencies.
11489         * modules/fchownat (Depends-on): Add fstatat.
11490         * modules/renameat (Depends-on): Likewise.
11491         * modules/unlinkat (Depends-on): Likewise.
11492
11493 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11494
11495         openat: remove direct dependency on dirent
11496         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11497         and hasn't been needed ever since fdopendir was split into its own
11498         module on 2009-08-31.
11499         * modules/openat (Depends-on): Remove dirent.
11500
11501 2011-11-04  Bruno Haible  <bruno@clisp.org>
11502
11503         renameat: Optimize code size.
11504         * modules/renameat (configure.ac): Don't compile at-func2.c if
11505         REPLACE_RENAMEAT is 1.
11506
11507 2011-11-04  Bruno Haible  <bruno@clisp.org>
11508
11509         openat tests: Fix file list.
11510         * modules/openat-tests (Files): Add tests/test-open.h.
11511
11512 2011-11-04  Bruno Haible  <bruno@clisp.org>
11513
11514         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11515         * modules/fchmodat (Depends-on): Add openat-die.
11516         * modules/fchownat (Depends-on): Likewise.
11517         * modules/linkat (Depends-on): Likewise.
11518         * modules/renameat (Depends-on): Likewise.
11519         * modules/openat (Depends-on): Add dirent.
11520
11521 2011-11-04  Jim Meyering  <meyering@redhat.com>
11522
11523         at-func*.c: fix comments
11524         * lib/at-func2.c: Correct/improve first-line comment.
11525         * lib/at-func.c: Correct grammar in first-line comment.
11526
11527 2011-11-04  Bruno Haible  <bruno@clisp.org>
11528
11529         New module 'mkdirat', split off from module 'openat'.
11530         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11531         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11532         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11533         * modules/mkdirat: New file, extracted from modules/openat.
11534         * modules/openat (Files): Remove lib/mkdirat.c.
11535         (Depends-on): Remove mkdir.
11536         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11537         (Include): Remove <sys/stat.h>.
11538         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11539         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11540         tests/test-mkdir.h.
11541         (Depends-on): Remove ignore-value.
11542         (Makefile.am): Remove rules for test-mkdirat.
11543         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11544         of module 'openat'.
11545         * NEWS: Mention the change.
11546
11547 2011-11-04  Bruno Haible  <bruno@clisp.org>
11548
11549         closedir: Avoid warning on mingw.
11550         * lib/closedir.c: Include <unistd.h>.
11551
11552 2011-11-04  Bruno Haible  <bruno@clisp.org>
11553
11554         New module 'fstatat', split off from module 'openat'.
11555         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11556         defined.
11557         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11558         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11559         gl_FUNC_FSTATAT.
11560         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11561         * modules/fstatat: New file, extracted from modules/openat.
11562         * modules/openat (Files): Remove lib/fstatat.c.
11563         (Depends-on): Remove lstat.
11564         (configure.ac): Remove AC_LIBOBJ of fstatat.
11565         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11566         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11567         tests/test-lstat.h, tests/test-stat.h.
11568         (Depends-on): Remove getcwd-lgpl.
11569         (Makefile.am): Remove rules for test-fstatat.
11570         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11571         of module 'openat'.
11572         * NEWS: Mention the change.
11573         * modules/getcwd (Depends-on): Add fstatat.
11574         * modules/linkat (Depends-on): Likewise.
11575         * modules/mkfifoat-tests (Depends-on): Likewise.
11576         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11577
11578 2011-11-03  Bruno Haible  <bruno@clisp.org>
11579
11580         New module 'unlinkat', split off from module 'openat'.
11581         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11582         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11583         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11584         * modules/unlinkat: New file, extracted from modules/openat. Correct
11585         the dependency conditions.
11586         * modules/openat (Files): Remove lib/unlinkat.c.
11587         (Depends-on): Remove rmdir, unlink.
11588         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11589         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11590         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11591         tests/test-rmdir.h, tests/test-unlink.h.
11592         (Depends-on): Remove unlinkdir.
11593         (Makefile.am): Remove rules for test-unlinkat.
11594         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11595         of module 'openat'.
11596         * NEWS: Mention the change.
11597         * modules/linkat-tests (Depends-on): Add unlinkat.
11598         * modules/mkfifoat-tests (Depends-on): Likewise.
11599         * modules/readlinkat-tests (Depends-on): Likewise.
11600
11601 2011-11-02  Bruno Haible  <bruno@clisp.org>
11602
11603         New module 'fchmodat', split off from module 'openat'.
11604         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11605         defined.
11606         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11607         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11608         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11609         * modules/fchmodat: New file, extracted from modules/openat.
11610         * modules/openat (Files): Remove lib/fchmodat.c.
11611         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11612         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11613         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11614         (Makefile.am): Remove rules for test-fchmodat.
11615         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11616         of module 'openat'.
11617         * NEWS: Mention the change.
11618
11619 2011-11-02  Jim Meyering  <meyering@redhat.com>
11620
11621         putenv: indent #definition of "environ" to placate cppi
11622         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11623
11624         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11625         Git logs are often treated as immutable, because editing them
11626         changes the SHA1 checksums of all descendants.  Thus, errors in
11627         git logs tend to stay there forever.  However, when we generate
11628         a ChangeLog file -- typically for distribution -- from that git log,
11629         we can actually make corrections in the generated file.  The key
11630         lies in recording in machine-readable/applicable form the desired
11631         corrections.  See --help for description and an example.
11632         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11633         (usage): Describe it; alphabetize option descriptions.
11634         (main): Honor the new option, carefully.
11635
11636 2011-11-01  Jim Meyering  <meyering@redhat.com>
11637
11638         gitlog-to-changelog: avoid an infloop
11639         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11640         that ends up being empty.
11641
11642 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11643
11644         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11645         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11646         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11647         contains (possibly-quoted) backslashes.  This should avoid
11648         all-too-common shell bugs if COMPLICATED contains backslashes in
11649         the "wrong" places.  Reported by David Evans in
11650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11651         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11652         because we want ASCII ranges.  Is there some reason we don't use
11653         the C locale everywhere in this script?
11654         (func_module, top level): Avoid unwanted pathname expansion when
11655         $repo_url_prefix or $repo_url_suffix_repl contain shell
11656         metacharacters like '?' and '*'.
11657
11658 2011-11-01  Bruno Haible  <bruno@clisp.org>
11659
11660         fchownat: Improve description.
11661         * modules/fchownat (Description): Add link to function.
11662
11663 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11664
11665         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11666         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11667         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11668         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11669
11670 2011-11-01  Bruno Haible  <bruno@clisp.org>
11671
11672         alignof: Avoid collision with stdalign module.
11673         * lib/alignof.h (alignof): Remove macro.
11674         * NEWS: Mention the change.
11675         Reported by Paul Eggert.
11676
11677 2011-11-01  Bruno Haible  <bruno@clisp.org>
11678
11679         New module 'fchownat', split off from module 'openat'.
11680         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11681         defined.
11682         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11683         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11684         invoke gl_FUNC_FCHOWNAT.
11685         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11686         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11687         * modules/fchownat: New file, extracted from modules/openat.
11688         * modules/openat (Files): Remove lib/fchownat.c.
11689         (Depends-on): Remove lchown.
11690         (configure.ac): Remove AC_LIBOBJ of fchownat.
11691         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11692         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11693         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11694         (Depends-on): Remove mgetgroups, usleep, stat-time.
11695         (configure.ac): Remove test for getegid.
11696         (Makefile.am): Remove rules for test-fchownat.
11697         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11698         of module 'openat'.
11699         * NEWS: Mention the change.
11700
11701 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11702
11703         stdalign: port better to MSVC and to Sun C 5.11
11704         This fixes some of the problems reported by Bruno Haible in
11705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11706         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11707         shortcomings of MSVC and of Sun C 5.11.
11708         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11709         around __declspec arg.
11710         * modules/stdalign-tests (Files): Add tests/macros.h.
11711         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11712         Include macros.h, for ASSERT.
11713         (DECLARE_ALIGNED): Remove.
11714         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11715         to catch bug), and to 1 if not (simplifies the rest of the code).
11716         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11717         (CHECK_AUTO): Remove.
11718         (CHECK_ALIGNED): Check only the alignment of the static vars,
11719         since auto var alignment isn't supported by Sun C 5.11.
11720         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11721         ASSERT failures are easier to diagnose.
11722
11723 2011-10-31  Bruno Haible  <bruno@clisp.org>
11724
11725         doc about some IRIX 5.3 problems.
11726         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11727         on IRIX 5.3.
11728         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11729         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11730         5.3.
11731         * doc/posix-functions/grantpt.texi: Likewise.
11732         * doc/posix-functions/unlockpt.texi: Likewise.
11733         * doc/posix-functions/lgamma.texi: Likewise.
11734         * doc/posix-functions/nextafter.texi: Likewise.
11735         * doc/posix-functions/remainder.texi: Likewise.
11736         * doc/posix-functions/select.texi: Mention misplaced declaration on
11737         IRIX 5.3.
11738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11739
11740 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11741
11742         gitlog-to-changelog: fix git-log invocation.
11743         git-log mishandles date strings before 1970-01-01 UTC, and there is
11744         no use to specify --since=1970-01-01 by default anyway.
11745         * build-aux/gitlog-to-changelog: By default, when no --since option
11746         was given, do not specify explicit --since option to git-log.
11747
11748 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11749
11750         gitlog-to-changelog: new option --append-dot.
11751         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11752         first non-blank line of each commit message terminated with a dot.
11753
11754 2011-10-30  Bruno Haible  <bruno@clisp.org>
11755
11756         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11757         * lib/ffsl.h: Include <config.h>.
11758         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11759
11760 2011-10-30  Jim Meyering  <meyering@redhat.com>
11761
11762         GNUmakefile: reenable "make syntax-check" for most projects
11763         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11764         build-aux variable", "syntax-check" would do nothing but succeed with
11765         the "No version control files detected..." diagnostic (unless you
11766         happened to override _build-aux via cfg.mk).
11767         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11768         to precede inclusion of maint.mk.  Otherwise, these variables would
11769         be used undefined in any project that does not override the default.
11770
11771 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11772
11773         gitlog-to-changelog: treat a message with only blank lines as empty.
11774         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11775         trailing blank lines before the code that issues a warning about an
11776         empty commit message.
11777
11778 2011-10-30  Jim Meyering  <meyering@redhat.com>
11779
11780         test-parse-datetime.c: avoid new DST-related false positive test failure
11781         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11782         based on the time/date we'll convert, not the current time.
11783         Otherwise, the moment we cross a DST boundary like today's in
11784         Europe, (CEST to CET), that offset ends up being one hour off.
11785
11786 2011-10-27  Bruno Haible  <bruno@clisp.org>
11787
11788         fstat: Tweak documentation.
11789         * modules/fstat (Description): More precise description.
11790
11791 2011-10-27  Bruno Haible  <bruno@clisp.org>
11792
11793         Update documentation regarding 'largefile' module.
11794         * doc/posix-functions/fstat.texi: Tweak wording.
11795         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11796         problems with huge directories and/or small ino_t types.
11797         * doc/posix-functions/readdir.texi: Likewise.
11798         * doc/posix-functions/rewinddir.texi: Likewise.
11799
11800 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11801
11802         maint.mk: don't maintain a second build-aux variable.
11803         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11804         depends on GNUmakefile, which already maintains a cfg.mk
11805         overridable $(_build-aux) for projects with a non-standard
11806         build-aux directory location, although without the $(srcdir)
11807         prefix.  Use that variable consistently instead of introducing a
11808         second one.  Adjust all call sites.
11809
11810 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11811
11812         Add stdalign module and use it in other modules.
11813         This is based on a previous proposal by Bruno Haible
11814         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11815
11816         stdalign: new module
11817         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11818         * modules/stdalign: New files.
11819         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11820         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11821
11822         stdalign-tests: new module
11823         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11824
11825         argp: use stdalign
11826         * lib/argp-parse.c: Include <stdalign.h>.
11827         (alignof): Remove.
11828         * modules/argp (Depends-on): Add stdalign.
11829
11830         crypto libraries: use stdalign
11831         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11832         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11833         Do not include <stdlib.h> twice, in md4.c.
11834         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11835         because we are accessing a pointer's bit-pattern, not a size.
11836         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11837         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11838         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11839         * modules/crypto/sha512: Likewise.
11840
11841         sys_socket: use stdalign, not alignof
11842         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11843         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11844
11845 2011-10-27  Bruno Haible  <bruno@clisp.org>
11846
11847         raise test: Avoid a test failure on Linux/MIPS.
11848         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11849         because 99 is a valid signal on Linux/MIPS.
11850
11851 2011-10-27  Bruno Haible  <bruno@clisp.org>
11852
11853         nonblocking tests: Fix test failure on Linux/MIPS.
11854         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11855         Set to 270000.
11856
11857 2011-10-27  Bruno Haible  <bruno@clisp.org>
11858
11859         utimensat: Work around problem on Linux/hppa.
11860         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11861         values.
11862         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
11863
11864 2011-10-25  Jim Meyering  <meyering@redhat.com>
11865
11866         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11867         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
11868         after symbols like NULL, size_t, etc.
11869         Reported by Alfred M. Szmidt.
11870
11871         maint.mk: exempt ENODATA from a syntax-check rule
11872         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
11873         from the sc_prohibit_always-defined_macros syntax-check rule.
11874         Add a comment.  See this for more details:
11875         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
11876
11877 2011-10-23  Jim Meyering  <meyering@redhat.com>
11878
11879         fts: close parent dir FD before returning from post-traversal fts_read
11880         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
11881         unlink A, even though an FD open on A remained.  This is suboptimal
11882         (holding a file descriptor open longer than needed), but otherwise not
11883         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
11884         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
11885         that represents a real problem: it causes the removal of A to fail
11886         with e.g., "rm: cannot remove `A': Device or resource busy"
11887
11888         fts visits each directory twice and keeps a cache (fts_fd_ring) of
11889         directory file descriptors.  After completing the final, FTS_DP,
11890         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
11891         cache, but then proceeded to add a new FD to it via the subsequent
11892         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
11893         final file descriptor would be closed only via fts_close's call to
11894         fd_ring_clear.  Now, it is usually closed earlier, via the final
11895         FTS_DP-returning fts_read call.
11896         * lib/fts.c (restore_initial_cwd): New function, converted from
11897         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
11898         Update callers.
11899         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
11900         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
11901
11902 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
11903             Bruno Haible  <bruno@clisp.org>
11904             Jim Meyering  <jim@meyering.net>
11905
11906         readme-release: improve safety of release prep instructions.
11907         * README-release: Don't git pull all branches when only master
11908         is needed for the release process.
11909         Run make maintainer-clean before changing trees and merging.
11910         Don't try to run ./configure right after git pull in case files
11911         that influence the bootstrap process have changed, move the
11912         ./configure step to after running ./bootstrap.
11913         Don't bootstrap "one last time"... it's the first time!
11914
11915 2011-10-22  Bruno Haible  <bruno@clisp.org>
11916
11917         errno, strerror-override: Support for MSVC 10.
11918         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11919         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11920         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11921         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11922         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11923         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11924         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11925         Assign values compatible with MSVC 10.
11926         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11927         New macros.
11928         (GNULIB_defined_EWINSOCK): New macro.
11929         * lib/strerror-override.c (strerror_override): Update accordingly.
11930         * lib/strerror-override.h: Likewise.
11931         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11932         longer equal to the corresponding errno value.
11933         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11934
11935 2011-10-22  Bruno Haible  <bruno@clisp.org>
11936
11937         perror: Recognize when test program crashes.
11938         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11939         strerror, set gl_cv_func_perror_works to no.
11940         Reported by Daniel Richard G. <skunk@iskunk.org>.
11941
11942         perror: Fix indentation.
11943         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11944
11945 2011-10-22  Bruno Haible  <bruno@clisp.org>
11946
11947         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11948         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11949         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11950         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11951         functions, not as a macro.
11952         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11953         macros.
11954         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11955         absence of macro.
11956         Suggested by Eric Blake.
11957         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11958
11959 2011-10-21  Bruno Haible  <bruno@clisp.org>
11960
11961         relocatable-prog-wrapper: Don't leave object files behind.
11962         * build-aux/install-reloc: Re-synchronize list of .o files to be
11963         removed with list of compilation units.
11964
11965 2011-10-20  Bruno Haible  <bruno@clisp.org>
11966
11967         openpty, posix_openpt: Remove code duplication.
11968         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11969         * lib/openpty.c: Include <stdlib.h>.
11970         (openpty): Use posix_openpt on all platforms except IRIX.
11971         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11972
11973 2011-10-20  Bruno Haible  <bruno@clisp.org>
11974
11975         unlockpt: Detect invalid argument.
11976         * lib/unlockpt.c: Include <fcntl.h>.
11977         (unlockpt): Check whether fd is valid, using fcntl().
11978         * modules/unlockpt (Depends-on): Add fcntl-h.
11979
11980 2011-10-20  Bruno Haible  <bruno@clisp.org>
11981
11982         openpty: Avoid compilation error on AIX 6.1.
11983         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11984
11985 2011-10-20  Bruno Haible  <bruno@clisp.org>
11986
11987         posix_openpt: Support for OpenBSD.
11988         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11989         (posix_openpt) [OpenBSD]: New code.
11990         * lib/grantpt.c: Include <fcntl.h>.
11991         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11992         * modules/grantpt (Depends-on): Add fcntl-h.
11993
11994 2011-10-20  Bruno Haible  <bruno@clisp.org>
11995
11996         posix_openpt test: Coding style.
11997         * tests/test-posix_openpt.c: Use GNU coding style.
11998
11999 2011-10-20  Bruno Haible  <bruno@clisp.org>
12000
12001         grantpt: Support --avoid=pt_chown.
12002         * modules/grantpt (Files): Add lib/pty-private.h.
12003
12004 2011-10-20  Bruno Haible  <bruno@clisp.org>
12005
12006         posix_openpt: Fix autoconf macro.
12007         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12008         unneeded check for _getpty.
12009
12010 2011-10-20  Bruno Haible  <bruno@clisp.org>
12011
12012         openpty: Update comments.
12013         * lib/openpty.c: Add comments about Minix.
12014
12015 2011-10-19  Eric Blake  <eblake@redhat.com>
12016
12017         openpty: relax license
12018         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12019
12020         pt_chown: use configmake to simplify build
12021         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12022
12023         ptsname and others: relax license
12024         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12025         * modules/unlockpt (License): Likewise.
12026         * modules/pt_chown (License): Likewise.
12027         * modules/ptsname (License): Likewise.
12028         * modules/ttyname_r (License): Likewise.
12029
12030 2011-10-19  Jim Meyering  <meyering@redhat.com>
12031
12032         posix_openpt: remove spurious #endif
12033         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12034
12035 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12036
12037         maint.mk: Respect $(build_aux) in web-manual rule.
12038         * top/maint.mk (web-manual): Find gen-announce script in user's
12039         $(build_aux) directory instead of hard-coding 'build-aux'.
12040
12041 2011-10-19  Bruno Haible  <bruno@clisp.org>
12042
12043         posix_openpt: Fix compilation error.
12044         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12045         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12046         Mention the openpty module as an alternative.
12047
12048 2011-10-19  Bruno Haible  <bruno@clisp.org>
12049
12050         Support for old NeXTstep 3.3 frexp().
12051         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12052         execution time of the test to 5 seconds.
12053         Reported by Daniel Richard G. <skunk@iskunk.org>.
12054
12055 2011-10-19  Bruno Haible  <bruno@clisp.org>
12056
12057         Support for old NeXTstep 3.3 sed.
12058         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12059         part, use /.../, not \|...|. Escape periods in the header file name.
12060         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12061         Reported by Daniel Richard G. <skunk@iskunk.org>.
12062
12063 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12064
12065         Support for old NeXTstep 3.3 gcc.
12066         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12067         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12068         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12069         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12070         * lib/regex.h (_Restrict_arr_): Likewise.
12071         * lib/regex_internal.h (re_token_t): Likewise.
12072         * lib/regexec.c (check_node_accept_bytes): Likewise.
12073         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12074
12075 2011-10-18  Eric Blake  <eblake@redhat.com>
12076
12077         posix_openpt: new module
12078         * modules/posix_openpt: New module.
12079         * m4/posix_openpt.m4: New file.
12080         * lib/posix_openpt.c: Likewise.
12081         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12082         (gl_STDLIB_H_DEFAULTS): Set defaults.
12083         * modules/stdlib (Makefile.am): Substitute macros.
12084         * lib/stdlib.in.h (posix_openpt): Declare.
12085         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12086         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12087         * modules/posix_openpt-tests: New test module.
12088         * tests/test-posix_openpt.c: New test.
12089
12090 2011-10-15  Bruno Haible  <bruno@clisp.org>
12091
12092         xstrtoll: Fix compilation failure.
12093         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12094         from lib/strtol.c.
12095         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12096         some platforms.
12097         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12098
12099 2011-10-15  Bruno Haible  <bruno@clisp.org>
12100
12101         vasnprintf: Optimize bit search operation.
12102         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12103         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12104         gl_DOUBLE_EXPONENT_LOCATION.
12105         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12106         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12107         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12108         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12109         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12110         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12111         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12112         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12113         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12114
12115 2011-10-15  Bruno Haible  <bruno@clisp.org>
12116
12117         vasnprintf: Fix comments.
12118         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12119
12120 2011-10-14  Bruno Haible  <bruno@clisp.org>
12121
12122         Tests for module 'integer_length_ll'.
12123         * modules/integer_length_ll-tests: New file.
12124         * tests/test-integer_length_ll.c: New file.
12125
12126         New module 'integer_length_ll'.
12127         * lib/integer_length_ll.c: New file.
12128         * modules/integer_length_ll: New file.
12129
12130 2011-10-14  Bruno Haible  <bruno@clisp.org>
12131
12132         Tests for module 'integer_length_l'.
12133         * modules/integer_length_l-tests: New file.
12134         * tests/test-integer_length_l.c: New file.
12135
12136         New module 'integer_length_l'.
12137         * lib/integer_length_l.c: New file.
12138         * modules/integer_length_l: New file.
12139
12140 2011-10-14  Bruno Haible  <bruno@clisp.org>
12141
12142         Tests for module 'integer_length'.
12143         * modules/integer_length-tests: New file.
12144         * tests/test-integer_length.c: New file.
12145
12146         New module 'integer_length'.
12147         * lib/integer_length.h: New file.
12148         * lib/integer_length.c: New file.
12149         * modules/integer_length: New file.
12150
12151 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12152
12153         popen: Fix dependency conditions.
12154         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12155
12156 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12157
12158         perror: Fix autoconf test.
12159         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12160         <stdlib.h> and <string.h>.
12161
12162 2011-10-14  Bruno Haible  <bruno@clisp.org>
12163
12164         ffsl: Optimize on 64-bit platforms.
12165         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12166         unrolling.
12167
12168 2011-10-13  Bruno Haible  <bruno@clisp.org>
12169
12170         ffsl: Optimize on 32-bit platforms.
12171         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12172         use ffs() without a loop.
12173
12174         ffsl, ffsll: Optimize for GCC.
12175         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12176         * lib/ffsl.c (GCC_BUILTIN): New macro.
12177         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12178
12179 2011-10-13  Bruno Haible  <bruno@clisp.org>
12180
12181         ffs, bcopy, memset: Support symbol renaming via config.h.
12182         * lib/ffs.c: Include <config.h>.
12183         * lib/bcopy.c: Likewise.
12184         * lib/memset.c: Likewise.
12185
12186 2011-10-10  Bruno Haible  <bruno@clisp.org>
12187
12188         atanl: Simplify for platforms where 'long double' == 'double'.
12189         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12190         alternative implementation.
12191         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12192         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12193         * modules/atanl (Depends-on): Add atan. Update conditions.
12194
12195 2011-10-10  Bruno Haible  <bruno@clisp.org>
12196
12197         acosl: Simplify for platforms where 'long double' == 'double'.
12198         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12199         alternative implementation.
12200         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12201         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12202         * modules/acosl (Depends-on): Add acos. Update conditions.
12203
12204 2011-10-10  Bruno Haible  <bruno@clisp.org>
12205
12206         asinl: Simplify for platforms where 'long double' == 'double'.
12207         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12208         alternative implementation.
12209         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12210         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12211         * modules/asinl (Depends-on): Add asin. Update conditions.
12212
12213 2011-10-10  Bruno Haible  <bruno@clisp.org>
12214
12215         tanl: Simplify for platforms where 'long double' == 'double'.
12216         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12217         implementation.
12218         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12219         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12220         * modules/tanl (Depends-on): Add tan. Update conditions.
12221         (configure.ac): Don't compile trigl.c if
12222         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12223
12224 2011-10-10  Bruno Haible  <bruno@clisp.org>
12225
12226         cosl: Simplify for platforms where 'long double' == 'double'.
12227         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12228         implementation.
12229         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12230         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12231         * modules/cosl (Depends-on): Add cos. Update conditions.
12232         (configure.ac): Don't compile sincosl.c and trigl.c if
12233         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12234
12235 2011-10-10  Bruno Haible  <bruno@clisp.org>
12236
12237         sinl: Simplify for platforms where 'long double' == 'double'.
12238         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12239         implementation.
12240         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12241         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12242         * modules/sinl (Depends-on): Add sin. Update conditions.
12243         (configure.ac): Don't compile sincosl.c and trigl.c if
12244         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12245
12246 2011-10-10  Bruno Haible  <bruno@clisp.org>
12247
12248         logl: Simplify for platforms where 'long double' == 'double'.
12249         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12250         implementation.
12251         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12252         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12253         * modules/logl (Depends-on): Add log. Update conditions.
12254
12255 2011-10-10  Bruno Haible  <bruno@clisp.org>
12256
12257         expl: Simplify for platforms where 'long double' == 'double'.
12258         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12259         implementation.
12260         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12261         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12262         * modules/expl (Depends-on): Add exp. Update conditions.
12263
12264 2011-10-10  Bruno Haible  <bruno@clisp.org>
12265
12266         sqrtl: Simplify for platforms where 'long double' == 'double'.
12267         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12268         alternative implementation.
12269         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12270         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12271         * modules/sqrtl (Depends-on): Update conditions.
12272
12273 2011-10-10  Bruno Haible  <bruno@clisp.org>
12274
12275         ldexpl: Simplify for platforms where 'long double' == 'double'.
12276         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12277         alternative implementation.
12278         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12279         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12280         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12281
12282 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12283
12284         ffsll: set correct witness
12285         * modules/ffsll (configure.ac): Fix typo.
12286
12287 2011-10-10  Bruno Haible  <bruno@clisp.org>
12288
12289         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12290         * lib/printf-frexpl.c: Include <config.h>.
12291         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12292         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12293         second time.
12294         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12295         gl_LONG_DOUBLE_VS_DOUBLE.
12296         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12297         conditions.
12298
12299 2011-10-10  Bruno Haible  <bruno@clisp.org>
12300
12301         frexpl: Simplify for platforms where 'long double' == 'double'.
12302         * lib/frexpl.c: Include <config.h>.
12303         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12304         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12305         time.
12306         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12307         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12308         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12309         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12310         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12311         conditions.
12312
12313 2011-10-10  Jim Meyering  <meyering@redhat.com>
12314
12315         test-renameat: don't leave behind a temporary file
12316         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12317           ERROR: files left in build directory after distclean:
12318           ./gltests/test-renameat.too
12319           make[1]: *** [distcleancheck] Error 1
12320         Reported by Tom G. Christensen.
12321
12322 2011-10-09  Bruno Haible  <bruno@clisp.org>
12323
12324         rint: Determine RINT_LIBM correctly on AIX 7.
12325         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12326         directly, not only through a function pointer. Also accept an optional
12327         4th argument with extra code.
12328         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12329         rintf() call by gcc when optimizing.
12330
12331         mathfunc.m4: Refactor.
12332         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12333         m4 variable.
12334
12335 2011-10-09  Bruno Haible  <bruno@clisp.org>
12336
12337         rintl: Simplify for platforms where 'long double' == 'double'.
12338         * lib/rintl.c: Include <config.h>.
12339         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12340         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12341         time.
12342         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12343         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12344         * modules/rintl (Depends-on): Add rint. Update conditions.
12345
12346 2011-10-09  Bruno Haible  <bruno@clisp.org>
12347
12348         roundl: Simplify for platforms where 'long double' == 'double'.
12349         * lib/roundl.c: Include <config.h>.
12350         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12351         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12352         time.
12353         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12354         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12355         * modules/roundl (Depends-on): Add round. Update conditions.
12356
12357 2011-10-09  Bruno Haible  <bruno@clisp.org>
12358
12359         truncl: Simplify for platforms where 'long double' == 'double'.
12360         * lib/truncl.c: Include <config.h>.
12361         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12362         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12363         time.
12364         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12365         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12366         * modules/truncl (Depends-on): Add trunc. Update conditions.
12367
12368 2011-10-09  Bruno Haible  <bruno@clisp.org>
12369
12370         ceill: Simplify for platforms where 'long double' == 'double'.
12371         * lib/ceill.c: Include <config.h>.
12372         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12373         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12374         time.
12375         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12376         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12377         * modules/ceill (Depends-on): Add ceil. Update conditions.
12378
12379 2011-10-09  Bruno Haible  <bruno@clisp.org>
12380
12381         floorl: Simplify for platforms where 'long double' == 'double'.
12382         * lib/floorl.c: Include <config.h>.
12383         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12384         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12385         time.
12386         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12387         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12388         * modules/floorl (Depends-on): Add floor. Update conditions.
12389
12390 2011-10-09  Bruno Haible  <bruno@clisp.org>
12391
12392         rint: Fix ordering constraints.
12393         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12394         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12395         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12396
12397 2011-10-09  Bruno Haible  <bruno@clisp.org>
12398
12399         copysignl: Simplify for platforms where 'long double' == 'double'.
12400         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12401         alternative.
12402         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12403         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12404         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12405
12406 2011-10-09  Bruno Haible  <bruno@clisp.org>
12407
12408         Tests for module 'rintl'.
12409         * modules/rintl-tests: New file.
12410         * tests/test-rintl.c: New file.
12411
12412         New module 'rintl'.
12413         * lib/math.in.h (rintl): New declaration.
12414         * lib/rintl.c: New file.
12415         * m4/rintl.m4: New file.
12416         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12417         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12418         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12419         * modules/rintl: New file.
12420         * tests/test-math-c++.cc: Check the declaration of rintl.
12421         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12422         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12423         * doc/posix-functions/rintl.texi: Mention the new module.
12424
12425 2011-10-09  Bruno Haible  <bruno@clisp.org>
12426
12427         Tests for module 'rintf'.
12428         * modules/rintf-tests: New file.
12429         * tests/test-rintf.c: New file.
12430
12431         New module 'rintf'.
12432         * lib/math.in.h (rintf): New declaration.
12433         * lib/rintf.c: New file.
12434         * m4/rintf.m4: New file.
12435         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12437         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12438         * modules/rintf: New file.
12439         * tests/test-math-c++.cc: Check the declaration of rintf.
12440         * doc/posix-functions/rintf.texi: Mention the new module.
12441
12442 2011-10-09  Bruno Haible  <bruno@clisp.org>
12443
12444         rint: Support for MSVC.
12445         * lib/math.in.h (rint): New declaration.
12446         * lib/rint.c: New file.
12447         * m4/rint.m4: New file.
12448         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12450         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12451         * modules/rint (Description): Fix.
12452         (Files): Add lib/rint.c, m4/rint.m4.
12453         (Depends-on): Add math.
12454         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12455         gl_MATH_MODULE_INDICATOR.
12456         * tests/test-math-c++.cc: Check the declaration of rint.
12457         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12458         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12459         * doc/posix-functions/rint.texi: Mention the replacement provided by
12460         the module.
12461
12462         rint tests: More tests.
12463         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12464         minus-zero.h, infinity.h, nan.h.
12465         (main): Skip the test if the current rounding mode is not standard. Add
12466         tests for negative numbers, minus zero, infinity, NaN.
12467         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12468         tests/nan.h.
12469         (Depends-on): Add isnand-nolibm.
12470
12471 2011-10-09  Bruno Haible  <bruno@clisp.org>
12472
12473         Tests for module 'copysignl'.
12474         * modules/copysignl-tests: New file.
12475         * tests/test-copysignl.c: New file.
12476
12477         New module 'copysignl'.
12478         * lib/math.in.h (copysignl): New declaration.
12479         * lib/copysignl.c: New file.
12480         * m4/copysignl.m4: New file.
12481         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12483         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12484         HAVE_COPYSIGNL.
12485         * modules/copysignl: New file.
12486         * tests/test-math-c++.cc: Check the declaration of copysignl.
12487         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12488         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12489         * doc/posix-functions/copysignl.texi: Mention the new module.
12490
12491 2011-10-09  Bruno Haible  <bruno@clisp.org>
12492
12493         Tests for module 'copysignf'.
12494         * modules/copysignf-tests: New file.
12495         * tests/test-copysignf.c: New file.
12496
12497         New module 'copysignf'.
12498         * lib/math.in.h (copysignf): New declaration.
12499         * lib/copysignf.c: New file.
12500         * m4/copysignf.m4: New file.
12501         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12503         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12504         HAVE_COPYSIGNF.
12505         * modules/copysignf: New file.
12506         * tests/test-math-c++.cc: Check the declaration of copysignf.
12507         * doc/posix-functions/copysignf.texi: Mention the new module.
12508
12509 2011-10-09  Bruno Haible  <bruno@clisp.org>
12510
12511         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12512         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12513         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12514         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12515         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12516         gl_SIGNAL_H_DEFAULTS.
12517
12518 2011-10-09  Bruno Haible  <bruno@clisp.org>
12519
12520         poll: Make macro safer.
12521         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12522         ac_cv_header_poll_h is not set.
12523
12524 2011-10-09  Bruno Haible  <bruno@clisp.org>
12525
12526         copysign: Provide replacement.
12527         * lib/math.in.h (copysign): New declaration.
12528         * lib/copysign.c: New file.
12529         * m4/copysign.m4: New file.
12530         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12532         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12533         HAVE_COPYSIGN.
12534         * modules/copysign (Description): Clarify.
12535         (Files): Add lib/copysign.c, m4/copysign.m4.
12536         (Depends-on): Add math, signbit.
12537         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12538         gl_MATH_MODULE_INDICATOR.
12539         * tests/test-math-c++.cc: Check the declaration of copysign.
12540         * doc/posix-functions/copysign.texi: Mention the effects of the module
12541         on Minix and MSVC.
12542
12543 2011-10-09  Bruno Haible  <bruno@clisp.org>
12544
12545         isinf: Ensure macro on AIX 5.1.
12546         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12547         macro.
12548         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12549
12550 2011-10-09  Bruno Haible  <bruno@clisp.org>
12551
12552         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12553         * modules/snprintf-posix-tests (configure.ac): Require
12554         gl_LONG_DOUBLE_VS_DOUBLE.
12555         * modules/sprintf-posix-tests (configure.ac): Likewise.
12556         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12557         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12558         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12559         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12560         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12561         tests on platforms where 'long double' is the same as 'double'.
12562         * tests/test-sprintf-posix.h (test_function): Likewise.
12563         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12564         * tests/test-vasprintf-posix.c (test_function): Likewise.
12565
12566         *printf: Fix for platforms where 'long double' == 'double'.
12567         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12568         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12569         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12570         * modules/fprintf-posix (Files): Likewise.
12571         * modules/obstack-printf-posix (Files): Likewise.
12572         * modules/snprintf-posix (Files): Likewise.
12573         * modules/sprintf-posix (Files): Likewise.
12574         * modules/vasnprintf (Files): Likewise.
12575         * modules/vasnprintf-posix (Files): Likewise.
12576         * modules/vasprintf-posix (Files): Likewise.
12577         * modules/vdprintf-posix (Files): Likewise.
12578         * modules/vfprintf-posix (Files): Likewise.
12579         * modules/vsnprintf-posix (Files): Likewise.
12580         * modules/vsprintf-posix (Files): Likewise.
12581         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12582         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12583         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12584         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12585         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12586         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12587         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12588
12589         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12590         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12591         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12592         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12593         'long double'.
12594         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12595
12596         isinf: Fix for platforms where 'long double' == 'double'.
12597         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12598         Don't blindly assume 80-bit 'long double'.
12599
12600         isfinite: Fix for platforms where 'long double' == 'double'.
12601         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12602         Don't blindly assume 80-bit 'long double'.
12603
12604         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12605         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12606         * modules/isfinite-tests (configure.ac): Require
12607         gl_LONG_DOUBLE_VS_DOUBLE.
12608         * modules/isinf-tests (configure.ac): Likewise.
12609         * modules/isnan-tests (configure.ac): Likewise.
12610         * modules/isnanl-tests (configure.ac): Likewise.
12611         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12612         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12613         tests on platforms where 'long double' is the same as 'double'.
12614         * tests/test-isinf.c (test_isinfl): Likewise.
12615         * tests/test-isnan.c (test_long_double): Likewise.
12616         * tests/test-isnanl.h (main): Likewise.
12617
12618 2011-10-08  Bruno Haible  <bruno@clisp.org>
12619
12620         Tests for module 'tanhf'.
12621         * modules/tanhf-tests: New file.
12622         * tests/test-tanhf.c: New file.
12623
12624         New module 'tanhf'.
12625         * lib/math.in.h (tanhf): New declaration.
12626         * lib/tanhf.c: New file.
12627         * m4/tanhf.m4: New file.
12628         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12630         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12631         * modules/tanhf: New file.
12632         * tests/test-math-c++.cc: Check the declaration of tanhf.
12633         * doc/posix-functions/tanhf.texi: Mention the new module.
12634
12635         tanh: Use a .m4 file.
12636         * m4/tanh.m4: New file.
12637         * modules/tanh (Files): Add it.
12638         (configure.ac): Just invoke gl_FUNC_TANH.
12639
12640 2011-10-08  Bruno Haible  <bruno@clisp.org>
12641
12642         Tests for module 'coshf'.
12643         * modules/coshf-tests: New file.
12644         * tests/test-coshf.c: New file.
12645
12646         New module 'coshf'.
12647         * lib/math.in.h (coshf): New declaration.
12648         * lib/coshf.c: New file.
12649         * m4/coshf.m4: New file.
12650         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12652         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12653         * modules/coshf: New file.
12654         * tests/test-math-c++.cc: Check the declaration of coshf.
12655         * doc/posix-functions/coshf.texi: Mention the new module.
12656
12657         cosh: Use a .m4 file.
12658         * m4/cosh.m4: New file.
12659         * modules/cosh (Files): Add it.
12660         (configure.ac): Just invoke gl_FUNC_COSH.
12661
12662 2011-10-08  Bruno Haible  <bruno@clisp.org>
12663
12664         Tests for module 'sinhf'.
12665         * modules/sinhf-tests: New file.
12666         * tests/test-sinhf.c: New file.
12667
12668         New module 'sinhf'.
12669         * lib/math.in.h (sinhf): New declaration.
12670         * lib/sinhf.c: New file.
12671         * m4/sinhf.m4: New file.
12672         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12674         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12675         * modules/sinhf: New file.
12676         * tests/test-math-c++.cc: Check the declaration of sinhf.
12677         * doc/posix-functions/sinhf.texi: Mention the new module.
12678
12679         sinh: Use a .m4 file.
12680         * m4/sinh.m4: New file.
12681         * modules/sinh (Files): Add it.
12682         (configure.ac): Just invoke gl_FUNC_SINH.
12683
12684 2011-10-08  Bruno Haible  <bruno@clisp.org>
12685
12686         Tests for module 'atan2f'.
12687         * modules/atan2f-tests: New file.
12688         * tests/test-atan2f.c: New file.
12689
12690         New module 'atan2f'.
12691         * lib/math.in.h (atan2f): New declaration.
12692         * lib/atan2f.c: New file.
12693         * m4/atan2f.m4: New file.
12694         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12696         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12697         * modules/atan2f: New file.
12698         * tests/test-math-c++.cc: Check the declaration of atan2f.
12699         * doc/posix-functions/atan2f.texi: Mention the new module.
12700
12701         atan2: Use a .m4 file.
12702         * m4/atan2.m4: New file.
12703         * modules/atan2 (Files): Add it.
12704         (configure.ac): Just invoke gl_FUNC_ATAN2.
12705
12706 2011-10-08  Bruno Haible  <bruno@clisp.org>
12707
12708         Tests for module 'atanf'.
12709         * modules/atanf-tests: New file.
12710         * tests/test-atanf.c: New file.
12711
12712         New module 'atanf'.
12713         * lib/math.in.h (atanf): New declaration.
12714         * lib/atanf.c: New file.
12715         * m4/atanf.m4: New file.
12716         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12718         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12719         * modules/atanf: New file.
12720         * tests/test-math-c++.cc: Check the declaration of atanf.
12721         * doc/posix-functions/atanf.texi: Mention the new module.
12722
12723         atan: Use a .m4 file.
12724         * m4/atan.m4: New file.
12725         * modules/atan (Files): Add it.
12726         (configure.ac): Just invoke gl_FUNC_ATAN.
12727
12728 2011-10-08  Bruno Haible  <bruno@clisp.org>
12729
12730         Tests for module 'acosf'.
12731         * modules/acosf-tests: New file.
12732         * tests/test-acosf.c: New file.
12733
12734         New module 'acosf'.
12735         * lib/math.in.h (acosf): New declaration.
12736         * lib/acosf.c: New file.
12737         * m4/acosf.m4: New file.
12738         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12739         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12740         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12741         * modules/acosf: New file.
12742         * tests/test-math-c++.cc: Check the declaration of acosf.
12743         * doc/posix-functions/acosf.texi: Mention the new module.
12744
12745         acos: Use a .m4 file.
12746         * m4/acos.m4: New file.
12747         * modules/acos (Files): Add it.
12748         (configure.ac): Just invoke gl_FUNC_ACOS.
12749
12750 2011-10-08  Bruno Haible  <bruno@clisp.org>
12751
12752         Tests for module 'asinf'.
12753         * modules/asinf-tests: New file.
12754         * tests/test-asinf.c: New file.
12755
12756         New module 'asinf'.
12757         * lib/math.in.h (asinf): New declaration.
12758         * lib/asinf.c: New file.
12759         * m4/asinf.m4: New file.
12760         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12762         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12763         * modules/asinf: New file.
12764         * tests/test-math-c++.cc: Check the declaration of asinf.
12765         * doc/posix-functions/asinf.texi: Mention the new module.
12766
12767         asin: Use a .m4 file.
12768         * m4/asin.m4: New file.
12769         * modules/asin (Files): Add it.
12770         (configure.ac): Just invoke gl_FUNC_ASIN.
12771
12772 2011-10-08  Bruno Haible  <bruno@clisp.org>
12773
12774         Tests for module 'tanf'.
12775         * modules/tanf-tests: New file.
12776         * tests/test-tanf.c: New file.
12777
12778         New module 'tanf'.
12779         * lib/math.in.h (tanf): New declaration.
12780         * lib/tanf.c: New file.
12781         * m4/tanf.m4: New file.
12782         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12784         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12785         * modules/tanf: New file.
12786         * tests/test-math-c++.cc: Check the declaration of tanf.
12787         * doc/posix-functions/tanf.texi: Mention the new module.
12788
12789         tan: Use a .m4 file.
12790         * m4/tan.m4: New file.
12791         * modules/tan (Files): Add it.
12792         (configure.ac): Just invoke gl_FUNC_TAN.
12793
12794 2011-10-08  Bruno Haible  <bruno@clisp.org>
12795
12796         Tests for module 'cosf'.
12797         * modules/cosf-tests: New file.
12798         * tests/test-cosf.c: New file.
12799
12800         New module 'cosf'.
12801         * lib/math.in.h (cosf): New declaration.
12802         * lib/cosf.c: New file.
12803         * m4/cosf.m4: New file.
12804         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12806         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12807         * modules/cosf: New file.
12808         * tests/test-math-c++.cc: Check the declaration of cosf.
12809         * doc/posix-functions/cosf.texi: Mention the new module.
12810
12811         cos: Use a .m4 file.
12812         * m4/cos.m4: New file.
12813         * modules/cos (Files): Add it.
12814         (configure.ac): Just invoke gl_FUNC_COS.
12815
12816 2011-10-08  Bruno Haible  <bruno@clisp.org>
12817
12818         Tests for module 'sinf'.
12819         * modules/sinf-tests: New file.
12820         * tests/test-sinf.c: New file.
12821
12822         New module 'sinf'.
12823         * lib/math.in.h (sinf): New declaration.
12824         * lib/sinf.c: New file.
12825         * m4/sinf.m4: New file.
12826         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12828         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12829         * modules/sinf: New file.
12830         * tests/test-math-c++.cc: Check the declaration of sinf.
12831         * doc/posix-functions/sinf.texi: Mention the new module.
12832
12833         sin: Use a .m4 file.
12834         * m4/sin.m4: New file.
12835         * modules/sin (Files): Add it.
12836         (configure.ac): Just invoke gl_FUNC_SIN.
12837
12838 2011-10-08  Bruno Haible  <bruno@clisp.org>
12839
12840         Tests for module 'powf'.
12841         * modules/powf-tests: New file.
12842         * tests/test-powf.c: New file.
12843
12844         New module 'powf'.
12845         * lib/math.in.h (powf): New declaration.
12846         * lib/powf.c: New file.
12847         * m4/powf.m4: New file.
12848         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12850         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12851         * modules/powf: New file.
12852         * tests/test-math-c++.cc: Check the declaration of powf.
12853         * doc/posix-functions/powf.texi: Mention the new module.
12854
12855         pow: Use a .m4 file.
12856         * m4/pow.m4: New file.
12857         * modules/pow (Files): Add it.
12858         (configure.ac): Just invoke gl_FUNC_POW.
12859
12860 2011-10-08  Bruno Haible  <bruno@clisp.org>
12861
12862         Tests for module 'log10f'.
12863         * modules/log10f-tests: New file.
12864         * tests/test-log10f.c: New file.
12865
12866         New module 'log10f'.
12867         * lib/math.in.h (log10f): New declaration.
12868         * lib/log10f.c: New file.
12869         * m4/log10f.m4: New file.
12870         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
12871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
12872         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
12873         * modules/log10f: New file.
12874         * tests/test-math-c++.cc: Check the declaration of log10f.
12875         * doc/posix-functions/log10f.texi: Mention the new module.
12876
12877         log10: Use a .m4 file.
12878         * m4/log10.m4: New file.
12879         * modules/log10 (Files): Add it.
12880         (configure.ac): Just invoke gl_FUNC_LOG10.
12881
12882 2011-10-08  Bruno Haible  <bruno@clisp.org>
12883
12884         Tests for module 'logf'.
12885         * modules/logf-tests: New file.
12886         * tests/test-logf.c: New file.
12887
12888         New module 'logf'.
12889         * lib/math.in.h (logf): New declaration.
12890         * lib/logf.c: New file.
12891         * m4/logf.m4: New file.
12892         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
12893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
12894         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
12895         * modules/logf: New file.
12896         * tests/test-math-c++.cc: Check the declaration of logf.
12897         * doc/posix-functions/logf.texi: Mention the new module.
12898
12899         log: Use a .m4 file.
12900         * m4/log.m4: New file.
12901         * modules/log (Files): Add it.
12902         (configure.ac): Just invoke gl_FUNC_LOG.
12903
12904 2011-10-08  Bruno Haible  <bruno@clisp.org>
12905
12906         Tests for module 'expf'.
12907         * modules/expf-tests: New file.
12908         * tests/test-expf.c: New file.
12909
12910         New module 'expf'.
12911         * lib/math.in.h (expf): New declaration.
12912         * lib/expf.c: New file.
12913         * m4/expf.m4: New file.
12914         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12916         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12917         * modules/expf: New file.
12918         * tests/test-math-c++.cc: Check the declaration of expf.
12919         * doc/posix-functions/expf.texi: Mention the new module.
12920
12921         exp: Use a .m4 file.
12922         * m4/exp.m4: New file.
12923         * modules/exp (Files): Add it.
12924         (configure.ac): Just invoke gl_FUNC_EXP.
12925
12926 2011-10-08  Bruno Haible  <bruno@clisp.org>
12927
12928         Tests for module 'sqrtf'.
12929         * modules/sqrtf-tests: New file.
12930         * tests/test-sqrtf.c: New file.
12931
12932         New module 'sqrtf'.
12933         * lib/math.in.h (sqrtf): New declaration.
12934         * lib/sqrtf.c: New file.
12935         * m4/sqrtf.m4: New file.
12936         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12938         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12939         * modules/sqrtf: New file.
12940         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12941         * doc/posix-functions/sqrtf.texi: Mention the new module.
12942
12943 2011-10-08  Bruno Haible  <bruno@clisp.org>
12944
12945         Tests: Avoid link failures w.r.t. libintl.
12946         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12947         $(LIBINTL).
12948         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12949         $(LIBINTL).
12950         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12951         against $(LIBINTL).
12952         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12953         $(LIBINTL).
12954         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12955         $(LIBINTL).
12956         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12957
12958 2011-10-08  Bruno Haible  <bruno@clisp.org>
12959
12960         pow tests: Defeat compiler optimizations.
12961         * tests/test-pow.c (main): Assign arguments to x and y before use.
12962
12963 2011-10-08  Bruno Haible  <bruno@clisp.org>
12964
12965         gnulib-tool: Improve last commit.
12966         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12967         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12968         ignore dependencies that are not among the modules list.
12969
12970 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12971
12972         gnulib-tool: don't follow dependencies to avoided modules
12973         This fixes a bug that is related to the previous one.
12974         * gnulib-tool (func_modules_transitive_closure)
12975         (func_emit_autoconf_snippets):
12976         Check whether a dependency is acceptable before using it.
12977         (--extract-dependencies): Report an error if --avoid is also used,
12978         since this combination of options is not yet supported.
12979
12980         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12981         Problem reported by Peter Dyballa in
12982         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12983         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12984         when echoing "$condition".
12985
12986 2011-10-07  Bruno Haible  <bruno@clisp.org>
12987
12988         Fix documentation about math functions on MacOS X.
12989         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12990         MacOS X 10.5.
12991         * doc/posix-functions/fdim.texi: Likewise.
12992         * doc/posix-functions/feclearexcept.texi: Likewise.
12993         * doc/posix-functions/fegetenv.texi: Likewise.
12994         * doc/posix-functions/fegetround.texi: Likewise.
12995         * doc/posix-functions/feholdexcept.texi: Likewise.
12996         * doc/posix-functions/feraiseexcept.texi: Likewise.
12997         * doc/posix-functions/fesetenv.texi: Likewise.
12998         * doc/posix-functions/fesetround.texi: Likewise.
12999         * doc/posix-functions/fetestexcept.texi: Likewise.
13000         * doc/posix-functions/feupdateenv.texi: Likewise.
13001         * doc/posix-functions/fmax.texi: Likewise.
13002         * doc/posix-functions/fmin.texi: Likewise.
13003         * doc/posix-functions/log2.texi: Likewise.
13004         * doc/posix-functions/modff.texi: Likewise.
13005         * doc/posix-functions/nan.texi: Likewise.
13006         * doc/posix-functions/nanf.texi: Likewise.
13007         * doc/posix-functions/nextafterf.texi: Likewise.
13008         * doc/posix-functions/remquo.texi: Likewise.
13009
13010 2011-10-07  Bruno Haible  <bruno@clisp.org>
13011
13012         modff: Drop assumption about library that defines modff.
13013         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13014         AC_CHECK_FUNCS.
13015         * modules/modff (Files): Add m4/mathfunc.m4.
13016
13017 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13018
13019         raise tests: Avoid a GCC warning.
13020         * tests/test-raise.c (handler): Use _Noreturn.
13021
13022 2011-10-07  Bruno Haible  <bruno@clisp.org>
13023
13024         Tests for module 'ldexpf'.
13025         * modules/ldexpf-tests: New file.
13026         * tests/test-ldexpf.c: New file.
13027
13028         New module 'ldexpf'.
13029         * lib/math.in.h (ldexpf): New declaration.
13030         * lib/ldexpf.c: New file.
13031         * m4/ldexpf.m4: New file.
13032         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13034         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13035         * modules/ldexpf: New file.
13036         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13037         * doc/posix-functions/ldexpf.texi: Mention the new module.
13038
13039 2011-10-06  Bruno Haible  <bruno@clisp.org>
13040
13041         frexpf: Work around problems on IRIX and mingw.
13042         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13044         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13045         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13046         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13047         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13048         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13049
13050 2011-10-06  Bruno Haible  <bruno@clisp.org>
13051
13052         fabsf: Drop assumption about library that defines fabsf.
13053         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13054         AC_CHECK_FUNCS.
13055         * modules/fabsf (Files): Add m4/mathfunc.m4.
13056
13057 2011-10-06  Bruno Haible  <bruno@clisp.org>
13058
13059         frexpf: Drop assumption about library that defines frexpf.
13060         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13061         'int *', 'float *', 'long double *', 'float', 'long double'.
13062         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13063         AC_CHECK_FUNCS.
13064         * modules/frexpf (Files): Add m4/mathfunc.m4.
13065
13066         Tests for module 'frexpf'.
13067         * modules/frexpf-tests: New file.
13068         * tests/test-frexpf.c: New file.
13069
13070         New module 'frexpf'.
13071         * lib/math.in.h (frexpf): New declaration.
13072         * lib/frexpf.c: New file.
13073         * m4/frexpf.m4: New file.
13074         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13076         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13077         * modules/frexpf: New file.
13078         * tests/test-math-c++.cc: Check the declaration of frexpf.
13079         * doc/posix-functions/frexpf.texi: Mention the new module.
13080
13081 2011-10-06  Bruno Haible  <bruno@clisp.org>
13082
13083         math: Sort function declarations of math.in.h.
13084         * lib/math.in.h (frexp, logb): Move declarations.
13085
13086 2011-10-05  Bruno Haible  <bruno@clisp.org>
13087
13088         Tests for module 'modff'.
13089         * modules/modff-tests: New file.
13090         * tests/test-modff.c: New file.
13091
13092         New module 'modff'.
13093         * lib/math.in.h (modff): New declaration.
13094         * lib/modff.c: New file.
13095         * m4/modff.m4: New file.
13096         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13098         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13099         * modules/modff: New file.
13100         * tests/test-math-c++.cc: Check the declaration of modff.
13101         * doc/posix-functions/modff.texi: Mention the new module.
13102
13103         modf tests: Make test sharper.
13104         * tests/test-modf.c (main): Strengthen upper bound.
13105
13106         modf: Use a .m4 file.
13107         * m4/modf.m4: New file.
13108         * modules/modf (Files): Add it.
13109         (configure.ac): Just invoke gl_FUNC_MODF.
13110
13111 2011-10-05  Bruno Haible  <bruno@clisp.org>
13112
13113         Tests for module 'fmodf'.
13114         * modules/fmodf-tests: New file.
13115         * tests/test-fmodf.c: New file.
13116
13117         New module 'fmodf'.
13118         * lib/math.in.h (fmodf): New declaration.
13119         * lib/fmodf.c: New file.
13120         * m4/fmodf.m4: New file.
13121         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13123         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13124         * modules/fmodf: New file.
13125         * tests/test-math-c++.cc: Check the declaration of fmodf.
13126         * doc/posix-functions/fmodf.texi: Mention the new module.
13127
13128         fmod: Use a .m4 file.
13129         * m4/fmod.m4: New file.
13130         * modules/fmod (Files): Add it.
13131         (configure.ac): Just invoke gl_FUNC_FMOD.
13132
13133 2011-10-05  Bruno Haible  <bruno@clisp.org>
13134
13135         Tests for module 'fabsf'.
13136         * modules/fabsf-tests: New file.
13137         * tests/test-fabsf.c: New file.
13138
13139         New module 'fabsf'.
13140         * lib/math.in.h (fabsf): New declaration.
13141         * lib/fabsf.c: New file.
13142         * m4/fabsf.m4: New file.
13143         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13145         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13146         * modules/fabsf: New file.
13147         * tests/test-math-c++.cc: Check the declaration of fabsf.
13148         * doc/posix-functions/fabsf.texi: Mention the new module.
13149
13150         fabs: Use a .m4 file.
13151         * m4/fabs.m4: New file.
13152         * modules/fabs (Files): Add it.
13153         (configure.ac): Just invoke gl_FUNC_FABS.
13154
13155 2011-10-05  Jim Meyering  <meyering@redhat.com>
13156
13157         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13158         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13159         ls -lL regression introduced in coreutils-8.12, it does so at the
13160         cost of an additional stat call in the common case.  Besides, now
13161         that the kernel change that prompted commit 95f7c57f has been reverted
13162         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13163         we have no use for commit 95f7c57f, "file-has-acl: use
13164         acl_extended_file_nofollow if available".
13165
13166 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13167
13168         file-has-acl: revert unintended change in behavior of ls -L
13169         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13170         derived from...
13171         (file_has_acl): ...code here.  Call it.
13172         This problem was introduced with 2011-07-22 commit 95f7c57f,
13173         "file-has-acl: use acl_extended_file_nofollow if available".
13174         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13175
13176 2011-10-03  Bruno Haible  <bruno@clisp.org>
13177
13178         poll: Avoid link errors on MSVC.
13179         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13180         * modules/poll (Depends-on): Add sockets.
13181         (Link): New section.
13182         * NEWS: Mention the change.
13183         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13184         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13185         $(LIB_POLL) instead of $(LIBSOCKET).
13186
13187 2011-10-03  Bruno Haible  <bruno@clisp.org>
13188
13189         sys_select tests: Fix link error on MSVC 9.
13190         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13191         with $(LIB_SELECT) instead of $(LIBSOCKET).
13192
13193 2011-10-03  Bruno Haible  <bruno@clisp.org>
13194
13195         sys_select: Fix compilation error on mingw.
13196         * lib/sys_select.in.h: On native Windows, include <io.h>.
13197
13198 2011-10-03  Bruno Haible  <bruno@clisp.org>
13199
13200         wmemset: Support for MSVC.
13201         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13202         whether wmemset() exists.
13203
13204 2011-10-03  Bruno Haible  <bruno@clisp.org>
13205
13206         wmemmove: Support for MSVC.
13207         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13208         whether wmemmove() exists.
13209
13210 2011-10-03  Bruno Haible  <bruno@clisp.org>
13211
13212         wmemcpy: Support for MSVC.
13213         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13214         whether wmemcpy() exists.
13215
13216 2011-10-03  Bruno Haible  <bruno@clisp.org>
13217
13218         wmemcmp: Support for MSVC.
13219         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13220         whether wmemcmp() exists.
13221
13222 2011-10-03  Bruno Haible  <bruno@clisp.org>
13223
13224         wmemchr: Support for MSVC.
13225         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13226         whether wmemchr() exists.
13227
13228 2011-10-03  Bruno Haible  <bruno@clisp.org>
13229
13230         glthread/*, strsignal: Support for MSVC.
13231         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13232         including <winsock.h> on MSVC 9.
13233         * lib/glthread/lock.h: Likewise.
13234         * lib/glthread/thread.h: Likewise.
13235         * lib/glthread/tls.h: Likewise.
13236         * lib/glthread/yield.h: Likewise.
13237         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13238         if HAVE_UNISTD_H is false.
13239         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13240
13241 2011-10-03  Bruno Haible  <bruno@clisp.org>
13242
13243         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13244         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13245         Set to 100000.
13246
13247 2011-10-03  Bruno Haible  <bruno@clisp.org>
13248
13249         acl: Fix specification.
13250         * lib/file-has-acl.c (file_has_acl): Fix specification.
13251
13252 2011-10-03  Bruno Haible  <bruno@clisp.org>
13253
13254         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13255         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13256         (compute_curr_prefix, shared_library_fullname,
13257         find_shared_library_fullname, get_shared_library_fullname, relocate):
13258         Use it together with PIC && INSTALLDIR.
13259         Reported by <jojelino@gmail.com>
13260         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13261
13262 2011-10-01  Jim Meyering  <meyering@redhat.com>
13263
13264         maint.mk: adjust a release-related rule not to require use of gzip
13265         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13266         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13267         projects that build only .tar.xz files.  Also fix an erroneous test.
13268
13269         test-linkat: don't leave behind a temporary file
13270         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13271         Otherwise, coreutils' "make distcheck" would fail with this:
13272           Only in /c/cu/tests/torture/coreutils/test/\
13273             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13274           make[2]: *** [my-distcheck] Error 1
13275
13276         float, math: add omitted file
13277         * lib/itold.c: Add file, required for yesterday's float change.
13278
13279 2011-10-01  Bruno Haible  <bruno@clisp.org>
13280
13281         isinf: Fix for OpenBSD/x86.
13282         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13283         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13284         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13285
13286 2011-10-01  Bruno Haible  <bruno@clisp.org>
13287
13288         isfinite: Fix syntax error in configure test.
13289         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13290
13291         isfinite: Fix typo.
13292         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13293         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13294
13295 2011-10-01  Bruno Haible  <bruno@clisp.org>
13296
13297         nonblocking tests: Fix test failure on Linux/IA-64.
13298         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13299         Set to 270000.
13300
13301 2011-10-01  Bruno Haible  <bruno@clisp.org>
13302
13303         mkfifoat tests: Fix a test failure on mingw.
13304         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13305         with error ENOSYS.
13306
13307 2011-09-30  Bruno Haible  <bruno@clisp.org>
13308
13309         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13310         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13311         'long double'. Set REPLACE_ITOLD.
13312         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13313         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13314         * lib/itold.c: New file.
13315         * modules/float (Files): Add lib/itold.c.
13316         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13317         (Makefile.am): Substitute REPLACE_ITOLD.
13318         * modules/math (Depends-on): Add float.
13319         (Makefile.am): Substitute REPLACE_ITOLD.
13320         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13321         * doc/posix-headers/math.texi: Likewise.
13322         * doc/posix-functions/logl.texi: Likewise.
13323
13324 2011-09-30  Bruno Haible  <bruno@clisp.org>
13325
13326         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13327         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13328         Set to 140000.
13329
13330 2011-09-30  Bruno Haible  <bruno@clisp.org>
13331
13332         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13333         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13334         invocation, say "right after AC_PROG_CC_STDC", not "right after
13335         AC_PROG_CC".
13336         Reported by Gary V. Vaughan <gary@gnu.org>.
13337
13338 2011-09-30  Bruno Haible  <bruno@clisp.org>
13339
13340         Centralize C99 requirement.
13341         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13342         * modules/stdarg (configure.ac-early): Invoke it instead of
13343         AC_PROG_CC_STDC.
13344         Reported by Gary V. Vaughan and Paul Eggert.
13345
13346 2011-09-29  Bruno Haible  <bruno@clisp.org>
13347
13348         float: Fix LDBL_MAX value on Linux/PowerPC.
13349         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13350         on Linux/PowerPC.
13351         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13352         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13353         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13354         platform.
13355         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13356
13357 2011-09-29  Bruno Haible  <bruno@clisp.org>
13358
13359         doc: Improve doc about gl_EARLY.
13360         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13361         AC_PROG_CC_STDC invocation.
13362         Reported by Gary V. Vaughan <gary@gnu.org>.
13363
13364 2011-09-28  Bruno Haible  <bruno@clisp.org>
13365
13366         fgetc, fputc, fread, fwrite tests: Fix link error.
13367         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13368         on non-MSVC platforms.
13369         * tests/test-fputc.c (main): Likewise.
13370         * tests/test-fread.c (main): Likewise.
13371         * tests/test-fwrite.c (main): Likewise.
13372         Reported by Jim Meyering.
13373
13374 2011-09-27  Bruno Haible  <bruno@clisp.org>
13375
13376         fputc, fwrite tests: Avoid test failure on MSVC.
13377         * tests/test-fgetc.c: Include msvc-inval.h.
13378         (main): Invoke gl_msvc_inval_ensure_handler.
13379         * tests/test-fputc.c: Include msvc-inval.h.
13380         (main): Invoke gl_msvc_inval_ensure_handler.
13381         * tests/test-fread.c: Include msvc-inval.h.
13382         (main): Invoke gl_msvc_inval_ensure_handler.
13383         * tests/test-fwrite.c: Include msvc-inval.h.
13384         (main): Invoke gl_msvc_inval_ensure_handler.
13385         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13386         * modules/fputc-tests (Depends-on): Likewise.
13387         * modules/fread-tests (Depends-on): Likewise.
13388         * modules/fwrite-tests (Depends-on): Likewise.
13389
13390 2011-09-27  Bruno Haible  <bruno@clisp.org>
13391
13392         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13393         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13394         (raise): Remove older, duplicated declaration.
13395         (_gl_raise_SIGPIPE): New declaration.
13396         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13397         (rpl_raise): Remove function.
13398         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13399         a gnulib-defined SIGPIPE here.
13400         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13401         'sigprocmask' has detected missing signal-blocking and the module
13402         'sigpipe' is enabled.
13403         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13404
13405 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13406
13407         base64-tests: avoid memory leak
13408         * tests/test-base64.c (main): Plug memory leak.
13409
13410         base32: new module
13411         * modules/base32: New module.
13412         * lib/base32.c: New file.
13413         * lib/base32.h: Likewise.
13414         * m4/base32.m4: Likewise.
13415         * modules/base32-tests: New test.
13416         * tests/test-base32.c: Likewise.
13417         * MODULES.html.sh (Misc): Mention it.
13418
13419 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13420
13421         gnulib: use more-standard license notice wording
13422         * gnulib-tool (func_emit_copyright_notice): When emitting a
13423         license notice into a file, use the standard wording as suggested
13424         by the current information for GNU maintainers, except say "file"
13425         rather than "program".  The new wording gives a license version
13426         number, which addresses an issue raised by Glenn Morris in
13427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13428         * m4/onceonly.m4: Use that same wording here, too.
13429
13430         dup2: minor simplification
13431         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13432         as lib/dup2.c no longer uses 'inline'.
13433
13434 2011-09-25  Bruno Haible  <bruno@clisp.org>
13435
13436         strings: Fix compilation error on MSVC.
13437         * lib/strings.in.h: Include <stddef.h> for size_t.
13438
13439 2011-09-25  Bruno Haible  <bruno@clisp.org>
13440
13441         fflush et al.: Document limitation on MSVC.
13442         * doc/posix-functions/fflush.texi: Document possible crash in handling
13443         mode other than DEFAULT_HANDLING.
13444         * doc/posix-functions/fgetc.texi: Likewise.
13445         * doc/posix-functions/fputc.texi: Likewise.
13446         * doc/posix-functions/fread.texi: Likewise.
13447         * doc/posix-functions/fwrite.texi: Likewise.
13448
13449 2011-09-25  Bruno Haible  <bruno@clisp.org>
13450
13451         msvc-inval: Allow three invalid parameter handling modes.
13452         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13453         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13454         macros.
13455         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13456         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13457         SANE_LIBRARY_HANDLING as a no-op.
13458         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13459         <stdlib.h>.
13460         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13461
13462 2011-09-25  Bruno Haible  <bruno@clisp.org>
13463
13464         msvc-inval: Make handler multithread-safe.
13465         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13466         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13467         declarations.
13468         (gl_msvc_inval_current): New declaration.
13469         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13470         Operate on the structure returned by gl_msvc_inval_current().
13471         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13472         Remove varaiables.
13473         (tls_index, tls_initialized): New variables.
13474         (not_per_thread): New variable.
13475         (gl_msvc_inval_current): New function.
13476         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13477         returned by gl_msvc_inval_current().
13478
13479 2011-09-25  Bruno Haible  <bruno@clisp.org>
13480
13481         msvc-inval: Install handler globally.
13482         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13483         !_MSC_VER.
13484         (gl_msvc_invalid_parameter_handler): Remove declaration.
13485         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13486         declarations.
13487         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13488         Install the handler globally, don't uninstall it.
13489         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13490         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13491         currently valid, call RaiseException instead.
13492         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13493         for !_MSC_VER.
13494
13495 2011-09-25  Bruno Haible  <bruno@clisp.org>
13496
13497         strerror_r-posix: Fix for MSVC 9.
13498         * lib/strerror_r.c (local_snprintf): New function.
13499         (snprintf): Define to local_snprintf, not to _snprintf.
13500
13501 2011-09-25  Bruno Haible  <bruno@clisp.org>
13502
13503         ftruncate: Support for MSVC 9.
13504         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13505         (chsize_nothrow): New function.
13506         (chsize): Redefine as a macro.
13507         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13508         * modules/ftruncate (Depends-on): Add msvc-inval.
13509
13510 2011-09-25  Bruno Haible  <bruno@clisp.org>
13511
13512         New module 'fstat'.
13513         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13514         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13515         * lib/fchdir.c (rpl_fstat): Remove function.
13516         * m4/fstat.m4: New file.
13517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13518         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13519         declared.
13520         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13521         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13522         * modules/fstat: New file.
13523         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13524         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13525         is set.
13526         * doc/posix-functions/fstat.texi: Mention the new module and the
13527         problem on MSVC.
13528         * NEWS: Mention the change.
13529         * modules/acl (Depends-on): Add fstat.
13530         * modules/chdir-safer (Depends-on): Likewise.
13531         * modules/chown (Depends-on): Likewise.
13532         * modules/copy-file (Depends-on): Likewise.
13533         * modules/fchdir (Depends-on): Likewise.
13534         * modules/fdopendir (Depends-on): Likewise.
13535         * modules/fopen (Depends-on): Likewise.
13536         * modules/fts (Depends-on): Likewise.
13537         * modules/getcwd (Depends-on): Likewise.
13538         * modules/isapipe (Depends-on): Likewise.
13539         * modules/linkat (Depends-on): Likewise.
13540         * modules/lseek (Depends-on): Likewise.
13541         * modules/mkdir-p (Depends-on): Likewise.
13542         * modules/open (Depends-on): Likewise.
13543         * modules/openat (Depends-on): Likewise.
13544         * modules/read-file (Depends-on): Likewise.
13545         * modules/renameat (Depends-on): Likewise.
13546         * modules/utimens (Depends-on): Likewise.
13547
13548 2011-09-25  Bruno Haible  <bruno@clisp.org>
13549
13550         linkat: Fix compilation on MSVC 9.
13551         * lib/linkat.c: Don't include <stdint.h>.
13552
13553 2011-09-25  Bruno Haible  <bruno@clisp.org>
13554
13555         fclose: Support for MSVC 9.
13556         * lib/fclose.c: Include msvc-inval.h.
13557         (fclose_nothrow): New function.
13558         (rpl_fclose): Use it.
13559         * modules/fclose (Depends-on): Add msvc-inval.
13560         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13561
13562 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13563
13564         dup2: minor simplifications
13565         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13566         that it's a performance win.
13567         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13568         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13569
13570 2011-09-24  Jim Meyering  <meyering@redhat.com>
13571
13572         test-futimens: avoid a warning from gcc -Wshadow
13573         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13574         to avoid a shadowing warning.
13575
13576 2011-09-24  Bruno Haible  <bruno@clisp.org>
13577
13578         fdopen: Support for MSVC 9.
13579         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13580         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13581         * lib/fdopen.c: Include msvc-inval.h.
13582         (fdopen_nothrow): New function.
13583         (rpl_fdopen): Use it.
13584         * modules/fdopen (Depends-on): Add msvc-inval.
13585         * modules/fclose-tests (Depends-on): Add fdopen.
13586         * modules/fflush-tests (Depends-on): Likewise.
13587         * modules/fgetc-tests (Depends-on): Likewise.
13588         * modules/fputc-tests (Depends-on): Likewise.
13589         * modules/fread-tests (Depends-on): Likewise.
13590         * modules/freopen-tests (Depends-on): Likewise.
13591         * modules/fseeko-tests (Depends-on): Likewise.
13592         * modules/ftello-tests (Depends-on): Likewise.
13593         * modules/fwrite-tests  (Depends-on): Likewise.
13594         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13595
13596 2011-09-24  Bruno Haible  <bruno@clisp.org>
13597
13598         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13599         * modules/fgetc-tests (Depends-on): Add unistd.
13600         * modules/fputc-tests (Depends-on): Likewise.
13601         * modules/fread-tests (Depends-on): Likewise.
13602         * modules/fwrite-tests (Depends-on): Likewise.
13603
13604 2011-09-24  Bruno Haible  <bruno@clisp.org>
13605
13606         dup: Simplify autoconf test.
13607         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13608         on gl_MSVC_INVAL's result.
13609
13610 2011-09-24  Bruno Haible  <bruno@clisp.org>
13611
13612         Tests for function fwrite().
13613         * modules/fwrite-tests: New file.
13614         * tests/test-fwrite.c: New file.
13615         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13616
13617         Tests for function fread().
13618         * modules/fread-tests: New file.
13619         * tests/test-fread.c: New file.
13620         * modules/stdio-tests (Depends-on): Add fread-tests.
13621
13622         Activate fputc tests.
13623         * modules/stdio-tests (Depends-on): Add fputc-tests.
13624
13625         Enhance fgetc, fputc tests.
13626         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13627         * tests/test-fputc.c (main): Likewise.
13628
13629 2011-09-24  Bruno Haible  <bruno@clisp.org>
13630
13631         write: Support for MSVC 9.
13632         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13633         is not 1.
13634         * lib/write.c (write_nothrow): New function.
13635         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13636         not 1. Use write_nothrow.
13637         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13638         invalid parameter handler.
13639         (gl_PREREQ_WRITE): New macro.
13640         * modules/write (Depends-on): Add msvc-inval.
13641         (configure.ac): Invoke gl_PREREQ_WRITE.
13642         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13643
13644 2011-09-24  Bruno Haible  <bruno@clisp.org>
13645
13646         read: Fix last commit.
13647         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13648
13649 2011-09-24  Bruno Haible  <bruno@clisp.org>
13650
13651         dup2: Fix last commit.
13652         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13653         (rpl_dup2): Disable fcntl workaround on native Windows.
13654
13655         sigprocmask: Make code safer.
13656         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13657         section that changes macro definitions for this compilation unit.
13658
13659 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13660
13661         dup2: clarify by coalescing Windows-specific material
13662         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13663         "msvc-nothrow.h"' to the Windows-specific section, so that the
13664         Emacs source need not contain these include files.
13665         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13666         Windows-specific fixes into this function rather than just the
13667         nothrow fix, as this shortens and clarifies the code.  Always
13668         define as a function, as that's a bit cleaner than having it be
13669         sometimes a function and sometimes a macro.
13670         (rpl_dup2): Move the Windows-specific stuff out of here and into
13671         ms_windows_dup2.  Don't protect the Haiku-related fix with
13672         "#if !defined __linux__", as the same code also works around
13673         a Linux kernel bug, and it doesn't add any system calls on any
13674         platform.  Add comment about FreeBSD 6.1.
13675
13676         sigprocmask: move #include directive
13677         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13678         Windows-specific section, so that the Emacs source need not
13679         contain msvc-inval.h.
13680
13681 2011-09-23  Bruno Haible  <bruno@clisp.org>
13682
13683         read: Support for MSVC 9.
13684         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13685         is not 1.
13686         * lib/read.c (read_nothrow): New function.
13687         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13688         read_nothrow.
13689         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13690         invalid parameter handler.
13691         (gl_PREREQ_READ): New macro.
13692         * modules/read (Depends-on): Add msvc-inval.
13693         (configure.ac): Invoke gl_PREREQ_READ.
13694         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13695
13696 2011-09-23  Bruno Haible  <bruno@clisp.org>
13697
13698         close: Support for MSVC 9.
13699         * lib/close.c: Include <errno.h>, msvc-inval.h.
13700         (close_nothrow): New function.
13701         (rpl_close): Use it.
13702         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13703         invalid parameter handler.
13704         * modules/close (Depends-on): Add msvc-inval.
13705         * modules/dup2-tests (Depends-on): Add close.
13706         * modules/dup3-tests (Depends-on): Likewise.
13707         * modules/fcntl-tests (Depends-on): Likewise.
13708         * modules/spawn-pipe-tests (Depends-on): Likewise.
13709         * modules/unistd-safer-tests (Depends-on): Likewise.
13710         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13711
13712 2011-09-23  Bruno Haible  <bruno@clisp.org>
13713
13714         New module 'dup'.
13715         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13716         Allow replacement.
13717         * lib/dup.c: New file.
13718         * lib/fchdir.c (rpl_dup): Remove function.
13719         * m4/dup.m4: New file.
13720         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13721         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13722         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13723         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13724         * modules/dup: New file.
13725         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13726         'dup' module is in use.
13727         * modules/fdopendir (Depends-on): Add dup.
13728         * modules/fdutimensat-tests (Depends-on): Likewise.
13729         * modules/fts (Depends-on): Likewise.
13730         * modules/futimens-tests (Depends-on): Likewise.
13731         * modules/posix_spawnp-tests (Depends-on): Likewise.
13732         * modules/unistd-safer-tests (Depends-on): Likewise.
13733         * modules/utimens-tests (Depends-on): Likewise.
13734         * doc/posix-functions/dup.texi: Mention the new module and the problem
13735         on MSVC.
13736
13737 2011-09-23  Bruno Haible  <bruno@clisp.org>
13738
13739         getdtablesize: Support for MSVC 9.
13740         * lib/getdtablesize.c: Include msvc-inval.h.
13741         (_setmaxstdio_nothrow): New function.
13742         (_setmaxstdio): Redefine it.
13743         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13744         * modules/getdtablesize (Depends-on): Add msvc-inval.
13745         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13746
13747 2011-09-23  Bruno Haible  <bruno@clisp.org>
13748
13749         signal-h: Rename from signal.
13750         * modules/signal-h: Renamed from modules/signal.
13751         * modules/pthread_sigmask (Depends-on): Update.
13752         * modules/raise (Depends-on): Likewise.
13753         * modules/sigaction (Depends-on): Likewise.
13754         * modules/sigpipe (Depends-on): Likewise.
13755         * modules/sigprocmask (Depends-on): Likewise.
13756         * modules/sys_select (Depends-on): Likewise.
13757         * modules/signal-h-tests: Renamed from modules/signal-tests.
13758         (Files, Depends-on, Makefile.am): Update.
13759         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13760         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13761         (Files, Makefile.am): Update.
13762         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13763         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13764         * modules/signal: New placeholder file.
13765         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13766         * doc/posix-headers/signal.texi: Update.
13767         * NEWS: Mention the change.
13768
13769 2011-09-23  Bruno Haible  <bruno@clisp.org>
13770
13771         sigprocmask: Avoid crashes through signal() on MSVC 9.
13772         * lib/sigprocmask.c: Include msvc-inval.h.
13773         (signal_nothrow): New function.
13774         (signal): Redefine it.
13775         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13776         * modules/sigprocmask (Depends-on): Add msvc-inval.
13777         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13778
13779 2011-09-23  Bruno Haible  <bruno@clisp.org>
13780
13781         Tests for module 'raise'.
13782         * modules/raise-tests: New file.
13783         * tests/test-raise.c: New file.
13784
13785         raise: Support for MSVC.
13786         * lib/signal.in.h (raise): New declaration.
13787         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13788         for native Windows platforms.
13789         * m4/raise.m4: New file.
13790         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13791         HAVE_RAISE, REPLACE_RAISE.
13792         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13793         REPLACE_RAISE.
13794         * modules/raise (Status, Notice): Remove fields.
13795         (Files): Add m4/raise.m4.
13796         (Depends-on): Add signal, msvc-inval.
13797         (configure.ac): Use the common idioms.
13798         (Maintainer): Add me.
13799         * tests/test-signal-c++.cc: Check the signature of raise.
13800         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13801
13802 2011-09-23  Bruno Haible  <bruno@clisp.org>
13803
13804         pipe2: Fix compilation on pre-C99 compilers.
13805         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13806
13807 2011-09-23  Bruno Haible  <bruno@clisp.org>
13808
13809         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13810         * lib/msvc-nothrow.h: New file.
13811         * lib/msvc-nothrow.c: New file.
13812         * m4/msvc-nothrow.m4: New file.
13813         * modules/msvc-nothrow: New file.
13814         * lib/dup2.c: Include msvc-nothrow.h.
13815         (rpl_dup2): No need to protect _get_osfhandle call here.
13816         * lib/accept4.c: Include msvc-nothrow.h.
13817         * lib/error.c: Likewise.
13818         * lib/fcntl.c: Likewise.
13819         * lib/lseek.c: Likewise.
13820         * lib/nonblocking.c: Likewise.
13821         * lib/poll.c: Likewise.
13822         * lib/read.c: Likewise.
13823         * lib/select.c: Likewise.
13824         * lib/sockets.h: Likewise.
13825         * lib/sockets.c: Likewise.
13826         * lib/stdio-read.c: Likewise.
13827         * lib/stdio-write.c: Likewise.
13828         * lib/write.c: Likewise.
13829         * lib/w32sock.h: Likewise.
13830         * lib/w32spawn.h: Likewise.
13831         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13832         * lib/fsync.c: Likewise.
13833         * lib/isapipe.c: Likewise.
13834         * modules/dup2 (Depends-on): Add msvc-nothrow.
13835         * modules/accept4 (Depends-on): Likewise.
13836         * modules/error (Depends-on): Likewise.
13837         * modules/fcntl (Depends-on): Likewise.
13838         * modules/lseek (Depends-on): Likewise.
13839         * modules/nonblocking (Depends-on): Likewise.
13840         * modules/poll (Depends-on): Likewise.
13841         * modules/read (Depends-on): Likewise.
13842         * modules/select (Depends-on): Likewise.
13843         * modules/sockets (Depends-on): Likewise.
13844         * modules/sigpipe (Depends-on): Likewise.
13845         * modules/write (Depends-on): Likewise.
13846         * modules/accept (Depends-on): Likewise.
13847         * modules/bind (Depends-on): Likewise.
13848         * modules/connect (Depends-on): Likewise.
13849         * modules/gethostname (Depends-on): Likewise.
13850         * modules/getpeername (Depends-on): Likewise.
13851         * modules/getsockname (Depends-on): Likewise.
13852         * modules/getsockopt (Depends-on): Likewise.
13853         * modules/ioctl (Depends-on): Likewise.
13854         * modules/listen (Depends-on): Likewise.
13855         * modules/recv (Depends-on): Likewise.
13856         * modules/recvfrom (Depends-on): Likewise.
13857         * modules/send (Depends-on): Likewise.
13858         * modules/sendto (Depends-on): Likewise.
13859         * modules/setsockopt (Depends-on): Likewise.
13860         * modules/shutdown (Depends-on): Likewise.
13861         * modules/socket (Depends-on): Likewise.
13862         * modules/execute (Depends-on): Likewise.
13863         * modules/spawn-pipe (Depends-on): Likewise.
13864         * modules/flock (Depends-on): Likewise.
13865         * modules/fsync (Depends-on): Likewise.
13866         * modules/isapipe (Depends-on): Likewise.
13867         * tests/test-cloexec.c: Include msvc-nothrow.h.
13868         * tests/test-dup-safer.c: Likewise.
13869         * tests/test-dup2.c: Likewise.
13870         * tests/test-dup3.c: Likewise.
13871         * tests/test-fcntl.c: Likewise.
13872         * tests/test-pipe.c: Likewise.
13873         * tests/test-pipe2.c: Likewise.
13874         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
13875         * modules/unistd-safer-tests (Depends-on): Likewise.
13876         * modules/dup2-tests (Depends-on): Likewise.
13877         * modules/dup3-tests (Depends-on): Likewise.
13878         * modules/fcntl-tests (Depends-on): Likewise.
13879         * modules/pipe-posix-tests (Depends-on): Likewise.
13880         * modules/pipe2-tests (Depends-on): Likewise.
13881
13882 2011-09-23  Bruno Haible  <bruno@clisp.org>
13883
13884         dup2: Make code more maintainable.
13885         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
13886         (rpl_dup2): Use it.
13887         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
13888         * modules/dup2 (configure.ac): Invoke it.
13889         Reported by Paul Eggert.
13890
13891 2011-09-23  Bruno Haible  <bruno@clisp.org>
13892
13893         msvc-inval: Fix compilation error.
13894         * lib/msvc-inval.h: Include <excpt.h>.
13895
13896 2011-09-23  Bruno Haible  <bruno@clisp.org>
13897
13898         mkdir: Tweak for MSVC 9.
13899         * lib/sys_stat.in.h: Update comments.
13900         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
13901
13902         Tests for module 'chdir'.
13903         * modules/chdir-tests: New file.
13904         * tests/test-chdir.c: New file.
13905
13906         New module 'chdir'.
13907         * modules/chdir: New file.
13908         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
13909         (chdir): New declaration.
13910         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13911         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13912         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13913         * tests/test-unistd-c++.cc: Check signature of chdir.
13914         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13915         * modules/chdir-long (Depends-on): Add chdir.
13916         * modules/fchdir (Depends-on): Likewise.
13917         * modules/rename (Depends-on): Likewise.
13918         * modules/savewd (Depends-on): Likewise.
13919
13920         rmdir: Support for mingw, MSVC 9.
13921         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13922         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13923
13924         getcwd: Tweak for MSVC 9.
13925         * lib/unistd.in.h: Update comments.
13926         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13927
13928 2011-09-22  Bruno Haible  <bruno@clisp.org>
13929
13930         strerror_r-posix: Avoid a link error on MSVC.
13931         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13932         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13933
13934 2011-09-22  Bruno Haible  <bruno@clisp.org>
13935
13936         select: Avoid link errors on MSVC.
13937         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13938         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13939         * modules/pselect (Link): Likewise.
13940         * NEWS: Mention the change.
13941         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13942         test-select-stdin against $(LIB_SELECT).
13943         * modules/pselect-tests (Makefile.am): Link test-pselect against
13944         $(LIB_SELECT).
13945
13946 2011-09-22  Bruno Haible  <bruno@clisp.org>
13947
13948         select: Avoid compilation error on MSVC.
13949         * lib/select.c: Don't include <stdbool.h>.
13950
13951 2011-09-21  Bruno Haible  <bruno@clisp.org>
13952
13953         Consolidate all uses of PATH_MAX in *.m4 files.
13954         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13955         macros.
13956         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13957         and gl_PATHMAX_SNIPPET.
13958         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13959         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13960         * modules/chdir-long (Files): Add m4/pathmax.m4.
13961         * modules/getcwd (Files): Likewise.
13962
13963 2011-09-21  Bruno Haible  <bruno@clisp.org>
13964
13965         ftruncate: Un-deprecate, concentrate on Win32 support.
13966         * modules/ftruncate (Status, Notice): Remove sections.
13967         (Depends-on): Add largefile.
13968         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13969         non-mingw platforms.
13970         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13971         include <io.h>.
13972         * modules/perror-tests (Depends-on): Add ftruncate.
13973         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13974         'ftruncate' module.
13975
13976 2011-09-21  Bruno Haible  <bruno@clisp.org>
13977
13978         Add dependencies to new dirent related modules.
13979         * modules/opendir (Depends-on): Add closedir.
13980         * modules/getcwd (Depends-on): Add opendir, closedir.
13981         * modules/dirent-safer-tests (Depends-on): Likewise.
13982         * modules/fdopendir-tests (Depends-on): Likewise.
13983         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13984         * modules/renameat-tests (Depends-on): Likewise.
13985
13986 2011-09-21  Bruno Haible  <bruno@clisp.org>
13987
13988         opendir: Avoid compilation error on mingw.
13989         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13990         * modules/opendir (Depends-on): Add unistd.
13991
13992 2011-09-21  Bruno Haible  <bruno@clisp.org>
13993
13994         ftruncate tests: Avoid a test failure on mingw.
13995         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13996
13997 2011-09-21  Bruno Haible  <bruno@clisp.org>
13998
13999         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14000         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14001         native Windows.
14002
14003 2011-09-21  Bruno Haible  <bruno@clisp.org>
14004
14005         New module 'fdopen'.
14006         * lib/stdio.in.h (fdopen): New declaration.
14007         * lib/fdopen.c: New file.
14008         * m4/fdopen.m4: New file.
14009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14010         REPLACE_FDOPEN.
14011         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14012         REPLACE_FDOPEN.
14013         * modules/fdopen: New file.
14014         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14015         * tests/test-stdio-c++.cc: Check signature of fdopen.
14016         * doc/posix-functions/fdopen.texi: Mention the new module.
14017
14018 2011-09-21  Bruno Haible  <bruno@clisp.org>
14019
14020         unlockpt tests: Avoid test failure on NetBSD 5.1.
14021         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14022         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14023
14024 2011-09-21  Bruno Haible  <bruno@clisp.org>
14025
14026         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14027         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14028         * tests/test-getlogin_r.c (main): Likewise.
14029
14030 2011-09-20  Bruno Haible  <bruno@clisp.org>
14031
14032         time tests: Don't require pid_t.
14033         * doc/posix-headers/time.texi: Revert last change.
14034         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14035         * tests/test-time.c: Comment out the check for pid_t.
14036
14037 2011-09-20  Bruno Haible  <bruno@clisp.org>
14038
14039         fsync tests: Avoid a test failure on mingw.
14040         * tests/test-fsync.c (main): Allow a failure with EIO.
14041
14042 2011-09-20  Bruno Haible  <bruno@clisp.org>
14043
14044         euidaccess: Update comments.
14045         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14046
14047 2011-09-20  Bruno Haible  <bruno@clisp.org>
14048
14049         Ensure EBADF returns for socket functions on mingw.
14050         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14051         descriptor is invalid.
14052         * lib/bind.c (rpl_bind): Likewise.
14053         * lib/connect.c (rpl_connect): Likewise.
14054         * lib/getpeername.c (rpl_getpeername): Likewise.
14055         * lib/getsockname.c (rpl_getsockname): Likewise.
14056         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14057         * lib/listen.c (rpl_listen): Likewise.
14058         * lib/recv.c (rpl_recv): Likewise.
14059         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14060         * lib/send.c (rpl_send): Likewise.
14061         * lib/sendto.c (rpl_sendto): Likewise.
14062         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14063         * lib/shutdown.c (rpl_shutdown): Likewise.
14064
14065 2011-09-20  Bruno Haible  <bruno@clisp.org>
14066
14067         select tests: EBADF tests.
14068         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14069         test_bad_fd): New functions.
14070         (test_function): Invoke also test_bad_fd.
14071
14072 2011-09-20  Bruno Haible  <bruno@clisp.org>
14073
14074         Tests for module 'posix_spawn_file_actions_addopen.
14075         * modules/posix_spawn_file_actions_addopen-tests: New file.
14076         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14077
14078         Tests for module 'posix_spawn_file_actions_adddup2'.
14079         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14080         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14081
14082         Tests for module 'posix_spawn_file_actions_addclose'.
14083         * modules/posix_spawn_file_actions_addclose-tests: New file.
14084         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14085
14086 2011-09-20  Bruno Haible  <bruno@clisp.org>
14087
14088         Tests for module 'unlockpt'.
14089         * modules/unlockpt-tests: New file.
14090         * tests/test-unlockpt.c: New file.
14091         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14092
14093         Tests for module 'grantpt'.
14094         * modules/grantpt-tests: New file.
14095         * tests/test-grantpt.c: New file.
14096         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14097
14098 2011-09-20  Bruno Haible  <bruno@clisp.org>
14099
14100         freopen tests: EBADF tests.
14101         * tests/test-freopen.c: Include errno.h, unistd.h.
14102         (main): Add tests for EBADF, commented out for the moment.
14103
14104         fclose tests: EBADF tests.
14105         * tests/test-fclose.c (main): Add tests for EBADF.
14106
14107         fflush tests: EBADF tests.
14108         * tests/test-fflush.c: Include errno.h, macros.h.
14109         (main): Add tests for EBADF.
14110
14111         ftello tests: EBADF tests.
14112         * tests/test-ftello4.sh: New file.
14113         * tests/test-ftello4.c: New file.
14114         * modules/ftello-tests (Files): Add them.
14115         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14116
14117         fseeko tests: EBADF tests.
14118         * tests/test-fseeko4.sh: New file.
14119         * tests/test-fseeko4.c: New file.
14120         * modules/fseeko-tests (Files): Add them.
14121         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14122
14123         Tests for function fputc().
14124         * modules/fputc-tests: New file.
14125         * tests/test-fputc.c: New file.
14126         * modules/stdio-tests (Depends-on): Add fputc-tests.
14127
14128         Tests for function fgetc().
14129         * modules/fgetc-tests: New file.
14130         * tests/test-fgetc.c: New file.
14131         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14132
14133         Tests for function fdopen().
14134         * modules/fdopen-tests: New file.
14135         * tests/test-fdopen.c: New file.
14136         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14137
14138         Tests for module 'vdprintf'.
14139         * modules/vdprintf-tests: New file.
14140         * tests/test-vdprintf.c: New file.
14141
14142         Tests for module 'dprintf'.
14143         * modules/dprintf-tests: New file.
14144         * tests/test-dprintf.c: New file.
14145
14146 2011-09-20  Bruno Haible  <bruno@clisp.org>
14147
14148         Tests for module 'ioctl'.
14149         * modules/ioctl-tests: New file.
14150         * tests/test-ioctl.c: New file.
14151
14152 2011-09-20  Bruno Haible  <bruno@clisp.org>
14153
14154         fcntl tests: EBADF tests.
14155         * tests/test-fcntl.c (main): Add more tests for EBADF.
14156
14157 2011-09-20  Bruno Haible  <bruno@clisp.org>
14158
14159         utimensat tests: EBADF tests.
14160         * tests/test-utimensat.c (main): Add tests for EBADF.
14161
14162         renameat tests: EBADF tests.
14163         * tests/test-renameat.c (main): Add tests for EBADF.
14164
14165         mkfifoat tests: EBADF tests.
14166         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14167
14168         readlinkat tests: EBADF tests.
14169         * tests/test-readlinkat.c (main): Add tests for EBADF.
14170
14171         symlinkat tests: EBADF tests.
14172         * tests/test-symlinkat.c (main): Add tests for EBADF.
14173
14174         linkat tests: EBADF tests.
14175         * tests/test-linkat.c (main): Add tests for EBADF.
14176
14177         Tests for module 'faccessat'.
14178         * modules/faccessat-tests: New file.
14179         * tests/test-faccessat.c: New file.
14180
14181         fdopendir tests: EBADF tests.
14182         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14183
14184         openat tests: EBADF tests.
14185         * tests/test-fchownat.c (main): Add tests for EBADF.
14186         * tests/test-fstatat.c (main): Likewise.
14187         * tests/test-mkdirat.c (main): Likewise.
14188         * tests/test-openat.c (main): Likewise.
14189         * tests/test-unlinkat.c (main): Likewise.
14190         * tests/test-fchmodat.c: New file.
14191         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14192         (Makefile.am): Also run 'test-fchmodat'.
14193
14194 2011-09-20  Bruno Haible  <bruno@clisp.org>
14195
14196         utimens, futimens, fdutimensat tests: EBADF tests.
14197         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14198
14199         Tests for function fstat().
14200         * modules/fstat-tests: New file.
14201         * tests/test-fstat.c: New file.
14202         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14203
14204 2011-09-20  Bruno Haible  <bruno@clisp.org>
14205
14206         test-ttyname_r tests: EBADF tests.
14207         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14208
14209         Tests for module 'isatty'.
14210         * modules/isatty-tests: New file.
14211         * tests/test-isatty.c: New file.
14212
14213         Tests for module 'write'.
14214         * modules/write-tests: New file.
14215         * tests/test-write.c: New file.
14216
14217         Tests for module 'read'.
14218         * modules/read-tests: New file.
14219         * tests/test-read.c: New file.
14220
14221         pwrite tests: EBADF tests.
14222         * tests/test-pwrite.c (main): Add tests for EBADF.
14223
14224         pread tests: EBADF tests.
14225         * tests/test-pread.c (main): Add tests for EBADF.
14226
14227         lseek tests: EBADF tests.
14228         * tests/test-lseek.c (main): Add more tests for EBADF.
14229
14230         Tests for module 'ftruncate'.
14231         * modules/ftruncate-tests: New file.
14232         * tests/test-ftruncate.sh: New file.
14233         * tests/test-ftruncate.c: New file.
14234
14235         fsync tests: EBADF tests.
14236         * tests/test-fsync.c (main): Add more tests for EBADF.
14237
14238         fdatasync tests: EBADF tests.
14239         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14240
14241         Tests for module 'fchown'.
14242         * modules/fchown-tests: New file.
14243         * tests/test-fchown.c: New file.
14244
14245         Tests for module 'fchmod'.
14246         * modules/fchmod-tests: New file.
14247         * tests/test-fchmod.c: New file.
14248
14249         fchdir tests: EBADF tests.
14250         * tests/test-fchdir.c (main): Add more tests for EBADF.
14251
14252         dup2 tests: EBADF tests.
14253         * tests/test-dup2.c (main): Add more tests for EBADF.
14254
14255         Tests for module 'dup'.
14256         * modules/dup-tests: New file.
14257         * tests/test-dup.c: New file.
14258
14259         Tests for module 'close'.
14260         * modules/close-tests: New file.
14261         * tests/test-close.c: New file.
14262
14263 2011-09-20  Bruno Haible  <bruno@clisp.org>
14264
14265         Tests for module 'shutdown'.
14266         * modules/shutdown-tests: New file.
14267         * tests/test-shutdown.c: New file.
14268
14269         Tests for module 'setsockopt'.
14270         * modules/setsockopt-tests: New file.
14271         * tests/test-setsockopt.c: New file.
14272
14273         Tests for module 'sendto'.
14274         * modules/sendto-tests: New file.
14275         * tests/test-sendto.c: New file.
14276
14277         Tests for module 'send'.
14278         * modules/send-tests: New file.
14279         * tests/test-send.c: New file.
14280
14281         Tests for module 'recvfrom'.
14282         * modules/recvfrom-tests: New file.
14283         * tests/test-recvfrom.c: New file.
14284
14285         Tests for module 'recv'.
14286         * modules/recv-tests: New file.
14287         * tests/test-recv.c: New file.
14288
14289         Tests for module 'listen'.
14290         * modules/listen-tests: New file.
14291         * tests/test-listen.c: New file.
14292
14293         Tests for module 'getsockopt'.
14294         * modules/getsockopt-tests: New file.
14295         * tests/test-getsockopt.c: New file.
14296
14297         Tests for module 'getsockname'.
14298         * modules/getsockname-tests: New file.
14299         * tests/test-getsockname.c: New file.
14300
14301         Tests for module 'getpeername'.
14302         * modules/getpeername-tests: New file.
14303         * tests/test-getpeername.c: New file.
14304
14305         Tests for module 'connect'.
14306         * modules/connect-tests: New file.
14307         * tests/test-connect.c: New file.
14308
14309         Tests for module 'bind'.
14310         * modules/bind-tests: New file.
14311         * tests/test-bind.c: New file.
14312
14313         accept4 tests: Fix for native Windows.
14314         * tests/test-accept4.c: Include sockets.h.
14315         (main): Invoke gl_sockets_startup.
14316         * modules/accept4-tests (Depends-on): Add sockets.
14317
14318         accept tests: Fix for native Windows.
14319         * tests/test-accept.c: Include sockets.h.
14320         (main): Invoke gl_sockets_startup.
14321         * modules/accept-tests (Depends-on): Add sockets.
14322
14323 2011-09-19  Bruno Haible  <bruno@clisp.org>
14324
14325         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14326         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14327         do...while(0).
14328         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14329         Suggested by Paul Eggert.
14330
14331 2011-09-19  Bruno Haible  <bruno@clisp.org>
14332
14333         sched: Ensure pid_t is defined.
14334         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14335         not define pid_t.
14336         * lib/sched.in.h: Include <sys/types.h>.
14337         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14338         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14339
14340 2011-09-19  Bruno Haible  <bruno@clisp.org>
14341
14342         msvc-inval: Ensure the entire expansion is a single statement.
14343         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14344         of braces.
14345
14346 2011-09-19  Jim Meyering  <meyering@redhat.com>
14347
14348         tests: use printf, not echo in init.sh's warn_ function
14349         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14350         misbehave when given strings containing a backslash or starting
14351         with e.g., -n.  James Youngman suggested setting IFS.
14352
14353 2011-09-19  Eric Blake  <eblake@redhat.com>
14354
14355         futimens: enhance test
14356         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14357         closed non-negative fd.
14358
14359         date: accept 'hence' as opposite of 'ago'
14360         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14361         * tests/test-parse-datetime.c (main): Enhance test.
14362         Suggested by Jesse Wilson.
14363
14364 2011-09-19  Jim Meyering  <meyering@redhat.com>
14365
14366         getcwd: don't fail in a deep directory on a system without openat
14367         Before this change, getcwd would fail when called from a directory
14368         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14369         the non-openat implementation used "..", "../..", "../../..", etc.
14370         to access ancestor directories.  With too many, that string would
14371         be longer than PATH_MAX.
14372         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14373         using gnulib's openat replacement.
14374         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14375         we're using the replacement function.
14376
14377 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14378
14379         maint.mk: avoid warnings from perl about missing files
14380         * top/maint.mk (def_sym_regex): Ignore files listed in
14381         $(gl_other_headers_) that do not exist, say because a project
14382         does not use a corresponding module.
14383
14384 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14385
14386         stat: use pathmax.h only if needed
14387         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14388         This is better for Emacs, which does not have a mingw port and
14389         therefore can avoid the pathmax module.
14390
14391         utimens: remove dependency on dup2
14392         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14393         to work around the Linux kernel bug.
14394         * modules/utimens (Depends-on): Remove dup2.
14395
14396 2011-09-18  Bruno Haible  <bruno@clisp.org>
14397
14398         inet_ntop, inet_pton: Look for it also in libresolv.
14399         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14400         libnsl, search for it in libresolv.
14401         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14402         Needed on Solaris 7.
14403
14404 2011-09-18  Bruno Haible  <bruno@clisp.org>
14405
14406         accept, accept4 tests: Avoid link error on Solaris.
14407         * modules/accept-tests (Makefile.am): Link test-accept against
14408         $(LIBSOCKET).
14409         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14410         $(LIBSOCKET).
14411
14412         accept4: Avoid link error on Solaris.
14413         * modules/accept4 (Link): New section.
14414
14415         socket functions: Avoid link errors on Solaris.
14416         * modules/accept (Depends-on): Add socketlib.
14417         (Link): New section.
14418         * modules/bind (Depends-on): Add socketlib.
14419         (Link): New section.
14420         * modules/connect (Depends-on): Add socketlib.
14421         (Link): New section.
14422         * modules/getpeername (Depends-on): Add socketlib.
14423         (Link): New section.
14424         * modules/getsockname (Depends-on): Add socketlib.
14425         (Link): New section.
14426         * modules/getsockopt (Depends-on): Add socketlib.
14427         (Link): New section.
14428         * modules/listen (Depends-on): Add socketlib.
14429         (Link): New section.
14430         * modules/recv (Depends-on): Add socketlib.
14431         (Link): New section.
14432         * modules/recvfrom (Depends-on): Add socketlib.
14433         (Link): New section.
14434         * modules/send (Depends-on): Add socketlib.
14435         (Link): New section.
14436         * modules/sendto (Depends-on): Add socketlib.
14437         (Link): New section.
14438         * modules/setsockopt (Depends-on): Add socketlib.
14439         (Link): New section.
14440         * modules/shutdown (Depends-on): Add socketlib.
14441         (Link): New section.
14442         * modules/socket (Depends-on): Add socketlib.
14443         (Link): New section.
14444
14445 2011-09-18  Bruno Haible  <bruno@clisp.org>
14446
14447         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14448         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14449         than 5 seconds.
14450         * modules/ptsname-tests (configure.ac): Test for alarm.
14451
14452 2011-09-18  Bruno Haible  <bruno@clisp.org>
14453
14454         posix_spawn_file_actions_add*: Fix module dependencies.
14455         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14456         posix_spawn_file_actions_init.
14457         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14458         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14459
14460 2011-09-18  Bruno Haible  <bruno@clisp.org>
14461
14462         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14463         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14464         * tests/test-renameat.c (main): Likewise.
14465
14466 2011-09-18  Bruno Haible  <bruno@clisp.org>
14467
14468         Tests for module 'accept4'.
14469         * modules/accept4-tests: New file.
14470         * tests/test-accept4.c: New file.
14471
14472 2011-09-18  Bruno Haible  <bruno@clisp.org>
14473
14474         Tests for module 'accept'.
14475         * modules/accept-tests: New file.
14476         * tests/test-accept.c: New file.
14477
14478 2011-09-18  Bruno Haible  <bruno@clisp.org>
14479
14480         dup2: Support for MSVC.
14481         * lib/dup2.c: Include msvc-inval.h.
14482         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14483         _get_osfhandle calls.
14484         * modules/dup2 (Depends-on): Add msvc-inval.
14485         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14486
14487         New module 'msvc-inval'.
14488         * lib/msvc-inval.h: New file.
14489         * lib/msvc-inval.c: New file.
14490         * m4/msvc-inval.m4: New file.
14491         * modules/msvc-inval: New file.
14492
14493 2011-09-17  Bruno Haible  <bruno@clisp.org>
14494
14495         Tests for module 'pclose'.
14496         * modules/pclose-tests: New file.
14497
14498         New module 'pclose'.
14499         * lib/stdio.in.h (pclose): New declaration.
14500         * lib/pclose.c: New file.
14501         * m4/pclose.m4: New file.
14502         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14503         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14504         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14505         * modules/pclose: New file.
14506         * modules/popen-tests (Depends-on): Add pclose.
14507         * modules/popen-safer-tests (Depends-on): Likewise.
14508         * doc/posix-functions/pclose.texi: Mention the new module.
14509
14510 2011-09-17  Bruno Haible  <bruno@clisp.org>
14511
14512         popen: Support for MSVC.
14513         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14514         * lib/popen.c (popen): Provide alternate definition for native Windows.
14515         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14517         * modules/popen (Depends-on, configure.ac): Update condition.
14518         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14519         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14520         fixed.
14521
14522 2011-09-17  Bruno Haible  <bruno@clisp.org>
14523
14524         isnanl, isnand, isnanf: Work around MSVC bug.
14525         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14526
14527 2011-09-17  Bruno Haible  <bruno@clisp.org>
14528
14529         sys_socket tests: Fix recent mistake.
14530         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14531
14532 2011-09-17  Bruno Haible  <bruno@clisp.org>
14533
14534         putenv: Support for MSVC.
14535         * modules/putenv (Depends-on): Add environ.
14536         * lib/putenv.c (environ): Disable declaration.
14537         * lib/unistd.in.h: Update comment.
14538
14539 2011-09-17  Bruno Haible  <bruno@clisp.org>
14540
14541         math: Avoid macro redefinition warnings on MSVC.
14542         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14543         Undefine before redefining.
14544
14545 2011-09-17  Bruno Haible  <bruno@clisp.org>
14546
14547         doc: Mention functions which are declared as macros.
14548         * doc/posix-functions/*[fl].texi: Mention that some functions are
14549         defined as macros with arguments only.
14550
14551 2011-09-17  Bruno Haible  <bruno@clisp.org>
14552
14553         Add dependencies to new dirent related modules.
14554         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14555         * modules/fts (Depends-on): Likewise.
14556         * modules/glob (Depends-on): Likewise.
14557         * modules/savedir (Depends-on): Likewise.
14558         * modules/scandir (Depends-on): Likewise.
14559         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14560         * modules/fdopendir (Depends-on): Add opendir.
14561
14562 2011-09-17  Bruno Haible  <bruno@clisp.org>
14563
14564         inet_pton: Support for MSVC on Windows Vista or newer.
14565         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14566         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14567         HAVE_DECL_INET_PTON is defined.
14568         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14569         On platforms with <winsock2.h>, test whether inet_pton is declared in
14570         <ws2tcpip.h>. If so, arrange to replace it.
14571         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14572         REPLACE_INET_PTON.
14573         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14574         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14575         (Depends-on, configure.ac): Update condition.
14576         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14577
14578 2011-09-17  Bruno Haible  <bruno@clisp.org>
14579
14580         inet_ntop: Support for MSVC on Windows Vista or newer.
14581         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14582         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14583         HAVE_DECL_INET_NTOP is defined.
14584         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14585         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14586         <ws2tcpip.h>. If so, arrange to replace it.
14587         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14588         REPLACE_INET_NTOP.
14589         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14590         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14591         (Depends-on, configure.ac): Update condition.
14592         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14593
14594 2011-09-16  Eric Blake  <eblake@redhat.com>
14595
14596         test-fsync: yet another enhancement
14597         * tests/test-fsync.c (main): Also test behavior on read-only text
14598         file.
14599
14600 2011-09-16  Bruno Haible  <bruno@clisp.org>
14601
14602         Enhance fsync, fdatasync tests.
14603         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14604         * tests/test-fdatasync.c (main): Likewise.
14605
14606 2011-09-16  Bruno Haible  <bruno@clisp.org>
14607
14608         Support for MSVC compiler: Ensure mode_t gets defined.
14609         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14610         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14611         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14612         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14613         * tests/test-fcntl-h.c: Check that mode_t is defined.
14614         * tests/test-sys_stat.c: Likewise.
14615         * tests/test-sys_types.c: Likewise.
14616         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14617         * doc/posix-headers/sys_stat.texi: Likewise.
14618         * doc/posix-headers/sys_types.texi: Likewise.
14619
14620 2011-09-16  Bruno Haible  <bruno@clisp.org>
14621
14622         sys_stat: Support for MSVC.
14623         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14624         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14625         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14626         MSVC.
14627
14628 2011-09-16  Bruno Haible  <bruno@clisp.org>
14629
14630         Support for MSVC compiler: Ensure off_t gets defined.
14631         * lib/unistd.in.h: Include <sys/types.h>.
14632         * tests/test-fcntl-h.c: Check that off_t is defined.
14633         * tests/test-sys_stat.c: Likewise.
14634         * tests/test-sys_types.c: Likewise.
14635
14636 2011-09-16  Eric Blake  <eblake@redhat.com>
14637
14638         fdatasync: port to Solaris
14639         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14640         * modules/fdatasync (Link): Document it.
14641         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14642
14643         fdatasync: port to MacOS X 10.7
14644         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14645         declared.
14646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14647         * modules/unistd (Makefile.am): Substitute it.
14648         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14649         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14650
14651         fdatasync: minor improvements
14652         * modules/fdatasync (Depends-on): Add condition for fsync.
14653         * lib/fdatasync.c (fdatasync): Add comment.
14654         * tests/test-unistd-c++.cc: Test fdatasync.
14655
14656         unistd: update refs to newer POSIX
14657         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14658         Suggested by Bruno Haible.
14659
14660         fdatasync: new module
14661         * modules/fsync (Description): Document difference to fdatasync.
14662         * modules/fdatasync: New module.
14663         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14664         * lib/fdatasync.c (fdatasync): Likewise.
14665         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14666         defaults.
14667         * modules/unistd (Makefile.am): Set witnesses.
14668         * lib/unistd.in.h (fdatasync): Declare.
14669         * MODULES.html.sh: Document it.
14670         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14671         * modules/fdatasync-tests: New test.
14672         * tests/test-fdatasync.c: Likewise.
14673
14674 2011-09-16  Eric Blake  <eblake@redhat.com>
14675
14676         test-fsync: enhance tests
14677         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14678         * tests/test-fsync.c (main): Enhance test.
14679
14680 2011-09-15  Bruno Haible  <bruno@clisp.org>
14681
14682         Support for MSVC compiler: Ensure ssize_t gets defined.
14683         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14684         * doc/posix-headers/stdio.texi: Likewise.
14685         * modules/stdio (Depends-on): Add ssize_t.
14686         * modules/sys_socket (Depends-on): Likewise.
14687         * modules/sys_types (Depends-on): Likewise.
14688         * modules/sys_uio (Depends-on): Likewise.
14689         * modules/unistd (Depends-on): Likewise.
14690         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14691         * tests/test-sys_types.c: Check that ssize_t is defined.
14692
14693 2011-09-14  Bruno Haible  <bruno@clisp.org>
14694
14695         Avoid using #, the m4 comment starter character, near brackets.
14696         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14697         delimiter character in sed expressions.
14698         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14699         Suggested by Eric Blake.
14700
14701         Properly quote AC_CHECK_DECLS' 4th argument.
14702         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14703         argument.
14704         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14705         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14706         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14707         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14708         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14709         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14710         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14711         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14712         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14713         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14714         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14715         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14716         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14717         * m4/isinf.m4 (gl_ISINF): Likewise.
14718         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14719         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14720         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14721         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14722         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14723         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14724         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14725         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14726         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14727         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14728         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14729         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14731         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14733         Reported by Eric Blake.
14734
14735         Properly quote AC_CHECK_DECL's 4th argument.
14736         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14737         argument.
14738         * m4/argp.m4 (gl_ARGP): Likewise.
14739         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14740         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14741         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14742         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14743         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14744         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14745         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14746         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14747         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14748         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14749         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14750         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14751         Reported by Eric Blake.
14752
14753 2011-09-14  Eric Blake  <eblake@redhat.com>
14754
14755         opendir: avoid compile warning
14756         * lib/opendir.c (includes): Always include errno.h.
14757         Reported by Tatsuro MATSUOKA.
14758
14759 2011-09-14  Jim Meyering  <meyering@redhat.com>
14760
14761         maint.mk: sc_tight_scope: propagate failure from sub-make
14762         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14763         Reported by Martin von Gagern.
14764
14765 2011-09-13  Bruno Haible  <bruno@clisp.org>
14766
14767         tempname: Support for MSVC.
14768         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14769         MSVC.
14770         * modules/tempname (Depends-on): Add fcntl-h.
14771
14772 2011-09-13  Bruno Haible  <bruno@clisp.org>
14773
14774         sys_time: Support for MSVC.
14775         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14776         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14777         include <winsock2.h>.
14778         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14779         function declarations that collide with POSIX.
14780         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14781         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14782
14783 2011-09-13  Bruno Haible  <bruno@clisp.org>
14784
14785         stat: Support for MSVC.
14786         * lib/stat.c: Include pathmax.h.
14787         * modules/stat (Depends-on): Add pathmax.
14788
14789         pathmax: Support for native Windows.
14790         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14791
14792 2011-09-12  Bruno Haible  <bruno@clisp.org>
14793
14794         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14795         * lib/dirent.in.h (struct dirent): New type.
14796         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14797         DT_WHT): New macros.
14798         (DIR): New type.
14799         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14800         (readdir, rewinddir): New declarations.
14801         * lib/dirent-private.h: New file.
14802         * lib/opendir.c: New file.
14803         * lib/readdir.c: New file.
14804         * lib/rewinddir.c: New file.
14805         * lib/closedir.c: New file.
14806         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14807         * m4/opendir.m4: New file.
14808         * m4/readdir.m4: New file.
14809         * m4/rewinddir.m4: New file.
14810         * m4/closedir.m4: New file.
14811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14812         REPLACE_CLOSEDIR here.
14813         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14814         readdir, rewinddir are declared.
14815         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14816         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14817         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14818         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14819         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14820         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14821         * modules/opendir: New file.
14822         * modules/readdir: New file.
14823         * modules/rewinddir: New file.
14824         * modules/closedir: New file.
14825         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14826         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14827         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14828         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14829         * NEWS: Mention the 'fchdir' change.
14830
14831 2011-09-11  Bruno Haible  <bruno@clisp.org>
14832
14833         asm-underscore.m4: Support for MSVC.
14834         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14835         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14836
14837 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14838
14839         Doc about crypt functions.
14840         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14841         needing for _GNU_SOURCE to get crypt.
14842         * doc/posix-functions/encrypt.texi: Likewise.
14843         * doc/posix-functions/setkey.texi: Likewise.
14844
14845 2011-09-11  Bruno Haible  <bruno@clisp.org>
14846
14847         doc: Update regarding MSVC 9.
14848         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14849         tested".
14850         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14851         * doc/posix-headers/*.texi: Likewise.
14852         * doc/pastposix-functions/*.texi: Likewise.
14853         * doc/glibc-functions/*.texi: Likewise.
14854         * doc/glibc-headers/*.texi: Likewise.
14855
14856 2011-09-11  Bruno Haible  <bruno@clisp.org>
14857
14858         unistd et al.: Don't assume <unistd.h> exists.
14859         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14860         does not exist.
14861         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14862         exist. But include <stdlib.h>.
14863         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
14864         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
14865         symlink() does not exist.
14866         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
14867         include <io.h> instead.
14868         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
14869         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
14870         include <direct.h> instead.
14871         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14872         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14873         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
14874         <io.h> instead.
14875         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
14876         correctly if the system does not have hard links.
14877         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
14878         <direct.h> instead.
14879         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
14880         it when looking for function declarations.
14881         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
14882         <direct.h> and <io.h> instead.
14883         * doc/posix-headers/unistd.texi: More details about MSVC problem.
14884
14885 2011-09-11  Bruno Haible  <bruno@clisp.org>
14886
14887         strcase: Support for MSVC.
14888         * modules/strcase (Status, Notice): Remove obsoletion mark.
14889         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
14890         * doc/posix-functions/strncasecmp.texi: Likewise.
14891
14892         strings: Don't assume <strings.h> exists.
14893         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
14894         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
14895         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
14896         * doc/posix-headers/strings.texi: Mention the MSVC problem.
14897
14898 2011-09-11  Bruno Haible  <bruno@clisp.org>
14899
14900         dirent: Don't assume <dirent.h> exists.
14901         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
14902         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14903         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
14904         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
14905
14906 2011-09-11  Bruno Haible  <bruno@clisp.org>
14907
14908         Fix wint_t on MSVC.
14909         * lib/wchar.in.h (wint_t): On MSVC, override it.
14910         * lib/wctype.in.h (wint_t): Likewise.
14911         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14912         MSVC.
14913         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14914         * doc/posix-headers/wctype.texi: Likewise.
14915
14916 2011-09-11  Bruno Haible  <bruno@clisp.org>
14917
14918         sys_types: Fix typo.
14919         * lib/sys_types.in.h: Fix typo in comment.
14920         Reported by Paul Eggert.
14921
14922         Support for MSVC compiler: Ensure size_t gets defined.
14923         * modules/strings (Depends-on): Add 'sys_types'.
14924         * modules/sys_uio (Depends-on): Likewise.
14925         * lib/sys_uio.in.h: Update comment.
14926
14927         C++ tests for module 'sys_types'.
14928         * modules/sys_types-c++-tests: New file.
14929         * tests/test-sys_types-c++.cc: New file.
14930
14931         Tests for module 'sys_types'.
14932         * modules/sys_types-tests: New file.
14933         * tests/test-sys_types.c: New file.
14934
14935         New module 'sys_types'.
14936         * lib/sys_types.in.h: New file.
14937         * m4/sys_types_h.m4: New file.
14938         * modules/sys_types: New file.
14939         * doc/posix-headers/sys_types.texi: Mention the new module and the
14940         size_t problem on MSVC 9.
14941
14942 2011-09-11  Bruno Haible  <bruno@clisp.org>
14943
14944         Support for MSVC compiler: Avoid division by a literal 0.
14945         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14946         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14947         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14948         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14949         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14950         * tests/infinity.h: New file.
14951         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14952         on MSVC.
14953         * tests/test-ceilf1.c: Include infinity.h.
14954         (main): Use Infinityf.
14955         * tests/test-ceil1.c: Include infinity.h.
14956         (main): Use Infinityd.
14957         * tests/test-ceill.c: Include infinity.h.
14958         (main): Use Infinityl.
14959         * tests/test-dprintf-posix.c: Include infinity.h.
14960         (test_function): Use Infinityd.
14961         * tests/test-floorf1.c: Include infinity.h.
14962         (main): Use Infinityf.
14963         * tests/test-floor1.c: Include infinity.h.
14964         (main): Use Infinityd.
14965         * tests/test-floorl.c: Include infinity.h.
14966         (main): Use Infinityl.
14967         * tests/test-fprintf-posix.c: Include infinity.h.
14968         (test_function): Use Infinityd.
14969         * tests/test-frexp.c: Include infinity.h.
14970         (main): Use Infinityd.
14971         * tests/test-frexpl.c: Include infinity.h.
14972         (main): Use Infinityl.
14973         * tests/test-isfinite.c: Include infinity.h.
14974         (test_isfinitef): Use Infinityf.
14975         (test_isfinited): Use Infinityd.
14976         (test_isfinitel): Use Infinityl.
14977         * tests/test-isinf.c: Include infinity.h.
14978         (test_isinff): Use Infinityf.
14979         (test_isinfd): Use Infinityd.
14980         (test_isinfl): Use Infinityl.
14981         * tests/test-isnan.c: Include infinity.h.
14982         (test_float): Use Infinityf.
14983         (test_double): Use Infinityd.
14984         (test_long_double): Use Infinityl.
14985         * tests/test-isnanf.h: Include infinity.h.
14986         (main): Use Infinityf.
14987         * tests/test-isnand.h: Include infinity.h.
14988         (main): Use Infinityd.
14989         * tests/test-isnanl.h: Include infinity.h.
14990         (main): Use Infinityl.
14991         * tests/test-ldexpl.c: Include infinity.h.
14992         (main): Use Infinityl.
14993         * tests/test-printf-posix.h: Include infinity.h.
14994         (test_function): Use Infinityd.
14995         * tests/test-roundf1.c: Include infinity.h.
14996         (main): Use Infinityf.
14997         * tests/test-round1.c: Include infinity.h.
14998         (main): Use Infinityd.
14999         * tests/test-roundl.c: Include infinity.h.
15000         (main): Use Infinityl.
15001         * tests/test-signbit.c: Include infinity.h.
15002         (test_signbitf): Use Infinityf.
15003         (test_signbitd): Use Infinityd.
15004         (test_signbitl): Use Infinityl.
15005         * tests/test-snprintf-posix.h: Include infinity.h.
15006         (test_function): Use Infinityd, Infinityl.
15007         * tests/test-sprintf-posix.h: Include infinity.h.
15008         (test_function): Use Infinityd, Infinityl.
15009         * tests/test-truncf1.c: Include infinity.h.
15010         (main): Use Infinityf.
15011         * tests/test-trunc1.c: Include infinity.h.
15012         (main): Use Infinityd.
15013         * tests/test-truncl.c: Include infinity.h.
15014         (main): Use Infinityl.
15015         * tests/test-vasnprintf-posix.c: Include infinity.h.
15016         (test_function): Use Infinityd, Infinityl.
15017         * tests/test-vasprintf-posix.c: Include infinity.h.
15018         (test_function): Use Infinityd, Infinityl.
15019         * modules/ceilf-tests (Files): Add tests/infinity.h.
15020         * modules/ceil-tests (Files): Likewise.
15021         * modules/ceill-tests (Files): Likewise.
15022         * modules/dprintf-posix-tests (Files): Likewise.
15023         * modules/floorf-tests (Files): Likewise.
15024         * modules/floor-tests (Files): Likewise.
15025         * modules/floorl-tests (Files): Likewise.
15026         * modules/fprintf-posix-tests (Files): Likewise.
15027         * modules/frexp-tests (Files): Likewise.
15028         * modules/frexp-nolibm-tests (Files): Likewise.
15029         * modules/frexpl-tests (Files): Likewise.
15030         * modules/frexpl-nolibm-tests (Files): Likewise.
15031         * modules/isfinite-tests (Files): Likewise.
15032         * modules/isinf-tests (Files): Likewise.
15033         * modules/isnan-tests (Files): Likewise.
15034         * modules/isnanf-tests (Files): Likewise.
15035         * modules/isnanf-nolibm-tests (Files): Likewise.
15036         * modules/isnand-tests (Files): Likewise.
15037         * modules/isnand-nolibm-tests (Files): Likewise.
15038         * modules/isnanl-tests (Files): Likewise.
15039         * modules/isnanl-nolibm-tests (Files): Likewise.
15040         * modules/ldexpl-tests (Files): Likewise.
15041         * modules/printf-posix-tests (Files): Likewise.
15042         * modules/roundf-tests (Files): Likewise.
15043         * modules/round-tests (Files): Likewise.
15044         * modules/roundl-tests (Files): Likewise.
15045         * modules/signbit-tests (Files): Likewise.
15046         * modules/snprintf-posix-tests (Files): Likewise.
15047         * modules/sprintf-posix-tests (Files): Likewise.
15048         * modules/truncf-tests (Files): Likewise.
15049         * modules/trunc-tests (Files): Likewise.
15050         * modules/truncl-tests (Files): Likewise.
15051         * modules/vasnprintf-posix-tests (Files): Likewise.
15052         * modules/vasprintf-posix-tests (Files): Likewise.
15053         * modules/vdprintf-posix-tests (Files): Likewise.
15054         * modules/vfprintf-posix-tests (Files): Likewise.
15055         * modules/vprintf-posix-tests (Files): Likewise.
15056         * modules/vsnprintf-posix-tests (Files): Likewise.
15057         * modules/vsprintf-posix-tests (Files): Likewise.
15058         * modules/xprintf-posix-tests (Files): Likewise.
15059
15060 2011-09-11  Bruno Haible  <bruno@clisp.org>
15061
15062         Ensure pid_t gets defined.
15063         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15064         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15065         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15066         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15067         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15068         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15069         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15070         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15071         * tests/test-fcntl-h.c: Check that pid_t is defined.
15072         * tests/test-sched.c: Likewise.
15073         * tests/test-termios.c: Likewise.
15074         * tests/test-time.c: Likewise.
15075         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15076         * doc/posix-headers/signal.texi: Likewise.
15077         * doc/posix-headers/sys_types.texi: Likewise.
15078         * doc/posix-headers/time.texi: Likewise.
15079
15080 2011-09-11  Bruno Haible  <bruno@clisp.org>
15081
15082         acl: Fix compilation on Solaris 10 (older version).
15083         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15084         of ACE_EVERYONE.
15085         * lib/set-mode-acl.c (qset_acl): Likewise.
15086         Reported by Christian Jullien <eligis@orange.fr>.
15087
15088 2011-09-10  Bruno Haible  <bruno@clisp.org>
15089
15090         iconv, unsetenv: Add support for MSVC compiler.
15091         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15092         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15093
15094 2011-09-10  Bruno Haible  <bruno@clisp.org>
15095
15096         *printf: Add support for MSVC compiler.
15097         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15098         handles the exception caused by the %n directive. When cross-compiling,
15099         guess no on native Windows.
15100         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15101         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15102         emulate it through vsnprintf.
15103         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15104         * doc/posix-functions/dprintf.texi: Update documentation regarding
15105         MSVC 9.
15106         * doc/posix-functions/fprintf.texi: Likewise.
15107         * doc/posix-functions/printf.texi: Likewise.
15108         * doc/posix-functions/snprintf.texi: Likewise.
15109         * doc/posix-functions/sprintf.texi: Likewise.
15110         * doc/posix-functions/swprintf.texi: Likewise.
15111         * doc/posix-functions/vdprintf.texi: Likewise.
15112         * doc/posix-functions/vfprintf.texi: Likewise.
15113         * doc/posix-functions/vprintf.texi: Likewise.
15114         * doc/posix-functions/vsnprintf.texi: Likewise.
15115         * doc/posix-functions/vsprintf.texi: Likewise.
15116         * doc/glibc-functions/asprintf.texi: Likewise.
15117         * doc/glibc-functions/obstack_printf.texi: Likewise.
15118         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15119         * doc/glibc-functions/vasprintf.texi: Likewise.
15120
15121 2011-09-10  Bruno Haible  <bruno@clisp.org>
15122
15123         nocrash: Add support for native Windows.
15124         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15125
15126 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15127             Bruno Haible  <bruno@clisp.org>
15128
15129         absolute-header, include-next: Add support for MSVC compiler.
15130         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15131         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15132         directory separator in #line directives.
15133         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15134         recognize also backslash as directory separator in #line directives.
15135
15136 2011-09-08  Jim Meyering  <meyering@redhat.com>
15137
15138         maint.mk: mark the post-release commit log with "maint: " prefix
15139         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15140         one-line commit-log summary.
15141
15142 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15143             Bruno Haible  <bruno@clisp.org>
15144
15145         Doc about crypt functions.
15146         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15147         systems.
15148         * doc/posix-functions/encrypt.texi: Likewise.
15149         * doc/posix-functions/setkey.texi: Likewise.
15150
15151 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15152
15153         * lib/gc.h: Fix copyright header.
15154
15155 2011-09-07  Bruno Haible  <bruno@clisp.org>
15156
15157         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15158         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15159         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15160
15161 2011-09-07  Bruno Haible  <bruno@clisp.org>
15162
15163         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15164         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15165         * lib/freopen.c: Likewise.
15166         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15167         * lib/lstat.c: Likewise.
15168         * lib/stat.c: Likewise.
15169         * lib/open.c: Use different syntax for include of <fcntl.h>.
15170         * lib/openat.c: Include fcntl.h again, explicitly.
15171
15172 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15173
15174         parse-datetime: document the newly accepted format
15175         * doc/parse-datetime.texi (Combined date and time of day items):
15176         New section.
15177
15178 2011-09-06  Bruno Haible  <bruno@clisp.org>
15179
15180         acl: Fix a test failure on newer Solaris 10 with ZFS.
15181         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15182         ENOSYS as no ACL.
15183         Reported by Jim Meyering.
15184
15185 2011-09-06  Bruno Haible  <bruno@clisp.org>
15186
15187         acl: Update for AIX >= 5.3 with NFS.
15188         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15189         ENOSYS as no ACL.
15190
15191         acl: Fix a test failure on AIX >= 5.3 with NFS.
15192         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15193         as no ACL.
15194
15195 2011-09-06  Bruno Haible  <bruno@clisp.org>
15196
15197         acl: Fix a test failure on IRIX 6.5 with NFS.
15198         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15199         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15200         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15201         * lib/copy-acl.c (qcopy_acl): Likewise.
15202
15203 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15204
15205         openat: port to AIX 7.1 with large files
15206         AIX 7.1 does a "#define openat open64at" if large files are in use,
15207         so we can't simply #undef openat.  Use the orig_openat trick (similar
15208         to orig_open in lib/open.c) to work around the problem.  Problem
15209         reported by Kevin Brott for GNU tar, in the thread containing
15210         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15211         * lib/openat.c (__need_system_fcntl_h): Define first.
15212         Include <fcntl.h> and <sys/types.h> before undefining.
15213         (orig_openat) [HAVE_OPENAT]: New inline function.
15214         (openat) [HAVE_OPENAT]: Do not undef.
15215         (rpl_openat): Use orig_openat, not openat.
15216
15217 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15218             Bruno Haible  <bruno@clisp.org>
15219
15220         acl: Avoid errors on NonStop Kernel.
15221         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15222         ENOTSUP errors.
15223
15224 2011-09-05  Bruno Haible  <bruno@clisp.org>
15225
15226         acl: Clean up Solaris code.
15227         * lib/acl-internal.h: Remove no-op #if.
15228         * lib/file-has-acl.c: Likewise.
15229         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15230         * lib/copy-acl.c (qcopy_acl): Likewise.
15231
15232 2011-09-05  Bruno Haible  <bruno@clisp.org>
15233
15234         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15235         binaries built on the original Solaris 10.
15236         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15237         trivial.
15238
15239 2011-09-05  Bruno Haible  <bruno@clisp.org>
15240
15241         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15242         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15243         10.
15244         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15245         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15246         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15247         instead of acl_get, facl_get, acl_set, facl_set.
15248
15249 2011-09-05  Bruno Haible  <bruno@clisp.org>
15250
15251         copy-file: Try unit tests on more file systems.
15252         * tests/test-copy-file-1.sh: New file.
15253         * tests/test-copy-file-2.sh: New file.
15254         * modules/copy-file-tests (Files): Add them.
15255         (Makefile.am): Add them to TESTS.
15256
15257         acl: Try unit tests on more file systems.
15258         * tests/test-file-has-acl-1.sh: New file.
15259         * tests/test-file-has-acl-2.sh: New file.
15260         * tests/test-set-mode-acl-1.sh: New file.
15261         * tests/test-set-mode-acl-2.sh: New file.
15262         * tests/test-copy-acl-1.sh: New file.
15263         * tests/test-copy-acl-2.sh: New file.
15264         * modules/acl-tests (Files): Add them.
15265         (Makefile.am): Add them to TESTS.
15266
15267 2011-09-04  Bruno Haible  <bruno@clisp.org>
15268
15269         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15270         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15271         10.
15272         (OLD_ALLOW, OLD_DENY): New macros.
15273         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15274         ACE_ACCESS_ALLOWED_ACE_TYPE.
15275         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15276         ACE_ACCESS_DENIED_ACE_TYPE.
15277         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15278         (NEW_ACE_EXECUTE): Fix value.
15279         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15280         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15281         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15282         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15283         NEW_ACE_SYNCHRONIZE): New macros.
15284         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15285         instead of acl_fromtext, acl_set, facl_set.
15286         Fixes a coreutils/tests/cp/perm failure.
15287
15288 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15289
15290         openat: test for fstatat (..., 0) bug
15291         Further testing with tar suggests that fstatat (..., 0)
15292         does not work in general, on AIX 7.1; see
15293         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15294         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15295         replacement fstatat (which is what older AIX releases were using
15296         anyway).
15297         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15298         use is now changed to orig_fstatat.  This was probably the right
15299         thing to do anyway.
15300         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15301         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15302         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15303         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15304         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15305         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15306         if the bug is found.
15307
15308         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15309         This tests for another fstatat bug on AIX 7.1:
15310         fstatat (AT_FDCWD, ..., 0) does not work.  See
15311         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15312         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15313         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15314         (rpl_fstatat): Adjust so that it works around either (or both)
15315         bugs if present.
15316         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15317
15318 2011-09-03  Karl Berry  <karl@gnu.org>
15319
15320         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15321         in index entries.
15322
15323 2011-09-02  Bruno Haible  <bruno@clisp.org>
15324
15325         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15326         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15327         values of AR, ARFLAGS, RANLIB.
15328         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15329
15330 2011-09-02  Bruno Haible  <bruno@clisp.org>
15331
15332         Find 'ar' program that fits with --host argument.
15333         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15334
15335 2011-09-02  Bruno Haible  <bruno@clisp.org>
15336
15337         tests: init.sh: Support any non-GNU diff.
15338         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15339         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15340         Solaris 8.
15341
15342 2011-09-02  Bruno Haible  <bruno@clisp.org>
15343
15344         tests: init.sh: work also with any non-GNU diff that supports -u
15345         * tests/init.sh: Relax check for diff -u support.
15346         Rather than checking for GNU diff via --version, simply check
15347         for support for -u itself.  Useful at least on OpenBSD 4.9,
15348         AIX 7.1, IRIX 6.5, and Solaris 10.
15349
15350 2011-09-01  Bruno Haible  <bruno@clisp.org>
15351
15352         strtoimax, strtoumax: Document problem on HP-UX 11.
15353         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15354         * doc/posix-functions/strtoumax.texi: Likewise.
15355
15356 2011-09-01  Bruno Haible  <bruno@clisp.org>
15357
15358         strtoumax: Avoid link error on OSF/1 with DTK cc.
15359         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15360         defined as a function.
15361         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15362         strtoumax is defined, not whether it is declared.
15363
15364 2011-09-01  Bruno Haible  <bruno@clisp.org>
15365
15366         strtoimax: Avoid link error on OSF/1 with DTK cc.
15367         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15368         defined as a function.
15369         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15370         strtoimax is defined, not whether it is declared.
15371
15372 2011-09-01  Bruno Haible  <bruno@clisp.org>
15373
15374         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15375         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15376         as a function.
15377         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15378         whether it is declared.
15379
15380 2011-09-01  Bruno Haible  <bruno@clisp.org>
15381
15382         imaxabs: Avoid link error on OSF/1 with DTK cc.
15383         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15384         as a function.
15385         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15386         whether it is declared.
15387
15388 2011-09-01  Bruno Haible  <bruno@clisp.org>
15389
15390         Tests for module 'strtoumax'.
15391         * modules/strtoumax-tests: New file.
15392         * tests/test-strtoumax.c: New file.
15393
15394         Tests for module 'strtoimax'.
15395         * modules/strtoimax-tests: New file.
15396         * tests/test-strtoimax.c: New file.
15397
15398         Tests for module 'imaxdiv'.
15399         * modules/imaxdiv-tests: New file.
15400         * tests/test-imaxdiv.c: New file.
15401
15402         Tests for module 'imaxabs'.
15403         * modules/imaxabs-tests: New file.
15404         * tests/test-imaxabs.c: New file.
15405
15406 2011-09-01  Bruno Haible  <bruno@clisp.org>
15407
15408         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15409         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15410         pthread_create.
15411
15412 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15413
15414         openat: work around AIX 7.1 fstatat issue
15415         This should fix the problem that was not properly fixed
15416         in the previous change, dated 2011-08-30.
15417         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15418         __need_system_stat_h defined.
15419         (orig_fstatat) [HAVE_FSTATAT]: New function.
15420         (rpl_fstatat): Go back to the old way of doing things,
15421         except call orig_fstatat instead of fstatat.
15422         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15423         Remove unnecessary check whether fstatat fills in st_size etc.
15424
15425 2011-09-01  Bruno Haible  <bruno@clisp.org>
15426
15427         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15428         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15429         just include the system's header.
15430
15431 2011-08-31  Jim Meyering  <meyering@redhat.com>
15432
15433         tests: avoid spurious assertion failure in test-float.c on ppc64
15434         * tests/test-float.c (test_long_double): Comment out an assertion,
15435         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15436         with gcc-4.4.4.
15437
15438         maint: indent with spaces, not TABs
15439         I need to get in the habit of running gnulib's "make check".
15440         Both of these would have been caught.
15441         * m4/largefile.m4: Indent with spaces, not TABs.
15442         * lib/parse-datetime.y (iso_8601_time): Likewise.
15443         Spotted by Pádraig Brady.
15444
15445         test-parse-datetime.c: accommodate a relatively strict gcc warning
15446         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15447         to avoid a warning from gcc's -Werror=missing-declarations.
15448         Insert a few spaces-before-funcall-parenthesis.
15449
15450 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15451
15452         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15453         The parser now accepts ISO 8601 date-time strings with "T" as the
15454         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15455         with a space between the date and time strings.  Now it also parses
15456         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15457         variants like "2004-02-29T16:21:42.333-07:00"
15458         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15459         of day representation using the 'T' separator character.
15460         * doc/parse-datetime.texi (General date syntax): replace use of
15461         deprecated --iso-8601 option with --rfc-3339 in example of date
15462         command output formats that can be parsed.
15463         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15464         lib/parse-datetime.y.
15465         (gmt_offset): New function.
15466         (main): Add additional test cases to validate ISO8601 extended
15467         date and time of day parsing.
15468
15469 2011-08-31  Bruno Haible  <bruno@clisp.org>
15470
15471         freopen: Documentation.
15472         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15473         name.
15474         Reported by Claudio Bley <claudio.bley@gmail.com>.
15475
15476 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15477
15478         freopen: Don't crash if the filename argument is NULL.
15479         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15480         NULL.
15481
15482 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15483
15484         openat: work around AIX 7.1 fstatat bug
15485         Problem reported by Kevin Brott for GNU tar, in the thread containing
15486         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15487         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15488         FSTATAT_ST_SIZE_ETC_BROKEN.
15489         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15490         rpl_fstatat.
15491         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15492         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15493         AC_CHECK_FUNCS_ONCE for fstatat.
15494         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15495         fchmodat, mkdirat, openat and unlinkat.
15496
15497 2011-08-30  Bruno Haible  <bruno@clisp.org>
15498
15499         Avoid endless recursions if config.h includes some header files.
15500         * lib/fopen.c (__need_FILE): Define already before including config.h.
15501         * lib/freopen.c (__need_FILE): Likewise.
15502         * lib/open.c (__need_system_fcntl_h): Likewise.
15503         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15504         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15505         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15506
15507 2011-08-25  Karl Berry  <karl@gnu.org>
15508
15509         * config/srclist.txt (ylwrap): new try.
15510         * build-aux/ylwrap: new file.
15511
15512 2011-08-23  Bruno Haible  <bruno@clisp.org>
15513
15514         tmpdir: Use a good default directory on native Windows.
15515         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15516         (P_tmpdir): Default to _P_tmpdir on native Windows.
15517         (path_search): On native Windows, try the value returned by GetTempPath
15518         before trying P_tmpdir.
15519         * modules/tmpdir (Depends-on): Add pathmax.
15520         Suggested by John Darrington <john@darrington.wattle.id.au>.
15521
15522 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15523
15524         doc: fix typo in README-release
15525         * top/README-release: Capitalize first word of a sentence.
15526
15527 2011-08-19  Jim Meyering  <meyering@redhat.com>
15528
15529         fts: do not exhaust memory when processing million-entry directories
15530         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15531         directory would require about 256*N bytes of memory.  Thus, it was
15532         easy to construct a directory too large to be processed by any of
15533         those tools.  With this change, fts' maximum memory utilization is
15534         now limited to around 30MB.
15535         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15536         (fts_read): When we've processed the final entry (i.e., when
15537         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15538         using the parent entry to read any remaining entries.  Dispatch
15539         depending on what fts_build returns:
15540         - NULL+stop, aka failure: stop
15541         - NULL otherwise: move up in the dir hierarchy
15542         - non-NULL: handle this new entry
15543         (fts_build): Declare and use new local, continue_readdir.
15544         Prepare to be called from fts_read, when the entries
15545         from a partially-read directory have just been exhausted.
15546         In that case, we'll skip the opendir and instead use the parent's
15547         fts_dirp and derive dir_fd from that.
15548         Finally, in the readdir loop, if we read max_entries entries,
15549         exit the loop ensuring *not* to call closedir.  This is required
15550         so that fts_dirp can be reused on a subsequent call.
15551         Prompted by Ben England's report of memory exhaustion in find
15552         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15553
15554         maint: fts: move decl of `dp' down into while loop; split a long line
15555         * lib/fts.c (fts_build): No semantic change.
15556
15557         fts: add/use new struct member, fts_dirp
15558         We are about to use this to manage any directory with
15559         too many entries to read all of them into memory at once.
15560         To do that, we'll need to save the DIR* pointer in each
15561         affected FTSENT struct.
15562         * lib/fts_.h: Include <dirent.h>.
15563         (struct FTSENT) [fts_dirp]: New member.
15564         * lib/fts.c (closedir_and_clear): Define.
15565         Use it in place of closedir so that we are sure to
15566         clear the new fts_dirp member when done with it.
15567         (fts_alloc): Initialize the new member.
15568         (fts_lfree): Free, if needed.
15569
15570         maint: fts: give __opendir2 a new parameter and rename
15571         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15572         than surreptitiously using sole caller's "dir_fd".
15573         (fts_opendir): Rename from __opendir2.
15574
15575         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15576         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15577
15578         maint: fts.c: correct off-by-one indentation
15579         * lib/fts.c (fts_build): Correct indentation, change style
15580         of a couple of block comments, and bracing style.
15581
15582         maint: fts.c: move __opendir2 #define "up" out of function body
15583         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15584
15585         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15586         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15587         out for a long time and besides was useful only on BSD systems.
15588
15589 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15590
15591         regex: port to Stratus OpenVOS
15592         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15593         define to empty, rather than attempting nonportable optimizations.
15594         Problem reported by Paul Green in:
15595         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15596         and fix suggested by Eric Blake in:
15597         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15598
15599 2011-08-17  Eric Blake  <eblake@redhat.com>
15600
15601         getcwd: fix test failures on mingw
15602         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15603         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15604         test if long directory cannot be created, and allow mingw errno.
15605
15606         getcwd-lgpl: fix m4 to match relaxed test for BSD
15607         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15608         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15609         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15610         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15611         signature problem.
15612
15613         getcwd: fix compilation on mingw64
15614         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15615         getcwd.
15616         Reported by Marc-André Lureau.
15617
15618         pipe2: silence compiler warning
15619         * lib/pipe2.c (pipe2): Hide label if it is not used.
15620
15621 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15622
15623         relocatable-prog: fix link error
15624         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15625         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15626         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15627         into modules/relocatable-lib without noticing that
15628         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15629         also needs to build relocatable.c.
15630
15631 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15632
15633         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15634         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15635         shell code: it contained a 'break' that was not in a loop.
15636         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15637         via a shell-language loop; this may have been true in old Autoconf
15638         versions, but it's not true in Autoconf 2.68.  I found this bug
15639         when testing coreutils git on Solaris 8, whose shell complains
15640         about the syntax error.
15641
15642 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15643
15644         * lib/base64.c: Fix comment to reference RFC 4648.
15645         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15646         <gvtulder@gmail.com>.
15647
15648 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15649
15650         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15651
15652         po/Makefile.in.in: fix make -q problem
15653         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15654         rule, since there's no file named 'check-macro-version' and its
15655         use as a file breaks make -q.
15656         (all): Don't depend on check-macro-version.
15657         (CHECK_MACRO_VERSION): New macro.
15658         (stamp-po): Use it.
15659
15660         configmake: fix make -q problem
15661         * modules/configmake (configmake.h): Update configmake.h's time stamp
15662         even if the file does not change.  Otherwise, 'make -q' fails.
15663         Problem reported by Simon Josefsson in
15664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15665
15666 2011-08-11  Jim Meyering  <meyering@redhat.com>
15667
15668         git-version-gen: correct the advice in a comment
15669         * build-aux/git-version-gen: Correct comment.
15670         Don't recommend to list .tarball-version in .gitignore.
15671
15672 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15673
15674         base64: fix off-by-one buffer size bug
15675         Problem and (trivial) fix reported by Gijs van Tulder in
15676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15677         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15678         * tests/test-base64.c (main): Catch the bug.
15679
15680 2011-08-10  Eric Blake  <eblake@redhat.com>
15681
15682         closein: correct comments
15683         * lib/closein.c (close_stdin): Improve comments.
15684
15685 2011-08-09  Bruno Haible  <bruno@clisp.org>
15686
15687         More tests for 'fseeko'.
15688         * tests/test-fseeko3.c: New file, from Eric Blake.
15689         * tests/test-fseeko3.sh: New file.
15690         * modules/fseeko-tests (Files): Add them.
15691         (TESTS): Add test-fseeko3.sh.
15692         (check_PROGRAMS): Add test-fseeko3.
15693
15694 2011-08-09  Eric Blake  <eblake@redhat.com>
15695
15696         fseeko: remove unneeded hack
15697         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15698
15699         fseeko: fix bug on glibc
15700         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15701         Reported by John W. Eaton.
15702
15703 2011-08-08  Bruno Haible  <bruno@clisp.org>
15704
15705         unictype/base: Fix interoperability with preinstalled libunistring.
15706         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15707         Reported by Simon Josefsson.
15708
15709 2011-08-08  Bruno Haible  <bruno@clisp.org>
15710
15711         iswblank: Detect declaration correctly.
15712         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15713         AC_CHECK_DECLS invocation.
15714
15715 2011-08-08  Bruno Haible  <bruno@clisp.org>
15716
15717         tcgetsid: Detect declaration correctly.
15718         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15719         AC_CHECK_DECLS invocation.
15720         Reported by Simon Josefsson.
15721
15722 2011-08-08  Eric Blake  <eblake@redhat.com>
15723
15724         largefile: fix typo that regressed large file support
15725         * modules/largefile (configure.ac-early): Fix section name.
15726
15727 2011-08-06  Karl Berry  <karl@gnu.org>
15728
15729         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15730         a separate module.
15731
15732 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15733
15734         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15735         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15736         get prototype for free.
15737
15738 2011-08-04  Bruno Haible  <bruno@clisp.org>
15739
15740         Tests for module 'pathmax'.
15741         * modules/pathmax-tests: New file.
15742         * tests/test-pathmax.c: New file.
15743
15744         canonicalize-lgpl: Support larger filenames on the Hurd.
15745         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15746         Reported by Paul Eggert.
15747
15748         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15749         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15750         * lib/chdir-long.h: Include pathmax.h.
15751         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15752         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15753         (PATH_MAX): Remove code that is done by pathmax.h.
15754         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15755         * lib/tmpfile.c: Add a comment.
15756         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15757         * modules/chdir-long (Depends-on): Add pathmax.
15758         * modules/getcwd (Depends-on): Add pathmax.
15759         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15760         is not defined.
15761         * doc/posix-headers/limits.texi: Mention the pathmax module.
15762         * NEWS: Mention the change.
15763
15764 2011-08-02  Bruno Haible  <bruno@clisp.org>
15765
15766         pthread_sigmask: Actually use results of gl_THREADLIB.
15767         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15768         gl_THREADLIB, not gl_[]THREADLIB.
15769         Reported by Eric Blake.
15770
15771 2011-08-02  Jim Meyering  <meyering@redhat.com>
15772
15773         maint.mk: relax the default _gl_TS_function_match regexp
15774         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15775         space between function name and "(" in an "extern" declaration.
15776         That would fail to match a decl with no space there: extern void foo();
15777
15778 2011-07-31  Iain Nicol  <iain@thenicols.net>
15779
15780         git-version-gen: document that EXTRA_DIST must include .version
15781         * build-aux/git-version-gen: In the how-to-use comment, document
15782         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15783         will fail when run from an unpacked distribution tarball.
15784
15785 2011-08-01  Bruno Haible  <bruno@clisp.org>
15786
15787         wctype-h: Fix last change.
15788         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15789         REPLACE_TOWLOWER to 0.
15790         Reported by Sam Steingold <sds@gnu.org>.
15791
15792 2011-07-31  Bruno Haible  <bruno@clisp.org>
15793
15794         frexpl: Update autoconf test.
15795         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15796         according to changes of 2011-06-20.
15797
15798 2011-07-31  Bruno Haible  <bruno@clisp.org>
15799
15800         sys_utsname: Add support for Minix.
15801         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15802         <sys/utsname.h>.
15803         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15804         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15805
15806 2011-07-31  Bruno Haible  <bruno@clisp.org>
15807
15808         strings: Add support for Minix.
15809         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15810         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15811         * doc/posix-headers/strings.texi: Document the Minix problem.
15812
15813 2011-07-31  Bruno Haible  <bruno@clisp.org>
15814
15815         wctype-h: Add support for Minix.
15816         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15817         REPLACE_TOWLOWER.
15818         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15819         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15820         REPLACE_ISWCNTRL.
15821
15822 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15823
15824         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15825         This is a performance improvement for 64-bit hosts: it causes the
15826         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15827
15828 2011-07-31  Bruno Haible  <bruno@clisp.org>
15829
15830         stdioext: Add support for Minix.
15831         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15832         * lib/fpurge.c (fpurge): Likewise.
15833         * lib/freadahead.c (freadahead): Likewise.
15834         * lib/freadable.c (freadable): Likewise.
15835         * lib/freading.c (freading): Likewise.
15836         * lib/freadptr.c (freadptr): Likewise.
15837         * lib/freadseek.c (freadptrinc): Likewise.
15838         * lib/fseeko.c (rpl_fseeko): Likewise.
15839         * lib/fseterr.c (fseterr): Likewise.
15840         * lib/fwritable.c (fwritable): Likewise.
15841         * lib/fwriting.c (fwriting): Likewise.
15842         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15843         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15844
15845 2011-07-31  Bruno Haible  <bruno@clisp.org>
15846
15847         errno: Port to Minix.
15848         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15849         ECONNABORTED are defined.
15850         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15851         GNULIB_defined_ECONNABORTED): New macros.
15852         * lib/strerror-override.h (strerror_override): Test also
15853         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15854         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15855         ECONNABORTED.
15856         * doc/posix-headers/errno.texi: Mention the Minix problem.
15857
15858 2011-07-31  Bruno Haible  <bruno@clisp.org>
15859
15860         Work around declaration collisions on Minix.
15861         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15862         defined, set REPLACE_MBSINIT.
15863         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
15864         defined, set REPLACE_MBRTOWC.
15865         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
15866         set REPLACE_MBRLEN.
15867         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
15868         defined, set REPLACE_MBSRTOWCS.
15869         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
15870         defined, set REPLACE_WCRTOMB.
15871         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
15872         defined, set REPLACE_WCSRTOMBS.
15873
15874 2011-07-31  Bruno Haible  <bruno@clisp.org>
15875
15876         Add support for Minix with ACK compiler.
15877         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
15878         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
15879         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
15880
15881 2011-07-31  Bruno Haible  <bruno@clisp.org>
15882
15883         Documentation about Minix.
15884         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
15885         * doc/glibc-headers/*.texi: Likewise.
15886         * doc/posix-functions/*.texi: Likewise.
15887         * doc/glibc-functions/*.texi: Likewise.
15888
15889 2011-07-31  Bruno Haible  <bruno@clisp.org>
15890
15891         snippet/warn-on-use: Fix indentation.
15892         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
15893
15894 2011-07-25  Jim Meyering  <meyering@redhat.com>
15895
15896         tests: test-update-copyright.sh: remove unnecessary "rm" commands
15897         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
15898         commands.
15899
15900 2011-07-27  Jim Meyering  <meyering@redhat.com>
15901
15902         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
15903         * top/maint.mk (gl_extract_significant_defines_): Now that
15904         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
15905         gnulib/lib/signal.in.h, and now that we recommend to
15906         define-if-undefined those two symbols in application code,
15907         we must filter them out of the "significant" list.
15908         This avoids a "make syntax-check" failure in coreutils.
15909
15910 2011-07-26  Eric Blake  <eblake@redhat.com>
15911
15912         warnings: add comments about previous patch
15913         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15914         * m4/include_next.m4: Likewise.
15915         * m4/warn-on-use.m4: Likewise.
15916         * m4/warnings.m4: Likewise, and simplify use.
15917         Suggested by Stefano Lattarini.
15918
15919         include-next, warnings: support older autoconf
15920         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15921         AS_VAR_PUSHDEF in a way that works with older autoconf.
15922         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15923         Reported by Daniel P. Berrange.
15924
15925 2011-07-25  Bruno Haible  <bruno@clisp.org>
15926
15927         fseek, ftell: Fix doc.
15928         * doc/posix-functions/fseek.texi: Reword statement about
15929         AC_SYS_LARGEFILE.
15930         * doc/posix-functions/ftell.texi: Likewise.
15931
15932 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15933             Bruno Haible  <bruno@clisp.org>
15934
15935         Add dependencies to the 'largefile' module.
15936         * modules/fopen (Depends-on): Add 'largefile'.
15937         * modules/freopen (Depends-on): Likewise.
15938         * modules/fseeko (Depends-on): Likewise.
15939         * modules/ftello (Depends-on): Likewise.
15940         * modules/glob (Depends-on): Likewise.
15941         * modules/lseek (Depends-on): Likewise.
15942         * modules/lstat (Depends-on): Likewise.
15943         * modules/mkostemp (Depends-on): Likewise.
15944         * modules/mkostemps (Depends-on): Likewise.
15945         * modules/mkstemp (Depends-on): Likewise.
15946         * modules/mkstemps (Depends-on): Likewise.
15947         * modules/open (Depends-on): Likewise.
15948         * modules/openat (Depends-on): Likewise.
15949         * modules/pread (Depends-on): Likewise.
15950         * modules/pwrite (Depends-on): Likewise.
15951         * modules/scandir (Depends-on): Likewise.
15952         * modules/stat (Depends-on): Likewise.
15953         * modules/tmpfile (Depends-on): Likewise.
15954         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15955         since the containing module now depends on the largefile module.
15956         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15957         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15958         off_t is fixed by gnulib.
15959         * doc/posix-functions/freopen.texi: Likewise.
15960         * doc/posix-functions/fseeko.texi: Likewise.
15961         * doc/posix-functions/fstatat.texi: Likewise.
15962         * doc/posix-functions/ftello.texi: Likewise.
15963         * doc/posix-functions/glob.texi: Likewise.
15964         * doc/posix-functions/lseek.texi: Likewise.
15965         * doc/posix-functions/lstat.texi: Likewise.
15966         * doc/posix-functions/mkstemp.texi: Likewise.
15967         * doc/posix-functions/open.texi: Likewise.
15968         * doc/posix-functions/openat.texi: Likewise.
15969         * doc/posix-functions/pread.texi: Likewise.
15970         * doc/posix-functions/pwrite.texi: Likewise.
15971         * doc/posix-functions/scandir.texi: Likewise.
15972         * doc/posix-functions/stat.texi: Likewise.
15973         * doc/posix-functions/tmpfile.texi: Likewise.
15974         * doc/glibc-functions/mkostemp.texi: Likewise.
15975         * doc/glibc-functions/mkostemps.texi: Likewise.
15976         * doc/glibc-functions/mkstemps.texi: Likewise.
15977
15978 2011-07-25  Bruno Haible  <bruno@clisp.org>
15979
15980         fcntl: Move AC_LIBOBJ invocation to module description.
15981         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15982         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15983
15984         fcntl: Remove call-in from fchdir.m4.
15985         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15986         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15987
15988         dup3: Remove potential call-in from fchdir.m4.
15989         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15991
15992         dup2: Move AC_LIBOBJ invocation to module description.
15993         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15994         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15995         Don't invoke AC_LIBOBJ.
15996         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15997
15998         dup2: Remove call-in from fchdir.m4.
15999         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16001
16002         fclose: Move AC_LIBOBJ invocation to module description.
16003         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16004         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16005         to 1.
16006         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16007
16008         fclose: Remove call-in from close.m4.
16009         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16010         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16011
16012         close: Move AC_LIBOBJ invocation to module description.
16013         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16014         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16015         1.
16016         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16017
16018         close: Remove call-in from fchdir.m4.
16019         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16021
16022         open: Move AC_LIBOBJ invocation to module description.
16023         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16024         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16025         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16026
16027         open: Remove call-in from fchdir.m4.
16028         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16029         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16030
16031         fchdir: Start to remove gl_REPLACE_* idiom.
16032         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16033         (gl_FUNC_FCHDIR): Invoke it.
16034
16035 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16036
16037         * lib/ftell.c (ftell): Comment out cast.
16038
16039         close: use gl_REPLACE_FCLOSE only if defined
16040         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16041         is defined.  The close module doesn't depend on the fclose module
16042         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16044         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16045
16046 2011-07-24  Jim Meyering  <meyering@redhat.com>
16047
16048         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16049         * tests/test-select.h (test_function): Declare as "static".
16050
16051 2011-07-24  Bruno Haible  <bruno@clisp.org>
16052
16053         doc: Mention the effects of AC_SYS_LARGEFILE.
16054         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16055         on this function.
16056         * doc/posix-functions/aio_error.texi: Likewise.
16057         * doc/posix-functions/aio_fsync.texi: Likewise.
16058         * doc/posix-functions/aio_read.texi: Likewise.
16059         * doc/posix-functions/aio_return.texi: Likewise.
16060         * doc/posix-functions/aio_suspend.texi: Likewise.
16061         * doc/posix-functions/aio_write.texi: Likewise.
16062         * doc/posix-functions/fgetpos.texi: Likewise.
16063         * doc/posix-functions/fopen.texi: Likewise.
16064         * doc/posix-functions/freopen.texi: Likewise.
16065         * doc/posix-functions/fsetpos.texi: Likewise.
16066         * doc/posix-functions/fstatvfs.texi: Likewise.
16067         * doc/posix-functions/ftruncate.texi: Likewise.
16068         * doc/posix-functions/ftw.texi: Likewise.
16069         * doc/posix-functions/getrlimit.texi: Likewise.
16070         * doc/posix-functions/glob.texi: Likewise.
16071         * doc/posix-functions/lio_listio.texi: Likewise.
16072         * doc/posix-functions/lockf.texi: Likewise.
16073         * doc/posix-functions/mkstemp.texi: Likewise.
16074         * doc/posix-functions/mmap.texi: Likewise.
16075         * doc/posix-functions/nftw.texi: Likewise.
16076         * doc/posix-functions/openat.texi: Likewise.
16077         * doc/posix-functions/opendir.texi: Likewise.
16078         * doc/posix-functions/posix_fadvise.texi: Likewise.
16079         * doc/posix-functions/posix_fallocate.texi: Likewise.
16080         * doc/posix-functions/pread.texi: Likewise.
16081         * doc/posix-functions/pwrite.texi: Likewise.
16082         * doc/posix-functions/readdir.texi: Likewise.
16083         * doc/posix-functions/readdir_r.texi: Likewise.
16084         * doc/posix-functions/rewinddir.texi: Likewise.
16085         * doc/posix-functions/scandir.texi: Likewise.
16086         * doc/posix-functions/seekdir.texi: Likewise.
16087         * doc/posix-functions/setrlimit.texi: Likewise.
16088         * doc/posix-functions/statvfs.texi: Likewise.
16089         * doc/posix-functions/telldir.texi: Likewise.
16090         * doc/posix-functions/tmpfile.texi: Likewise.
16091         * doc/posix-functions/truncate.texi: Likewise.
16092         * doc/glibc-functions/fallocate.texi: Likewise.
16093         * doc/glibc-functions/fstatfs.texi: Likewise.
16094         * doc/glibc-functions/fts_children.texi: Likewise.
16095         * doc/glibc-functions/fts_read.texi: Likewise.
16096         * doc/glibc-functions/getdirentries.texi: Likewise.
16097         * doc/glibc-functions/mkostemp.texi: Likewise.
16098         * doc/glibc-functions/mkostemps.texi: Likewise.
16099         * doc/glibc-functions/mkstemps.texi: Likewise.
16100         * doc/glibc-functions/preadv.texi: Likewise.
16101         * doc/glibc-functions/pwritev.texi: Likewise.
16102         * doc/glibc-functions/sendfile.texi: Likewise.
16103         * doc/glibc-functions/statfs.texi: Likewise.
16104
16105 2011-07-24  Bruno Haible  <bruno@clisp.org>
16106
16107         doc: Fix typo.
16108         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16109
16110 2011-07-24  Bruno Haible  <bruno@clisp.org>
16111
16112         doc: Mention fsusage.
16113         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16114
16115 2011-07-24  Bruno Haible  <bruno@clisp.org>
16116
16117         doc: Mention new glibc headers and functions.
16118         * doc/glibc-headers/gshadow.texi: New file.
16119         * doc/glibc-functions/endsgent.texi: New file.
16120         * doc/glibc-functions/fgetsgent.texi: New file.
16121         * doc/glibc-functions/fgetsgent_r.texi: New file.
16122         * doc/glibc-functions/getsgent.texi: New file.
16123         * doc/glibc-functions/getsgent_r.texi: New file.
16124         * doc/glibc-functions/getsgnam.texi: New file.
16125         * doc/glibc-functions/getsgnam_r.texi: New file.
16126         * doc/glibc-functions/putsgent.texi: New file.
16127         * doc/glibc-functions/setsgent.texi: New file.
16128         * doc/glibc-functions/sgetsgent.texi: New file.
16129         * doc/glibc-functions/sgetsgent_r.texi: New file.
16130         * doc/glibc-functions/malloc_info.texi: New file.
16131         * doc/glibc-functions/preadv.texi: New file.
16132         * doc/glibc-functions/pwritev.texi: New file.
16133         * doc/glibc-functions/register_printf_modifier.texi: New file.
16134         * doc/glibc-functions/register_printf_specifier.texi: New file.
16135         * doc/glibc-functions/register_printf_type.texi: New file.
16136         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16137         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16138         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16139         * doc/glibc-functions/pthread_getname_np.texi: New file.
16140         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16141         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16142         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16143         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16144         * doc/glibc-functions/pthread_setname_np.texi: New file.
16145         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16146         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16147         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16148         * doc/glibc-functions/qsort_r.texi: New file.
16149         * doc/glibc-functions/quick_exit.texi: New file.
16150         * doc/glibc-functions/syncfs.texi: New file.
16151         * doc/gnulib.texi: Include them.
16152         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16153         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16154         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16155         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16156         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16157         * doc/glibc-functions/execvpe.texi: Likewise.
16158
16159 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16160
16161         ftell: don't include <unistd.h>
16162         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16163         guaranteed to define off_t, and the ftell module depends on the
16164         stdio module.
16165
16166         ftell: do not assume wraparound signed arithmetic
16167         * lib/ftell.c: Include <limits.h>.
16168         (ftell): Don't assume wraparound signed arithmetic.
16169
16170 2011-07-24  Bruno Haible  <bruno@clisp.org>
16171
16172         close: No longer depend on module 'fclose'.
16173         * modules/close (Depends-on): Remove fclose.
16174         * NEWS: Mention the change.
16175         Suggested by Sam Steingold <sds@gnu.org>.
16176
16177 2011-07-24  Bruno Haible  <bruno@clisp.org>
16178
16179         fsusage: Enable large volume support on AIX >= 5.2.
16180         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16181         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16182         instead of STAT_STATVFS.
16183         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16184
16185         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16186         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16187         f_blocks field only on MacOS X.
16188
16189         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16190         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16191         * modules/fsusage (Depends-on): Add largefile.
16192
16193 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16194
16195         * README: Modernize discussion of signed integers.
16196         Assuming overflow wraparound is no longer safe.
16197         Mention ones' complement and signed magnitude.
16198
16199 2011-07-22  Bruno Haible  <bruno@clisp.org>
16200
16201         select tests, pselect tests: Refactor.
16202         * tests/test-select.h: New file, extracted from tests/test-select.c.
16203         (select_fn): New type.
16204         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16205         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16206         test_pipe): Add my_select argument.
16207         (test_function): Renamed from main. Add my_select argument.
16208         * tests/test-select.c: Move most code to tests/test-select.h. Include
16209         test-select.h.
16210         * modules/select-tests (Files): Add tests/test-select.h.
16211         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16212         (my_select, main): New functions.
16213         * modules/pselect-tests (Files): Add tests/test-select.h,
16214         tests/macros.h, tests/signature.h.
16215         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16216         (configure.ac): Check for <sys/wait.h>.
16217
16218 2011-07-22  Bruno Haible  <bruno@clisp.org>
16219
16220         sys_select tests: Check the signature of FD_*.
16221         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16222         signature tests from here...
16223         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16224         here.
16225         * modules/sys_select-tests (Files): Add tests/signature.h.
16226
16227 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16228
16229         largefile: new module, replacing large-inode
16230         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16231         * MODULES.html.sh: Add largefile, remove large-inode.
16232         * modules/largefile, m4/largefile.m4: New files.
16233         * modules/large-inode, m4/large-inode.m4: Remove.
16234
16235         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16236         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16237         implementations that use only 32 bits to count blocks.
16238         On typical hosts with 1024-byte blocks, this fails with file
16239         systems as small as 4 TiB.  Problem reported by Herb Wartens
16240         <http://debbugs.gnu.org/9140> and this should also fix a similar
16241         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16242
16243         large-inode: New module
16244         * MODULES.html.sh: Add it.
16245         * modules/large-inode, m4/large-inode.m4: New files.
16246
16247         extensions: Enable extensions on MacOS X 10.5 and later.
16248         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16249
16250 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16251
16252         file-has-acl: use acl_extended_file_nofollow if available
16253         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16254         (acl_extended_file): New macro.
16255         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16256         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16257
16258 2011-07-21  Bruno Haible  <bruno@clisp.org>
16259
16260         Declare system functions in a way that works with C++.
16261         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16262         declare fdopendir as extern "C".
16263         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16264         declare frexpl as extern "C".
16265         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16266         declare gai_strerror as extern "C".
16267         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16268         programs, declare gai_strerror as extern "C".
16269         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16270         declare getlogin_r as extern "C".
16271         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16272         as extern "C".
16273         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16274         declare ldexpl as extern "C".
16275         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16276         as extern "C".
16277         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16278         program, declare getmntinfo as extern "C".
16279         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16280         stpncpy as extern "C".
16281         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16282         program, declare __xpg_strerror_r as extern "C".
16283         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16284         strndup as extern "C".
16285         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16286         declare memset and bzero as extern "C".
16287         Reported by Sam Steingold <sds@gnu.org>.
16288
16289 2011-07-12  Jim Meyering  <meyering@redhat.com>
16290
16291         maint.mk: prohibit inclusion of "verify.h" without use
16292         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16293
16294 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16295
16296         timer-time: A new module to check for timer_settime()
16297         * m4/timer_time.m4: Check for the posix function.
16298         * modules/timer-time: Add the new module.
16299         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16300         Mention it.
16301
16302 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16303             Bruno Haible  <bruno@clisp.org>
16304
16305         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16306         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16307         not defined, assume POSIX threads and look for pthread_sigmask in
16308         $LIBS, without changing $CPPFLAGS.
16309
16310 2011-07-19  Bruno Haible  <bruno@clisp.org>
16311
16312         strstr: Update cross-compilation guess.
16313         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16314         CPUs, guess no, in view of glibc
16315         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16316         Suggested by Eric Blake. Reported by Reuben Thomas.
16317
16318 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16319
16320         getopt-gnu: suppress core dumps from detection code
16321         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16322         to suppress core dumps that may well occur on glibc systems.
16323         * modules/getopt-gnu: Depend on nocrash.
16324
16325 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16326
16327         pthread_sigmask: ensure usleep is declared
16328         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16329         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16330
16331 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16332
16333         doc: Document NonStop portability issues.
16334         * doc/posix-functions/sigaction.texi (sigaction):
16335         * doc/posix-headers/signal.texi (signal.h):
16336         Document NonStop.  See Joachim Schmitz in
16337         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16338
16339 2011-07-15  Bruno Haible  <bruno@clisp.org>
16340
16341         ffsl, ffsll: Avoid unportable behaviour.
16342         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16343
16344 2011-07-15  Bruno Haible  <bruno@clisp.org>
16345
16346         ffs: More tests.
16347         * tests/test-ffs.c (NBITS): New macro.
16348         (main): Add more tests.
16349         * tests/test-ffsl.c (NBITS): New macro.
16350         (main): Add more tests.
16351         * tests/test-ffsll.c (NBITS): New macro.
16352         (main): Add more tests.
16353
16354 2011-07-15  Eric Blake  <eblake@redhat.com>
16355
16356         ffsl, ffsll: new modules
16357         * modules/ffsl: New file.
16358         * modules/ffsll: Likewise.
16359         * m4/ffsl.m4: Likewise.
16360         * m4/ffsll.m4: Likewise.
16361         * lib/ffsl.c: Likewise.
16362         * lib/ffsl.h: Likewise.
16363         * lib/ffsll.c: Likewise.
16364         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16365         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16366         * modules/string (Makefile.am): Substitute witnesses.
16367         * lib/strings.in.h (ffsl, ffsll): Declare.
16368         * modules/ffsl-tests: New test file.
16369         * modules/ffsll-tests: Likewise.
16370         * tests/test-ffsl.c: Likewise.
16371         * tests/test-ffsll.c: Likewise.
16372         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16373         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16374         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16375
16376         ffs: fix m4 prerequisite
16377         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16378
16379         ffs: avoid undefined behavior
16380         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16381         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16382         Reported by Bruno Haible.
16383
16384 2011-07-12  Bruno Haible  <bruno@clisp.org>
16385
16386         pthread_sigmask: Rely on module 'threadlib'.
16387         * modules/pthread_sigmask (Depends-on): Add threadlib.
16388         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16389         is defined.
16390
16391 2011-07-12  Bruno Haible  <bruno@clisp.org>
16392
16393         regex: Depend on module 'strcase'.
16394         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16395
16396 2011-07-12  Jim Meyering  <meyering@redhat.com>
16397
16398         warn-on-use: fix typo in file name
16399         * modules/snippet/warn-on-use (Files): Correct file name:
16400         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16401
16402 2011-07-12  Bruno Haible  <bruno@clisp.org>
16403
16404         strings: Document module.
16405         * doc/posix-headers/strings.texi: Mention module 'strings'.
16406
16407 2011-07-12  Bruno Haible  <bruno@clisp.org>
16408
16409         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16410         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16411         (Files, Makefile.am): Update.
16412         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16413         * modules/stdlib (Depends-on): Update.
16414
16415 2011-07-12  Bruno Haible  <bruno@clisp.org>
16416
16417         * NEWS: Mention the changes.
16418
16419         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16420         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16421         (Files, Makefile.am): Update.
16422         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16423         * modules/arpa_inet (Depends-on): Update.
16424         * modules/ctype (Depends-on): Update.
16425         * modules/dirent (Depends-on): Update.
16426         * modules/fcntl-h (Depends-on): Update.
16427         * modules/glob (Depends-on): Update.
16428         * modules/iconv-h (Depends-on): Update.
16429         * modules/inttypes-incomplete (Depends-on): Update.
16430         * modules/langinfo (Depends-on): Update.
16431         * modules/locale (Depends-on): Update.
16432         * modules/math (Depends-on): Update.
16433         * modules/netdb (Depends-on): Update.
16434         * modules/poll-h (Depends-on): Update.
16435         * modules/pty (Depends-on): Update.
16436         * modules/search (Depends-on): Update.
16437         * modules/signal (Depends-on): Update.
16438         * modules/spawn (Depends-on): Update.
16439         * modules/stdio (Depends-on): Update.
16440         * modules/stdlib (Depends-on): Update.
16441         * modules/string (Depends-on): Update.
16442         * modules/strings (Depends-on): Update.
16443         * modules/sys_file (Depends-on): Update.
16444         * modules/sys_ioctl (Depends-on): Update.
16445         * modules/sys_select (Depends-on): Update.
16446         * modules/sys_socket (Depends-on): Update.
16447         * modules/sys_stat (Depends-on): Update.
16448         * modules/sys_time (Depends-on): Update.
16449         * modules/sys_times (Depends-on): Update.
16450         * modules/sys_utsname (Depends-on): Update.
16451         * modules/sys_wait (Depends-on): Update.
16452         * modules/termios (Depends-on): Update.
16453         * modules/time (Depends-on): Update.
16454         * modules/unistd (Depends-on): Update.
16455         * modules/wchar (Depends-on): Update.
16456         * modules/wctype-h (Depends-on): Update.
16457         * MODULES.html.sh (Support for building libraries and executables):
16458         Update.
16459
16460         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16461         * modules/snippet/unused-parameter: Renamed from
16462         modules/unused-parameter.
16463         (Files, Makefile.am): Update.
16464         * build-aux/snippet/unused-parameter.h: Renamed from
16465         build-aux/unused-parameter.h.
16466         * modules/selinux-h (Depends-on): Update.
16467         * modules/unistr/base (Depends-on): Update.
16468         * MODULES.html.sh (Core language properties): Update.
16469
16470         Rename module 'link-warning' to 'snippet/link-warning'.
16471         * modules/snippet/link-warning: Renamed from modules/link-warning.
16472         (Files, Makefile.am): Update.
16473         * build-aux/snippet/link-warning.h: Renamed from
16474         build-aux/link-warning.h.
16475         * MODULES.html.sh (Support for building libraries and executables):
16476         Update.
16477
16478         Rename module 'c++defs' to 'snippet/c++defs'.
16479         * modules/snippet/c++defs: Renamed from modules/c++defs.
16480         (Files, Makefile.am): Update.
16481         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16482         * modules/arpa_inet (Depends-on): Update.
16483         * modules/ctype (Depends-on): Update.
16484         * modules/dirent (Depends-on): Update.
16485         * modules/fcntl-h (Depends-on): Update.
16486         * modules/glob (Depends-on): Update.
16487         * modules/iconv-h (Depends-on): Update.
16488         * modules/langinfo (Depends-on): Update.
16489         * modules/locale (Depends-on): Update.
16490         * modules/math (Depends-on): Update.
16491         * modules/netdb (Depends-on): Update.
16492         * modules/poll-h (Depends-on): Update.
16493         * modules/pty (Depends-on): Update.
16494         * modules/search (Depends-on): Update.
16495         * modules/signal (Depends-on): Update.
16496         * modules/spawn (Depends-on): Update.
16497         * modules/stdio (Depends-on): Update.
16498         * modules/stdlib (Depends-on): Update.
16499         * modules/string (Depends-on): Update.
16500         * modules/strings (Depends-on): Update.
16501         * modules/sys_ioctl (Depends-on): Update.
16502         * modules/sys_select (Depends-on): Update.
16503         * modules/sys_socket (Depends-on): Update.
16504         * modules/sys_stat (Depends-on): Update.
16505         * modules/sys_time (Depends-on): Update.
16506         * modules/sys_wait (Depends-on): Update.
16507         * modules/termios (Depends-on): Update.
16508         * modules/time (Depends-on): Update.
16509         * modules/unistd (Depends-on): Update.
16510         * modules/wchar (Depends-on): Update.
16511         * modules/wctype-h (Depends-on): Update.
16512
16513         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16514         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16515         (Files, Makefile.am): Update.
16516         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16517         * modules/argv-iter (Depends-on): Update.
16518         * modules/arpa_inet (Depends-on): Update.
16519         * modules/dirent (Depends-on): Update.
16520         * modules/fcntl-h (Depends-on): Update.
16521         * modules/fnmatch (Depends-on): Update.
16522         * modules/getopt-posix (Depends-on): Update.
16523         * modules/glob (Depends-on): Update.
16524         * modules/iconv-h (Depends-on): Update.
16525         * modules/inttypes-incomplete (Depends-on): Update.
16526         * modules/locale (Depends-on): Update.
16527         * modules/math (Depends-on): Update.
16528         * modules/netdb (Depends-on): Update.
16529         * modules/search (Depends-on): Update.
16530         * modules/signal (Depends-on): Update.
16531         * modules/spawn (Depends-on): Update.
16532         * modules/stdio (Depends-on): Update.
16533         * modules/stdlib (Depends-on): Update.
16534         * modules/string (Depends-on): Update.
16535         * modules/strings (Depends-on): Update.
16536         * modules/sys_socket (Depends-on): Update.
16537         * modules/sys_stat (Depends-on): Update.
16538         * modules/sys_time (Depends-on): Update.
16539         * modules/sys_times (Depends-on): Update.
16540         * modules/sys_utsname (Depends-on): Update.
16541         * modules/time (Depends-on): Update.
16542         * modules/unistd (Depends-on): Update.
16543         * modules/wchar (Depends-on): Update.
16544         * MODULES.html.sh (Support for building libraries and executables):
16545         Update.
16546
16547 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16548
16549         Improvements on _Noreturn and related modules.
16550
16551         modules/_Exit-tests: test _Noreturn too
16552         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16553         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16554         (main): Use them.
16555
16556         stdnoreturn, stdnoreturn-tests: remove modules
16557         They're not needed here and a bit premature for use elsewhere.  See
16558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16559         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16560         * tests/test-stdnoreturn.c: Remove files.
16561         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16562         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16563         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16564         and using noreturn.
16565         * modules/openat, modules/sigpipe-die, modules/xalloc:
16566         * modules/xmemdup0, modules/xstrtol:
16567         Remove dependency on stdnoreturn.
16568
16569         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16570         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16571         Reparenthesize to avoid GCC warning.
16572         Support Microsoft's syntax.
16573         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16574
16575         _Noreturn-tests: remove module
16576         * modules/_Noreturn-tests: Remove.
16577         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16578         * tests/test-_Noreturn.c: Remove.
16579         * tests/test-stdnoreturn.c: Merge from the old
16580         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16581
16582 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16583
16584         _Noreturn, stdnoreturn, and related modules.
16585
16586         * top/maint.mk: Adjust to new noreturn support.
16587         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16588         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16589
16590         xalloc: use stdnoreturn.h
16591         * lib/xalloc.h: Include <stdnoreturn.h>.
16592         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16593         * modules/xalloc (Depends-on): Add stdnoreturn.
16594
16595         xstrtol: use stdnoreturn.h
16596         * lib/xstrtol.h: Include <stdnoreturn.h>.
16597         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16598         * modules/xstrtol (Depends-on): Add stdnoreturn.
16599
16600         xmemdup0: use stdnoreturn.h
16601         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16602         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16603         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16604
16605         sigpipe-die: use stdnoreturn.h
16606         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16607         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16608         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16609
16610         openat: use stdnoreturn.h
16611         * lib/openat.h: Include <stdnoreturn.h>.
16612         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16613         * modules/openat (Depends-on): Add stdnoreturn.
16614
16615         * lib/openat-die.c (openat_save_fail): Modernize comment.
16616
16617         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16618
16619         * lib/glthread/thread.h: Modernize comment.
16620
16621         obstack: use _Noreturn
16622         * lib/obstack.c (__attribute__): Remove macro.
16623         (print_and_abort): Use _Noreturn.
16624
16625         c-stack: use _Noreturn
16626         * lib/c-stack.c (die, overflow_handler, segv_handler):
16627         Use _Noreturn rather than __attribute__((noreturn)).
16628
16629         argmatch-tests, exclude_tests: use _Noreturn
16630         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16631         Remove.
16632         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16633
16634         stdlib: use _Noreturn
16635         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16636         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16637         * modules/stdlib (Depends-on): Add _Noreturn.
16638         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16639
16640         stdnoreturn-tests: new module
16641         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16642
16643         stdnoreturn: new module
16644         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16645         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16646
16647         _Noreturn-tests: new module
16648         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16649
16650         _Noreturn: new module
16651         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16652         New section, mentioning it.
16653         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16654
16655         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16656
16657 2011-07-11  Eric Blake  <eblake@redhat.com>
16658
16659         ffs: new module
16660         * modules/ffs: New file.
16661         * m4/ffs.m4: Likewise.
16662         * lib/ffs.c: Likewise.
16663         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16664         * modules/strings (Makefile.am): Substitute witness.
16665         (Depends-on): Add c++defs.
16666         * lib/strings.in.h (ffs): Declare.
16667         * modules/ffs-tests: New test file.
16668         * tests/test-ffs.c: Test new module.
16669         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16670         * doc/posix-functions/ffs.texi (ffs): Likewise.
16671
16672         regex: avoid compiler warning
16673         * lib/regex.c (includes): Include <strings.h>, for use of
16674         strcasecmp in regcomp.c.
16675         Reported by Joachim Schmitz.
16676
16677 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16678
16679         stdint: respect system's intmax_t if INTMAX_MAX
16680         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16681         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16682         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16683         long but int64_t is long long, and where we will clash with the
16684         system intmax_t if we override it.  See
16685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16686         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16687         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16688         similarly for UINTMAX_C.
16689
16690 2011-07-08  Bruno Haible  <bruno@clisp.org>
16691
16692         pthread_sigmask tests: Avoid a compiler warning.
16693         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16694         non-zero.
16695
16696         sigprocmask tests: A better way to avoid a compiler warning.
16697         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16698         (main): Complain if system() returns non-zero.
16699         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16700
16701 2011-07-08  Bruno Haible  <bruno@clisp.org>
16702
16703         pthread_sigmask: Work around IRIX bug.
16704         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16705         bug.
16706         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16707         there may be unblocked pending signals.
16708         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16709
16710 2011-07-08  Bruno Haible  <bruno@clisp.org>
16711
16712         pthread_sigmask: Work around Cygwin bug.
16713         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16714         bug.
16715         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16716         the system's pthread_sigmask function.
16717         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16718
16719 2011-07-08  Bruno Haible  <bruno@clisp.org>
16720
16721         pthread_sigmask: Work around bug in single-threaded implementation.
16722         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16723         FreeBSD, HP-UX, Solaris bug.
16724         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16725         * lib/pthread_sigmask.c: Include <stddef.h>.
16726         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16727         the system's pthread_sigmask function.
16728         * modules/pthread_sigmask (configure.ac): Invoke
16729         gl_PREREQ_PTHREAD_SIGMASK.
16730         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16731         HP-UX, Solaris.
16732
16733 2011-07-08  Eric Blake  <eblake@redhat.com>
16734
16735         test-sigprocmask: avoid compiler warning
16736         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16737         * tests/test-sigprocmask.c (main): Use it to silence warning.
16738         Reported by Jim Meyering.
16739
16740         test-snprintf: avoid compiler warning
16741         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16742         * tests/test-vsnprintf.c (main): Likewise.
16743         Reported by Jim Meyering.
16744
16745 2011-07-08  Bruno Haible  <bruno@clisp.org>
16746
16747         Tests for module 'pthread_sigmask'.
16748         * modules/pthread_sigmask-tests: New file.
16749         * tests/test-pthread_sigmask1.c: New file, based on
16750         tests/test-sigprocmask.c.
16751         * tests/test-pthread_sigmask2.c: New file.
16752
16753 2011-07-08  Jim Meyering  <meyering@redhat.com>
16754
16755         test-getopt.h: avoid warning about an unused variable
16756         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16757
16758 2011-07-07  Jim Meyering  <meyering@redhat.com>
16759
16760         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16761         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16762         now that it no longer contains leading TABs.
16763         Remove unused "url=FIXME" statement.
16764
16765 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16766
16767         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16768         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16769         When gl_THREADLIB is not in use, assume that the POSIX sematics
16770         are desired.  This is better for Emacs, which uses POSIX semantics
16771         on GNUish and/or POSIXish platforms, and does not use threads at
16772         all otherwise.
16773
16774         pthread_sigmask: fix typo when testing for libraries
16775         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16776         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16777
16778 2011-07-08  Eric Blake  <eblake@redhat.com>
16779
16780         fts: introduce FTS_NOATIME
16781         * lib/fts_.h (FTS_NOATIME): New bit flag.
16782         (FTS_OPTIONMASK): Adjust.
16783         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16784         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16785
16786 2011-07-08  Bruno Haible  <bruno@clisp.org>
16787
16788         Tests for module 'thread'.
16789         * modules/thread-tests: New file.
16790         * tests/test-thread_self.c: New file.
16791         * tests/test-thread_create.cc: New file.
16792
16793 2011-07-08  Bruno Haible  <bruno@clisp.org>
16794
16795         thread: Avoid gcc warnings when using gl_thread_self().
16796         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16797         'void *'.
16798         (gl_thread_self_pointer): Update.
16799
16800 2011-07-07  Bruno Haible  <bruno@clisp.org>
16801
16802         signal-c++-tests: Check declaration of pthread_sigmask.
16803         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16804         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16805         $(LIB_PTHREAD_SIGMASK).
16806
16807 2011-07-07  Bruno Haible  <bruno@clisp.org>
16808
16809         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16810         * lib/signal.in.h (pthread_sigmask): Override if
16811         REPLACE_PTHREAD_SIGMASK is 1.
16812         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16813         REPLACE_PTHREAD_SIGMASK.
16814         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16815         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16816         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16817         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16818         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16819
16820 2011-07-07  Bruno Haible  <bruno@clisp.org>
16821
16822         pthread_sigmask: Ensure declaration in <signal.h>.
16823         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16824         include <pthread.h>.
16825         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16826         problem.
16827
16828 2011-07-07  Bruno Haible  <bruno@clisp.org>
16829
16830         pthread_sigmask: Document the module.
16831         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16832
16833 2011-07-07  Bruno Haible  <bruno@clisp.org>
16834
16835         pthread_sigmask: Follow gnulib conventions.
16836         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16837         gl_PTHREAD_SIGMASK.
16838         * modules/pthread_sigmask (configure.ac): Update.
16839
16840 2011-07-07  Bruno Haible  <bruno@clisp.org>
16841
16842         pthread_sigmask: Make declaration C++ safe.
16843         * lib/signal.in.h: In two special conditions, just do an #include_next.
16844         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16845         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16846         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16847         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16848         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16849         not REPLACE_PTHREAD_MASK.
16850         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16851         not REPLACE_PTHREAD_MASK.
16852         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16853
16854 2011-07-07  Bruno Haible  <bruno@clisp.org>
16855
16856         pthread_sigmask: Fix return value.
16857         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16858         * lib/pthread_sigmask.c: New file.
16859         * modules/pthread_sigmask (Files): Add it.
16860         (configure.ac): Invoke AC_LIBOBJ.
16861
16862 2011-07-07  Eric Blake  <eblake@redhat.com>
16863
16864         getopt: more portable argv creation
16865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
16866         const, use char arrays rather than strings.
16867         Suggested by Paul Eggert.
16868
16869 2011-07-07  Bruno Haible  <bruno@clisp.org>
16870
16871         Tests for module 'sigprocmask'.
16872         * modules/sigprocmask-tests: New file.
16873         * tests/test-sigprocmask.c: New file.
16874
16875 2011-07-07  Bruno Haible  <bruno@clisp.org>
16876
16877         float tests: Tweak.
16878         * tests/test-float.c (main): Tweak skip message.
16879
16880 2011-07-07  Eric Blake  <eblake@redhat.com>
16881
16882         getopt: avoid compiler warning during configure
16883         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
16884         assigning string literals to non-const pointer.
16885
16886         getopt-gnu: avoid crash in glibc getopt
16887         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
16888         * tests/test-getopt.h (test_getopt): Enhance test.
16889         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16890         * doc/posix-functions/getopt.texi (getopt): Document it.
16891         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16892         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16893         Likewise.
16894
16895 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16896
16897         getopt: handle W; without long options in getopt [BZ #12922]
16898         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
16899         but no long options are defined, just return 'W'.
16900
16901 2011-07-07  Bruno Haible  <bruno@clisp.org>
16902
16903         Avoid literal tabs.
16904         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
16905         variable containing a tab instead of a literal tab.
16906         Reported by Jim Meyering.
16907
16908 2011-07-07  Bruno Haible  <bruno@clisp.org>
16909
16910         Comments.
16911         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16912
16913 2011-07-06  Bruno Haible  <bruno@clisp.org>
16914
16915         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16916         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16917         <winsock2.h>.
16918         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16919         lib/sys_socket.in.h.
16920         (close, gethostname): Hide declarations from <winsock2.h>.
16921         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16922         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16923         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16924         (select): Don't override if gnulib's <sys/select.h> was already
16925         included.
16926         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16927         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16928         setsockopt, shutdown, select): Tweak indentation.
16929
16930 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16931
16932         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16933         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16934         in an application that does not use the sys_select module.
16935
16936 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16937
16938         poll: do not return 0 on timeout=-1
16939         * lib/poll.c: Loop with yield if no events occurred.
16940
16941 2011-07-06  Eric Blake  <eblake@redhat.com>
16942
16943         pthread_sigmask: always replace when not using pthread
16944         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16945         replacement when using some threading other than pthread.  Fix
16946         logic bug.
16947
16948 2011-07-06  Bruno Haible  <bruno@clisp.org>
16949
16950         Comments.
16951         * m4/printf.m4: Update comments about mingw.
16952
16953 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16954
16955         sys_select: define sigset_t more portably
16956         * lib/sys_select.in.h: Always include <sys/types.h>, since
16957         we now need sigset_t and mingw defines it there.
16958         Include <signal.h> before split inclusion guard, to avoid
16959         mishaps on Solaris, whose <signal.h> eventually includes us.
16960         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16961         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16962         which come from ...
16963         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16964         gl_CHECK_TYPE_SIGSET_T.
16965         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16966         does the real work.
16967         * modules/sys_select (Depends-on): Add 'signal'.
16968
16969         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16970         Suggested by Bruno Haible.
16971
16972         pselect: Use pthread_sigmask, not sigprocmask.
16973         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16974         multithreaded apps better than sigprocmask does.
16975         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16976         sigprocmask directly.
16977
16978 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16979
16980         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16981         Don't #undef,  since we don't need any underlying pselect.
16982         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16983         (Depends-on): Add select.
16984         (Link): Add $(LIBSOCKET).
16985         These changes suggested by Bruno Haible.
16986
16987         pselect: document better
16988         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16989         * doc/posix-functions/pselect.texi (pselect): Document new module.
16990
16991         pthread_sigmask: new module
16992         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16993         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16994         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16995         This is done only as a macro; I don't know how well that'll
16996         work for C++.  Move <sys/types.h> include before the include_next,
16997         to avoid mishap on Solaris.
16998         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16999         * modules/signal (Makefile.am): Substitute the check's results.
17000         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17001
17002         test-pselect: new module
17003         * modules/pselect-tests, tests/test-pselect.c: New files.
17004         * tests/test-select.c, tests/test-sys_select-c++.cc:
17005         If TEST_PSELECT is defined, test pselect instead of testing select.
17006
17007         * tests/test-sys_select.c (sigset_t): Test for it, too.
17008         Suggested by Bruno Haible.
17009
17010 2011-07-05  Eric Blake  <eblake@redhat.com>
17011
17012         snprintf: guarantee %1$d, for libintl
17013         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17014         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17015         * doc/posix-functions/snprintf.texi (snprintf): Update.
17016         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17017         * tests/test-snprintf.c (main): Enhance test.
17018         * tests/test-vsnprintf.c (main): Likewise.
17019
17020 2011-07-05  Jim Meyering  <meyering@redhat.com>
17021
17022         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17023         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17024         per Bruno's request, to accommodate this idiom (no space after "#")
17025         even when the function is inside an #if block:
17026         char *
17027         gets (char *s)
17028         #undef gets
17029         {
17030           ...
17031         }
17032
17033 2011-07-04  Jim Meyering  <meyering@redhat.com>
17034
17035         maint: indent with spaces, not TABs, and add a rule to check this
17036         * tests/test-userspec.c: Indent with spaces, not TABs.
17037         * tests/test-argp.c: Likewise.
17038         * tests/test-c-stack2.sh: Likewise.
17039         * tests/test-parse-duration.sh: Likewise
17040         * m4/strtod.m4: Likewise.
17041         * m4/alloca.m4: Likewise.
17042         * m4/pselect.m4: Likewise.
17043         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17044
17045 2011-07-03  Jim Meyering  <meyering@redhat.com>
17046
17047         maint.mk: correct omissions in prohibit_argmatch_without_use check
17048         This rule would mistakenly report that argmatch.h is included without
17049         use even when both the argmatch and invalid_arg macro were used.
17050         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17051         of argmatch and invalid_arg.
17052
17053 2011-07-03  Bruno Haible  <bruno@clisp.org>
17054
17055         Comments about EINTR.
17056         * lib/safe-read.h: Explain the purpose of this module.
17057         * lib/safe-write.h: Likewise.
17058         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17059         module.
17060         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17061         module.
17062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17063
17064 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17065
17066         xnanosleep: Rewrite to use new dtotimespec module.
17067         It has the conversion code that used to be in xnanosleep.
17068         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17069         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17070         (TIME_T_MAX): Remove.
17071         (xnanosleep): Rewrite in terms of dtotimespec.
17072         * modules/xnanosleep (Depends-on): Add dtotimespec.
17073         Remove intprops, stdbool.
17074
17075         timespec-add, timespec-sub: new modules
17076         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17077         * lib/timespec-add.c, lib/timespec-sub.c:
17078         * modules/timespec-add, modules/timespec-sub: New files.
17079
17080         dtotimespec: new module
17081         * lib/timespec.h (dtotimespec): New decl.
17082         * lib/dtotimespec.c, modules/dtotimespec: New files.
17083
17084         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17085
17086         pselect: new module
17087         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17088         (pselect): New decls.
17089         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17090         since the standard pselect decl uses 'restrict'.
17091         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17092         HAVE_PSELECT, REPLACE_PSELECT.
17093         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17094         HAVE_PSELECT, REPLACE_PSELECT.
17095         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17096
17097         sys_select: don't depend on sys_socket
17098         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17100         This fix works on GNU and GNU-like platforms, but has not been tested
17101         on native Windows.
17102         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17103         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17104         gl_HEADER_SYS_SOCKET.
17105         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17106         gl_PREREQ_SYS_H_WINSOCK2.
17107
17108 2011-06-29  Eric Blake  <eblake@redhat.com>
17109
17110         pipe2: fix C89 compile problem
17111         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17112         Reported by Bruno Haible.
17113
17114         pipe, pipe2: don't corrupt fd on error
17115         * lib/pipe.c (pipe): Leave fd unchanged on error.
17116         * lib/pipe2.c (pipe2): Likewise.
17117         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17118         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17119
17120 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17121
17122         mmap-anon: do not use regular expressions inadvertently
17123         * m4/mmap-anon.m4: Remove trailing period from strings sought
17124         in the output.
17125
17126 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17127
17128         nanosleep: fix integer overflow problem
17129         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17130         arithmetic wraps around on overflow.
17131
17132         nanosleep: simplify carrying
17133         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17134         first call to the underyling nanosleep, not for the last one.
17135         This doesn't fix any bugs, but it simplifies the computation of
17136         the remaining delay.  Found while auditing integer overflow issues.
17137
17138         dup2: remove test for existence of fcntl
17139         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17140         "#if HAVE_FCNTL", in the configure-time test program.
17141         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17142         and therefore speeds up "configure" a bit.  Found while
17143         adding the dup2 module to Emacs.
17144
17145 2011-06-24  Eric Blake  <eblake@redhat.com>
17146
17147         maint.mk: enhance useless header checks
17148         * top/maint.mk (_sc_header_without_use): Check both include
17149         styles.
17150         (sc_prohibit_assert_without_use)
17151         (sc_prohibit_close_stream_without_use)
17152         (sc_prohibit_getopt_without_use)
17153         (sc_prohibit_quotearg_without_use)
17154         (sc_prohibit_quote_without_use)
17155         (sc_prohibit_long_options_without_use)
17156         (sc_prohibit_inttostr_without_use)
17157         (sc_prohibit_ignore_value_without_use)
17158         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17159         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17160         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17161         (sc_prohibit_hash_pjw_without_use)
17162         (sc_prohibit_safe_read_without_use)
17163         (sc_prohibit_argmatch_without_use)
17164         (sc_prohibit_canonicalize_without_use)
17165         (sc_prohibit_root_dev_ino_without_use)
17166         (sc_prohibit_openat_without_use)
17167         (sc_prohibit_c_ctype_without_use)
17168         (sc_prohibit_signal_without_use)
17169         (sc_prohibit_stdio--_without_use)
17170         (sc_prohibit_stdio-safer_without_use)
17171         (sc_prohibit_strings_without_use)
17172         (sc_prohibit_intprops_without_use)
17173         (sc_prohibit_stddef_without_use)
17174         (sc_prohibit_xfreopen_without_use): Update clients.
17175
17176 2011-06-24  Jim Meyering  <meyering@redhat.com>
17177
17178         syntax-check: keep one maint.mk rule in sync with its header
17179         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17180         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17181         I prefer to avoid temporary files here, so use <(...), but that
17182         is not supported by /bin/sh, so...
17183         (SHELL): Define to /bin/bash.
17184
17185 2011-06-24  Eric Blake  <eblake@redhat.com>
17186
17187         maint.mk: update sc_prohibit_intprops_without_use
17188         * top/maint.mk (_intprops_names): Match recent changes.
17189
17190 2011-06-24  Bruno Haible  <bruno@clisp.org>
17191
17192         strerror-override: No-op tweak.
17193         * lib/strerror-override.h (strerror_override): Reorder conditions,
17194         for consistency with lib/strerror-override.c.
17195
17196 2011-06-23  Eric Blake  <eblake@redhat.com>
17197
17198         maint.mk: test further PATH_MAX issues
17199         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17200         (sc_prohibit_path_max_allocation): ...and also test alloca.
17201         Suggested by Jim Meyering.
17202
17203 2011-06-22  Eric Blake  <eblake@redhat.com>
17204
17205         maint.mk: add syntax-check to avoid char[PATH_MAX]
17206         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17207
17208         stat: be robust to PATH_MAX definition
17209         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17210         * modules/stat (Depends-on): Add verify.
17211
17212         link: work around IRIX bug
17213         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17214         * lib/link.c (rpl_link): Work around it.
17215         * tests/test-link.h (test_link): Enhance test.
17216         * doc/posix-functions/link.texi (link): Document the bug.
17217
17218         getopt: silence clang warning
17219         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17220         dereference.
17221         Reported by Gustavo Martin Domato.
17222
17223 2011-06-22  Jim Meyering  <meyering@redhat.com>
17224
17225         bootstrap: do not insert a blank line into each .gitignore file
17226         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17227
17228 2011-06-21  Eric Blake  <eblake@redhat.com>
17229
17230         perror: test for output mismatch
17231         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17232         perror on IRIX.
17233
17234         strerror_r: fix OpenBSD behavior on out-of-range
17235         * lib/strerror_r.c (strerror_r): Always use maximal string.
17236         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17237
17238         strerror_r: fix OpenBSD behavior on 0
17239         * lib/strerror-override.c (strerror_override): Also override 0
17240         when needed.
17241         * lib/strerror-override.h (strerror_override): Likewise.
17242         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17243         earlier.
17244         * lib/strerror_r.c (strerror_r): Likewise.
17245         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17246         behavior...
17247         (gl_FUNC_STRERROR_0): ...into new macro.
17248         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17249         is overridden.
17250         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17251         * modules/strerror-override (Files): Add strerror.m4.
17252         (configure.ac): Also provide override for 0 when needed.
17253         * doc/posix-functions/strerror.texi (strerror): Document this.
17254         * doc/posix-functions/perror.texi (perror): Likewise.
17255
17256         perror: adjust array size
17257         * modules/perror (Depends-on): Add strerror-override.
17258         * lib/perror.c (perror): Use it to avoid magic number.
17259
17260         strerror-override: reduce size
17261         * lib/strerror-override.c (strerror_override): Use fewer lines.
17262
17263 2011-06-20  Bruno Haible  <bruno@clisp.org>
17264
17265         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17266         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17267
17268 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17269
17270         alloca: port to compilers that can optimize like GCC 4.6.0
17271         * lib/alloca.c (find_stack_direction): New signature, taken from
17272         Autoconf git.  This works with GCC 4.6.0.  This code should never
17273         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17274         be used with other compilers that optimize as well as GCC 4.6.0 does.
17275         (alloca): Adjust to new signature.
17276         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17277         New macro, which patches Autoconf in a similar way.
17278
17279         c-stack: stop worrying about stack direction
17280         * lib/c-stack.c (find_stack_direction): Remove.
17281         (segv_handler): Don't worry about stack direction growth, as it's
17282         too much of a pain to configure this correctly, given how compilers
17283         are optimizing-away our stack-growth detection code.  Instead, assume
17284         that any access to just before or just after the stack is OK.
17285         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17286         Don't require AC_FUNC_ALLOCA; no longer needed.
17287
17288 2011-06-20  Eric Blake  <eblake@redhat.com>
17289
17290         test-stat: don't allocate PATH_MAX bytes
17291         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17292         PATH_MAX-sized buffer.
17293         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17294         * modules/stat-tests (Depends-on): Likewise.
17295         * tests/test-fstatat.c (includes): Drop pathmax.h.
17296         * tests/test-stat.c (includes): Likewise.
17297         Reported by Bruno Haible.
17298
17299 2011-06-20  Bruno Haible  <bruno@clisp.org>
17300
17301         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17302         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17303         * lib/float.c: New file.
17304         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17305         REPLACE_FLOAT_LDBL.
17306         * modules/float (Files): Add lib/float.c.
17307         (configure.ac): Invoke AC_LIBOBJ.
17308         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17309
17310 2011-06-20  Bruno Haible  <bruno@clisp.org>
17311
17312         Tests for module 'float'.
17313         * modules/float-tests: New file.
17314         * tests/test-float.c: New file.
17315
17316 2011-06-19  Bruno Haible  <bruno@clisp.org>
17317
17318         isinf: Coding style.
17319         * lib/isinf.c: Use GNU coding style.
17320
17321 2011-06-19  Bruno Haible  <bruno@clisp.org>
17322
17323         linkat test: Avoid test failure on AIX 7.1.
17324         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17325         * tests/test-link.h (test_link): Likewise.
17326
17327 2011-06-19  Bruno Haible  <bruno@clisp.org>
17328
17329         pread test: Avoid test failure on OpenBSD 4.9.
17330         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17331
17332 2011-06-19  Bruno Haible  <bruno@clisp.org>
17333
17334         sprintf-posix: Fix test failure on AIX 7.1.
17335         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17336         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17337         on AIX.
17338         * doc/posix-functions/fprintf.texi: Likewise.
17339         * doc/posix-functions/printf.texi: Likewise.
17340         * doc/posix-functions/snprintf.texi: Likewise.
17341         * doc/posix-functions/sprintf.texi: Likewise.
17342         * doc/posix-functions/vdprintf.texi: Likewise.
17343         * doc/posix-functions/vfprintf.texi: Likewise.
17344         * doc/posix-functions/vprintf.texi: Likewise.
17345         * doc/posix-functions/vsnprintf.texi: Likewise.
17346         * doc/posix-functions/vsprintf.texi: Likewise.
17347
17348 2011-06-19  Bruno Haible  <bruno@clisp.org>
17349
17350         roundl-ieee: Fix test failure on AIX 7.1.
17351         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17352         * doc/posix-functions/roundl.texi: Mention problem with negative
17353         arguments.
17354
17355 2011-06-19  Bruno Haible  <bruno@clisp.org>
17356
17357         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17358         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17359         * doc/posix-functions/round.texi: Mention problem with negative
17360         arguments.
17361         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17362
17363 2011-06-19  Bruno Haible  <bruno@clisp.org>
17364
17365         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17366         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17367         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17368         * doc/posix-functions/roundf.texi: Mention problem with negative
17369         arguments.
17370         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17371
17372 2011-06-19  Bruno Haible  <bruno@clisp.org>
17373
17374         ceilf-ieee: Work around bug on MacOS X 10.5.
17375         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17376
17377         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17378         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17379         IEEE compliant, avoid compiler optimizations.
17380         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17381         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17382         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17383         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17384         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17385         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17386         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17387         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17388         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17389         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17390
17391 2011-06-19  Bruno Haible  <bruno@clisp.org>
17392
17393         ceilf-ieee: Work around bug on AIX 7.1.
17394         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17395         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17396
17397 2011-06-19  Bruno Haible  <bruno@clisp.org>
17398
17399         ceil-ieee: Work around bug on AIX 7.1.
17400         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17401         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17402
17403 2011-06-18  Bruno Haible  <bruno@clisp.org>
17404
17405         fsync test: Avoid test failure on MacOS X and AIX.
17406         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17407         EINVAL.
17408
17409 2011-06-18  Bruno Haible  <bruno@clisp.org>
17410
17411         openat, fdopendir tests: Fix link errors.
17412         * modules/openat-tests (Depends-on): Add progname.
17413         * modules/fdopendir-tests (Depends-on): Likewise.
17414         * tests/test-fchownat.c: Include progname.h.
17415         (main): Call set_program_name.
17416         * tests/test-fstatat.c: Include progname.h.
17417         (main): Call set_program_name.
17418         * tests/test-mkdirat.c: Include progname.h.
17419         (main): Call set_program_name.
17420         * tests/test-openat.c: Include progname.h.
17421         (main): Call set_program_name.
17422         * tests/test-unlinkat.c: Include progname.h.
17423         (main): Call set_program_name.
17424         * tests/test-fdopendir.c: Include progname.h.
17425         (main): Call set_program_name.
17426
17427 2011-06-18  Bruno Haible  <bruno@clisp.org>
17428
17429         Doc update.
17430         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17431         HP-UX.
17432         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17433
17434 2011-06-18  Bruno Haible  <bruno@clisp.org>
17435
17436         getcwd tests: Avoid compilation error on HP-UX 11.31.
17437         * modules/getcwd-tests (Depends-on): Add pathmax.
17438         * tests/test-getcwd.c: Include pathmax.h.
17439
17440 2011-06-18  Bruno Haible  <bruno@clisp.org>
17441
17442         isfinite, isinf: Fix link error on AIX 6 and 7.
17443         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17444         needed, also test the macro with a 'float' argument.
17445         * m4/isinf.m4 (gl_ISINF): Likewise.
17446
17447 2011-06-18  Bruno Haible  <bruno@clisp.org>
17448
17449         getloadavg: Don't clobber LIBS. Regression from previous commit.
17450         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17451         AC_CHECK_LIB from here...
17452         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17453         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17454         gl_func_getloadavg_done.
17455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17456
17457 2011-06-18  Bruno Haible  <bruno@clisp.org>
17458
17459         clean-temp: Improve documentation.
17460         * lib/clean-temp.h: Explain better how to use this module.
17461         Reported by John Darrington <john@darrington.wattle.id.au>.
17462
17463 2011-06-17  Bruno Haible  <bruno@clisp.org>
17464
17465         pread, pwrite: Avoid cc warning on AIX.
17466         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17467         (pwrite): Likewise.
17468
17469 2011-06-17  Bruno Haible  <bruno@clisp.org>
17470
17471         spawn-pipe tests: Fix link error.
17472         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17473         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17474
17475 2011-06-17  Bruno Haible  <bruno@clisp.org>
17476
17477         Tests: Remove unnecessary dependency.
17478         * modules/canonicalize-tests (Depends-on): Remove progname.
17479         * modules/chown-tests (Depends-on): Likewise.
17480         * modules/dirname-tests (Depends-on): Likewise.
17481         * modules/fdopendir-tests (Depends-on): Likewise.
17482         * modules/fdutimensat-tests (Depends-on): Likewise.
17483         * modules/hash-tests (Depends-on): Likewise.
17484         * modules/lchown-tests (Depends-on): Likewise.
17485         * modules/linkat-tests (Depends-on): Likewise.
17486         * modules/renameat-tests (Depends-on): Likewise.
17487         * modules/spawn-pipe-tests (Depends-on): Likewise.
17488         * modules/utimensat-tests (Depends-on): Likewise.
17489
17490 2011-06-17  Bruno Haible  <bruno@clisp.org>
17491
17492         spawn-pipe tests: Fix link error.
17493         * tests/test-spawn-pipe-child.c: Undefine fflush.
17494
17495 2011-06-17  Bruno Haible  <bruno@clisp.org>
17496
17497         Fix tests link errors.
17498         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17499         * modules/chown-tests (Makefile.am): Don't link test-chown with
17500         LIBINTL.
17501         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17502         LIBINTL.
17503         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17504         LIBINTL.
17505         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17506         LIBINTL.
17507
17508 2011-06-16  Bruno Haible  <bruno@clisp.org>
17509
17510         crypto/gc-sha1: Fix recent regression.
17511         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17512         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17513
17514         crypto/gc-md5: Fix recent regression.
17515         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17516
17517         crypto/gc-md4: Fix recent regression.
17518         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17519         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17520
17521         crypto/gc-arctwo: Fix recent regression.
17522         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17523         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17524
17525         crypto/gc-rijndael: Fix recent regression.
17526         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17527         (configure.ac): Invoke AC_LIBOBJ here.
17528         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17530
17531         crypto/gc-hmac-sha1: Fix recent regression.
17532         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17533         (configure.ac): Invoke AC_LIBOBJ here.
17534         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17536
17537         crypto/gc-hmac-md5: Fix recent regression.
17538         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17539         (configure.ac): Invoke AC_LIBOBJ here.
17540         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17541         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17542
17543         crypto/gc-des: Fix recent regression.
17544         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17545         (configure.ac): Invoke AC_LIBOBJ here.
17546         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17547         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17548
17549         crypto/gc-arcfour: Fix recent regression.
17550         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17551         (configure.ac): Invoke AC_LIBOBJ here.
17552         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17554
17555 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17556
17557         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17558         After the 2011-05-21 change, this macro requires
17559         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17560         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17561
17562 2011-06-16  Bruno Haible  <bruno@clisp.org>
17563
17564         fprintftime: Move AC_LIBOBJ invocations to module description.
17565         * m4/fprintftime.m4: Remove file.
17566         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17567         (configure.ac): Remove gl_FPRINTFTIME call.
17568         (Makefile.am): Augment lib_SOURCES.
17569         Reported by Jim Meyering.
17570
17571 2011-06-16  Bruno Haible  <bruno@clisp.org>
17572
17573         tmpfile-safer: Finish 2011-05-23 commit.
17574         * m4/stdio-safer.m4: Really remove file.
17575         Reported by Jim Meyering.
17576
17577 2011-06-16  Bruno Haible  <bruno@clisp.org>
17578
17579         syntax-check: Fix typo.
17580         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17581         printf-posix.m4.
17582         Reported by Jim Meyering.
17583
17584 2011-06-13  Jim Meyering  <meyering@redhat.com>
17585
17586         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17587         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17588
17589 2011-05-23  Bruno Haible  <bruno@clisp.org>
17590
17591         yesno: Move AC_LIBOBJ invocations to module description.
17592         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17593         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17594
17595 2011-05-23  Bruno Haible  <bruno@clisp.org>
17596
17597         xstrtol: Move AC_LIBOBJ invocations to module description.
17598         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17599         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17600
17601 2011-05-23  Bruno Haible  <bruno@clisp.org>
17602
17603         xstrtold: Move AC_LIBOBJ invocations to module description.
17604         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17605         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17606
17607 2011-05-23  Bruno Haible  <bruno@clisp.org>
17608
17609         xstrtod: Move AC_LIBOBJ invocations to module description.
17610         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17611         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17612
17613 2011-05-23  Bruno Haible  <bruno@clisp.org>
17614
17615         xnanosleep: Move AC_LIBOBJ invocations to module description.
17616         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17617         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17618
17619 2011-05-23  Bruno Haible  <bruno@clisp.org>
17620
17621         xgetcwd: Move AC_LIBOBJ invocations to module description.
17622         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17623         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17624
17625 2011-05-23  Bruno Haible  <bruno@clisp.org>
17626
17627         xalloc: Move AC_LIBOBJ invocations to module description.
17628         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17629         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17630
17631 2011-05-23  Bruno Haible  <bruno@clisp.org>
17632
17633         write-any-file: Move AC_LIBOBJ invocations to module description.
17634         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17635         invocation.
17636         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17637
17638 2011-05-23  Bruno Haible  <bruno@clisp.org>
17639
17640         utimens: Move AC_LIBOBJ invocations to module description.
17641         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17642         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17643
17644 2011-05-23  Bruno Haible  <bruno@clisp.org>
17645
17646         utimecmp: Move AC_LIBOBJ invocations to module description.
17647         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17648         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17649
17650 2011-05-23  Bruno Haible  <bruno@clisp.org>
17651
17652         userspec: Move AC_LIBOBJ invocations to module description.
17653         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17654         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17655
17656 2011-05-23  Bruno Haible  <bruno@clisp.org>
17657
17658         unlinkdir: Move AC_LIBOBJ invocations to module description.
17659         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17660         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17661
17662 2011-05-23  Bruno Haible  <bruno@clisp.org>
17663
17664         unistd-safer: Move AC_LIBOBJ invocations to module description.
17665         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17666         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17667
17668 2011-05-23  Bruno Haible  <bruno@clisp.org>
17669
17670         tempname: Move AC_LIBOBJ invocations to module description.
17671         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17672         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17673
17674 2011-05-23  Bruno Haible  <bruno@clisp.org>
17675
17676         strftime: Move AC_LIBOBJ invocations to module description.
17677         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17678         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17679
17680 2011-05-23  Bruno Haible  <bruno@clisp.org>
17681
17682         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17683         * m4/stdlib-safer.m4: Remove file.
17684         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17685         (configure.ac): Remove gl_STDLIB_SAFER call.
17686         (Makefile.am): Augment lib_SOURCES.
17687
17688 2011-05-23  Bruno Haible  <bruno@clisp.org>
17689
17690         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17691         * m4/stdio-safer.m4: Remove file.
17692         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17693         (configure.ac): Remove gl_TMPFILE_SAFER call.
17694         (Makefile.am): Augment lib_SOURCES.
17695
17696 2011-05-23  Bruno Haible  <bruno@clisp.org>
17697
17698         popen-safer: Move AC_LIBOBJ invocations to module description.
17699         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17700         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17701         (configure.ac): Remove gl_POPEN_SAFER call.
17702         (Makefile.am): Augment lib_SOURCES.
17703
17704 2011-05-23  Bruno Haible  <bruno@clisp.org>
17705
17706         freopen-safer: Move AC_LIBOBJ invocations to module description.
17707         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17708         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17709         (configure.ac): Remove gl_FREOPEN_SAFER call.
17710         (Makefile.am): Augment lib_SOURCES.
17711
17712 2011-05-23  Bruno Haible  <bruno@clisp.org>
17713
17714         fopen-safer: Move AC_LIBOBJ invocations to module description.
17715         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17716         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17717         (configure.ac): Remove gl_FOPEN_SAFER call.
17718         (Makefile.am): Augment lib_SOURCES.
17719
17720 2011-05-23  Bruno Haible  <bruno@clisp.org>
17721
17722         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17723         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17724         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17725
17726 2011-05-23  Bruno Haible  <bruno@clisp.org>
17727
17728         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17729         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17730         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17731
17732 2011-05-23  Bruno Haible  <bruno@clisp.org>
17733
17734         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17735         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17736         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17737
17738 2011-05-23  Bruno Haible  <bruno@clisp.org>
17739
17740         settime: Move AC_LIBOBJ invocations to module description.
17741         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17742         * modules/settime (Makefile.am): Augment lib_SOURCES.
17743
17744 2011-05-23  Bruno Haible  <bruno@clisp.org>
17745
17746         savedir: Move AC_LIBOBJ invocations to module description.
17747         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17748         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17749
17750 2011-05-23  Bruno Haible  <bruno@clisp.org>
17751
17752         save-cwd: Move AC_LIBOBJ invocations to module description.
17753         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17754         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17755
17756 2011-05-23  Bruno Haible  <bruno@clisp.org>
17757
17758         same: Move AC_LIBOBJ invocations to module description.
17759         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17760         * modules/same (Makefile.am): Augment lib_SOURCES.
17761
17762 2011-05-23  Bruno Haible  <bruno@clisp.org>
17763
17764         safe-write: Move AC_LIBOBJ invocations to module description.
17765         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17766         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17767         instead of gl_SAFE_WRITE.
17768         (Makefile.am): Augment lib_SOURCES.
17769
17770 2011-05-23  Bruno Haible  <bruno@clisp.org>
17771
17772         safe-read: Move AC_LIBOBJ invocations to module description.
17773         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17774         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17775         of gl_SAFE_READ.
17776         (Makefile.am): Augment lib_SOURCES.
17777
17778 2011-05-23  Bruno Haible  <bruno@clisp.org>
17779
17780         safe-alloc: Move AC_LIBOBJ invocations to module description.
17781         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17782         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17783
17784 2011-05-23  Bruno Haible  <bruno@clisp.org>
17785
17786         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17787         * m4/rijndael.m4: Remove file.
17788         * modules/crypto/rijndael (Files): Remove it.
17789         (configure.ac): Remove gl_RIJNDAEL call.
17790         (Makefile.am): Augment lib_SOURCES.
17791
17792 2011-05-23  Bruno Haible  <bruno@clisp.org>
17793
17794         readtokens: Move AC_LIBOBJ invocations to module description.
17795         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17796         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17797
17798 2011-05-23  Bruno Haible  <bruno@clisp.org>
17799
17800         read-file: Move AC_LIBOBJ invocations to module description.
17801         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17802         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17803         of gl_FUNC_READ_FILE.
17804         (Makefile.am): Augment lib_SOURCES.
17805
17806 2011-05-23  Bruno Haible  <bruno@clisp.org>
17807
17808         quotearg: Move AC_LIBOBJ invocations to module description.
17809         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17810         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17811
17812 2011-05-23  Bruno Haible  <bruno@clisp.org>
17813
17814         quote: Move AC_LIBOBJ invocations to module description.
17815         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17816         * modules/quote (Makefile.am): Augment lib_SOURCES.
17817
17818 2011-05-23  Bruno Haible  <bruno@clisp.org>
17819
17820         posixver: Move AC_LIBOBJ invocations to module description.
17821         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17822         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17823
17824 2011-05-23  Bruno Haible  <bruno@clisp.org>
17825
17826         posixtm: Move AC_LIBOBJ invocations to module description.
17827         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17828         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17829
17830 2011-05-23  Bruno Haible  <bruno@clisp.org>
17831
17832         physmem: Move AC_LIBOBJ invocations to module description.
17833         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17834         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17835
17836 2011-05-23  Bruno Haible  <bruno@clisp.org>
17837
17838         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17839         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17840         invocation.
17841         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17842
17843 2011-05-23  Bruno Haible  <bruno@clisp.org>
17844
17845         mpsort: Move AC_LIBOBJ invocations to module description.
17846         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17847         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17848
17849 2011-05-23  Bruno Haible  <bruno@clisp.org>
17850
17851         modechange: Move AC_LIBOBJ invocations to module description.
17852         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17853         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17854
17855 2011-05-23  Bruno Haible  <bruno@clisp.org>
17856
17857         mkdir-p: Move AC_LIBOBJ invocations to module description.
17858         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17859         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17860
17861 2011-05-23  Bruno Haible  <bruno@clisp.org>
17862
17863         mkancesdirs: Move AC_LIBOBJ invocations to module description.
17864         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
17865         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
17866
17867 2011-05-23  Bruno Haible  <bruno@clisp.org>
17868
17869         mgetgroups: Move AC_LIBOBJ invocations to module description.
17870         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
17871         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
17872
17873 2011-05-23  Bruno Haible  <bruno@clisp.org>
17874
17875         memxor: Move AC_LIBOBJ invocations to module description.
17876         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17877         * modules/memxor (Makefile.am): Augment lib_SOURCES.
17878
17879 2011-05-23  Bruno Haible  <bruno@clisp.org>
17880
17881         memcoll: Move AC_LIBOBJ invocations to module description.
17882         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
17883         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
17884
17885 2011-05-23  Bruno Haible  <bruno@clisp.org>
17886
17887         memcasecmp: Move AC_LIBOBJ invocations to module description.
17888         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
17889         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
17890
17891 2011-05-23  Bruno Haible  <bruno@clisp.org>
17892
17893         crypto/md5: Move AC_LIBOBJ invocations to module description.
17894         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
17895         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
17896
17897 2011-05-23  Bruno Haible  <bruno@clisp.org>
17898
17899         crypto/md4: Move AC_LIBOBJ invocations to module description.
17900         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
17901         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
17902
17903 2011-05-23  Bruno Haible  <bruno@clisp.org>
17904
17905         crypto/md2: Move AC_LIBOBJ invocations to module description.
17906         * m4/md2.m4: Remove file.
17907         * modules/crypto/md2 (Files): Remove it.
17908         (configure.ac): Remove gl_MD2 call.
17909         (Makefile.am): Augment lib_SOURCES.
17910
17911 2011-05-23  Bruno Haible  <bruno@clisp.org>
17912
17913         long-options: Move AC_LIBOBJ invocations to module description.
17914         * m4/long-options.m4: Remove file.
17915         * modules/long-options (Files): Remove it.
17916         (configure.ac): Remove gl_LONG_OPTIONS call.
17917         (Makefile.am): Augment lib_SOURCES.
17918
17919 2011-05-23  Bruno Haible  <bruno@clisp.org>
17920
17921         i-ring: Move AC_LIBOBJ invocations to module description.
17922         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17923         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17924
17925 2011-05-23  Bruno Haible  <bruno@clisp.org>
17926
17927         idcache: Move AC_LIBOBJ invocations to module description.
17928         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17929         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17930
17931 2011-05-23  Bruno Haible  <bruno@clisp.org>
17932
17933         human: Move AC_LIBOBJ invocations to module description.
17934         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17935         * modules/human (Makefile.am): Augment lib_SOURCES.
17936
17937 2011-05-23  Bruno Haible  <bruno@clisp.org>
17938
17939         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17940         * m4/hmac-sha1.m4: Remove file.
17941         * modules/crypto/hmac-sha1 (Files): Remove it.
17942         (configure.ac): Remove gl_HMAC_SHA1 call.
17943         (Makefile.am): Augment lib_SOURCES.
17944
17945 2011-05-23  Bruno Haible  <bruno@clisp.org>
17946
17947         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17948         * m4/hmac-md5.m4: Remove file.
17949         * modules/crypto/hmac-md5 (Files): Remove it.
17950         (configure.ac): Remove gl_HMAC_MD5 call.
17951         (Makefile.am): Augment lib_SOURCES.
17952
17953 2011-05-23  Bruno Haible  <bruno@clisp.org>
17954
17955         hash: Move AC_LIBOBJ invocations to module description.
17956         * m4/hash.m4: Remove file.
17957         * modules/hash (Files): Remove it.
17958         (configure.ac): Remove gl_HASH call.
17959         (Makefile.am): Augment lib_SOURCES.
17960
17961 2011-05-23  Bruno Haible  <bruno@clisp.org>
17962
17963         hard-locale: Move AC_LIBOBJ invocations to module description.
17964         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17965         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17966
17967 2011-05-23  Bruno Haible  <bruno@clisp.org>
17968
17969         getugroups: Move AC_LIBOBJ invocations to module description.
17970         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17971         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17972
17973 2011-05-23  Bruno Haible  <bruno@clisp.org>
17974
17975         gettime: Move AC_LIBOBJ invocations to module description.
17976         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17977         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17978
17979 2011-05-23  Bruno Haible  <bruno@clisp.org>
17980
17981         getndelim2: Move AC_LIBOBJ invocations to module description.
17982         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17983         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17984
17985 2011-05-23  Bruno Haible  <bruno@clisp.org>
17986
17987         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17988         * m4/gc-pbkdf2-sha1.m4: Remove file.
17989         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17990         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17991         (Makefile.am): Augment lib_SOURCES.
17992
17993 2011-05-23  Bruno Haible  <bruno@clisp.org>
17994
17995         fts: Move AC_LIBOBJ invocations to module description.
17996         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17997         * modules/fts (configure.ac): ... to here.
17998
17999 2011-05-23  Bruno Haible  <bruno@clisp.org>
18000
18001         file-type: Move AC_LIBOBJ invocations to module description.
18002         * m4/file-type.m4: Remove file.
18003         * modules/file-type (Files): Remove it.
18004         (configure.ac): Remove gl_FILE_TYPE call.
18005         (Makefile.am): Augment lib_SOURCES.
18006
18007 2011-05-23  Bruno Haible  <bruno@clisp.org>
18008
18009         filenamecat*: Respect rules for use of AC_LIBOBJ.
18010         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18011         Remove AC_LIBOBJ invocation.
18012         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18013         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18014
18015 2011-05-23  Bruno Haible  <bruno@clisp.org>
18016
18017         filemode: Move AC_LIBOBJ invocations to module description.
18018         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18019         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18020
18021 2011-05-23  Bruno Haible  <bruno@clisp.org>
18022
18023         openat-safer: Move AC_LIBOBJ invocations to module description.
18024         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18025         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18026
18027 2011-05-23  Bruno Haible  <bruno@clisp.org>
18028
18029         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18030         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18031         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18032
18033 2011-05-23  Bruno Haible  <bruno@clisp.org>
18034
18035         exclude: Move AC_LIBOBJ invocations to module description.
18036         * m4/exclude.m4: Remove file.
18037         * modules/exclude (Files): Remove it.
18038         (configure.ac): Remove gl_EXCLUDE call.
18039         (Makefile.am): Augment lib_SOURCES.
18040
18041 2011-05-23  Bruno Haible  <bruno@clisp.org>
18042
18043         dirname*: Respect rules for use of AC_LIBOBJ.
18044         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18045         invocations.
18046         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18047         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18048
18049 2011-05-23  Bruno Haible  <bruno@clisp.org>
18050
18051         dirent-safer: Move AC_LIBOBJ invocations to module description.
18052         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18053         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18054
18055 2011-05-23  Bruno Haible  <bruno@clisp.org>
18056
18057         crypto/des: Move AC_LIBOBJ invocations to module description.
18058         * m4/des.m4: Remove file.
18059         * modules/crypto/des (Files): Remove it.
18060         (configure.ac): Remove gl_DES call.
18061         (Makefile.am): Augment lib_SOURCES.
18062
18063 2011-05-23  Bruno Haible  <bruno@clisp.org>
18064
18065         cycle-check: Move AC_LIBOBJ invocations to module description.
18066         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18067         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18068
18069 2011-05-23  Bruno Haible  <bruno@clisp.org>
18070
18071         c-strtold: Move AC_LIBOBJ invocations to module description.
18072         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18073         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18074
18075 2011-05-23  Bruno Haible  <bruno@clisp.org>
18076
18077         c-strtod: Move AC_LIBOBJ invocations to module description.
18078         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18079         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18080
18081 2011-05-23  Bruno Haible  <bruno@clisp.org>
18082
18083         crc: Move AC_LIBOBJ invocations to module description.
18084         * m4/crc.m4: Remove file.
18085         * modules/crc (Files): Remove it.
18086         (configure.ac): Remove gl_CRC call.
18087         (Makefile.am): Augment lib_SOURCES.
18088
18089 2011-05-23  Bruno Haible  <bruno@clisp.org>
18090
18091         close-stream: Move AC_LIBOBJ invocations to module description.
18092         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18093         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18094
18095 2011-05-23  Bruno Haible  <bruno@clisp.org>
18096
18097         closeout: Move AC_LIBOBJ invocations to module description.
18098         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18099         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18100
18101 2011-05-23  Bruno Haible  <bruno@clisp.org>
18102
18103         closein: Move AC_LIBOBJ invocations to module description.
18104         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18105         * modules/closein (Makefile.am): Augment lib_SOURCES.
18106
18107 2011-05-23  Bruno Haible  <bruno@clisp.org>
18108
18109         cloexec: Move AC_LIBOBJ invocations to module description.
18110         * m4/cloexec.m4: Remove file.
18111         * modules/cloexec (Files): Remove it.
18112         (configure.ac): Remove gl_CLOEXEC call.
18113         (Makefile.am): Augment lib_SOURCES.
18114
18115 2011-05-23  Bruno Haible  <bruno@clisp.org>
18116
18117         check-version: Move AC_LIBOBJ invocations to module description.
18118         * m4/check-version.m4: Remove file.
18119         * modules/check-version (Files): Remove it.
18120         (configure.ac): Remove gl_CHECK_VERSION call.
18121         (Makefile.am): Augment lib_SOURCES.
18122
18123 2011-05-23  Bruno Haible  <bruno@clisp.org>
18124
18125         chdir-safer: Move AC_LIBOBJ invocations to module description.
18126         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18127         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18128
18129 2011-05-23  Bruno Haible  <bruno@clisp.org>
18130
18131         canonicalize: Move AC_LIBOBJ invocations to module description.
18132         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18133         AC_LIBOBJ invocation.
18134         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18135
18136 2011-05-23  Bruno Haible  <bruno@clisp.org>
18137
18138         canon-host: Move AC_LIBOBJ invocations to module description.
18139         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18140         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18141         instead of gl_CANON_HOST.
18142         (Makefile.am): Augment lib_SOURCES.
18143
18144 2011-05-23  Bruno Haible  <bruno@clisp.org>
18145
18146         backupfile: Move AC_LIBOBJ invocations to module description.
18147         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18148         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18149
18150 2011-05-23  Bruno Haible  <bruno@clisp.org>
18151
18152         argmatch: Move AC_LIBOBJ invocations to module description.
18153         * m4/argmatch.m4: Remove file.
18154         * modules/argmatch (Files): Remove it.
18155         (configure.ac): Remove gl_ARGMATCH call.
18156         (Makefile.am): Augment lib_SOURCES.
18157
18158 2011-05-23  Bruno Haible  <bruno@clisp.org>
18159
18160         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18161         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18162         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18163
18164 2011-05-23  Bruno Haible  <bruno@clisp.org>
18165
18166         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18167         * m4/arcfour.m4: Remove file.
18168         * modules/crypto/arcfour (Files): Remove it.
18169         (configure.ac): Remove gl_ARCFOUR call.
18170         (Makefile.am): Augment lib_SOURCES.
18171
18172 2011-05-22  Bruno Haible  <bruno@clisp.org>
18173
18174         write: Move AC_LIBOBJ invocations to module description.
18175         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18176         * modules/write (configure.ac): ... to here.
18177
18178 2011-05-22  Bruno Haible  <bruno@clisp.org>
18179
18180         wmemset: Move AC_LIBOBJ invocations to module description.
18181         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18182         here...
18183         * modules/wmemset (configure.ac): ... to here.
18184
18185 2011-05-22  Bruno Haible  <bruno@clisp.org>
18186
18187         wmemmove: Move AC_LIBOBJ invocations to module description.
18188         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18189         here...
18190         * modules/wmemmove (configure.ac): ... to here.
18191
18192 2011-05-22  Bruno Haible  <bruno@clisp.org>
18193
18194         wmemcpy: Move AC_LIBOBJ invocations to module description.
18195         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18196         here...
18197         * modules/wmemcpy (configure.ac): ... to here.
18198
18199 2011-05-22  Bruno Haible  <bruno@clisp.org>
18200
18201         wmemcmp: Move AC_LIBOBJ invocations to module description.
18202         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18203         here...
18204         * modules/wmemcmp (configure.ac): ... to here.
18205
18206 2011-05-22  Bruno Haible  <bruno@clisp.org>
18207
18208         wmemchr: Move AC_LIBOBJ invocations to module description.
18209         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18210         here...
18211         * modules/wmemchr (configure.ac): ... to here.
18212
18213 2011-05-22  Bruno Haible  <bruno@clisp.org>
18214
18215         wcswidth: Move AC_LIBOBJ invocations to module description.
18216         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18217         here...
18218         * modules/wcswidth (configure.ac): ... to here.
18219
18220 2011-05-22  Bruno Haible  <bruno@clisp.org>
18221
18222         wcwidth: Respect rules for use of AC_LIBOBJ.
18223         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18224         invocation from here...
18225         * modules/wcwidth (configure.ac): ... to here.
18226         (Depends-on): Update conditions.
18227
18228 2011-05-22  Bruno Haible  <bruno@clisp.org>
18229
18230         wctype: Move AC_LIBOBJ invocations to module description.
18231         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18232         invocation from here...
18233         * modules/wctype (configure.ac): ... to here.
18234         (Depends-on): Update conditions.
18235
18236 2011-05-22  Bruno Haible  <bruno@clisp.org>
18237
18238         wctrans: Move AC_LIBOBJ invocations to module description.
18239         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18240         invocation from here...
18241         * modules/wctrans (configure.ac): ... to here.
18242
18243 2011-05-22  Bruno Haible  <bruno@clisp.org>
18244
18245         wctomb: Move AC_LIBOBJ invocations to module description.
18246         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18247         invocations from here...
18248         * modules/wctomb (configure.ac): ... to here.
18249
18250 2011-05-22  Bruno Haible  <bruno@clisp.org>
18251
18252         wctob: Move AC_LIBOBJ invocations to module description.
18253         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18254         gl_PREREQ_WCTOB invocations from here...
18255         * modules/wctob (configure.ac): ... to here.
18256         (Depends-on): Update conditions.
18257
18258 2011-05-22  Bruno Haible  <bruno@clisp.org>
18259
18260         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18261         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18262         here...
18263         * modules/wcsxfrm (configure.ac): ... to here.
18264
18265 2011-05-22  Bruno Haible  <bruno@clisp.org>
18266
18267         wcstok: Move AC_LIBOBJ invocations to module description.
18268         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18269         * modules/wcstok (configure.ac): ... to here.
18270
18271 2011-05-22  Bruno Haible  <bruno@clisp.org>
18272
18273         wcsstr: Move AC_LIBOBJ invocations to module description.
18274         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18275         * modules/wcsstr (configure.ac): ... to here.
18276
18277 2011-05-22  Bruno Haible  <bruno@clisp.org>
18278
18279         wcsspn: Move AC_LIBOBJ invocations to module description.
18280         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18281         * modules/wcsspn (configure.ac): ... to here.
18282
18283 2011-05-22  Bruno Haible  <bruno@clisp.org>
18284
18285         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18286         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18287         gl_PREREQ_WCSRTOMBS invocations from here...
18288         * modules/wcsrtombs (configure.ac): ... to here.
18289
18290 2011-05-22  Bruno Haible  <bruno@clisp.org>
18291
18292         wcsrchr: Move AC_LIBOBJ invocations to module description.
18293         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18294         here...
18295         * modules/wcsrchr (configure.ac): ... to here.
18296
18297 2011-05-22  Bruno Haible  <bruno@clisp.org>
18298
18299         wcspbrk: Move AC_LIBOBJ invocations to module description.
18300         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18301         here...
18302         * modules/wcspbrk (configure.ac): ... to here.
18303
18304 2011-05-22  Bruno Haible  <bruno@clisp.org>
18305
18306         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18307         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18308         gl_PREREQ_WCSNRTOMBS invocations from here...
18309         * modules/wcsnrtombs (configure.ac): ... to here.
18310
18311 2011-05-22  Bruno Haible  <bruno@clisp.org>
18312
18313         wcsnlen: Move AC_LIBOBJ invocations to module description.
18314         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18315         here...
18316         * modules/wcsnlen (configure.ac): ... to here.
18317
18318 2011-05-22  Bruno Haible  <bruno@clisp.org>
18319
18320         wcsncpy: Move AC_LIBOBJ invocations to module description.
18321         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18322         here...
18323         * modules/wcsncpy (configure.ac): ... to here.
18324
18325 2011-05-22  Bruno Haible  <bruno@clisp.org>
18326
18327         wcsncmp: Move AC_LIBOBJ invocations to module description.
18328         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18329         here...
18330         * modules/wcsncmp (configure.ac): ... to here.
18331
18332 2011-05-22  Bruno Haible  <bruno@clisp.org>
18333
18334         wcsncat: Move AC_LIBOBJ invocations to module description.
18335         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18336         here...
18337         * modules/wcsncat (configure.ac): ... to here.
18338
18339 2011-05-22  Bruno Haible  <bruno@clisp.org>
18340
18341         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18342         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18343         from here...
18344         * modules/wcsncasecmp (configure.ac): ... to here.
18345
18346 2011-05-22  Bruno Haible  <bruno@clisp.org>
18347
18348         wcslen: Move AC_LIBOBJ invocations to module description.
18349         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18350         * modules/wcslen (configure.ac): ... to here.
18351
18352 2011-05-22  Bruno Haible  <bruno@clisp.org>
18353
18354         wcsdup: Move AC_LIBOBJ invocations to module description.
18355         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18356         * modules/wcsdup (configure.ac): ... to here.
18357
18358 2011-05-22  Bruno Haible  <bruno@clisp.org>
18359
18360         wcscspn: Move AC_LIBOBJ invocations to module description.
18361         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18362         here...
18363         * modules/wcscspn (configure.ac): ... to here.
18364
18365 2011-05-22  Bruno Haible  <bruno@clisp.org>
18366
18367         wcscpy: Move AC_LIBOBJ invocations to module description.
18368         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18369         * modules/wcscpy (configure.ac): ... to here.
18370
18371 2011-05-22  Bruno Haible  <bruno@clisp.org>
18372
18373         wcscoll: Move AC_LIBOBJ invocations to module description.
18374         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18375         here...
18376         * modules/wcscoll (configure.ac): ... to here.
18377
18378 2011-05-22  Bruno Haible  <bruno@clisp.org>
18379
18380         wcscmp: Move AC_LIBOBJ invocations to module description.
18381         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18382         * modules/wcscmp (configure.ac): ... to here.
18383
18384 2011-05-22  Bruno Haible  <bruno@clisp.org>
18385
18386         wcschr: Move AC_LIBOBJ invocations to module description.
18387         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18388         * modules/wcschr (configure.ac): ... to here.
18389
18390 2011-05-22  Bruno Haible  <bruno@clisp.org>
18391
18392         wcscat: Move AC_LIBOBJ invocations to module description.
18393         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18394         * modules/wcscat (configure.ac): ... to here.
18395
18396 2011-05-22  Bruno Haible  <bruno@clisp.org>
18397
18398         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18399         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18400         here...
18401         * modules/wcscasecmp (configure.ac): ... to here.
18402
18403 2011-05-22  Bruno Haible  <bruno@clisp.org>
18404
18405         wcrtomb: Move AC_LIBOBJ invocations to module description.
18406         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18407         invocations from here...
18408         * modules/wcrtomb (configure.ac): ... to here.
18409
18410 2011-05-22  Bruno Haible  <bruno@clisp.org>
18411
18412         wcpncpy: Move AC_LIBOBJ invocations to module description.
18413         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18414         here...
18415         * modules/wcpncpy (configure.ac): ... to here.
18416
18417 2011-05-22  Bruno Haible  <bruno@clisp.org>
18418
18419         wcpcpy: Move AC_LIBOBJ invocations to module description.
18420         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18421         * modules/wcpcpy (configure.ac): ... to here.
18422
18423 2011-05-22  Bruno Haible  <bruno@clisp.org>
18424
18425         waitpid: Move AC_LIBOBJ invocations to module description.
18426         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18427         invocation from here...
18428         * modules/waitpid (configure.ac): ... to here.
18429
18430 2011-05-22  Bruno Haible  <bruno@clisp.org>
18431
18432         utimensat: Move AC_LIBOBJ invocations to module description.
18433         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18434         here...
18435         * modules/utimensat (configure.ac): ... to here.
18436
18437 2011-05-22  Bruno Haible  <bruno@clisp.org>
18438
18439         usleep: Move AC_LIBOBJ invocations to module description.
18440         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18441         here...
18442         * modules/usleep (configure.ac): ... to here.
18443
18444 2011-05-22  Bruno Haible  <bruno@clisp.org>
18445
18446         unlockpt: Move AC_LIBOBJ invocations to module description.
18447         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18448         gl_PREREQ_UNLOCKPT invocations from here...
18449         * modules/unlockpt (configure.ac): ... to here.
18450
18451 2011-05-22  Bruno Haible  <bruno@clisp.org>
18452
18453         unlink: Respect rules for use of AC_LIBOBJ.
18454         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18455         * modules/unlink (configure.ac): ... to here.
18456
18457 2011-05-22  Bruno Haible  <bruno@clisp.org>
18458
18459         uname: Move AC_LIBOBJ invocations to module description.
18460         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18461         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18462         here...
18463         * modules/uname (configure.ac): ... to here.
18464
18465 2011-05-22  Bruno Haible  <bruno@clisp.org>
18466
18467         ttyname_r: Move AC_LIBOBJ invocations to module description.
18468         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18469         gl_PREREQ_TTYNAME_R invocations from here...
18470         * modules/ttyname_r (configure.ac): ... to here.
18471
18472 2011-05-22  Bruno Haible  <bruno@clisp.org>
18473
18474         tsearch: Move AC_LIBOBJ invocations to module description.
18475         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18476         invocations from here...
18477         * modules/tsearch (configure.ac): ... to here.
18478
18479 2011-05-22  Bruno Haible  <bruno@clisp.org>
18480
18481         towctrans: Move AC_LIBOBJ invocations to module description.
18482         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18483         AC_LIBOBJ invocation from here...
18484         * modules/towctrans (configure.ac): ... to here.
18485
18486 2011-05-22  Bruno Haible  <bruno@clisp.org>
18487
18488         tmpfile: Move AC_LIBOBJ invocations to module description.
18489         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18490         invocations from here...
18491         * modules/tmpfile (configure.ac): ... to here.
18492
18493 2011-05-22  Bruno Haible  <bruno@clisp.org>
18494
18495         times: Move AC_LIBOBJ invocations to module description.
18496         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18497         * modules/times (configure.ac): ... to here.
18498
18499 2011-05-22  Bruno Haible  <bruno@clisp.org>
18500
18501         time_r: Move AC_LIBOBJ invocations to module description.
18502         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18503         invocations from here...
18504         * modules/time_r (configure.ac): ... to here.
18505
18506 2011-05-22  Bruno Haible  <bruno@clisp.org>
18507
18508         timegm: Move AC_LIBOBJ invocations to module description.
18509         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18510         invocations from here...
18511         * modules/timegm (configure.ac): ... to here.
18512
18513 2011-05-22  Bruno Haible  <bruno@clisp.org>
18514
18515         tcgetsid: Move AC_LIBOBJ invocations to module description.
18516         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18517         and gl_PREREQ_TCGETSID invocations from here...
18518         * modules/tcgetsid (configure.ac): ... to here.
18519         (Depends-on): Update conditions.
18520
18521 2011-05-22  Bruno Haible  <bruno@clisp.org>
18522
18523         symlinkat: Move AC_LIBOBJ invocations to module description.
18524         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18525         here...
18526         * modules/symlinkat (configure.ac): ... to here.
18527
18528 2011-05-22  Bruno Haible  <bruno@clisp.org>
18529
18530         symlink: Move AC_LIBOBJ invocations to module description.
18531         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18532         here...
18533         * modules/symlink (configure.ac): ... to here.
18534
18535 2011-05-22  Bruno Haible  <bruno@clisp.org>
18536
18537         strverscmp: Move AC_LIBOBJ invocations to module description.
18538         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18539         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18540         from here...
18541         * modules/strverscmp (configure.ac): ... to here.
18542
18543 2011-05-22  Bruno Haible  <bruno@clisp.org>
18544
18545         strtok_r: Move AC_LIBOBJ invocations to module description.
18546         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18547         and gl_PREREQ_STRTOK_R invocations from here...
18548         * modules/strtok_r (configure.ac): ... to here.
18549         (Depends-on): Update conditions.
18550
18551 2011-05-22  Bruno Haible  <bruno@clisp.org>
18552
18553         strtoumax: Move AC_LIBOBJ invocations to module description.
18554         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18555         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18556         from here...
18557         * modules/strtoumax (configure.ac): ... to here.
18558
18559 2011-05-22  Bruno Haible  <bruno@clisp.org>
18560
18561         strtoimax: Move AC_LIBOBJ invocations to module description.
18562         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18563         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18564         from here...
18565         * modules/strtoimax (configure.ac): ... to here.
18566
18567 2011-05-22  Bruno Haible  <bruno@clisp.org>
18568
18569         strtoull: Move AC_LIBOBJ invocations to module description.
18570         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18571         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18572         from here...
18573         * modules/strtoull (configure.ac): ... to here.
18574
18575 2011-05-22  Bruno Haible  <bruno@clisp.org>
18576
18577         strtoll: Move AC_LIBOBJ invocations to module description.
18578         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18579         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18580         here...
18581         * modules/strtoll (configure.ac): ... to here.
18582
18583 2011-05-22  Bruno Haible  <bruno@clisp.org>
18584
18585         strtoul: Move AC_LIBOBJ invocations to module description.
18586         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18587         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18588         * modules/strtoul (configure.ac): ... to here.
18589
18590 2011-05-22  Bruno Haible  <bruno@clisp.org>
18591
18592         strtol: Move AC_LIBOBJ invocations to module description.
18593         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18594         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18595         * modules/strtol (configure.ac): ... to here.
18596
18597 2011-05-22  Bruno Haible  <bruno@clisp.org>
18598
18599         strtod: Move AC_LIBOBJ invocations to module description.
18600         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18601         invocations from here...
18602         * modules/strtod (configure.ac): ... to here.
18603
18604 2011-05-22  Bruno Haible  <bruno@clisp.org>
18605
18606         strstr*: Move AC_LIBOBJ invocations to module description.
18607         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18608         invocations from here...
18609         * modules/strstr-simple (configure.ac): ... to here.
18610         * modules/strstr (configure.ac): ... and here.
18611
18612 2011-05-22  Bruno Haible  <bruno@clisp.org>
18613
18614         strsignal: Move AC_LIBOBJ invocations to module description.
18615         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18616         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18617         * modules/strsignal (configure.ac): ... to here.
18618         (Depends-on): Update conditions.
18619
18620 2011-05-22  Bruno Haible  <bruno@clisp.org>
18621
18622         strsep: Move AC_LIBOBJ invocations to module description.
18623         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18624         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18625         here...
18626         * modules/strsep (configure.ac): ... to here.
18627
18628 2011-05-22  Bruno Haible  <bruno@clisp.org>
18629
18630         strptime: Move AC_LIBOBJ invocations to module description.
18631         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18632         gl_PREREQ_STRPTIME invocations from here...
18633         * modules/strptime (configure.ac): ... to here.
18634
18635 2011-05-22  Bruno Haible  <bruno@clisp.org>
18636
18637         strpbrk: Move AC_LIBOBJ invocations to module description.
18638         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18639         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18640         here...
18641         * modules/strpbrk (configure.ac): ... to here.
18642
18643 2011-05-22  Bruno Haible  <bruno@clisp.org>
18644
18645         strnlen: Move AC_LIBOBJ invocations to module description.
18646         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18647         invocations from here...
18648         * modules/strnlen (configure.ac): ... to here.
18649
18650 2011-05-22  Bruno Haible  <bruno@clisp.org>
18651
18652         strndup: Move AC_LIBOBJ invocations to module description.
18653         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18654         invocations from here...
18655         * modules/strndup (configure.ac): ... to here.
18656         (Depends-on): Update conditions.
18657
18658 2011-05-22  Bruno Haible  <bruno@clisp.org>
18659
18660         strncat: Move AC_LIBOBJ invocations to module description.
18661         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18662         invocations from here...
18663         * modules/strncat (configure.ac): ... to here.
18664
18665 2011-05-22  Bruno Haible  <bruno@clisp.org>
18666
18667         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18668         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18669         invocations from here...
18670         * modules/strdup (configure.ac): ... to here.
18671         * modules/strdup-posix (configure.ac): ... and here.
18672
18673 2011-05-22  Bruno Haible  <bruno@clisp.org>
18674
18675         strcspn: Move AC_LIBOBJ invocations to module description.
18676         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18677         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18678         here...
18679         * modules/strcspn (configure.ac): ... to here.
18680
18681 2011-05-22  Bruno Haible  <bruno@clisp.org>
18682
18683         strchrnul: Move AC_LIBOBJ invocations to module description.
18684         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18685         gl_PREREQ_STRCHRNUL invocations from here...
18686         * modules/strchrnul (configure.ac): ... to here.
18687
18688 2011-05-22  Bruno Haible  <bruno@clisp.org>
18689
18690         strcasestr*: Move AC_LIBOBJ invocations to module description.
18691         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18692         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18693         * modules/strcasestr-simple (configure.ac): ... to here.
18694         * modules/strcasestr (configure.ac): ... and here.
18695
18696 2011-05-22  Bruno Haible  <bruno@clisp.org>
18697
18698         strcase: Move AC_LIBOBJ invocations to module description.
18699         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18700         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18701         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18702         gl_PREREQ_STRNCASECMP invocations from here...
18703         * modules/strcase (configure.ac): ... to here.
18704
18705 2011-05-22  Bruno Haible  <bruno@clisp.org>
18706
18707         stpncpy: Move AC_LIBOBJ invocations to module description.
18708         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18709         here...
18710         * modules/stpncpy (configure.ac): ... to here.
18711
18712 2011-05-22  Bruno Haible  <bruno@clisp.org>
18713
18714         stpcpy: Move AC_LIBOBJ invocations to module description.
18715         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18716         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18717         here...
18718         * modules/stpcpy (configure.ac): ... to here.
18719
18720 2011-05-21  Bruno Haible  <bruno@clisp.org>
18721
18722         stat: Move AC_LIBOBJ invocations to module description.
18723         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18724         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18725         here...
18726         * modules/stat (configure.ac): ... to here.
18727
18728 2011-05-21  Bruno Haible  <bruno@clisp.org>
18729
18730         sleep: Move AC_LIBOBJ invocations to module description.
18731         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18732         * modules/sleep (configure.ac): ... to here.
18733
18734 2011-05-21  Bruno Haible  <bruno@clisp.org>
18735
18736         signbit: Move AC_LIBOBJ invocations to module description.
18737         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18738         * modules/signbit (configure.ac): ... to here.
18739
18740 2011-05-21  Bruno Haible  <bruno@clisp.org>
18741
18742         sigprocmask: Move AC_LIBOBJ invocations to module description.
18743         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18744         gl_PREREQ_SIGPROMASK invocations from here...
18745         * modules/sigprocmask (configure.ac): ... to here.
18746
18747 2011-05-21  Bruno Haible  <bruno@clisp.org>
18748
18749         sigaction: Move AC_LIBOBJ invocations to module description.
18750         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18751         gl_PREREQ_SIGACTION invocations from here...
18752         * modules/sigaction (configure.ac): ... to here.
18753
18754 2011-05-21  Bruno Haible  <bruno@clisp.org>
18755
18756         sig2str: Move AC_LIBOBJ invocations to module description.
18757         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18758         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18759         here...
18760         * modules/sig2str (configure.ac): ... to here.
18761
18762 2011-05-21  Bruno Haible  <bruno@clisp.org>
18763
18764         setlocale: Move AC_LIBOBJ invocations to module description.
18765         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18766         gl_PREREQ_SETLOCALE invocations from here...
18767         * modules/setlocale (configure.ac): ... to here.
18768
18769 2011-05-21  Bruno Haible  <bruno@clisp.org>
18770
18771         unsetenv: Move AC_LIBOBJ invocations to module description.
18772         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18773         and gl_PREREQ_UNSETENV invocations from here...
18774         * modules/unsetenv (configure.ac): ... to here.
18775         (Depends-on): Update.
18776
18777 2011-05-21  Bruno Haible  <bruno@clisp.org>
18778
18779         setenv: Move AC_LIBOBJ invocations to module description.
18780         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18781         here...
18782         * modules/setenv (configure.ac): ... to here.
18783
18784 2011-05-21  Bruno Haible  <bruno@clisp.org>
18785
18786         selinux-h: Move AC_LIBOBJ invocations to module description.
18787         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18788         AC_LIBOBJ invocation from here...
18789         * modules/selinux-h (configure.ac): ... to here.
18790
18791 2011-05-21  Bruno Haible  <bruno@clisp.org>
18792
18793         select: Respect rules for use of AC_LIBOBJ.
18794         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18795         here...
18796         * modules/select (configure.ac): ... to here.
18797
18798 2011-05-21  Bruno Haible  <bruno@clisp.org>
18799
18800         scandir: Move AC_LIBOBJ invocations to module description.
18801         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18802         invocations from here...
18803         * modules/scandir (configure.ac): ... to here.
18804
18805 2011-05-21  Bruno Haible  <bruno@clisp.org>
18806
18807         rpmatch: Move AC_LIBOBJ invocations to module description.
18808         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18809         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18810         here...
18811         * modules/rpmatch (configure.ac): ... to here.
18812
18813 2011-05-21  Bruno Haible  <bruno@clisp.org>
18814
18815         rmdir: Respect rules for use of AC_LIBOBJ.
18816         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18817         * modules/rmdir (configure.ac): ... to here.
18818
18819 2011-05-21  Bruno Haible  <bruno@clisp.org>
18820
18821         renameat: Move AC_LIBOBJ invocations to module description.
18822         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18823         here...
18824         * modules/renameat (configure.ac): ... to here.
18825
18826 2011-05-21  Bruno Haible  <bruno@clisp.org>
18827
18828         rename: Respect rules for use of AC_LIBOBJ.
18829         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18830         here...
18831         * modules/rename (configure.ac): ... to here.
18832
18833 2011-05-21  Bruno Haible  <bruno@clisp.org>
18834
18835         remove: Move AC_LIBOBJ invocations to module description.
18836         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18837         here...
18838         * modules/remove (configure.ac): ... to here.
18839
18840 2011-05-21  Bruno Haible  <bruno@clisp.org>
18841
18842         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18843         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18844         macro.
18845         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18846         * modules/relocatable-lib (configure.ac): ... to here.
18847         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18848         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18849
18850 2011-05-21  Bruno Haible  <bruno@clisp.org>
18851
18852         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18853         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18854         here...
18855         * modules/relocatable-prog (configure.ac): ... to here.
18856
18857 2011-05-21  Bruno Haible  <bruno@clisp.org>
18858
18859         regex: Move AC_LIBOBJ invocations to module description.
18860         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18861         invocations from here...
18862         * modules/regex (configure.ac): ... to here.
18863
18864 2011-05-21  Bruno Haible  <bruno@clisp.org>
18865
18866         realloc-*: Move AC_LIBOBJ invocations to module description.
18867         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
18868         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
18869         AC_LIBOBJ invocations from here...
18870         * modules/realloc-gnu (configure.ac): ... to here.
18871         * modules/realloc-posix (configure.ac): ... and here.
18872
18873 2011-05-21  Bruno Haible  <bruno@clisp.org>
18874
18875         readutmp: Move AC_LIBOBJ invocations to module description.
18876         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
18877         * modules/readutmp (configure.ac): ... to here.
18878
18879 2011-05-21  Bruno Haible  <bruno@clisp.org>
18880
18881         readlinkat: Move AC_LIBOBJ invocations to module description.
18882         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
18883         here...
18884         * modules/readlinkat (configure.ac): ... to here.
18885
18886 2011-05-21  Bruno Haible  <bruno@clisp.org>
18887
18888         readlink: Move AC_LIBOBJ invocations to module description.
18889         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
18890         gl_PREREQ_READLINK invocations from here...
18891         * modules/readlink (configure.ac): ... to here.
18892
18893 2011-05-21  Bruno Haible  <bruno@clisp.org>
18894
18895         readline: Move AC_LIBOBJ invocations to module description.
18896         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
18897         gl_PREREQ_READLINE invocations from here...
18898         * modules/readline (configure.ac): ... to here.
18899
18900 2011-05-21  Bruno Haible  <bruno@clisp.org>
18901
18902         read: Move AC_LIBOBJ invocations to module description.
18903         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
18904         * modules/read (configure.ac): ... to here.
18905
18906 2011-05-21  Bruno Haible  <bruno@clisp.org>
18907
18908         rawmemchr: Move AC_LIBOBJ invocations to module description.
18909         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
18910         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18911         from here...
18912         * modules/rawmemchr (configure.ac): ... to here.
18913
18914 2011-05-21  Bruno Haible  <bruno@clisp.org>
18915
18916         random_r: Move AC_LIBOBJ invocations to module description.
18917         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18918         gl_PREREQ_RANDOM_R invocations from here...
18919         * modules/random_r (configure.ac): ... to here.
18920
18921 2011-05-21  Bruno Haible  <bruno@clisp.org>
18922
18923         pwrite: Move AC_LIBOBJ invocations to module description.
18924         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18925         * modules/pwrite (configure.ac): ... to here.
18926
18927 2011-05-21  Bruno Haible  <bruno@clisp.org>
18928
18929         putenv: Move AC_LIBOBJ invocations to module description.
18930         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18931         * modules/putenv (configure.ac): ... to here.
18932
18933 2011-05-21  Bruno Haible  <bruno@clisp.org>
18934
18935         login_tty: Move AC_LIBOBJ invocations to module description.
18936         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18937         * modules/login_tty (configure.ac): ... to here.
18938
18939 2011-05-21  Bruno Haible  <bruno@clisp.org>
18940
18941         openpty: Move AC_LIBOBJ invocations to module description.
18942         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18943         * modules/openpty (configure.ac): ... to here.
18944
18945 2011-05-21  Bruno Haible  <bruno@clisp.org>
18946
18947         forkpty: Move AC_LIBOBJ invocations to module description.
18948         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18949         * modules/forkpty (configure.ac): ... to here.
18950
18951 2011-05-21  Bruno Haible  <bruno@clisp.org>
18952
18953         ptsname: Move AC_LIBOBJ invocations to module description.
18954         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18955         invocations from here...
18956         * modules/ptsname (configure.ac): ... to here.
18957
18958 2011-05-21  Bruno Haible  <bruno@clisp.org>
18959
18960         pread: Move AC_LIBOBJ invocations to module description.
18961         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18962         * modules/pread (configure.ac): ... to here.
18963
18964 2011-05-21  Bruno Haible  <bruno@clisp.org>
18965
18966         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18967         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18968         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18969         * modules/posix_spawn (configure.ac): ... to here.
18970         * modules/posix_spawnp (configure.ac): ... and here.
18971
18972 2011-05-21  Bruno Haible  <bruno@clisp.org>
18973
18974         popen: Move AC_LIBOBJ invocations to module description.
18975         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18976         invocations from here...
18977         * modules/popen (configure.ac): ... to here.
18978
18979 2011-05-21  Bruno Haible  <bruno@clisp.org>
18980
18981         poll: Move AC_LIBOBJ invocations to module description.
18982         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18983         invocations from here...
18984         * modules/poll (configure.ac): ... to here.
18985
18986 2011-05-21  Bruno Haible  <bruno@clisp.org>
18987
18988         pipe-posix: Move AC_LIBOBJ invocations to module description.
18989         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18990         * modules/pipe-posix (configure.ac): ... to here.
18991
18992 2011-05-21  Bruno Haible  <bruno@clisp.org>
18993
18994         openat: Respect rules for use of AC_LIBOBJ.
18995         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18996         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18997         * modules/openat (configure.ac): ... to here.
18998
18999 2011-05-21  Bruno Haible  <bruno@clisp.org>
19000
19001         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19002         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19003         invocation from here...
19004         * modules/obstack-printf (configure.ac): ... to here.
19005         * modules/obstack-printf-posix (configure.ac): ... and here.
19006
19007 2011-05-21  Bruno Haible  <bruno@clisp.org>
19008
19009         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19010         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19011         from here...
19012         * modules/nl_langinfo (configure.ac): ... to here.
19013
19014 2011-05-21  Bruno Haible  <bruno@clisp.org>
19015
19016         nanosleep: Move AC_LIBOBJ invocations to module description.
19017         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19018         gl_PREREQ_NANOSLEEP invocations from here...
19019         * modules/nanosleep (configure.ac): ... to here.
19020
19021 2011-05-21  Bruno Haible  <bruno@clisp.org>
19022
19023         mountlist: Move AC_LIBOBJ invocations to module description.
19024         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19025         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19026         * modules/mountlist (configure.ac): ... to here.
19027
19028 2011-05-21  Bruno Haible  <bruno@clisp.org>
19029
19030         mktime: Respect rules for use of AC_LIBOBJ.
19031         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19032         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19033         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19034         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19035         * modules/mktime (configure.ac): ... to here.
19036         * modules/mktime-internal (configure.ac): ... and here.
19037         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19038
19039 2011-05-21  Bruno Haible  <bruno@clisp.org>
19040
19041         mkstemps: Move AC_LIBOBJ invocations to module description.
19042         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19043         here...
19044         * modules/mkstemps (configure.ac): ... to here.
19045
19046 2011-05-21  Bruno Haible  <bruno@clisp.org>
19047
19048         mkstemp: Move AC_LIBOBJ invocations to module description.
19049         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19050         gl_PREREQ_MKSTEMP invocations from here...
19051         * modules/mkstemp (configure.ac): ... to here.
19052
19053 2011-05-21  Bruno Haible  <bruno@clisp.org>
19054
19055         mkostemps: Move AC_LIBOBJ invocations to module description.
19056         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19057         here...
19058         * modules/mkostemps (configure.ac): ... to here.
19059
19060 2011-05-21  Bruno Haible  <bruno@clisp.org>
19061
19062         mkostemp: Move AC_LIBOBJ invocations to module description.
19063         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19064         gl_PREREQ_MKOSTEMP invocations from here...
19065         * modules/mkostemp (configure.ac): ... to here.
19066
19067 2011-05-21  Bruno Haible  <bruno@clisp.org>
19068
19069         mknod: Move AC_LIBOBJ invocations to module description.
19070         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19071         * modules/mknod (configure.ac): ... to here.
19072
19073 2011-05-21  Bruno Haible  <bruno@clisp.org>
19074
19075         mkfifoat: Move AC_LIBOBJ invocations to module description.
19076         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19077         here...
19078         * modules/mkfifoat (configure.ac): ... to here.
19079
19080 2011-05-21  Bruno Haible  <bruno@clisp.org>
19081
19082         mkfifo: Respect rules for use of AC_LIBOBJ.
19083         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19084         here...
19085         * modules/mkfifo (configure.ac): ... to here.
19086
19087 2011-05-21  Bruno Haible  <bruno@clisp.org>
19088
19089         mkdtemp: Move AC_LIBOBJ invocations to module description.
19090         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19091         invocations from here...
19092         * modules/mkdtemp (configure.ac): ... to here.
19093
19094 2011-05-21  Bruno Haible  <bruno@clisp.org>
19095
19096         mkdir: Move AC_LIBOBJ invocations to module description.
19097         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19098         * modules/mkdir (configure.ac): ... to here.
19099
19100 2011-05-21  Bruno Haible  <bruno@clisp.org>
19101
19102         memset: Move AC_LIBOBJ invocations to module description.
19103         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19104         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19105         here...
19106         * modules/memset (configure.ac): ... to here.
19107
19108 2011-05-21  Bruno Haible  <bruno@clisp.org>
19109
19110         memrchr: Move AC_LIBOBJ invocations to module description.
19111         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19112         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19113         here...
19114         * modules/memrchr (configure.ac): ... to here.
19115
19116 2011-05-21  Bruno Haible  <bruno@clisp.org>
19117
19118         mempcpy: Move AC_LIBOBJ invocations to module description.
19119         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19120         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19121         here...
19122         * modules/mempcpy (configure.ac): ... to here.
19123
19124 2011-05-21  Bruno Haible  <bruno@clisp.org>
19125
19126         memmove: Move AC_LIBOBJ invocations to module description.
19127         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19128         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19129         here...
19130         * modules/memmove (configure.ac): ... to here.
19131
19132 2011-05-21  Bruno Haible  <bruno@clisp.org>
19133
19134         memmem*: Move AC_LIBOBJ invocations to module description.
19135         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19136         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19137         here...
19138         (gl_FUNC_MEMMEM): ... and here...
19139         * modules/memmem-simple (configure.ac): ... to here.
19140         * modules/memmem (configure.ac): ... and here.
19141
19142 2011-05-21  Bruno Haible  <bruno@clisp.org>
19143
19144         memcpy: Move AC_LIBOBJ invocations to module description.
19145         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19147         here...
19148         * modules/memcpy (configure.ac): ... to here.
19149
19150 2011-05-21  Bruno Haible  <bruno@clisp.org>
19151
19152         memcmp: Simplify autoconf macro.
19153         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19154         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19155         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19156
19157 2011-05-21  Bruno Haible  <bruno@clisp.org>
19158
19159         memcmp: Move AC_LIBOBJ invocations to module description.
19160         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19161         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19162         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19163         * modules/memcmp (configure.ac): ... to here.
19164         (Depends-on): Update conditions.
19165
19166 2011-05-21  Bruno Haible  <bruno@clisp.org>
19167
19168         memchr: Respect rules for use of AC_LIBOBJ.
19169         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19170         invocations from here...
19171         * modules/memchr (configure.ac): ... to here.
19172
19173 2011-05-21  Bruno Haible  <bruno@clisp.org>
19174
19175         mbtowc: Move AC_LIBOBJ invocations to module description.
19176         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19177         invocations from here...
19178         * modules/mbtowc (configure.ac): ... to here.
19179
19180 2011-05-21  Bruno Haible  <bruno@clisp.org>
19181
19182         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19183         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19184         gl_PREREQ_MBSRTOWCS invocations from here...
19185         * modules/mbsrtowcs (configure.ac): ... to here.
19186
19187 2011-05-21  Bruno Haible  <bruno@clisp.org>
19188
19189         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19190         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19191         gl_PREREQ_MBSNRTOWCS invocations from here...
19192         * modules/mbsnrtowcs (configure.ac): ... to here.
19193
19194 2011-05-21  Bruno Haible  <bruno@clisp.org>
19195
19196         mbsinit: Move AC_LIBOBJ invocations to module description.
19197         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19198         invocations from here...
19199         * modules/mbsinit (configure.ac): ... to here.
19200
19201 2011-05-21  Bruno Haible  <bruno@clisp.org>
19202
19203         mbrlen: Move AC_LIBOBJ invocations to module description.
19204         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19205         invocations from here...
19206         * modules/mbrlen (configure.ac): ... to here.
19207
19208 2011-05-21  Bruno Haible  <bruno@clisp.org>
19209
19210         mbrtowc: Respect rules for use of AC_LIBOBJ.
19211         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19212         invocations from here...
19213         * modules/mbrtowc (configure.ac): ... to here.
19214
19215 2011-05-21  Bruno Haible  <bruno@clisp.org>
19216
19217         malloc-*: Move AC_LIBOBJ invocations to module description.
19218         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19219         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19220         AC_LIBOBJ invocations from here...
19221         * modules/malloc-gnu (configure.ac): ... to here.
19222         * modules/malloc-posix (configure.ac): ... and here.
19223
19224 2011-05-21  Bruno Haible  <bruno@clisp.org>
19225
19226         lstat, openat: Respect rules for use of AC_LIBOBJ.
19227         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19228         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19229         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19230         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19231         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19232         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19233         here.
19234         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19235
19236 2011-05-21  Bruno Haible  <bruno@clisp.org>
19237
19238         lseek: Move AC_LIBOBJ invocations to module description.
19239         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19240         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19241         * modules/lseek (configure.ac): ... to here.
19242
19243 2011-05-21  Bruno Haible  <bruno@clisp.org>
19244
19245         linkat: Move AC_LIBOBJ invocations to module description.
19246         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19247         here...
19248         * modules/linkat (configure.ac): ... to here.
19249
19250 2011-05-21  Bruno Haible  <bruno@clisp.org>
19251
19252         link: Respect rules for use of AC_LIBOBJ.
19253         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19254         * modules/link (configure.ac): ... to here.
19255
19256 2011-05-21  Bruno Haible  <bruno@clisp.org>
19257
19258         lchown: Move AC_LIBOBJ invocations to module description.
19259         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19260         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19261         * modules/lchown (configure.ac): ... to here.
19262
19263 2011-05-21  Bruno Haible  <bruno@clisp.org>
19264
19265         iswctype: Move AC_LIBOBJ invocations to module description.
19266         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19267         here...
19268         * modules/iswctype (configure.ac): ... to here.
19269
19270 2011-05-21  Bruno Haible  <bruno@clisp.org>
19271
19272         iswblank: Move AC_LIBOBJ invocations to module description.
19273         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19274         here...
19275         * modules/iswblank (configure.ac): ... to here.
19276
19277 2011-05-21  Bruno Haible  <bruno@clisp.org>
19278
19279         atanl: Move AC_LIBOBJ invocations to module description.
19280         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19281         * modules/atanl (configure.ac): ... to here.
19282
19283 2011-05-21  Bruno Haible  <bruno@clisp.org>
19284
19285         acosl: Move AC_LIBOBJ invocations to module description.
19286         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19287         * modules/acosl (configure.ac): ... to here.
19288
19289 2011-05-21  Bruno Haible  <bruno@clisp.org>
19290
19291         asinl: Respect rules for use of AC_LIBOBJ.
19292         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19293         * modules/asinl (configure.ac): ... to here.
19294
19295 2011-05-21  Bruno Haible  <bruno@clisp.org>
19296
19297         tanl: Move AC_LIBOBJ invocations to module description.
19298         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19299         * modules/tanl (configure.ac): ... to here.
19300
19301 2011-05-21  Bruno Haible  <bruno@clisp.org>
19302
19303         cosl: Move AC_LIBOBJ invocations to module description.
19304         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19305         * modules/cosl (configure.ac): ... to here.
19306
19307 2011-05-21  Bruno Haible  <bruno@clisp.org>
19308
19309         sinl: Move AC_LIBOBJ invocations to module description.
19310         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19311         * modules/sinl (configure.ac): ... to here.
19312
19313 2011-05-21  Bruno Haible  <bruno@clisp.org>
19314
19315         logl: Move AC_LIBOBJ invocations to module description.
19316         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19317         * modules/logl (configure.ac): ... to here.
19318
19319 2011-05-21  Bruno Haible  <bruno@clisp.org>
19320
19321         expl: Move AC_LIBOBJ invocations to module description.
19322         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19323         * modules/expl (configure.ac): ... to here.
19324
19325 2011-05-21  Bruno Haible  <bruno@clisp.org>
19326
19327         roundl: Move AC_LIBOBJ invocations to module description.
19328         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19329         * modules/roundl (configure.ac): ... to here.
19330
19331 2011-05-21  Bruno Haible  <bruno@clisp.org>
19332
19333         round: Move AC_LIBOBJ invocations to module description.
19334         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19335         * modules/round (configure.ac): ... to here.
19336
19337 2011-05-21  Bruno Haible  <bruno@clisp.org>
19338
19339         roundf: Move AC_LIBOBJ invocations to module description.
19340         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19341         * modules/roundf (configure.ac): ... to here.
19342
19343 2011-05-21  Bruno Haible  <bruno@clisp.org>
19344
19345         truncl: Move AC_LIBOBJ invocations to module description.
19346         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19347         * modules/truncl (configure.ac): ... to here.
19348
19349 2011-05-21  Bruno Haible  <bruno@clisp.org>
19350
19351         trunc: Move AC_LIBOBJ invocations to module description.
19352         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19353         * modules/trunc (configure.ac): ... to here.
19354
19355 2011-05-21  Bruno Haible  <bruno@clisp.org>
19356
19357         truncf: Move AC_LIBOBJ invocations to module description.
19358         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19359         * modules/truncf (configure.ac): ... to here.
19360
19361 2011-05-21  Bruno Haible  <bruno@clisp.org>
19362
19363         ceill: Move AC_LIBOBJ invocations to module description.
19364         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19365         * modules/ceill (configure.ac): ... to here.
19366
19367 2011-05-21  Bruno Haible  <bruno@clisp.org>
19368
19369         ceil: Move AC_LIBOBJ invocations to module description.
19370         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19371         * modules/ceil (configure.ac): ... to here.
19372
19373 2011-05-21  Bruno Haible  <bruno@clisp.org>
19374
19375         ceilf: Move AC_LIBOBJ invocations to module description.
19376         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19377         * modules/ceilf (configure.ac): ... to here.
19378
19379 2011-05-21  Bruno Haible  <bruno@clisp.org>
19380
19381         floorl: Respect rules for use of AC_LIBOBJ.
19382         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19383         * modules/floorl (configure.ac): ... to here.
19384
19385 2011-05-21  Bruno Haible  <bruno@clisp.org>
19386
19387         floor: Respect rules for use of AC_LIBOBJ.
19388         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19389         * modules/floor (configure.ac): ... to here.
19390
19391 2011-05-21  Bruno Haible  <bruno@clisp.org>
19392
19393         floorf: Move AC_LIBOBJ invocations to module description.
19394         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19395         * modules/floorf (configure.ac): ... to here.
19396
19397 2011-05-20  Bruno Haible  <bruno@clisp.org>
19398
19399         sqrtl: Respect rules for use of AC_LIBOBJ.
19400         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19401         * modules/sqrtl (configure.ac): ... to here.
19402
19403 2011-05-20  Bruno Haible  <bruno@clisp.org>
19404
19405         ldexpl: Respect rules for use of AC_LIBOBJ.
19406         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19407         * modules/ldexpl (configure.ac): ... to here.
19408
19409 2011-05-20  Bruno Haible  <bruno@clisp.org>
19410
19411         frexpl*: Respect rules for use of AC_LIBOBJ.
19412         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19413         invocation from here...
19414         * modules/frexpl (configure.ac): ... to here.
19415         * modules/frexpl-nolibm (configure.ac): ... and here.
19416
19417 2011-05-20  Bruno Haible  <bruno@clisp.org>
19418
19419         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19420         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19421         invocation from here...
19422         * modules/frexp (configure.ac): ... to here.
19423         * modules/frexp-nolibm (configure.ac): ... and here.
19424
19425 2011-05-20  Bruno Haible  <bruno@clisp.org>
19426
19427         isnan: Respect rules for use of AC_LIBOBJ.
19428         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19429         invocations here.
19430         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19431         REPLACE_ISNAN.
19432         * modules/isnand (configure.ac): Likewise.
19433         * modules/isnanl (configure.ac): Likewise.
19434
19435 2011-05-20  Bruno Haible  <bruno@clisp.org>
19436
19437         isnanl*: Respect rules for use of AC_LIBOBJ.
19438         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19439         invocation from here...
19440         * modules/isnanl (configure.ac): ... to here.
19441         * modules/isnanl-nolibm (configure.ac): ... and here.
19442
19443 2011-05-20  Bruno Haible  <bruno@clisp.org>
19444
19445         isnand*: Move AC_LIBOBJ invocations to module description.
19446         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19447         invocation from here...
19448         * modules/isnand (configure.ac): ... to here.
19449         * modules/isnand-nolibm (configure.ac): ... and here.
19450
19451 2011-05-20  Bruno Haible  <bruno@clisp.org>
19452
19453         isnanf*: Move AC_LIBOBJ invocations to module description.
19454         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19455         invocation from here...
19456         * modules/isnanf (configure.ac): ... to here.
19457         * modules/isnanf-nolibm (configure.ac): ... and here.
19458
19459 2011-05-20  Bruno Haible  <bruno@clisp.org>
19460
19461         isnan*: Separate the AC_LIBOBJ invocations.
19462         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19463         AC_LIBOBJ invocation.
19464         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19465         here.
19466         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19467         AC_LIBOBJ invocation.
19468         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19469         here.
19470         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19471         AC_LIBOBJ invocation.
19472         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19473         here.
19474         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19475
19476 2011-05-08  Bruno Haible  <bruno@clisp.org>
19477
19478         isinf: Move AC_LIBOBJ invocations to module description.
19479         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19480         * modules/isinf (configure.ac): ... to here.
19481
19482 2011-05-08  Bruno Haible  <bruno@clisp.org>
19483
19484         isfinite: Move AC_LIBOBJ invocations to module description.
19485         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19486         * modules/isfinite (configure.ac): ... to here.
19487
19488 2011-05-08  Bruno Haible  <bruno@clisp.org>
19489
19490         isblank: Move AC_LIBOBJ invocations to module description.
19491         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19492         here...
19493         * modules/isblank (configure.ac): ... to here.
19494
19495 2011-05-08  Bruno Haible  <bruno@clisp.org>
19496
19497         isapipe: Move AC_LIBOBJ invocations to module description.
19498         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19499         gl_PREREQ_ISAPIPE invocations from here...
19500         * modules/isapipe (configure.ac): ... to here.
19501         (Depends-on): Update condition.
19502
19503 2011-05-08  Bruno Haible  <bruno@clisp.org>
19504
19505         ioctl: Move AC_LIBOBJ invocations to module description.
19506         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19507         invocations from here...
19508         * modules/ioctl (configure.ac): ... to here.
19509         (Depends-on): Update condition.
19510
19511 2011-05-08  Bruno Haible  <bruno@clisp.org>
19512
19513         imaxdiv: Move AC_LIBOBJ invocations to module description.
19514         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19515         invocations from here...
19516         * modules/imaxdiv (configure.ac): ... to here.
19517
19518 2011-05-08  Bruno Haible  <bruno@clisp.org>
19519
19520         imaxabs: Move AC_LIBOBJ invocations to module description.
19521         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19522         invocations from here...
19523         * modules/imaxabs (configure.ac): ... to here.
19524
19525 2011-05-08  Bruno Haible  <bruno@clisp.org>
19526
19527         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19528         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19529         AC_LIBOBJ invocations from here...
19530         * modules/getaddrinfo (configure.ac): ... to here.
19531         (Depends-on): Add conditions.
19532
19533 2011-05-08  Bruno Haible  <bruno@clisp.org>
19534
19535         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19536         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19537         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19538         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19539         (gl_PREREQ_INET_PTON): ... from here.
19540         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19541         gl_PREREQ_INET_PTON here.
19542         (Depends-on): Update condition.
19543
19544 2011-05-08  Bruno Haible  <bruno@clisp.org>
19545
19546         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19547         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19548         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19549         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19550         (gl_PREREQ_INET_NTOP): ... from here.
19551         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19552         gl_PREREQ_INET_NTOP here.
19553         (Depends-on): Update condition.
19554
19555 2011-05-08  Bruno Haible  <bruno@clisp.org>
19556
19557         iconv_open: Move AC_LIBOBJ invocations to module description.
19558         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19559         AC_LIBOBJ invocations from here...
19560         * modules/iconv_open (configure.ac): ... to here.
19561
19562 2011-05-08  Bruno Haible  <bruno@clisp.org>
19563
19564         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19565         If module 'iconv_open' is among the main modules and module
19566         'iconv_open-utf' is among the tests dependencies, then
19567         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19568         return the special iconv_t values. Therefore iconv() and iconv_close()
19569         must support these special iconv_t values, already in lib, not only in
19570         tests.
19571         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19572         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19573         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19574         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19575         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19576         (Depends-on): Add the dependencies of iconv_open-utf.
19577         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19578         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19579         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19580
19581 2011-05-08  Bruno Haible  <bruno@clisp.org>
19582
19583         group-member: Move AC_LIBOBJ invocations to module description.
19584         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19585         gl_PREREQ_GROUP_MEMBER invocations from here...
19586         * modules/group-member (configure.ac): ... to here.
19587
19588 2011-05-08  Bruno Haible  <bruno@clisp.org>
19589
19590         grantpt: Move AC_LIBOBJ invocations to module description.
19591         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19592         invocations from here...
19593         * modules/grantpt (configure.ac): ... to here.
19594
19595 2011-05-08  Bruno Haible  <bruno@clisp.org>
19596
19597         glob: Move AC_LIBOBJ invocations to module description.
19598         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19599         from here...
19600         * modules/glob (configure.ac): ... to here.
19601
19602 2011-05-08  Bruno Haible  <bruno@clisp.org>
19603
19604         getusershell: Move AC_LIBOBJ invocations to module description.
19605         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19606         Move AC_LIBOBJ invocation from here...
19607         * modules/getusershell (configure.ac): ... to here.
19608         (Depends-on): Update condition.
19609
19610 2011-05-08  Bruno Haible  <bruno@clisp.org>
19611
19612         gettimeofday: Move AC_LIBOBJ invocations to module description.
19613         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19614         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19615         gl_PREREQ_GETTIMEOFDAY invocations from here...
19616         * modules/gettimeofday (configure.ac): ... to here.
19617
19618 2011-05-08  Bruno Haible  <bruno@clisp.org>
19619
19620         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19621         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19622         just gl_FUNC_TZSET.
19623         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19624         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19625         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19626         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19627
19628 2011-05-08  Bruno Haible  <bruno@clisp.org>
19629
19630         getsubopt: Move AC_LIBOBJ invocations to module description.
19631         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19632         gl_PREREQ_GETSUBOPT invocations from here...
19633         * modules/getsubopt (configure.ac): ... to here.
19634
19635 2011-05-08  Bruno Haible  <bruno@clisp.org>
19636
19637         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19638         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19639         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19640         * modules/getpass-gnu (configure.ac): ... to here.
19641
19642 2011-05-08  Bruno Haible  <bruno@clisp.org>
19643
19644         getpass: Move AC_LIBOBJ invocations to module description.
19645         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19646         gl_PREREQ_GETPASS invocations from here...
19647         * modules/getpass (configure.ac): ... to here.
19648
19649 2011-05-08  Bruno Haible  <bruno@clisp.org>
19650
19651         getpagesize: Move AC_LIBOBJ invocations to module description.
19652         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19653         from here...
19654         * modules/getpagesize (configure.ac): ... to here.
19655
19656 2011-05-08  Bruno Haible  <bruno@clisp.org>
19657
19658         getopt: Move AC_LIBOBJ invocations to module description.
19659         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19660         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19661         invocations from here...
19662         * modules/getopt-gnu (configure.ac): ... to here.
19663         * modules/getopt-posix (configure.ac): ... and here.
19664         (Depends-on): Update condition.
19665
19666 2011-05-08  Bruno Haible  <bruno@clisp.org>
19667
19668         getopt, argp: Respect rules for use of AC_LIBOBJ.
19669         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19670         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19671         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19672         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19673
19674 2011-05-08  Bruno Haible  <bruno@clisp.org>
19675
19676         getlogin_r: Move AC_LIBOBJ invocations to module description.
19677         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19678         gl_PREREQ_GETLOGIN_R invocations from here...
19679         * modules/getlogin_r (configure.ac): ... to here.
19680
19681 2011-05-08  Bruno Haible  <bruno@clisp.org>
19682
19683         getlogin: Move AC_LIBOBJ invocations to module description.
19684         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19685         here...
19686         * modules/getlogin (configure.ac): ... to here.
19687
19688 2011-05-08  Bruno Haible  <bruno@clisp.org>
19689
19690         getloadavg: Move AC_LIBOBJ invocations to module description.
19691         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19692         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19693         * modules/getloadavg (configure.ac): ... to here.
19694
19695 2011-05-08  Bruno Haible  <bruno@clisp.org>
19696
19697         gethrxtime: Move AC_LIBOBJ invocations to module description.
19698         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19699         LIB_GETHRXTIME from here...
19700         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19701         invocations from here...
19702         * modules/gethrxtime (configure.ac): ... to here.
19703
19704 2011-05-08  Bruno Haible  <bruno@clisp.org>
19705
19706         gethostname: Move AC_LIBOBJ invocations to module description.
19707         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19708         gl_PREREQ_GETHOSTNAME invocations from here...
19709         * modules/gethostname (configure.ac): ... to here.
19710
19711 2011-05-08  Bruno Haible  <bruno@clisp.org>
19712
19713         getgroups: Move AC_LIBOBJ invocations to module description.
19714         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19715         here...
19716         * modules/getgroups (configure.ac): ... to here.
19717
19718 2011-05-08  Bruno Haible  <bruno@clisp.org>
19719
19720         getdtablesize: Move AC_LIBOBJ invocations to module description.
19721         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19722         invocation from here...
19723         * modules/getdtablesize (configure.ac): ... to here.
19724
19725 2011-05-08  Bruno Haible  <bruno@clisp.org>
19726
19727         getdomainname: Move AC_LIBOBJ invocations to module description.
19728         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19729         gl_PREREQ_GETDOMAINNAME invocations from here...
19730         * modules/getdomainname (configure.ac): ... to here.
19731
19732 2011-05-08  Bruno Haible  <bruno@clisp.org>
19733
19734         getline: Move AC_LIBOBJ invocations to module description.
19735         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19736         invocations from here...
19737         * modules/getline (configure.ac): ... to here.
19738
19739 2011-05-08  Bruno Haible  <bruno@clisp.org>
19740
19741         getline: Simplify.
19742         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19743         It's already handled through the module dependency.
19744
19745 2011-05-08  Bruno Haible  <bruno@clisp.org>
19746
19747         getdelim: Move AC_LIBOBJ invocations to module description.
19748         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19749         and gl_PREREQ_GETDELIM invocations from here...
19750         * modules/getdelim (configure.ac): ... to here.
19751         (Depends-on): Fix condition.
19752
19753 2011-05-08  Bruno Haible  <bruno@clisp.org>
19754
19755         getcwd: Move AC_LIBOBJ invocations to module description.
19756         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19757         invocations from here...
19758         * modules/getcwd (configure.ac): ... to here.
19759
19760 2011-05-08  Bruno Haible  <bruno@clisp.org>
19761
19762         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19763         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19764         here...
19765         * modules/getcwd-lgpl (configure.ac): ... to here.
19766
19767 2011-05-07  Bruno Haible  <bruno@clisp.org>
19768
19769         crypto/gc: Move AC_LIBOBJ invocations to module description.
19770         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19771         * modules/crypto/gc (configure.ac): ... to here.
19772
19773 2011-05-07  Bruno Haible  <bruno@clisp.org>
19774
19775         fwriting: Move AC_LIBOBJ invocations to module description.
19776         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19777         here...
19778         * modules/fwriting (configure.ac): ... to here.
19779
19780 2011-05-07  Bruno Haible  <bruno@clisp.org>
19781
19782         fwritable: Move AC_LIBOBJ invocations to module description.
19783         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19784         here...
19785         * modules/fwritable (configure.ac): ... to here.
19786
19787 2011-05-07  Bruno Haible  <bruno@clisp.org>
19788
19789         futimens: Move AC_LIBOBJ invocations to module description.
19790         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19791         here...
19792         * modules/futimens (configure.ac): ... to here.
19793
19794 2011-05-07  Bruno Haible  <bruno@clisp.org>
19795
19796         ftruncate: Move AC_LIBOBJ invocations to module description.
19797         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19798         gl_PREREQ_FTRUNCATE invocations from here...
19799         * modules/ftruncate (configure.ac): ... to here.
19800
19801 2011-05-07  Bruno Haible  <bruno@clisp.org>
19802
19803         fsync: Move AC_LIBOBJ invocations to module description.
19804         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19805         invocations from here...
19806         * modules/fsync (configure.ac): ... to here.
19807
19808 2011-05-07  Bruno Haible  <bruno@clisp.org>
19809
19810         fsusage: Move AC_LIBOBJ invocations to module description.
19811         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19812         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19813         * modules/fsusage (configure.ac): ... to here.
19814
19815 2011-05-07  Bruno Haible  <bruno@clisp.org>
19816
19817         freopen: Move AC_LIBOBJ invocations to module description.
19818         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19819         invocations from here...
19820         * modules/freopen (configure.ac): ... to here.
19821
19822 2011-05-07  Bruno Haible  <bruno@clisp.org>
19823
19824         free: Move AC_LIBOBJ invocations to module description.
19825         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19826         invocations from here...
19827         * modules/free (configure.ac): ... to here.
19828
19829 2011-05-07  Bruno Haible  <bruno@clisp.org>
19830
19831         freadable: Move AC_LIBOBJ invocations to module description.
19832         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19833         here...
19834         * modules/freadable (configure.ac): ... to here.
19835
19836 2011-05-07  Bruno Haible  <bruno@clisp.org>
19837
19838         fpurge: Move AC_LIBOBJ invocations to module description.
19839         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19840         invocations from here...
19841         * modules/fpurge (configure.ac): ... to here.
19842
19843 2011-05-07  Bruno Haible  <bruno@clisp.org>
19844
19845         fpending: Move AC_LIBOBJ invocations to module description.
19846         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19847         gl_FUNC_FPENDING.
19848         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19849         invocations from here...
19850         * modules/fpending (configure.ac): ... to here.
19851
19852 2011-05-07  Bruno Haible  <bruno@clisp.org>
19853
19854         fopen: Move AC_LIBOBJ invocations to module description.
19855         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19856         invocations from here...
19857         * modules/fopen (configure.ac): ... to here.
19858
19859 2011-05-07  Bruno Haible  <bruno@clisp.org>
19860
19861         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19862         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
19863         gl_FUNC_FNMATCH_POSIX.
19864         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
19865         invocations from here...
19866         * modules/fnmatch (configure.ac): ... to here.
19867         * modules/fnmatch-gnu (configure.ac): ... and here.
19868
19869 2011-05-07  Bruno Haible  <bruno@clisp.org>
19870
19871         flock: Move AC_LIBOBJ invocations to module description.
19872         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
19873         invocations from here...
19874         * modules/flock (configure.ac): ... to here.
19875
19876 2011-05-07  Bruno Haible  <bruno@clisp.org>
19877
19878         fileblocks: Move AC_LIBOBJ invocations to module description.
19879         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
19880         gl_PREREQ_FILEBLOCKS invocations from here...
19881         * modules/fileblocks (configure.ac): ... to here.
19882
19883 2011-05-06  Bruno Haible  <bruno@clisp.org>
19884
19885         fflush: Move AC_LIBOBJ invocations to module description.
19886         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19887         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
19888         invocations from here...
19889         * modules/fflush (configure.ac): ... to here.
19890
19891 2011-05-06  Bruno Haible  <bruno@clisp.org>
19892
19893         fdopendir: Move AC_LIBOBJ invocations to module description.
19894         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
19895         here...
19896         * modules/fdopendir (configure.ac): ... to here.
19897         (Depends-on): Improve conditions.
19898
19899 2011-05-06  Bruno Haible  <bruno@clisp.org>
19900
19901         _Exit: Move AC_LIBOBJ invocations to module description.
19902         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
19903         invocations from here...
19904         * modules/_Exit (configure.ac): ... to here.
19905
19906 2011-05-21  Bruno Haible  <bruno@clisp.org>
19907
19908         euidaccess: Respect rules for use of AC_LIBOBJ.
19909         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19910         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19911         from here...
19912         * modules/euidaccess (configure.ac): ... to here.
19913
19914 2011-05-06  Bruno Haible  <bruno@clisp.org>
19915
19916         error: Move AC_LIBOBJ invocations to module description.
19917         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19918         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19919         invocations from here...
19920         * modules/error (configure.ac): ... to here.
19921
19922 2011-05-06  Bruno Haible  <bruno@clisp.org>
19923
19924         duplocale: Move AC_LIBOBJ invocations to module description.
19925         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19926         gl_PREREQ_DUPLOCALE invocations from here...
19927         * modules/duplocale (configure.ac): ... to here.
19928
19929 2011-05-05  Bruno Haible  <bruno@clisp.org>
19930
19931         dirfd: Move AC_LIBOBJ invocations to module description.
19932         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19933         gl_FUNC_DIRFD.
19934         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19935         here...
19936         * modules/dirfd (configure.ac): ... to here.
19937         (Depends-on): Fix condition.
19938
19939 2011-05-05  Bruno Haible  <bruno@clisp.org>
19940
19941         chown: Respect rules for use of AC_LIBOBJ.
19942         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19943         * modules/chown (configure.ac): ... to here.
19944
19945 2011-05-05  Bruno Haible  <bruno@clisp.org>
19946
19947         chdir-long: Move AC_LIBOBJ invocations to module description.
19948         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19949         gl_PREREQ_CHDIR_LONG invocations from here...
19950         * modules/chdir-long (configure.ac): ... to here.
19951
19952 2011-05-05  Bruno Haible  <bruno@clisp.org>
19953
19954         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19955         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19956         from here...
19957         * modules/canonicalize-lgpl (configure.ac): ... to here.
19958
19959 2011-05-05  Bruno Haible  <bruno@clisp.org>
19960
19961         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19962         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19963         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19964         REPLACE_CALLOC.
19965         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19966         * modules/calloc-gnu (configure.ac): Likewise.
19967
19968 2011-05-05  Bruno Haible  <bruno@clisp.org>
19969
19970         btowc: Move AC_LIBOBJ invocations to module description.
19971         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19972         invocations from here...
19973         * modules/btowc (configure.ac): ... to here.
19974
19975 2011-05-21  Bruno Haible  <bruno@clisp.org>
19976
19977         atexit: Move AC_LIBOBJ invocations to module description.
19978         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19979         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19980         here...
19981         * modules/atexit (configure.ac): ... to here.
19982
19983 2011-05-05  Bruno Haible  <bruno@clisp.org>
19984
19985         atoll: Move AC_LIBOBJ invocations to module description.
19986         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19987         invocations from here...
19988         * modules/atoll (configure.ac): ... to here.
19989
19990 2011-05-05  Bruno Haible  <bruno@clisp.org>
19991
19992         argz: Move AC_LIBOBJ invocations to module description.
19993         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19994         * modules/argz (configure.ac): ... to here.
19995
19996 2011-05-05  Bruno Haible  <bruno@clisp.org>
19997
19998         alphasort: Move AC_LIBOBJ invocations to module description.
19999         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20000         gl_PREREQ_ALPHASORT invocations from here...
20001         * modules/alphasort (configure.ac): ... to here.
20002
20003 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20004
20005         verify: new macro verify_expr; verify_true deprecated
20006         * NEWS: Mention this.
20007         * doc/verify.texi (Compile-time Assertions): Document this.
20008         * lib/verify.h (verify_true): Deprecate.
20009         (verify_expr): New macro.
20010         * tests/test-verify.c (function): Test verify_expr.
20011
20012 2011-06-14  Jim Meyering  <meyering@redhat.com>
20013
20014         init.sh: give more portable redirection-related advice in a comment
20015         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20016         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20017         for lots of discussion.  Stefano Lattarini suggested the solution
20018         of putting "9>&2" after the command.  Reported by Bruno Haible.
20019
20020 2011-06-13  Bruno Haible  <bruno@clisp.org>
20021
20022         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20023         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20024         'none'.
20025
20026 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20027
20028         ftoastr: use strtof only if HAVE_STRTOF
20029         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20031         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20032         * modules/ftoastr (configure.ac): Check for strtof.
20033
20034 2011-06-13  Bruno Haible  <bruno@clisp.org>
20035
20036         gnulib-tool: Addendum to 2011-06-08 commit.
20037         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20038         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20039
20040 2011-06-13  Bruno Haible  <bruno@clisp.org>
20041
20042         fseeko: Provide a non-inline replacement of fseek().
20043         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20044         * modules/fseeko (Depends-on): Add fseek.
20045         * modules/fseek (License): Change to LGPLv2+.
20046
20047 2011-06-13  Bruno Haible  <bruno@clisp.org>
20048
20049         ftello: Provide a non-inline replacement of ftell().
20050         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20051         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20052         not have ftello() (such as on mingw).
20053         * modules/ftello (Depends-on): Add ftell.
20054         * modules/ftell (License): Change to LGPLv2+.
20055
20056 2011-05-07  Bruno Haible  <bruno@clisp.org>
20057
20058         ftell: Move AC_LIBOBJ invocations to module description.
20059         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20060         * modules/ftell (configure.ac): ... to here.
20061
20062 2011-05-07  Bruno Haible  <bruno@clisp.org>
20063
20064         ftello: Respect rules for use of AC_LIBOBJ.
20065         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20066         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20067         here...
20068         * modules/ftello (configure.ac): ... to here.
20069
20070 2011-05-07  Bruno Haible  <bruno@clisp.org>
20071
20072         fseeko: Simplify.
20073         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20074         (gl_FUNC_FSEEKO): Inline it here.
20075
20076 2011-05-07  Bruno Haible  <bruno@clisp.org>
20077
20078         fseek: Move AC_LIBOBJ invocations to module description.
20079         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20080         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20081         * modules/fseek (configure.ac): ... to here.
20082
20083 2011-05-07  Bruno Haible  <bruno@clisp.org>
20084
20085         fseek: Respect rules for use of AC_LIBOBJ.
20086         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20087         here...
20088         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20089
20090 2011-05-07  Bruno Haible  <bruno@clisp.org>
20091
20092         fseeko: Respect rules for use of AC_LIBOBJ.
20093         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20094         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20095         here...
20096         * modules/fseeko (configure.ac): ... to here.
20097
20098 2011-06-13  Bruno Haible  <bruno@clisp.org>
20099
20100         gnulib-tool: Allow comments in the 'Depends-on' section.
20101         * doc/gnulib.texi (Module description): Mention comment syntax in the
20102         Depends-on section.
20103         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20104
20105 2011-06-13  Bruno Haible  <bruno@clisp.org>
20106
20107         file-set.h: guard __attibute__ use, now that it's not always defined
20108         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20109         versions that support it.  This fixes a coreutils build failure with
20110         the vendor cc on HP-UX 11.31.
20111
20112 2011-06-12  Bruno Haible  <bruno@clisp.org>
20113
20114         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20115         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20116         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20117         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20118         (acl, aclsort): New declarations.
20119         (aclv_nontrivial): New declaration.
20120         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20121         (file_has_acl): Read also the second kind of HP-UX ACLs.
20122         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20123         kind of HP-UX ACLs if the first kind fails.
20124         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20125         second kind of HP-UX ACLs.
20126         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20127         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20128         agree.
20129         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20130         hpuxjfs.
20131         Handle hpuxjfs.
20132         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20133         hpuxjfs.
20134         Handle hpuxjfs.
20135         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20136         (func_test_same_acls): Use both lsacl and getacl.
20137         Handle hpuxjfs.
20138         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20139         (func_test_same_acls): Use both lsacl and getacl.
20140         Handle hpuxjfs.
20141
20142 2011-06-12  Bruno Haible  <bruno@clisp.org>
20143
20144         acl: Complete the 2010-08-10 fix.
20145         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20146         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20147         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20148         explicitly.
20149         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20150         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20151
20152 2011-06-12  Bruno Haible  <bruno@clisp.org>
20153
20154         spawn-pipe tests: Comments.
20155         * tests/test-spawn-pipe-child.c (main): Update comment.
20156         Reported by James Youngman <jay@gnu.org>.
20157
20158 2011-06-11  James Youngman  <jay@gnu.org>
20159
20160         New module 'stat-size'.
20161         * modules/stat-size: New module.  Provides macros for accessing
20162         file size information in instances of struct stat.  Depends on the
20163         fileblocks module because it calls st_blocks.
20164         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20165         * doc/gnulib.texi: Include stat-size.texi.
20166         * doc/stat-size.texi: Documentation for this module.
20167         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20168         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20169         AC_STRUCT_ST_BLOCKS.
20170
20171 2011-06-09  Bruno Haible  <bruno@clisp.org>
20172
20173         thread: Support pthreads-win32.
20174         * lib/glthread/thread.h (gl_thread_self): Define differently on
20175         pthreads-win32.
20176         (gl_null_thread): New declaration.
20177         (gl_thread_self_pointer): New macro.
20178         * lib/glthread/thread.c (gl_null_thread): New constant.
20179         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20180         gl_thread_self.
20181         * tests/test-tls.c: Likewise.
20182         Suggested by Paul Eggert. Reported by Eric Blake.
20183
20184 2011-06-09  Bruno Haible  <bruno@clisp.org>
20185
20186         thread: Fix confusion between NULL and 0.
20187         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20188         Reported by Paul Eggert.
20189
20190 2011-06-09  Bruno Haible  <bruno@clisp.org>
20191
20192         spawn-pipe tests: Avoid test failure on HP-UX 11.
20193         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20194         is closed.
20195
20196 2011-06-09  Bruno Haible  <bruno@clisp.org>
20197
20198         acl tests: Fix compilation error on HP-UX 11.
20199         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20200
20201 2011-06-09  Bruno Haible  <bruno@clisp.org>
20202
20203         rmdir: Avoid test failure on HP-UX 10.20.
20204         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20205         EEXIST.
20206
20207 2011-06-08  Eric Blake  <eblake@redhat.com>
20208
20209         perror: fix test on mingw
20210         * modules/perror-tests (Depends-on): Add dup2.
20211
20212         strerror_r-posix: fix on MacOS
20213         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20214         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20215         logic bug.
20216         * lib/strerror_r.c (strerror_r): Fix the bug.
20217         * lib/strerror.c (strerror): Likewise.
20218         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20219         problem.
20220         * doc/posix-functions/strerror.texi (strerror): Likewise.
20221         * doc/posix-functions/perror.texi (perror): Likewise.
20222         * tests/test-strerror.c (main): Enhance test.
20223         * tests/test-strerror_r.c (main): Likewise.
20224
20225 2011-06-08  Bruno Haible  <bruno@clisp.org>
20226
20227         gnulib-tool: Better isolation between different gnulib-tool invocations.
20228         * gnulib-tool: New option --witness-c-macro.
20229         (witness_c_macro): New variable.
20230         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20231         AM_CPPFLAGS define it as a C macro.
20232         (func_emit_tests_Makefile_am): Likewise.
20233         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20234         read it from there.
20235         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20236         m4_define, not AC_DEFUN.
20237         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20238         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20239         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20240         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20241         s|...|...|, to substitute the values of the GNULIB_* module indicator
20242         variables.
20243         * modules/dirent (Makefile.am): Likewise.
20244         * modules/fcntl-h (Makefile.am): Likewise.
20245         * modules/iconv-h (Makefile.am): Likewise.
20246         * modules/langinfo (Makefile.am): Likewise.
20247         * modules/locale (Makefile.am): Likewise.
20248         * modules/math (Makefile.am): Likewise.
20249         * modules/netdb (Makefile.am): Likewise.
20250         * modules/poll-h (Makefile.am): Likewise.
20251         * modules/pty (Makefile.am): Likewise.
20252         * modules/search (Makefile.am): Likewise.
20253         * modules/signal (Makefile.am): Likewise.
20254         * modules/spawn (Makefile.am): Likewise.
20255         * modules/stdio (Makefile.am): Likewise.
20256         * modules/stdlib (Makefile.am): Likewise.
20257         * modules/string (Makefile.am): Likewise.
20258         * modules/sys_ioctl (Makefile.am): Likewise.
20259         * modules/sys_select (Makefile.am): Likewise.
20260         * modules/sys_socket (Makefile.am): Likewise.
20261         * modules/sys_stat (Makefile.am): Likewise.
20262         * modules/sys_times (Makefile.am): Likewise.
20263         * modules/sys_utsname (Makefile.am): Likewise.
20264         * modules/sys_wait (Makefile.am): Likewise.
20265         * modules/termios (Makefile.am): Likewise.
20266         * modules/time (Makefile.am): Likewise.
20267         * modules/unistd (Makefile.am): Likewise.
20268         * modules/wchar (Makefile.am): Likewise.
20269
20270 2011-06-08  Eric Blake  <eblake@redhat.com>
20271
20272         strerror: simplify replacement
20273         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20274         * modules/strerror (configure.ac): No prereqs needed here...
20275         * modules/strerror-override (configure.ac): ...but this needs it.
20276         (Files): Add file for needed prereq macro.
20277
20278 2011-06-08  Bruno Haible  <bruno@clisp.org>
20279
20280         strerror_r-posix: Tweaks.
20281         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20282         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20283         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20284         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20285         (gl_FUNC_STRERROR_R): ... to here.
20286         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20287
20288 2011-06-07  Eric Blake  <eblake@redhat.com>
20289
20290         perror: document fixed bugs
20291         * doc/posix-functions/perror.texi (perror): Document recent
20292         patches.
20293
20294 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20295
20296         stat-time: get_stat_birthtime failure is better-defined
20297         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20298         return a timestamp whose tv_sec and tv_nsec values are both -1.
20299         Previously, the spec said only that the tv_nsec value was negative.
20300         This upward-compatible change simplifies GNU tar a bit.
20301
20302 2011-06-07  Eric Blake  <eblake@redhat.com>
20303
20304         strerror_r-posix: work around cygwin 1.7.9
20305         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20306         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20307         bug without replacing strerror_r.
20308         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20309         strerror_r is buggy, but without requiring strerror_r compilation.
20310         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20311
20312         test-perror: relax test to ignore cygwin bug
20313         * tests/test-perror2.c (main): Relax test on requiring detection
20314         of stream errors, and use unbuffered stream.
20315         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20316         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20317         * doc/posix-functions/fputc.texi (fputc): Likewise.
20318         * doc/posix-functions/fputs.texi (fputs): Likewise.
20319         * doc/posix-functions/fputws.texi (fputws): Likewise.
20320         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20321         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20322         * doc/posix-functions/getopt.texi (getopt): Likewise.
20323         * doc/posix-functions/perror.texi (perror): Likewise.
20324         * doc/posix-functions/printf.texi (printf): Likewise.
20325         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20326         * doc/posix-functions/psignal.texi (psignal): Likewise.
20327         * doc/posix-functions/putc.texi (putc): Likewise.
20328         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20329         Likewise.
20330         * doc/posix-functions/putchar.texi (putchar): Likewise.
20331         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20332         Likewise.
20333         * doc/posix-functions/puts.texi (puts): Likewise.
20334         * doc/posix-functions/putwc.texi (putwc): Likewise.
20335         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20336         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20337         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20338         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20339         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20340         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20341         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20342         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20343
20344 2011-05-22  Bruno Haible  <bruno@clisp.org>
20345
20346         strerror: Move AC_LIBOBJ invocations to module description.
20347         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20348         gl_PREREQ_STRERROR invocations from here...
20349         * modules/strerror (configure.ac): ... to here.
20350
20351 2011-05-21  Bruno Haible  <bruno@clisp.org>
20352
20353         perror: Use common idiom.
20354         * modules/perror (configure.ac): Reorder statements.
20355
20356 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20357
20358         tests: fix usage message in 'mktempd_'
20359         * tests/init.sh (mktempd_): In the usage message, use literal
20360         'mktempd_', not '$ME' (which is even undefined), as the name of
20361         the subroutine.
20362
20363 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20364
20365         tests init: new function 'fatal_', for hard errors
20366         Before this patch, the only way offered by tests/init.sh to
20367         properly signal a hard error was the `framework_failure_'
20368         function.  But the error message issued by that function,
20369         as its name would suggest, refers to a set-up failure in the
20370         testsuite, while hard errors can obviously also be due to
20371         other reasons.  The best way to fix this inconsistency is to
20372         introduce a new function with a more general error message.
20373         * tests/init.sh (fatal_): New function.
20374
20375 2011-06-06  Eric Blake  <eblake@redhat.com>
20376
20377         canonicalize-lgpl: use common idiom
20378         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20379         over newer POSIX -Rf.
20380         Reported by Bruno Haible.
20381
20382         canonicalize-lgpl: work around AIX realpath bug
20383         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20384         * doc/posix-functions/realpath.texi (realpath): Document it.
20385         Reported by Bruno Haible.
20386
20387         strerror: work around FreeBSD bug
20388         * lib/strerror.c (strerror): Special case 0.
20389         Reported by Bruno Haible.
20390
20391         strerror-override: avoid bloating errno module
20392         * modules/errno (Files, configure.ac): Move replacement strings...
20393         * modules/strerror-override: ...to new module.
20394         * modules/strerror (Depends-on): Add strerror-override.
20395         * modules/strerror_r-posix (Depends-on): Likewise.
20396         * MODULES.html.sh: Document new module.
20397         Reported by Bruno Haible.
20398
20399 2011-06-06  Bruno Haible  <bruno@clisp.org>
20400
20401         spawn-pipe tests: Rename program.
20402         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20403         * tests/test-spawn-pipe-child.c: Update comment.
20404         * tests/test-spawn-pipe.sh: Update.
20405         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20406
20407         spawn-pipe tests: Link the child program only against libc.
20408         * tests/test-spawn-pipe-child.c: New file, extracted from
20409         tests/test-spawn-pipe.c.
20410         (main): Expect only one argument.
20411         (is_open): New function, copied from tests/test-pipe.c.
20412         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20413         (child_main): Remove function.
20414         (test_pipe): Pass only one argument to the child program.
20415         (main): Remove child process code. Expect the child program's name as
20416         first argument.
20417         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20418         argument.
20419         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20420         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20421         test-spawn-pipe-child against no libraries.
20422
20423 2011-06-06  Bruno Haible  <bruno@clisp.org>
20424
20425         careadlinkat: Avoid mismatch between ssize_t and int.
20426         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20427         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20428
20429 2011-06-06  Jim Meyering  <meyering@redhat.com>
20430
20431         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20432         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20433         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20434
20435 2011-06-05  Bruno Haible  <bruno@clisp.org>
20436
20437         ansi-c++-opt: Interoperability with libtool.
20438         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20439         set the variable to "no", not to ":".
20440         * NEWS: Mention the change.
20441
20442 2011-06-05  Bruno Haible  <bruno@clisp.org>
20443
20444         acl: Fix test failure on AIX 7.
20445         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20446         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20447
20448 2011-06-05  Bruno Haible  <bruno@clisp.org>
20449
20450         pipe-filter-ii: Fix test failure on AIX and IRIX.
20451         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20452         with EAGAIN, retry with a smaller buffer size.
20453
20454 2011-06-05  Bruno Haible  <bruno@clisp.org>
20455
20456         localename: Fix link dependencies.
20457         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20458         * modules/localename-tests (Makefile.am): Link test-localename with
20459         $(LIBTHREAD).
20460
20461 2011-06-05  Bruno Haible  <bruno@clisp.org>
20462
20463         error: Avoid gcc warning.
20464         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20465
20466 2011-06-05  Bruno Haible  <bruno@clisp.org>
20467
20468         unsetenv: Avoid gcc warning.
20469         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20470
20471 2011-06-05  Bruno Haible  <bruno@clisp.org>
20472
20473         setenv: Avoid gcc warning.
20474         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20475
20476 2011-06-05  Bruno Haible  <bruno@clisp.org>
20477
20478         sys_select: Ensure memset is declared also on AIX 7.
20479         * lib/sys_select.in.h: Include <string.h> also on AIX.
20480         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20481         self-contained also on AIX 7.1.
20482
20483 2011-06-04  Jim Meyering  <meyering@redhat.com>
20484
20485         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20486         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20487         function name, "error".
20488         (_gl_translatable_diag_func_re): New configurable variable.
20489
20490 2011-06-04  Bruno Haible  <bruno@clisp.org>
20491
20492         getopt: Avoid gcc warning.
20493         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20494
20495 2011-06-04  Bruno Haible  <bruno@clisp.org>
20496
20497         strerror_r: Fix comments.
20498         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20499         commit.
20500
20501 2011-06-04  Bruno Haible  <bruno@clisp.org>
20502
20503         perror: Fix compilation error.
20504         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20505         Undefine fprintf, not sprintf.
20506         * modules/perror (Depends-on): Remove intprops, verify.
20507
20508 2011-06-04  Bruno Haible  <bruno@clisp.org>
20509
20510         setlocale: Enable replacement on Cygwin 1.5.
20511         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20512         Cygwin 1.5.x.
20513         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20514         LC_CTYPE category also exists on Cygwin 1.5.x.
20515
20516 2011-06-04  Bruno Haible  <bruno@clisp.org>
20517
20518         strerror-override: Don't disable symbol renamings.
20519         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20520         * lib/strerror-override.c: Include config.h.
20521         (strerror_override): Don't undefine.
20522
20523 2011-06-03  Bruno Haible  <bruno@clisp.org>
20524
20525         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20526         * lib/localename.h: Update copyright header.
20527         * lib/localename.c: Likewise.
20528         * lib/relocatable.h: Likewise.
20529         * lib/relocatable.c: Likewise.
20530
20531 2011-06-02  Bruno Haible  <bruno@clisp.org>
20532
20533         doc: Fix a module name.
20534         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20535
20536 2011-06-02  Bruno Haible  <bruno@clisp.org>
20537
20538         pipe2: Remove dependency on 'nonblocking' module.
20539         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20540         O_NONBLOCK is defined by gnulib.
20541         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20542         is zero.
20543         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20544         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20545         defined by gnulib.
20546         (get_nonblocking_flag): New function.
20547         (main): Test O_NONBLOCK flag only if it is nonzero.
20548         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20549
20550 2011-06-03  Jim Meyering  <meyering@redhat.com>
20551
20552         maint: three new prohibit-header-without-use rules
20553         Prohibit use of cloexec.h, posixver.h, same.h without use.
20554         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20555         (sc_prohibit_posixver_without_use): Likewise.
20556         (sc_prohibit_same_without_use): Likewise.
20557
20558 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20559
20560         allocator: 'die' routine is now given requested size
20561         * lib/allocator.h (struct allocator.die): New size arg.
20562         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20563         If the actual problem is an ssize_t limitation, not a size_t or
20564         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20565
20566 2011-06-01  Eric Blake  <eblake@redhat.com>
20567
20568         strerror: drop strerror_r dependency
20569         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20570         * lib/strerror-override.c (strerror_override): ...to new file.
20571         * lib/strerror-override.h: Add prototype.
20572         * lib/strerror-impl.h: Delete.
20573         * lib/strerror.c (strerror): New implementation.
20574         * modules/errno (Files): Add new files.
20575         (configure.ac): Compile new file as appropriate.
20576         * modules/strerror (Files): Drop unused file.
20577         (Depends-on): Drop strerror_r-posix.
20578         * MODULES.html.sh: Document strerror_r-posix.
20579         Requested by Sam Steingold.
20580
20581         perror: call strerror_r directly
20582         * modules/perror (Files): Drop strerror-impl.h.
20583         * lib/perror.c (perror): Use our own stack buffer, rather than
20584         calling a wrapper that uses static storage.
20585         * doc/posix-functions/perror.texi (perror): Document a limitation
20586         of our replacement.
20587
20588         strerror_r: fix includes for FreeBSD
20589         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20590         since we use abort on some platforms.
20591         Reported by Matthias Bolte.
20592
20593 2011-05-31  Bruno Haible  <bruno@clisp.org>
20594
20595         Fix link errors in tests: openat-die uses gettext-h.
20596         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20597         against $(LIBINTL).
20598         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20599         against $(LIBINTL).
20600         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20601         $(LIBINTL).
20602         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20603         against $(LIBINTL).
20604         * modules/linkat-tests (Makefile.am): Link test-linkat against
20605         $(LIBINTL).
20606         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20607         $(LIBINTL).
20608         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20609         against $(LIBINTL).
20610         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20611         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20612         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20613         $(LIBINTL).
20614         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20615         $(LIBINTL).
20616         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20617         $(LIBINTL).
20618         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20619
20620 2011-05-31  Bruno Haible  <bruno@clisp.org>
20621
20622         Fix link errors in tests: wait-process uses gettext-h.
20623         * modules/nonblocking-pipe-tests (Makefile.am): Set
20624         test_nonblocking_pipe_main_LDADD.
20625         * modules/nonblocking-socket-tests (Makefile.am): Link
20626         test-nonblocking-socket-main against $(LIBINTL).
20627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20628
20629 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20630
20631         assert-h: work around 'verify' incompatibility
20632         * lib/verify.h: Use @...@ directives, not ifdef.
20633         * modules/assert-h (assert.h): Implement the directives.
20634         (assert.h): Substitute the symbol-prefix more consistently.
20635
20636 2011-05-29  Jim Meyering  <meyering@redhat.com>
20637
20638         trim: remove three superfluous assignments
20639         * lib/trim.c (trim2): Remove three superfluous assignments
20640         and correct brace positioning.
20641
20642 2011-05-29  Bruno Haible  <bruno@clisp.org>
20643
20644         wctype-h: Avoid namespace pollution on Solaris 2.6.
20645         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20646         identifiers.
20647         * doc/posix-headers/wctype.texi: Mention the problem.
20648         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20649
20650 2011-05-28  Jim Meyering  <meyering@redhat.com>
20651
20652         parse-datetime.y: accommodate -Wstrict-overflow
20653         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20654         placate -Wstrict-overflow.
20655
20656         trim: avoid a warning from -O2 -Wstrict-overflow
20657         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20658
20659 2011-05-29  Bruno Haible  <bruno@clisp.org>
20660
20661         gnulib-tool: Fix bug in yesterday's commit.
20662         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20663         twice.
20664
20665 2011-05-29  Bruno Haible  <bruno@clisp.org>
20666
20667         Allow multiple gnulib generated include files to be combined.
20668         * gnulib-tool (func_compute_include_guard_prefix): New function.
20669         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20670         ${gl_include_guard_prefix} references.
20671         (func_import, func_create_testdir): Invoke
20672         func_compute_include_guard_prefix.
20673         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20674         * lib/ctype.in.h: Likewise.
20675         * lib/dirent.in.h: Likewise.
20676         * lib/errno.in.h: Likewise.
20677         * lib/fcntl.in.h: Likewise.
20678         * lib/float.in.h: Likewise.
20679         * lib/getopt.in.h: Likewise.
20680         * lib/iconv.in.h: Likewise.
20681         * lib/langinfo.in.h: Likewise.
20682         * lib/locale.in.h: Likewise.
20683         * lib/math.in.h: Likewise.
20684         * lib/netdb.in.h: Likewise.
20685         * lib/netinet_in.in.h: Likewise.
20686         * lib/poll.in.h: Likewise.
20687         * lib/pthread.in.h: Likewise.
20688         * lib/pty.in.h: Likewise.
20689         * lib/sched.in.h: Likewise.
20690         * lib/se-selinux.in.h: Likewise.
20691         * lib/search.in.h: Likewise.
20692         * lib/signal.in.h: Likewise.
20693         * lib/spawn.in.h: Likewise.
20694         * lib/stdarg.in.h: Likewise.
20695         * lib/stddef.in.h: Likewise.
20696         * lib/stdint.in.h: Likewise.
20697         * lib/stdio.in.h: Likewise.
20698         * lib/stdlib.in.h: Likewise.
20699         * lib/string.in.h: Likewise.
20700         * lib/strings.in.h: Likewise.
20701         * lib/sys_file.in.h: Likewise.
20702         * lib/sys_ioctl.in.h: Likewise.
20703         * lib/sys_select.in.h: Likewise.
20704         * lib/sys_socket.in.h: Likewise.
20705         * lib/sys_stat.in.h: Likewise.
20706         * lib/sys_time.in.h: Likewise.
20707         * lib/sys_times.in.h: Likewise.
20708         * lib/sys_uio.in.h: Likewise.
20709         * lib/sys_utsname.in.h: Likewise.
20710         * lib/sys_wait.in.h: Likewise.
20711         * lib/sysexits.in.h: Likewise.
20712         * lib/termios.in.h: Likewise.
20713         * lib/time.in.h: Likewise.
20714         * lib/unistd.in.h: Likewise.
20715         * lib/wchar.in.h: Likewise.
20716         * lib/wctype.in.h: Likewise.
20717         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20718         * modules/ctype (Makefile.am): Likewise.
20719         * modules/dirent (Makefile.am): Likewise.
20720         * modules/errno (Makefile.am): Likewise.
20721         * modules/fcntl-h (Makefile.am): Likewise.
20722         * modules/float (Makefile.am): Likewise.
20723         * modules/getopt-posix (Makefile.am): Likewise.
20724         * modules/iconv-h (Makefile.am): Likewise.
20725         * modules/langinfo (Makefile.am): Likewise.
20726         * modules/locale (Makefile.am): Likewise.
20727         * modules/math (Makefile.am): Likewise.
20728         * modules/netdb (Makefile.am): Likewise.
20729         * modules/netinet_in (Makefile.am): Likewise.
20730         * modules/poll-h (Makefile.am): Likewise.
20731         * modules/pthread (Makefile.am): Likewise.
20732         * modules/pty (Makefile.am): Likewise.
20733         * modules/sched (Makefile.am): Likewise.
20734         * modules/search (Makefile.am): Likewise.
20735         * modules/selinux-h (Makefile.am): Likewise.
20736         * modules/signal (Makefile.am): Likewise.
20737         * modules/spawn (Makefile.am): Likewise.
20738         * modules/stdarg (Makefile.am): Likewise.
20739         * modules/stddef (Makefile.am): Likewise.
20740         * modules/stdint (Makefile.am): Likewise.
20741         * modules/stdio (Makefile.am): Likewise.
20742         * modules/stdlib (Makefile.am): Likewise.
20743         * modules/string (Makefile.am): Likewise.
20744         * modules/strings (Makefile.am): Likewise.
20745         * modules/sys_file (Makefile.am): Likewise.
20746         * modules/sys_ioctl (Makefile.am): Likewise.
20747         * modules/sys_select (Makefile.am): Likewise.
20748         * modules/sys_socket (Makefile.am): Likewise.
20749         * modules/sys_stat (Makefile.am): Likewise.
20750         * modules/sys_time (Makefile.am): Likewise.
20751         * modules/sys_times (Makefile.am): Likewise.
20752         * modules/sys_uio (Makefile.am): Likewise.
20753         * modules/sys_utsname (Makefile.am): Likewise.
20754         * modules/sys_wait (Makefile.am): Likewise.
20755         * modules/sysexits (Makefile.am): Likewise.
20756         * modules/termios (Makefile.am): Likewise.
20757         * modules/time (Makefile.am): Likewise.
20758         * modules/unistd (Makefile.am): Likewise.
20759         * modules/wchar (Makefile.am): Likewise.
20760         * modules/wctype-h (Makefile.am): Likewise.
20761         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20762
20763 2011-05-29  Bruno Haible  <bruno@clisp.org>
20764
20765         assert-h: Allow multiple gnulib generated replacements to coexist.
20766         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20767
20768 2011-05-29  Bruno Haible  <bruno@clisp.org>
20769
20770         argp: Allow coexistence with strerror_r-posix module.
20771         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20772         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20773         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20774         not the glibc signature.
20775
20776 2011-05-28  Bruno Haible  <bruno@clisp.org>
20777
20778         gnulib-tool: Alternative structure of testdirs, similar to --import.
20779         * gnulib-tool: New option --single-configure.
20780         (func_usage): Document it.
20781         (single_configure): New variable.
20782         (func_modules_transitive_closure_separately,
20783         func_modules_transitive_closure_separately,
20784         func_determine_use_libtests, func_modules_add_dummy_separately,
20785         func_modules_to_filelist_separately): New functions, extracted from
20786         func_import.
20787         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20788         (func_import): Use the new functions.
20789         (func_create_testdir): Set final_modules. Handle $single_configure =
20790         true case.
20791
20792 2011-05-28  Bruno Haible  <bruno@clisp.org>
20793
20794         getloadavg: Remove an unreliable safety check.
20795         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20796         getloadavg.c is in place.
20797         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20798         Reported by Sam Steingold <sds@gnu.org>.
20799
20800 2011-05-28  Bruno Haible  <bruno@clisp.org>
20801
20802         doc: Cleanup yet another file produced by texinfo.tex.
20803         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20804
20805 2011-05-28  Bruno Haible  <bruno@clisp.org>
20806
20807         Finish the conditional dependencies mechanism.
20808         * gnulib-tool: New option --no-conditional-dependencies.
20809         (func_usage): Document it. Don't mark --conditional-dependencies as
20810         experimental.
20811         (cond_dependencies): The possible values can now be true, false, empty.
20812         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20813         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20814         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20815
20816 2011-05-28  Bruno Haible  <bruno@clisp.org>
20817
20818         doc: Use a recent texinfo.tex.
20819         * doc/Makefile (tex_opts): New variable.
20820         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20821
20822 2011-05-28  Jim Meyering  <meyering@redhat.com>
20823
20824         intprops.h: adjust comment to match code change
20825         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20826         only once, it *may* have side effects.  Also fix an unrelated typo.
20827         (_GL_INT_SIGNED): Likewise.
20828
20829 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20830
20831         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20832
20833 2011-05-26  Bruno Haible  <bruno@clisp.org>
20834
20835         mbsrchr: Avoid collision with system function on Interix.
20836         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20837         Reported by Markus Duft <mduft@gentoo.org>.
20838
20839 2011-05-15  James Youngman  <jay@gnu.org>
20840
20841         getopt: for ambiguous options, enumerate the possibilities.
20842         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20843         the ambiguous options when an ambiguous prefix is given. This was
20844         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20845         glibc change was
20846         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20847
20848 2011-05-25  Eric Blake  <eblake@redhat.com>
20849
20850         getcwd: work around mingw bug
20851         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20852         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20853         Reported by Matthias Bolte.
20854
20855 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20856
20857         test-intprops: disable -Wtype-limits diagnostics
20858         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20859         diagnostics.  Otherwise, the integer overflow macros generate many
20860         diagnostics.  Reported by Jim Meyering in
20861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20862
20863         intprops: shorten, to pacify gcc -Woverlength-strings
20864         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
20865         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
20866         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
20867         likely to run afoul of C compiler limits for string constant lengths.
20868         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20869
20870 2011-05-24  Eric Blake  <eblake@redhat.com>
20871
20872         docs: document recently fixed glibc printf bug
20873         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20874         * doc/posix-functions/printf.texi (printf): Likewise.
20875         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20876         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20877
20878         closein-tests: convert to init.sh
20879         * modules/closein-tests (Files): Add init.sh
20880         * tests/test-closein.sh Use it.
20881
20882         yesno-tests: convert to init.sh
20883         * modules/yesno-tests (Files): Add init.sh.
20884         * tests/test-yesno.sh: Use it.
20885
20886         atexit-tests: ensure reliable exit status
20887         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
20888         Reported by Bruno Haible.
20889
20890 2011-05-24  Bruno Haible  <bruno@clisp.org>
20891
20892         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
20893         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
20894         gl_PREREQ_STRERROR_R invocations from here...
20895         * modules/strerror_r-posix (configure.ac): ... to here.
20896
20897 2011-05-24  Eric Blake  <eblake@redhat.com>
20898
20899         strerror_r: fix missing header
20900         * lib/strerror_r.c: Avoid compiler warning about snprintf.
20901
20902         strerror_r: fix AIX test failures
20903         * lib/strerror_r.c (strerror_r): Convert silent truncation to
20904         ERANGE failure.
20905
20906         strerror_r: fix Solaris test failures
20907         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
20908         failures.
20909         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20910
20911         strerror_r: enforce POSIX recommendations
20912         * lib/strerror_r.c (safe_copy): New helper method.
20913         (strerror_r): Guarantee a non-empty string.
20914         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20915         recent POSIX rulings and to match our strerror guarantees.
20916         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20917
20918 2011-05-24  Jim Meyering  <meyering@redhat.com>
20919
20920         test-perror2.c: avoid warning about unused variable
20921         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20922
20923 2011-05-24  Eric Blake  <eblake@redhat.com>
20924
20925         perror: avoid spurious test failure on HP-UX
20926         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20927
20928         tests: fix logic bug in init.sh
20929         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20930         shell.
20931
20932 2011-05-24  Jim Meyering  <meyering@redhat.com>
20933
20934         utimensat: do not reference an out-of-scope buffer
20935         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20936         declared in an inner scope, yet "times" would be dereferenced outside
20937         the scope in which "ts" was valid.
20938         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20939         of ts[2] "out/up", so that the use of aliased "times" (via
20940         "times = ts;") does not end up referencing an out-of-scope "ts"
20941
20942         opendir-safer.c: don't clobber errno; don't close negative FD
20943         * lib/opendir-safer.c (opendir_safer):
20944         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20945         file descriptor, and more importantly, don't clobber the
20946         offending errno value with EINVAL.  Before, upon failure
20947         of dup_safer, we would pass the negative file descriptor to
20948         fdopendir, which would clobber errno.
20949
20950 2011-05-23  Bruno Haible  <bruno@clisp.org>
20951
20952         idcache: Fix module description.
20953         * modules/idcache (Include): Set to "idcache.h".
20954
20955 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20956
20957         gnulib-tool: fix portability problem with MacOS sed
20958         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20959         before the "}".  Problem reported by Leo in
20960         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20961         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20962         sed_extract_condition1, sed_extract_condition2.
20963
20964 2011-05-23  Bruno Haible  <bruno@clisp.org>
20965
20966         hash: Simplify autoconf macro.
20967         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20968
20969 2011-05-23  Bruno Haible  <bruno@clisp.org>
20970
20971         getugroups: Fix module description.
20972         * modules/getugroups (Include): Set to "getugroups.h".
20973
20974 2011-05-23  Bruno Haible  <bruno@clisp.org>
20975
20976         linkat: Simplify autoconf macro.
20977         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20978
20979 2011-05-23  Bruno Haible  <bruno@clisp.org>
20980             Eric Blake  <eblake@redhat.com>
20981
20982         linkat, renameat: Update dependencies.
20983         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20984         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20985         symlinkat.
20986
20987 2011-05-23  Jim Meyering  <meyering@redhat.com>
20988
20989         maint.mk: more tight_scope improvements
20990         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20991         (_gl_TS_headers): Define only in if-0'd block.
20992         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20993         sometimes we must *not* use it.  Adjust uses accordingly.
20994         (sc_tight_scope): Use much simpler grep-based test to determine
20995         whether we skip this rule.
20996
20997         maint.mk: generalize/improve the tight-scope rule
20998         * top/maint.mk: Emit a warning when the test is skipped.
20999         (_gl_TS_dir): Add $(srcdir)/ prefix.
21000         (_gl_TS_function_match): Simplify, rather than trying
21001         to enumerate common types.  Otherwise, it would fail to match an
21002         "extern unsigned char const *" declaration in idutils.
21003         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21004         a way to support use of that type of macro.
21005         (_gl_TS_var_match): Simplify regexp.
21006         (_gl_TS_obj_files): New configurable variable.
21007         (_gl_TS_headers): Likewise.
21008
21009 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21010
21011         verify: fix bug when gnulib <assert.h> is also included
21012         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21013         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21014         Perhaps there's a better way, but this fixes the immediate problem.
21015         Problem reported by Bruno Haible in
21016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21017
21018 2011-05-22  Bruno Haible  <bruno@clisp.org>
21019
21020         xgetcwd: Simplify autoconf macro.
21021         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21022
21023 2011-05-22  Bruno Haible  <bruno@clisp.org>
21024
21025         New module 'mktime-internal'.
21026         * modules/mktime-internal: New file.
21027         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21028         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21029         mktime_internal as a C macro if libc has __mktime_internal.
21030         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21031         conditions.
21032         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21033
21034 2011-05-22  Bruno Haible  <bruno@clisp.org>
21035
21036         timegm: Correct mktime replacement statements.
21037         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21038         defining mktime as a C macro. This completes a 2009-07-28 commit.
21039
21040 2011-05-22  Bruno Haible  <bruno@clisp.org>
21041
21042         timegm: Simplify autoconf macro.
21043         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21044
21045 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21046
21047         clock-time: change to LGPLv2+.
21048         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21049         BSD-like but we have no mark for that; this is good enough for now.
21050
21051 2011-05-21  Bruno Haible  <bruno@clisp.org>
21052
21053         strerror_r: Fix comments.
21054         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21055
21056 2011-05-21  Bruno Haible  <bruno@clisp.org>
21057
21058         relocatable-prog-wrapper: Fix possible link error.
21059         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21060         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21061         (gl_FUNC_SETENV): ... to here.
21062         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21063         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21064
21065 2011-05-21  Bruno Haible  <bruno@clisp.org>
21066
21067         relocatable-prog-wrapper: Assume strerror() exists.
21068         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21069         m4/strerror.m4.
21070         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21071         * lib/relocwrapper.c: Remove mention of strerror module.
21072         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21073         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21074         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21075         C macro.
21076
21077 2011-05-21  Bruno Haible  <bruno@clisp.org>
21078
21079         select: Simplify replacement idiom.
21080         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21081         Win32 platforms.
21082         * lib/sys_select.in.h (select): Simplify accordingly.
21083         * modules/select (Depends-on): Likewise.
21084
21085 2011-05-21  Bruno Haible  <bruno@clisp.org>
21086
21087         mkdir-p: Simplify autoconf macro.
21088         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21089         gl_FUNC_LCHOWN.
21090
21091 2011-05-21  Eric Blake  <eblake@redhat.com>
21092
21093         strerror_r: avoid clobbering strerror on cygwin
21094         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21095         fall back instead to sys_errlist.
21096         * modules/strerror (configure.ac): Add witness.
21097         * tests/test-strerror_r.c (main): Enhance test.
21098         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21099         * tests/test-perror2.c (main): Free memory before exit.
21100
21101 2011-05-21  Bruno Haible  <bruno@clisp.org>
21102
21103         mkdtemp: Use gnulib naming conventions.
21104         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21105         * modules/mkdtemp (configure.ac): Update.
21106
21107 2011-05-20  Eric Blake  <eblake@redhat.com>
21108
21109         strerror_r: avoid corrupting errno on Solaris
21110         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21111         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21112
21113         strerror_r: avoid compiler warning
21114         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21115
21116         strerror_r: simplify AIX code
21117         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21118
21119         test-perror: avoid spurious failure on FreeBSD
21120         * modules/perror-tests (Depends-on): Add strerror, now that
21121         strerror_r no longer pulls it in.
21122
21123 2011-05-20  Bruno Haible  <bruno@clisp.org>
21124
21125         strerror_r-posix: Remove unused dependencies.
21126         * modules/strerror_r-posix (Depends-on): Remove strerror.
21127         Reported by Eric Blake.
21128
21129 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21130
21131         intprops: remove assumption about A|B representation
21132         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21133         is a valid integer if both A and B are.  Although this is true for
21134         all known practical hosts, the C standard doesn't guarantee it,
21135         and the code need not assume it.  Also, this change may work around
21136         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21138
21139 2011-05-20  Eric Blake  <eblake@redhat.com>
21140
21141         perror: work around FreeBSD bug
21142         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21143         is broken.  Move AC_LIBOBJ...
21144         * modules/perror (configure.ac): Here.
21145         * doc/posix-functions/perror.texi (perror): Document this.
21146         * tests/test-perror2.c (main): Enhance test.
21147
21148         test-perror: check for strerror interactions
21149         * tests/macros.h (STREQ): Add macro.
21150         * modules/perror-tests (Files): Add second test.
21151         * tests/test-perror2.c (main): New file.
21152         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21153
21154         test-perror: rewrite to use init script
21155         * modules/perror-tests (Files): Add init.sh.
21156         * tests/test-perror.sh: Use temporary directory.
21157
21158 2011-05-20  Jim Meyering  <meyering@redhat.com>
21159
21160         maint: replace misused "a" with "an"
21161         * doc/intprops.texi: "a integer"
21162         * doc/regex.texi: "a explanation"
21163         * lib/alignof.h: "a object"
21164         * lib/argmatch.h: "a explanation"
21165         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21166         * lib/stdint.in.h: "a integer"
21167         * lib/userspec.c: "a owner"
21168         * doc/gnulib.texi: Fix "a idea", and reword.
21169
21170 2011-05-19  Jim Meyering  <meyering@redhat.com>
21171
21172         maint: correct misuse of "a" and "an"
21173         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21174         * lib/argp-help.c: "an docum...": s/an/a/
21175         * lib/argp-parse.c: "An vector": s/An/A/
21176         * lib/execute.c: "an native": s/an/a/
21177         * lib/spawn-pipe.c: Likewise.
21178         * lib/gc.h: "an Gc_rc": s/an/a/
21179         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21180         * lib/fts.c: "an stat.st_dev": s/an/a/
21181
21182 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21183
21184         intprops-tests: work around HP-UX 11.23 cc bug with constants
21185         * tests/test-intprops.c (VERIFY): New macro.
21186         (main): Use it, instead of verify, to work around the compiler bug; see
21187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21188
21189         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21190         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21191         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21192         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21193         (_GL_REMAINDER_OVERFLOW): Use it.
21194
21195         intprops-tests: revert unsigned part of previous change
21196         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21197         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21198         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21200
21201 2011-05-19  Bruno Haible  <bruno@clisp.org>
21202
21203         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21204         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21205         strerror_r() returned without filling the buffer.
21206         Reported by Eric Blake.
21207
21208 2011-05-19  Eric Blake  <eblake@redhat.com>
21209
21210         strerror_r: guarantee unchanged errno
21211         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21212         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21213         failure.
21214         * tests/test-strerror_r.c (main): Enhance test.
21215
21216 2011-05-19  Bruno Haible  <bruno@clisp.org>
21217
21218         strerror_r: Reorder #if blocks.
21219         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21220         for consistency with the previous commit.
21221
21222 2011-05-19  Bruno Haible  <bruno@clisp.org>
21223
21224         perror: Avoid clobbering the strerror buffer when possible.
21225         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21226         * lib/strerror.c: Include it.
21227         * modules/strerror (Files): Add lib/strerror-impl.h.
21228         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21229         (my_strerror): New function, defined through lib/strerror-impl.h.
21230         (perror): Use it instead of strerror.
21231         * modules/perror (Files): Add lib/strerror-impl.h.
21232         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21233
21234 2011-05-19  Eric Blake  <eblake@redhat.com>
21235
21236         strerror_r: fix on newer cygwin
21237         * lib/strerror_r.c (strerror_r): Cygwin now has
21238         __xpg_strerror_r, use it.
21239
21240 2011-05-19  Bruno Haible  <bruno@clisp.org>
21241
21242         strerror_r: Avoid clobbering the strerror buffer when possible.
21243         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21244         (sys_nerr, sys_errlist): New declarations.
21245         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21246         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21247         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21248
21249 2011-05-19  Bruno Haible  <bruno@clisp.org>
21250
21251         strerror_r: Fix test failure on mingw.
21252         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21253         EXTEND_STRERROR_R.
21254         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21255         macros from errno.in.h instead.
21256
21257 2011-05-19  Eric Blake  <eblake@redhat.com>
21258
21259         strerror: relax test for Solaris
21260         * tests/test-strerror.c (main): Permit Solaris behavior.
21261         * tests/test-strerror_r.c (main): Likewise.
21262
21263         strerror: enforce POSIX ruling on strerror(0)
21264         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21265         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21266         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21267         * doc/posix-functions/strerror.texi (strerror): Document it.
21268         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21269         * tests/test-strerror.c (main): Strengthen test.
21270         * tests/test-strerror_r.c (main): Likewise.
21271
21272 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21273
21274         intprop-tests: port to older and more-pedantic compilers
21275         * modules/intprops-tests (Files): Add tests/macros.h.
21276         * tests/test-intprops.c: Include macros.h.
21277         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21278         it's no longer documented to expand to an integer constant expression.
21279         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21280         argument is floating point, as it's no longer documented to expand
21281         to an integer constant expression in that case.
21282         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21283         compiler bugs reported by Bruno Haible.  See
21284         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21285         (U0, U1): New constants, to work around the same bugs.  Also,
21286         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21287
21288         intprops: work around C compiler bugs
21289         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21290         bug in Sun C 5.11 2010/08/13 and other compilers; see
21291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21292
21293         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21294         * doc/intprops.texi (Integer Type Determination): Fix
21295         documentation for TYPE_IS_INTEGER: it returns an constant
21296         expression, not an integer constant expression.  Fix doc for
21297         TYPE_SIGNED: it returns an integer constant expression only if its
21298         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21299         hardly worth documented that way....)
21300
21301 2011-05-18  Bruno Haible  <bruno@clisp.org>
21302
21303         strerror_r: Avoid clobbering the strerror buffer when possible.
21304         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21305         Handle gnulib defined errno values here. When strerror() returns NULL
21306         or an empty string, return EINVAL.
21307         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21308         gnulib defined errno values here.
21309         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21310
21311 2011-05-18  Eric Blake  <eblake@redhat.com>
21312
21313         fnmatch: avoid compiler warning
21314         * lib/fnmatch_loop.c (FCT): Use correct type.
21315         Reported by Matthias Bolte.
21316
21317 2011-05-13  Jim Meyering  <meyering@redhat.com>
21318
21319         maint.mk: three new prohibit_<HDR>_without_use rules
21320         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21321         (sc_prohibit_stdio-safer_without_use): Likewise.
21322         (sc_prohibit_xfreopen_without_use): Likewise.
21323
21324 2011-05-17  Jim Meyering  <meyering@redhat.com>
21325
21326         announce-gen: fail if the NEWS delta is empty
21327         If there's nothing noteworthy in NEWS, then either you forgot
21328         or you shouldn't be releasing.
21329         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21330
21331 2011-05-17  Pádraig Brady <P@draigBrady.com>
21332
21333         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21334         reserved symbols starting with double underscore from the check.
21335
21336 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21337
21338         intprops: add doc
21339         * doc/intprops.texi: New file, documenting intprops.
21340         * doc/gnulib.texi (Particular Modules): Include it.
21341
21342         verify: add doc to gnulib manual and fix example
21343         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21344         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21345         (Compile-time Assertions): Fix example so it can't overflow.
21346
21347 2011-05-17  Jim Meyering  <meyering@redhat.com>
21348
21349         warnings.m4: don't usurp save_CPPFLAGS variable name
21350         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21351
21352         doc: fix typo
21353         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21354
21355 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21356             Bruno Haible  <bruno@clisp.org>
21357
21358         doc: Tweak recent change.
21359         * README (Portability guidelines): Tweak new text.
21360         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21361         Interix 6.1.
21362
21363 2011-05-16  Eric Blake  <eblake@redhat.com>
21364
21365         inttypes: avoid autoconf warning
21366         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21367         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21368
21369 2011-05-16  Sam Steingold <sds@gnu.org>
21370         and Eric Blake  <eblake@redhat.com>
21371
21372         vc-list-files: accept multiple directory operands
21373         * build-aux/vc-list-files: Iterate over all remaining operands.
21374
21375 2011-05-16  Bruno Haible  <bruno@clisp.org>
21376
21377         Fix confusion regarding deprecated modules.
21378         * modules/calloc (Status, Notice): Mark module as deprecated, not
21379         obsolete.
21380         * modules/fnmatch-posix (Status, Notice): Likewise.
21381         * modules/getdate (Status, Notice): Likewise.
21382         * modules/getopt (Status, Notice): Likewise.
21383         * modules/malloc (Status, Notice): Likewise.
21384         * modules/pipe (Status, Notice): Likewise.
21385         * modules/realloc (Status, Notice): Likewise.
21386         * modules/rename-dest-slash (Status, Notice): Likewise.
21387         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21388         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21389         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21390         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21391         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21392
21393 2011-05-16  Bruno Haible  <bruno@clisp.org>
21394
21395         doc: List the target platforms.
21396         * doc/gnulib-intro.texi (Target Platforms): New section.
21397         * doc/gnulib.texi (Introduction): Update menu.
21398         * README (Portability guidelines): Refer to the new section. Update
21399         statement about oldest supported environment. Remove rationale why
21400         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21401         unportable C89 function.
21402         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21403         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21404
21405 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21406
21407         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21408
21409 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21410
21411         intprops-tests: new module
21412         * modules/intprops-tests, tests/test-intprops.c: New files.
21413
21414         intprops: add safe, portable integer overflow checking
21415         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21416         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21417         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21418         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21419         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21420         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21421         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21422         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21423         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21424         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21425         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21426
21427 2011-05-12  James Youngman  <jay@gnu.org>
21428
21429         Add a test for glibc's Bugzilla bug #12378.
21430         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21431         doesn't allow the literal matching of a lone "[" (which is
21432         required by POSIX).
21433         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21434
21435 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21436
21437         Sync glibc change fixing Bugzilla bug #12378.
21438         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21439         beginning and fall back to matching as normal character if the
21440         string ends before the matching ']' is found.  This is what POSIX
21441         requires.
21442
21443 2011-05-13  Eric Blake  <eblake@redhat.com>
21444
21445         getcwd-lgpl: relax test for FreeBSD
21446         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21447         issue.
21448         * tests/test-getcwd-lgpl.c (main): Relax test.
21449         Reported by Matthias Bolte.
21450
21451 2011-05-11  Eric Blake  <eblake@redhat.com>
21452
21453         test-fflush: silence compiler warning
21454         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21455
21456 2011-05-11  Bruno Haible  <bruno@clisp.org>
21457
21458         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21459         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21460         * modules/canonicalize (Depends-on): Add 'nocrash'.
21461         * modules/canonicalize-lgpl (Depends-on): Likewise.
21462         * doc/posix-functions/realpath.texi: Update platforms list.
21463         Reported by Ryan Schmidt <ryandesign@macports.org>.
21464
21465 2011-05-11  Bruno Haible  <bruno@clisp.org>
21466
21467         group-member: Declare function in <unistd.h>.
21468         * lib/unistd.in.h (group_member): New declaration.
21469         * lib/group-member.h: Remove file.
21470         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21471         * tests/test-unistd-c++.cc: Check signature of group_member.
21472         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21473         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21474         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21475         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21476         HAVE_GROUP_MEMBER.
21477         * modules/group-member (Files): Remove lib/group-member.h.
21478         (Depends-on): Add unistd. Specify conditions.
21479         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21480         (Include): Change to <unistd.h>.
21481         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21482         HAVE_GROUP_MEMBER.
21483         * NEWS: Mention the change.
21484         * lib/euidaccess.c: Don't include group-member.h.
21485
21486 2011-05-11  Bruno Haible  <bruno@clisp.org>
21487
21488         group-member: Document module.
21489         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21490         module.
21491
21492 2011-05-11  Bruno Haible  <bruno@clisp.org>
21493
21494         fclose: Fix mistake earlier today.
21495         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21496
21497 2011-05-11  Eric Blake  <eblake@redhat.com>
21498
21499         fclose: preserve fflush errors
21500         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21501         Reported by Jim Meyering.
21502
21503         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21504         * build-aux/bootstrap (check_versions): When no specific version
21505         is required, merely check that the app produces an exit status
21506         that indicates its existence.
21507
21508         maint.mk: drop redundant check
21509         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21510         the same but better.
21511
21512 2011-05-11  Bruno Haible  <bruno@clisp.org>
21513
21514         fclose: Fix possible link error.
21515         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21516         unregister_shadow_fd. Improve comments.
21517         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21518         Eric Blake.
21519
21520 2011-05-11  Jim Meyering  <meyering@redhat.com>
21521
21522         maint.mk: improve "can not" detection and generalize rule name
21523         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21524         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21525         Use the same technique as in sc_prohibit_doubled_word, so that
21526         we recognize "can not" also when the words are separated by a newline.
21527         Suggested by Eric Blake.
21528         (perl_filename_lineno_text_): Define.  Factored out of...
21529         (prohibit_doubled_word_): ...here.  Use the new definition.
21530         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21531         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21532         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21533
21534 2011-05-10  Eric Blake  <eblake@redhat.com>
21535
21536         fclose: avoid double close race when possible
21537         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21538         all but WINDOWS_SOCKETS.
21539
21540 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21541
21542         openat: correct new comment
21543         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21544
21545 2011-05-10  Jim Meyering  <meyering@redhat.com>
21546
21547         openat: add comments
21548         * lib/openat-proc.c (openat_proc_name): Add comments,
21549         mostly from Eric Blake.
21550
21551 2011-05-09  Eric Blake  <eblake@redhat.com>
21552
21553         openat: reduce syscalls in first probe of /proc
21554         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21555         be a directory.  Simplify the probe for .. bugs.
21556         * modules/openat (Depends-on): Drop same-inode.
21557         Reported by Bastien ROUCARIES.
21558
21559 2011-05-09  Jim Meyering  <meyering@redhat.com>
21560
21561         maint.mk: change semantics/name of tight_scope variables
21562         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21563         Rename variables to align with semantics that make them more useful.
21564
21565         maint.mk: tweak new rule's name not to impinge
21566         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21567         (sc_tight_scope): Use new rule name rather than $@-0.
21568
21569         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21570         * top/maint.mk (sc_tight_scope): New rule.
21571         (sc_tight_scope-0): New rule, ifdef'd out.
21572         (_gl_TS_dir): Default.
21573         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21574         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21575
21576 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21577
21578         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21579         Haible <bruno@clisp.org>.
21580
21581 2011-05-08  Bruno Haible  <bruno@clisp.org>
21582
21583         Comments.
21584         * m4/isnanf.m4: Add comment.
21585         * m4/isnanl.m4: Likewise.
21586
21587 2011-05-08  Bruno Haible  <bruno@clisp.org>
21588
21589         glob: Remove obsolete macro.
21590         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21591
21592 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21593
21594         intprops: Sun C 5.11 supports __typeof__
21595         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21596         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21597         which is new.
21598         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21599
21600         intprops: switch to usual gnulib indenting and naming
21601         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21602         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21603
21604         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21605
21606 2011-05-08  Jim Meyering  <meyering@redhat.com>
21607
21608         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21609         * top/maint.mk (release-prep): Use make's --no-print-directory
21610         option when generating the announcement.  This eliminates the
21611         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21612         generated announcement template.
21613
21614 2011-05-08  Bruno Haible  <bruno@clisp.org>
21615
21616         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21617         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21618         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21619
21620 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21621
21622         ignore-value, verify: Omit include files from lib_SOURCES.
21623         * modules/ignore-value, modules/verify (Makefile.am):
21624         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21625         that leads Automake to duplicate use of am__objects_... variables
21626         in Makefile.in.  See
21627         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21628
21629 2011-05-07  Bruno Haible  <bruno@clisp.org>
21630
21631         fclose: Simplify autoconf macro.
21632         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21633         defined.
21634
21635 2011-05-07  Bruno Haible  <bruno@clisp.org>
21636
21637         canonicalize-lgpl: Fix autoconf macro ordering bug.
21638         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21639         gl_STDLIB_H_DEFAULTS.
21640
21641 2011-05-06  Eric Blake  <eblake@redhat.com>
21642
21643         maintainer-makefile: make sc_po_check easier to tune
21644         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21645         to probe for strings, such as an alternate location for gnulib.
21646
21647         fclose: guarantee behavior on seekable stdin
21648         * modules/fclose (Depends-on): Add fflush.
21649         * doc/posix-functions/fclose.texi (fclose): Document this.
21650         * tests/test-fclose.c (main): Make test for this unconditional.
21651
21652 2011-05-06  Bruno Haible  <bruno@clisp.org>
21653
21654         fflush, fpurge: Relicense under LGPLv2+.
21655         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21656         * modules/fpurge (License): Likewise.
21657         With permission from Eric Blake and Jim Meyering.
21658         Suggested by Eric Blake.
21659
21660 2011-05-06  Karl Berry  <karl@gnu.org>
21661
21662         * MODULES.html.sh (func_all_modules): remove exit.
21663
21664 2011-05-06  Jim Meyering  <meyering@redhat.com>
21665
21666         maint.mk: use info-gnu@ as the default only for a stable release
21667         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21668         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21669         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21670         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21671
21672 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21673
21674         assert-h: new module, which supports C1X-style static_assert
21675         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21676         * lib/verify.h: Revamp so that this can be copied into assert.h,
21677         while retaining the ability to use it standalone as before.
21678         Rename private identifiers so as not to encroach on the
21679         standard C namespace, since this is now used by assert.h.
21680         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21681         the old verify_true.
21682         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21683         the old verify_true.  Use _GL_VERIFY_TYPE.
21684         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21685         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21686         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21687         defined when this file is copied into the replacement assert.h.
21688         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21689         and _Static_assert is not built in.
21690         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21691         defined, and use the new macros mentioned above.
21692         * doc/posix-headers/assert.texi: Document this.
21693
21694 2011-05-05  Bruno Haible  <bruno@clisp.org>
21695
21696         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21697         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21698         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21699         gl_REPLACE_FCLOSE here.
21700         * modules/fflush (Depends-on): Remove fclose.
21701         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21702         combination with module 'fclose'.
21703
21704 2011-05-05  Bruno Haible  <bruno@clisp.org>
21705
21706         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21707         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21708         gl_FUNC_FFLUSH.
21709         (gl_FUNC_FFLUSH): Use it.
21710         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21711         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21712         gl_REPLACE_FSEEKO here.
21713
21714 2011-05-05  Bruno Haible  <bruno@clisp.org>
21715
21716         tzset: Relicense under LGPL.
21717         * modules/tzset (License): Change to LGPL.
21718         No agreement needed; it's a no-op.
21719
21720         strtoimax, strtoumax: Relicense under LGPL.
21721         * modules/strtoimax (License): Change to LGPL.
21722         * modules/strtoumax (License): Likewise.
21723         With permission from Jim Meyering, Paul Eggert:
21724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21726
21727         getgroups: Relicense under LGPL.
21728         * modules/getgroups (License): Change to LGPL.
21729         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21733
21734         nanosleep: Relicense under LGPL.
21735         * modules/nanosleep (License): Change to LGPL.
21736         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21737         Haible:
21738         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21740         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21742
21743         futimens: Relicense under LGPL.
21744         * modules/futimens (License): Change to LGPL.
21745         With permission from Eric Blake:
21746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21747
21748         fflush: Relicense under LGPL.
21749         * modules/fflush (License): Change to LGPL.
21750         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21754
21755         tmpfile: Relicense under LGPL.
21756         * modules/tmpfile (License): Change to LGPL.
21757         With permission from Ben Pfaff:
21758         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21759
21760         isfinite: Relicense under LGPL.
21761         * modules/isfinite (License): Change to LGPL.
21762         With permission from Ben Pfaff, Bruno Haible:
21763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21765
21766         acosl..tanl: Relicense under LGPL.
21767         * modules/acosl (License): Change to LGPL.
21768         * modules/asinl (License): Likewise.
21769         * modules/atanl (License): Likewise.
21770         * modules/cosl (License): Likewise.
21771         * modules/expl (License): Likewise.
21772         * modules/logl (License): Likewise.
21773         * modules/sinl (License): Likewise.
21774         * modules/sqrtl (License): Likewise.
21775         * modules/tanl (License): Likewise.
21776         Source code originally from glibc and Paolo Bonzini. Agreements:
21777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21779
21780 2011-05-05  Bruno Haible  <bruno@clisp.org>
21781
21782         signal: Define sighandler_t.
21783         * lib/signal.in.h (sighandler_t): New type.
21784         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21785         whether sighandler_t is defined.
21786         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21787         * modules/signal (Depends-on): Add extensions.
21788         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21789         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21790         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21791
21792 2011-05-05  Eric Blake  <eblake@redhat.com>
21793
21794         maint: remove useless REPLACE_*_H macros
21795         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21796         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21797         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21798         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21799         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21800         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21801         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21802         * m4/btowc.m4: Update callers.
21803         * m4/dirfd.m4: Likewise.
21804         * m4/duplocale.m4: Likewise.
21805         * m4/fchdir.m4: Likewise.
21806         * m4/fdopendir.m4: Likewise.
21807         * m4/inet_ntop.m4: Likewise.
21808         * m4/inet_pton.m4: Likewise.
21809         * m4/ioctl.m4: Likewise.
21810         * m4/mbrlen.m4: Likewise.
21811         * m4/mbrtowc.m4: Likewise.
21812         * m4/mbsinit.m4: Likewise.
21813         * m4/mbsnrtowcs.m4: Likewise.
21814         * m4/mbsrtowcs.m4: Likewise.
21815         * m4/poll.m4: Likewise.
21816         * m4/setlocale.m4: Likewise.
21817         * m4/wcrtomb.m4: Likewise.
21818         * m4/wcsnrtombs.m4: Likewise.
21819         * m4/wcsrtombs.m4: Likewise.
21820         * m4/wctob.m4: Likewise.
21821         * m4/wcwidth.m4: Likewise.
21822         * modules/posix_spawn: Likewise.
21823         * modules/posix_spawn_file_actions_addclose: Likewise.
21824         * modules/posix_spawn_file_actions_adddup2: Likewise.
21825         * modules/posix_spawn_file_actions_addopen: Likewise.
21826         * modules/posix_spawn_file_actions_destroy: Likewise.
21827         * modules/posix_spawn_file_actions_init: Likewise.
21828         * modules/posix_spawnattr_destroy: Likewise.
21829         * modules/posix_spawnattr_getflags: Likewise.
21830         * modules/posix_spawnattr_getpgroup: Likewise.
21831         * modules/posix_spawnattr_getschedparam: Likewise.
21832         * modules/posix_spawnattr_getschedpolicy: Likewise.
21833         * modules/posix_spawnattr_getsigdefault: Likewise.
21834         * modules/posix_spawnattr_getsigmask: Likewise.
21835         * modules/posix_spawnattr_init: Likewise.
21836         * modules/posix_spawnattr_setflags: Likewise.
21837         * modules/posix_spawnattr_setpgroup: Likewise.
21838         * modules/posix_spawnattr_setschedparam: Likewise.
21839         * modules/posix_spawnattr_setschedpolicy: Likewise.
21840         * modules/posix_spawnattr_setsigdefault: Likewise.
21841         * modules/posix_spawnattr_setsigmask: Likewise.
21842         * modules/posix_spawnp: Likewise.
21843
21844 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21845
21846         Add option to do-release-commit-and-tag to specify branch.
21847         * build-aux/do-release-commit-and-tag: Add --branch.
21848
21849 2011-05-03  Bruno Haible  <bruno@clisp.org>
21850
21851         Avoid unnecessary compilation units, through conditional dependencies.
21852         * modules/accept (Depends-on): Add conditions to the dependencies.
21853         * modules/acosl (Depends-on): Likewise.
21854         * modules/argz (Depends-on): Likewise.
21855         * modules/asinl (Depends-on): Likewise.
21856         * modules/atanl (Depends-on): Likewise.
21857         * modules/atoll (Depends-on): Likewise.
21858         * modules/bind (Depends-on): Likewise.
21859         * modules/btowc (Depends-on): Likewise.
21860         * modules/canonicalize-lgpl (Depends-on): Likewise.
21861         * modules/ceil (Depends-on): Likewise.
21862         * modules/ceilf (Depends-on): Likewise.
21863         * modules/ceill (Depends-on): Likewise.
21864         * modules/chdir-long (Depends-on): Likewise.
21865         * modules/chown (Depends-on): Likewise.
21866         * modules/close (Depends-on): Likewise.
21867         * modules/connect (Depends-on): Likewise.
21868         * modules/cosl (Depends-on): Likewise.
21869         * modules/dirfd (Depends-on): Likewise.
21870         * modules/dprintf (Depends-on): Likewise.
21871         * modules/dprintf-posix (Depends-on): Likewise.
21872         * modules/error (Depends-on): Likewise.
21873         * modules/euidaccess (Depends-on): Likewise.
21874         * modules/expl (Depends-on): Likewise.
21875         * modules/faccessat (Depends-on): Likewise.
21876         * modules/fchdir (Depends-on): Likewise.
21877         * modules/fclose (Depends-on): Likewise.
21878         * modules/fcntl (Depends-on): Likewise.
21879         * modules/fdopendir (Depends-on): Likewise.
21880         * modules/fflush (Depends-on): Likewise.
21881         * modules/floor (Depends-on): Likewise.
21882         * modules/floorf (Depends-on): Likewise.
21883         * modules/floorl (Depends-on): Likewise.
21884         * modules/fnmatch (Depends-on): Likewise.
21885         * modules/fopen (Depends-on): Likewise.
21886         * modules/fprintf-posix (Depends-on): Likewise.
21887         * modules/frexp (Depends-on): Likewise.
21888         * modules/frexp-nolibm (Depends-on): Likewise.
21889         * modules/frexpl (Depends-on): Likewise.
21890         * modules/frexpl-nolibm (Depends-on): Likewise.
21891         * modules/fseek (Depends-on): Likewise.
21892         * modules/fsusage (Depends-on): Likewise.
21893         * modules/ftell (Depends-on): Likewise.
21894         * modules/ftello (Depends-on): Likewise.
21895         * modules/futimens (Depends-on): Likewise.
21896         * modules/getcwd (Depends-on): Likewise.
21897         * modules/getcwd-lgpl (Depends-on): Likewise.
21898         * modules/getdelim (Depends-on): Likewise.
21899         * modules/getdomainname (Depends-on): Likewise.
21900         * modules/getgroups (Depends-on): Likewise.
21901         * modules/gethostname (Depends-on): Likewise.
21902         * modules/getline (Depends-on): Likewise.
21903         * modules/getlogin_r (Depends-on): Likewise.
21904         * modules/getopt-posix (Depends-on): Likewise.
21905         * modules/getpeername (Depends-on): Likewise.
21906         * modules/getsockname (Depends-on): Likewise.
21907         * modules/getsockopt (Depends-on): Likewise.
21908         * modules/getsubopt (Depends-on): Likewise.
21909         * modules/getusershell (Depends-on): Likewise.
21910         * modules/glob (Depends-on): Likewise.
21911         * modules/grantpt (Depends-on): Likewise.
21912         * modules/iconv_open (Depends-on): Likewise.
21913         * modules/iconv_open-utf (Depends-on): Likewise.
21914         * modules/inet_ntop (Depends-on): Likewise.
21915         * modules/inet_pton (Depends-on): Likewise.
21916         * modules/ioctl (Depends-on): Likewise.
21917         * modules/isapipe (Depends-on): Likewise.
21918         * modules/isfinite (Depends-on): Likewise.
21919         * modules/isinf (Depends-on): Likewise.
21920         * modules/lchown (Depends-on): Likewise.
21921         * modules/ldexpl (Depends-on): Likewise.
21922         * modules/link (Depends-on): Likewise.
21923         * modules/linkat (Depends-on): Likewise.
21924         * modules/listen (Depends-on): Likewise.
21925         * modules/logl (Depends-on): Likewise.
21926         * modules/lstat (Depends-on): Likewise.
21927         * modules/mbrlen (Depends-on): Likewise.
21928         * modules/mbrtowc (Depends-on): Likewise.
21929         * modules/mbsinit (Depends-on): Likewise.
21930         * modules/mbsnrtowcs (Depends-on): Likewise.
21931         * modules/mbsrtowcs (Depends-on): Likewise.
21932         * modules/mbtowc (Depends-on): Likewise.
21933         * modules/memcmp (Depends-on): Likewise.
21934         * modules/mkdir (Depends-on): Likewise.
21935         * modules/mkdtemp (Depends-on): Likewise.
21936         * modules/mkfifo (Depends-on): Likewise.
21937         * modules/mkfifoat (Depends-on): Likewise.
21938         * modules/mknod (Depends-on): Likewise.
21939         * modules/mkostemp (Depends-on): Likewise.
21940         * modules/mkostemps (Depends-on): Likewise.
21941         * modules/mkstemp (Depends-on): Likewise.
21942         * modules/mkstemps (Depends-on): Likewise.
21943         * modules/mktime (Depends-on): Likewise.
21944         * modules/nanosleep (Depends-on): Likewise.
21945         * modules/open (Depends-on): Likewise.
21946         * modules/openat (Depends-on): Likewise.
21947         * modules/perror (Depends-on): Likewise.
21948         * modules/poll (Depends-on): Likewise.
21949         * modules/popen (Depends-on): Likewise.
21950         * modules/posix_spawn (Depends-on): Likewise.
21951         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21952         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21953         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21954         * modules/posix_spawnp (Depends-on): Likewise.
21955         * modules/pread (Depends-on): Likewise.
21956         * modules/printf-posix (Depends-on): Likewise.
21957         * modules/ptsname (Depends-on): Likewise.
21958         * modules/putenv (Depends-on): Likewise.
21959         * modules/pwrite (Depends-on): Likewise.
21960         * modules/readline (Depends-on): Likewise.
21961         * modules/readlink (Depends-on): Likewise.
21962         * modules/readlinkat (Depends-on): Likewise.
21963         * modules/recv (Depends-on): Likewise.
21964         * modules/recvfrom (Depends-on): Likewise.
21965         * modules/regex (Depends-on): Likewise.
21966         * modules/remove (Depends-on): Likewise.
21967         * modules/rename (Depends-on): Likewise.
21968         * modules/renameat (Depends-on): Likewise.
21969         * modules/rmdir (Depends-on): Likewise.
21970         * modules/round (Depends-on): Likewise.
21971         * modules/roundf (Depends-on): Likewise.
21972         * modules/roundl (Depends-on): Likewise.
21973         * modules/rpmatch (Depends-on): Likewise.
21974         * modules/select (Depends-on): Likewise.
21975         * modules/send (Depends-on): Likewise.
21976         * modules/sendto (Depends-on): Likewise.
21977         * modules/setenv (Depends-on): Likewise.
21978         * modules/setlocale (Depends-on): Likewise.
21979         * modules/setsockopt (Depends-on): Likewise.
21980         * modules/shutdown (Depends-on): Likewise.
21981         * modules/sigaction (Depends-on): Likewise.
21982         * modules/signbit (Depends-on): Likewise.
21983         * modules/sigprocmask (Depends-on): Likewise.
21984         * modules/sinl (Depends-on): Likewise.
21985         * modules/sleep (Depends-on): Likewise.
21986         * modules/snprintf (Depends-on): Likewise.
21987         * modules/snprintf-posix (Depends-on): Likewise.
21988         * modules/socket (Depends-on): Likewise.
21989         * modules/sprintf-posix (Depends-on): Likewise.
21990         * modules/sqrtl (Depends-on): Likewise.
21991         * modules/stat (Depends-on): Likewise.
21992         * modules/strchrnul (Depends-on): Likewise.
21993         * modules/strdup-posix (Depends-on): Likewise.
21994         * modules/strerror (Depends-on): Likewise.
21995         * modules/strerror_r-posix (Depends-on): Likewise.
21996         * modules/strndup (Depends-on): Likewise.
21997         * modules/strnlen (Depends-on): Likewise.
21998         * modules/strptime (Depends-on): Likewise.
21999         * modules/strsep (Depends-on): Likewise.
22000         * modules/strsignal (Depends-on): Likewise.
22001         * modules/strstr-simple (Depends-on): Likewise.
22002         * modules/strtod (Depends-on): Likewise.
22003         * modules/strtoimax (Depends-on): Likewise.
22004         * modules/strtok_r (Depends-on): Likewise.
22005         * modules/strtoumax (Depends-on): Likewise.
22006         * modules/symlink (Depends-on): Likewise.
22007         * modules/symlinkat (Depends-on): Likewise.
22008         * modules/tanl (Depends-on): Likewise.
22009         * modules/tcgetsid (Depends-on): Likewise.
22010         * modules/tmpfile (Depends-on): Likewise.
22011         * modules/trunc (Depends-on): Likewise.
22012         * modules/truncf (Depends-on): Likewise.
22013         * modules/truncl (Depends-on): Likewise.
22014         * modules/uname (Depends-on): Likewise.
22015         * modules/unlink (Depends-on): Likewise.
22016         * modules/unlockpt (Depends-on): Likewise.
22017         * modules/unsetenv (Depends-on): Likewise.
22018         * modules/usleep (Depends-on): Likewise.
22019         * modules/utimensat (Depends-on): Likewise.
22020         * modules/vasprintf (Depends-on): Likewise.
22021         * modules/vdprintf (Depends-on): Likewise.
22022         * modules/vdprintf-posix (Depends-on): Likewise.
22023         * modules/vfprintf-posix (Depends-on): Likewise.
22024         * modules/vprintf-posix (Depends-on): Likewise.
22025         * modules/vsnprintf (Depends-on): Likewise.
22026         * modules/vsnprintf-posix (Depends-on): Likewise.
22027         * modules/vsprintf-posix (Depends-on): Likewise.
22028         * modules/wcrtomb (Depends-on): Likewise.
22029         * modules/wcscasecmp (Depends-on): Likewise.
22030         * modules/wcscspn (Depends-on): Likewise.
22031         * modules/wcsdup (Depends-on): Likewise.
22032         * modules/wcsncasecmp (Depends-on): Likewise.
22033         * modules/wcsnrtombs (Depends-on): Likewise.
22034         * modules/wcspbrk (Depends-on): Likewise.
22035         * modules/wcsrtombs (Depends-on): Likewise.
22036         * modules/wcsspn (Depends-on): Likewise.
22037         * modules/wcsstr (Depends-on): Likewise.
22038         * modules/wcstok (Depends-on): Likewise.
22039         * modules/wcswidth (Depends-on): Likewise.
22040         * modules/wctob (Depends-on): Likewise.
22041         * modules/wctomb (Depends-on): Likewise.
22042         * modules/wctype (Depends-on): Likewise.
22043         * modules/wcwidth (Depends-on): Likewise.
22044         * modules/write (Depends-on): Likewise.
22045
22046 2011-05-03  Bruno Haible  <bruno@clisp.org>
22047
22048         Support for conditional dependencies.
22049         * doc/gnulib.texi (Module description): Document the syntax of
22050         conditional dependencies.
22051         * gnulib-tool: New option --conditional-dependencies.
22052         (func_usage): Document it.
22053         (cond_dependencies): New variable.
22054         (func_get_automake_snippet_conditional,
22055         func_get_automake_snippet_unconditional): New functions, extracted from
22056         func_get_automake_snippet.
22057         (func_get_automake_snippet): Use them.
22058         (sed_first_32_chars): New variable.
22059         (func_module_shellfunc_name): New function.
22060         (func_module_shellvar_name): New function.
22061         (func_module_conditional_name): New function.
22062         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22063         func_cond_module_condition): New functions.
22064         (func_modules_transitive_closure): Add support for conditional
22065         dependencies.
22066         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22067         conditional automake snippet in an automake conditional.
22068         (func_emit_autoconf_snippets): Emit shell functions that contain the
22069         code for conditional modules.
22070         (func_import, func_create_testdir): Update specification.
22071
22072 2011-05-03  Eric Blake  <eblake@redhat.com>
22073
22074         test-getaddrinfo: report error information
22075         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22076
22077 2011-05-03  Jim Meyering  <meyering@redhat.com>
22078
22079         bootstrap: avoid build failure when $GZIP is set
22080         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22081         program name.  If defined at all, it is supposed to list gzip options.
22082         Reported by Alan Curry in http://debbugs.gnu.org/8609
22083
22084 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22085
22086         readme-release: new module with release instructions
22087         * modules/readme-release: New module.
22088         * top/README-release: New file, from coreutils, grep, diffutils.
22089         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22090
22091 2011-05-02  Eric Blake  <eblake@redhat.com>
22092
22093         fflush: also replace fclose when fixing fflush
22094         * modules/fflush (Depends-on): Add fclose.
22095         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22096         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22097         memstreams with no backing fd.
22098         * doc/posix-functions/fclose.texi (fclose): Document the use of
22099         fflush module to fix the bug.
22100         * tests/test-fclose.c (main): Relax test when fclose is used in
22101         isolation.
22102
22103         fclose: add some tests
22104         * modules/fclose-tests: New test module.
22105         * tests/test-fclose.c: New file.
22106         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22107
22108         fclose: reduced dependencies
22109         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22110         simpler lseek.
22111         * lib/fclose.c (rpl_fclose): Likewise.
22112         Reported by Simon Josefsson.
22113
22114         exit: drop remaining clients
22115         * modules/argmatch (Depends-on): Replace exit with stdlib.
22116         * modules/copy-file (Depends-on): Likewise.
22117         * modules/execute (Depends-on): Likewise.
22118         * modules/exitfail (Depends-on): Likewise.
22119         * modules/obstack (Depends-on): Likewise.
22120         * modules/pagealign_alloc (Depends-on): Likewise.
22121         * modules/pipe-filter-gi (Depends-on): Likewise.
22122         * modules/pipe-filter-ii (Depends-on): Likewise.
22123         * modules/savewd (Depends-on): Likewise.
22124         * modules/spawn-pipe (Depends-on): Likewise.
22125         * modules/wait-process (Depends-on): Likewise.
22126         * modules/xsetenv (Depends-on): Likewise.
22127         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22128         * modules/git-merge-changelog (Depends-on): Likewise.
22129         * modules/long-options (Depends-on): Likewise.
22130         * modules/pt_chown (Depends-on): Likewise.
22131         * modules/sysexits (Depends-on): Likewise.
22132
22133         freading: relax license from LGPLv3+ to LGPLv2+
22134         * modules/freading (License): Relax LGPL version.
22135
22136 2011-05-02  Bruno Haible  <bruno@clisp.org>
22137
22138         fchdir: Remove unused dependencies.
22139         * modules/fchdir (Depends-on): Remove include_next.
22140
22141 2011-05-02  Bruno Haible  <bruno@clisp.org>
22142
22143         gnulib-tool: Refactor.
22144         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22145         from func_emit_autoconf_snippets.
22146         (func_emit_autoconf_snippets): Use it.
22147
22148 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22149
22150         * NEWS: Document removal of 'exit'.
22151         * modules/exit: Remove file.
22152
22153 2011-05-01  Bruno Haible  <bruno@clisp.org>
22154
22155         Update DEPENDENCIES.
22156         * DEPENDENCIES (gettext): Recommend the newest release.
22157         Reported by Simon Josefsson.
22158
22159 2011-05-01  Bruno Haible  <bruno@clisp.org>
22160
22161         gnulib-tool: Reduce code duplication.
22162         * gnulib-tool (func_emit_autoconf_snippets): New function.
22163         (func_import, func_create_testdir): Use it.
22164
22165 2011-04-30  Eric Blake  <eblake@redhat.com>
22166
22167         fclose: don't fail on non-seekable input stream
22168         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22169         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22170         since fflush is allowed to fail in that case.
22171
22172 2011-04-30  Bruno Haible  <bruno@clisp.org>
22173
22174         dup3: cleanup
22175         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22176
22177 2011-04-30  Bruno Haible  <bruno@clisp.org>
22178
22179         netdb: Make it work in C++ mode.
22180         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22181         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22182         module.
22183         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22184         gl_MODULE_INDICATOR_FOR_TESTS.
22185         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22186         * modules/netdb-c++-tests: New file.
22187         * tests/test-netdb-c++.cc: New file.
22188
22189 2011-04-30  Bruno Haible  <bruno@clisp.org>
22190
22191         New modules 'vfscanf', 'vscanf'.
22192         * modules/vfscanf: New file.
22193         * modules/vscanf: New file.
22194         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22195         here.
22196         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22197         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22198
22199 2011-04-30  Bruno Haible  <bruno@clisp.org>
22200
22201         passfd: Add comments.
22202         * lib/passfd.c: Add comments about platforms.
22203
22204 2011-04-30  Bruno Haible  <bruno@clisp.org>
22205
22206         sys_uio: Make <sys/uio.h> self-contained.
22207         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22208         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22209
22210 2011-04-30  Bruno Haible  <bruno@clisp.org>
22211
22212         sys_socket: Ensure 'struct iovec' definition.
22213         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22214         <sys/socket.h>.
22215         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22216
22217 2011-04-30  Bruno Haible  <bruno@clisp.org>
22218
22219         sys_uio: Protect definition of 'struct iovec'.
22220         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22221         it as a C struct.
22222
22223 2011-04-30  Bruno Haible  <bruno@clisp.org>
22224
22225         manywarnings: fix indentation
22226         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22227
22228 2011-04-30  Pádraig Brady <P@draigBrady.com>
22229
22230         manywarnings: add -Wno-missing-field-initializers if needed.
22231         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22232         option if it's needed to allow initialization with { 0, }
22233
22234 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22235
22236         announce-gen: cosmetic improvement
22237         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22238
22239 2011-04-29  Jim Meyering  <meyering@redhat.com>
22240
22241         vc-list-files: indent with spaces, not TABs
22242         * build-aux/vc-list-files: Convert leading TABs to spaces,
22243         to match the style of most other files in gnulib.
22244
22245         announce-gen: indent with spaces, not TABs
22246         * build-aux/announce-gen: Convert all TABs to spaces, to match
22247         the style of most other files in gnulib.
22248
22249 2011-04-29  Eric Blake  <eblake@redhat.com>
22250
22251         quotearg: avoid uninitialized variable use
22252         * lib/quotearg.c (quoting_options_from_style): Initialize
22253         remaining fields, and ensure that custom styles are only used via
22254         quoting_options rather than quoting_style.
22255
22256 2011-04-29  Jim Meyering  <meyering@redhat.com>
22257
22258         maint.mk: remove unused VC-tag variable
22259         * top/maint.mk (VC-tag): Remove unused variable.
22260
22261 2011-04-29  Bruno Haible  <bruno@clisp.org>
22262
22263         netdb: fix gai_strerror replacements
22264         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22265         * modules/netdb: Substitute it.
22266
22267 2011-04-29  Jim Meyering  <meyering@redhat.com>
22268
22269         test-getcwd.c: avoid new set-but-not-used warning
22270         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22271         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22272         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22273         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22274
22275         test-hash.c: avoid a new shadowing warning
22276         * tests/test-hash.c (main): Don't shadow "dup".
22277
22278 2011-04-28  Eric Blake  <eblake@redhat.com>
22279
22280         getaddrinfo: fix gai_strerror signature
22281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22282         and work around mingw with UNICODE defined.
22283         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22284         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22285         * modules/netdb (Makefile.am): Substitute it.
22286         * lib/netdb.in.h (gai_strerror): Declare replacement.
22287         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22288         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22289         the fix.
22290
22291         getsockopt: avoid compiler warning
22292         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22293         Reported by Matthias Bolte.
22294
22295         tests: drop unused link dependency
22296         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22297         * modules/dirent-safer-tests (Makefile.am): Likewise.
22298         * modules/fdopendir-tests (Makefile.am): Likewise.
22299         * modules/mkfifoat-tests (Makefile.am): Likewise.
22300         * modules/openat-safer-tests (Makefile.am): Likewise.
22301         * modules/openat-tests (Makefile.am): Likewise.
22302         * modules/readlinkat-tests (Makefile.am): Likewise.
22303         * modules/symlinkat-tests (Makefile.am): Likewise.
22304         * modules/linkat-tests (Makefile.am): Likewise.
22305         (Depends-on): Switch to filenamecat-lgpl.
22306         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22307         LIBINTL.
22308         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22309         * tests/test-linkat.c (main): Don't require xalloc.
22310
22311         hash, mgetgroups: drop xalloc dependency
22312         * lib/hash.c (includes): Adjust includes.
22313         * lib/mgetgroups.c (includes): Likewise.
22314         (xgetgroups): Move...
22315         * lib/xgetgroups.c: ...to new file.
22316         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22317         * modules/xgetgroups: New file, split from...
22318         * modules/mgetgroups: ...here.
22319         (Depends-on): Add xalloc-oversized.
22320         * modules/hash (Depends-on): Likewise.
22321         * modules/hash-tests (Depends-on): Drop xalloc.
22322         (test_hash_LDADD): Drop unused library.
22323         * tests/test-hash.c (main): Break xalloc dependency.
22324         (includes): Drop unused include.
22325
22326         xalloc-oversized: new module
22327         * modules/xalloc-oversized: New module.
22328         * modules/xalloc (Depends-on): Add it.
22329         * lib/xalloc.h (xalloc_oversized): Move...
22330         * lib/xalloc-oversized.h: ...into new file.
22331
22332         utimecmp: drop dependency on xmalloc
22333         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22334         due to memory pressure.
22335         * modules/utimecmp (Depends-on): Drop xalloc.
22336
22337 2011-04-27  Eric Blake  <eblake@redhat.com>
22338
22339         getcwd: fix mingw bugs
22340         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22341         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22342         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22343
22344 2011-04-27  Bruno Haible  <bruno@clisp.org>
22345
22346         mkstemps: Ensure declaration on MacOS X 10.5.
22347         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22348         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22349         MacOS X.
22350
22351 2011-04-27  Bruno Haible  <bruno@clisp.org>
22352
22353         mkstemp: More documentation.
22354         * doc/posix-functions/mkstemp.texi: Document header file problem on
22355         MacOS X.
22356
22357 2011-04-27  Bruno Haible  <bruno@clisp.org>
22358
22359         mkstemp: Tweak configure message when cross-compiling.
22360         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22361         result as a guess.
22362
22363 2011-04-27  Bruno Haible  <bruno@clisp.org>
22364
22365         clean-temp: Clarify what it does.
22366         * lib/clean-temp.h: Add more comments.
22367         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22368         module.
22369         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22370         * doc/glibc-functions/mkstemps.texi: Likewise.
22371         * doc/glibc-functions/mkostemps.texi: Likewise.
22372
22373 2011-04-27  Eric Blake  <eblake@redhat.com>
22374
22375         fchdir: avoid extra chdir and fix test
22376         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22377         getcwd-lgpl.
22378         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22379         have to be canonical.
22380         (canonicalize_file_name): Drop unused macro.
22381         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22382
22383         filenamecat-lgpl: fix licence
22384         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22385         when it was first created.
22386
22387         linkat, renameat: add missing dependency
22388         * modules/linkat (Depends-on): Require getcwd-lgpl.
22389         * modules/renameat (Depends-on): Likewise.
22390
22391         tests: reduce dependencies
22392         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22393         * tests/test-renameat.c (main): Likewise.
22394         * modules/linkat-tests (Depends-on): Relax dependency.
22395         * modules/renameat-tests (Depends-on): Likewise.
22396         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22397         dependency explicit.
22398
22399         save-cwd: reduce default dependency
22400         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22401         * lib/save-cwd.c: Update comments.
22402         * NEWS: Document the semantic change.
22403
22404         getcwd: enhance tests
22405         * tests/test-getcwd-lgpl.c: New file, taken from...
22406         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22407         repeat long path stress tests from m4 probe.
22408         * modules/getcwd-lgpl-tests: New module.
22409         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22410         * m4/getcwd-abort-bug.m4: Update comment.
22411         * m4/getcwd-path-max.m4: Likewise.
22412
22413         getcwd-lgpl: new module
22414         * modules/getcwd-lgpl: New module.
22415         * lib/getcwd-lgpl.c: New file.
22416         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22417         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22418         * modules/getcwd (configure.ac): Set C witness.
22419         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22420
22421         getcwd: tweak comments
22422         * m4/getcwd-abort-bug.m4: Fix comments.
22423         * m4/getcwd-path-max.m4: Likewise.
22424         * m4/getcwd.m4: Likewise.
22425
22426 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22427         and Eric Blake  <eblake@redhat.com>
22428
22429         mkstemp: replace if system version uses wrong permissions
22430         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22431         read/write mode bits set in file created by mkstemp.
22432         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22433
22434 2011-04-27  Eric Blake  <eblake@redhat.com>
22435
22436         passfd: avoid compiler warning
22437         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22438         Reported by Laine Stump.
22439
22440 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22441
22442         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22443         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22444
22445 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22446         and Eric Blake  <eblake@redhat.com>
22447
22448         mkstemp: mention clean-temp module
22449         * lib/mkstemp.c: Add comment.
22450         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22451
22452 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22453
22454         inttypes: also provide default values for 32-bit tests
22455         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22456         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22457
22458 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22459
22460         strtoumax: remove dependency on strtoimax
22461         This is like the strtoull change of yesterday.
22462         * modules/strtoumax (Files): Add lib/strtoimax.c.
22463         (Depends-on): Remove strtoimax and add verify.
22464
22465         inttypes-incomplete: new module
22466         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22467         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22468         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22469         of gl_INTTYPES_H.
22470         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22471         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22472         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22473         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22474         * modules/strtoumax, modules/xstrtol (Depends-on):
22475         Depend on inttypes-incomplete, not inttypes.
22476         * modules/inttypes-incomplete: New module, containing the contents
22477         of the old modules/inttypes module, except that the Files: section
22478         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22479         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22480         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22481         (Depends-on): Depend only on inttypes-incomplete.
22482         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22483
22484         inttypes: omit now-redundant strtoimax and strtoumax work
22485         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22486         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22487
22488         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22489         This supports apps that need pointers to strtoimax and strtoumax,
22490         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22491         nonexistent functions.  See
22492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22493         et seq.
22494         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22495         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22496         a macro.
22497         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22498
22499 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22500
22501         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22502
22503 2011-04-25  Bruno Haible  <bruno@clisp.org>
22504
22505         strtol, strtoul: Mark modules as obsolete.
22506         * modules/strtol (Status, Notice): New sections.
22507         * modules/strtoul (Status, Notice): New sections.
22508
22509 2011-04-25  Bruno Haible  <bruno@clisp.org>
22510
22511         strtod: Remove check for strtod, unless supporting old platforms.
22512         * modules/strtod-obsolete: New file.
22513         * m4/strtod-obsolete.m4: New file.
22514         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22515         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22516         * modules/strtod (Depends-on): Add strtod-obsolete.
22517         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22518
22519 2011-04-25  Bruno Haible  <bruno@clisp.org>
22520
22521         strcase: Make module obsolete.
22522         * modules/strcase (Status, Notice): New sections.
22523
22524 2011-04-25  Bruno Haible  <bruno@clisp.org>
22525
22526         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22527         * modules/dup2-obsolete: New file.
22528         * m4/dup2-obsolete.m4: New file.
22529         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22530         gl_FUNC_DUP2_OBSOLETE is not also defined.
22531         * modules/dup2 (Depends-on): Add dup2-obsolete.
22532         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22533
22534 2011-04-25  Bruno Haible  <bruno@clisp.org>
22535
22536         strnlen: Avoid memchr related link error on old obsolete platforms.
22537         * modules/memchr-obsolete: New file.
22538         * m4/memchr-obsolete.m4: New file.
22539         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22540         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22541         * modules/memchr (Depends-on): Add memchr-obsolete.
22542         * modules/strnlen (Depends-on): Likewise.
22543         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22544
22545 2011-04-25  Jim Meyering  <meyering@redhat.com>
22546
22547         maint.mk: makefile_at_at_check extend and clean up
22548         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22549         in addition to */Makefile.am.
22550         Exempt legitimate uses of @VAR@ notation, e.g.,
22551         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22552         Remove obsolete coreutils-specific comment.
22553         Prompted by discussion here:
22554         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22555
22556 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22557
22558         strtoul: remove dependency on strtol
22559         This is so that 'configure' need not check for strtol merely because
22560         the application needs strtoul.
22561         * modules/strtoul (Files): Add lib/strtol.c.
22562         (Depends-on): Remove strtol.
22563
22564         strtoull: remove dependency on strtoul
22565         This is like the strtoll change.
22566         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22567         (Depends-on): Remove strtoul.
22568
22569         strtoll: remove dependency on strtol
22570         This is so that 'configure' need not check for strtol merely because
22571         the application needs strtoll.
22572         * modules/strtoll (Files): Add lib/strtol.c.
22573         (Depends-on): Remove strtol.
22574
22575 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22576
22577         inttypes: Move some configure check to module 'imaxdiv'.
22578         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22579         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22580         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22581
22582 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22583
22584         inttypes: Move some configure check to module 'imaxabs'.
22585         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22586         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22587         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22588
22589 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22590
22591         inttypes: Remove configure tests that are not needed since 2009-12-31.
22592         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22593         gl_cv_header_working_inttypes_h.
22594
22595 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22596
22597         * modules/strnlen (Depends-on): Remove memchr.
22598         The strnlen implementation doesn't need the memchr module's fixes; see
22599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22600
22601         strtol: remove dependency on wchar
22602         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22603         * modules/strtol (Depends-on): Remove wchar.
22604
22605 2011-04-21  Eric Blake  <eblake@redhat.com>
22606
22607         passfd: fix test regression on Linux
22608         * modules/passfd-tests (configure.ac): Correct socketpair check.
22609
22610         passfd: speed up configure and drop unused code
22611         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22612         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22613         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22614         Instead of probing at configure for unix_scm_rights_bsd44_way,
22615         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22616         check to a struct member probe.
22617         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22618         (sendfd, recvfd): Update preprocessor checks.
22619         * modules/passfd (Files): Reflect rename, and drop unused file.
22620         (Depends-on): Drop unused dependency.
22621
22622         passfd: allow compilation on mingw
22623         * modules/sys_socket (Depends-on): Add sys_uio.
22624         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22625         iovec and a minimal struct msghdr.
22626         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22627         * tests/test-sys_socket.c (main): Enhance test.
22628         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22629         guaranteed to provide what we need.
22630         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22631         * modules/passfd-tests (Depends-on): Add sys_wait.
22632         * tests/test-passfd.c (main): Skip test on mingw, for now.
22633         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22634         partial 'struct msghdr' implementation.
22635
22636         sys_uio: new module
22637         * modules/sys_uio: New module.
22638         * modules/sys_uio-tests: Likewise.
22639         * lib/sys_uio.in.h: New file.
22640         * m4/sys_uio_h.m4: Likewise.
22641         * tests/test-sys_uio.c: Likewise.
22642         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22643         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22644
22645 2011-04-20  Jim Meyering  <meyering@redhat.com>
22646
22647         useless-if-before-free: avoid false-positive
22648         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22649         disjunct so that it too requires a terminating ";".  Without that,
22650         this script would identify as useless one statement from gcc that
22651         was not:
22652           if (aligned_ptr)
22653             free (((void **) aligned_ptr) [-1]);
22654
22655 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22656
22657         doc: update users.txt.
22658         * users.txt: Add barcode.
22659
22660 2011-04-19  Bruno Haible  <bruno@clisp.org>
22661
22662         ioctl: Remove link dependency on native Windows.
22663         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22664         (gl_close_fn, gl_ioctl_fn): New types.
22665         (struct fd_hook): Renamed from struct close_hook. Change type of
22666         private_close_fn field. Add private_ioctl_fn field.
22667         (close_hook_fn): Add parameter for primary close method.
22668         (execute_close_hooks, execute_all_close_hooks): Likewise.
22669         (ioctl_hook_fn): New type.
22670         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22671         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22672         argument.
22673         (unregister_fd_hook): Renamed from unregister_close_hook.
22674         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22675         Don't include <unistd.h>.
22676         (close): Remove undef.
22677         (anchor): Update.
22678         (execute_close_hooks): Add argument for primary close method.
22679         (execute_all_close_hooks): Likewise.
22680         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22681         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22682         argument. Allow each argument to be NULL.
22683         (unregister_fd_hook): Renamed from unregister_close_hook.
22684         * lib/close.c (rpl_close): Pass 'close' function pointer to
22685         execute_all_close_hooks.
22686         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22687         (primary_ioctl): New function.
22688         (ioctl): Don't call ioctlsocket here. Instead, call
22689         execute_all_ioctl_hooks.
22690         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22691         close method.
22692         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22693         (fd_sockets_hook): Renamed from close_sockets_hook.
22694         (gl_sockets_startup, gl_sockets_cleanup): Update.
22695         * modules/fd-hook: Renamed from modules/close-hook. Update.
22696         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22697         * modules/sockets (Depends-on): Likewise.
22698         * modules/ioctl (Depends-on): Add fd-hook.
22699         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22700         GNULIB_SOCKET.
22701
22702 2011-04-19  Bruno Haible  <bruno@clisp.org>
22703
22704         Move the support of O_NONBLOCK in open() to the 'open' module.
22705         * modules/nonblocking (Depends-on): Remove 'open'.
22706         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22707         gl_cv_have_open_O_NONBLOCK.
22708         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22709         O_NONBLOCK support.
22710         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22711
22712 2011-04-17  Bruno Haible  <bruno@clisp.org>
22713
22714         pipe2: Simplify code.
22715         * lib/pipe2.c (pipe2): Reduce code duplication.
22716
22717 2011-04-17  Bruno Haible  <bruno@clisp.org>
22718
22719         nonblocking: Add comment.
22720         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22721
22722 2011-04-17  Bruno Haible  <bruno@clisp.org>
22723
22724         nonblocking: Add tests for sockets.
22725         * tests/test-nonblocking-socket.sh: New file.
22726         * tests/test-nonblocking-socket-main.c: New file.
22727         * tests/test-nonblocking-socket-child.c: New file.
22728         * tests/test-nonblocking-socket.h: New file.
22729         * tests/socket-server.h: New file.
22730         * tests/socket-client.h: New file.
22731         * modules/nonblocking-socket-tests: New file.
22732         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22733
22734 2011-04-17  Bruno Haible  <bruno@clisp.org>
22735
22736         nonblocking: Add tests for pipes.
22737         * tests/test-nonblocking-pipe.sh: New file.
22738         * tests/test-nonblocking-pipe-main.c: New file.
22739         * tests/test-nonblocking-pipe-child.c: New file.
22740         * tests/test-nonblocking-pipe.h: New file.
22741         * tests/test-nonblocking-writer.h: New file.
22742         * tests/test-nonblocking-reader.h: New file.
22743         * tests/test-nonblocking-misc.h: New file.
22744         * modules/nonblocking-pipe-tests: New file.
22745         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22746
22747 2011-04-16  Bruno Haible  <bruno@clisp.org>
22748
22749         gettext: Clarify the needed programmer actions.
22750         * modules/gettext (Notice): New field.
22751         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22752
22753 2011-04-16  Bruno Haible  <bruno@clisp.org>
22754
22755         strchrnul: Tweak last commit.
22756         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22757         bug.
22758         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22759         as in _GL_FUNCDECL_SYS.
22760         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22761         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22762
22763 2011-04-15  Eric Blake  <eblake@redhat.com>
22764
22765         strchrnul: work around cygwin bug
22766         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22767         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22769         * modules/string (Makefile.am): Substitute it.
22770         * lib/string.in.h (strchrnul): Use it.
22771
22772 2011-04-15  Bruno Haible  <bruno@clisp.org>
22773
22774         Don't require lib/stdio-write.c when only module 'stdio' is used.
22775         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22776         invocation.
22777         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22778
22779 2011-04-14  Bruno Haible  <bruno@clisp.org>
22780
22781         Support non-blocking pipe I/O in read() on native Windows.
22782         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22783         (read): New declaration.
22784         * lib/read.c: New file.
22785         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22786         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22787         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22788         vscanf): New declarations.
22789         * lib/stdio-read.c: New file.
22790         * m4/read.m4: New file.
22791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22792         REPLACE_READ.
22793         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22794         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22795         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22796         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22797         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22798         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22799         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22800         * modules/read: New file.
22801         * modules/nonblocking (Files): Add lib/stdio-read.c.
22802         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22803         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22804         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22805         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22806         * modules/pread (Depends-on): Add read.
22807         * modules/safe-read (Depends-on): Likewise.
22808         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22809         gets, scanf, vfscanf, vscanf): Verify signatures.
22810         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22811         problem with non-blocking pipes.
22812         * doc/posix-functions/fgetc.texi: Likewise.
22813         * doc/posix-functions/fgets.texi: Likewise.
22814         * doc/posix-functions/fread.texi: Likewise.
22815         * doc/posix-functions/fscanf.texi: Likewise.
22816         * doc/posix-functions/getc.texi: Likewise.
22817         * doc/posix-functions/getchar.texi: Likewise.
22818         * doc/posix-functions/gets.texi: Likewise.
22819         * doc/posix-functions/scanf.texi: Likewise.
22820         * doc/posix-functions/vfscanf.texi: Likewise.
22821         * doc/posix-functions/vscanf.texi: Likewise.
22822
22823 2011-04-14  Bruno Haible  <bruno@clisp.org>
22824
22825         Support non-blocking pipe I/O in write() on native Windows.
22826         * lib/write.c (rpl_write): Split a write request that failed merely
22827         because the byte count was larger than the pipe buffer's size.
22828         * doc/posix-functions/write.texi: Mention the problem with large byte
22829         counts.
22830
22831 2011-04-14  Bruno Haible  <bruno@clisp.org>
22832
22833         wchar: Ensure that wchar_t gets defined on uClibc.
22834         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22835         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22836
22837 2011-04-13  Bruno Haible  <bruno@clisp.org>
22838
22839         safe-write, full-read: Avoid unnecessary compilation units.
22840         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22841         (Depends-on): Remove safe-read. Add ssize_t.
22842         * modules/full-read (Files): Add lib/full-write.c.
22843         (Depends-on): Add full-write.
22844
22845 2011-04-13  Bruno Haible  <bruno@clisp.org>
22846
22847         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22848         * modules/pwrite (Depends-on): Add 'write'.
22849
22850 2011-04-13  Bruno Haible  <bruno@clisp.org>
22851
22852         Support non-blocking pipe I/O in write() on native Windows.
22853         * lib/unistd.in.h (write): Enable replacement also if
22854         GNULIB_UNISTD_H_NONBLOCKING is 1.
22855         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22856         (rpl_write): When failing to write on a non-blocking pipe, change
22857         errno from ENOSPC to EAGAIN.
22858         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22859         putchar, puts, vfprintf, vprintf): Enable replacement also if
22860         GNULIB_STDIO_H_NONBLOCKING is 1.
22861         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22862         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
22863         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
22864         CALL_WITH_SIGPIPE_EMULATION.
22865         (CALL_WITH_SIGPIPE_EMULATION): Use them.
22866         * m4/nonblocking.m4: New file.
22867         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
22868         for non-blocking I/O support.
22869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22870         GNULIB_UNISTD_H_NONBLOCKING.
22871         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
22872         required for non-blocking I/O support.
22873         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
22874         * modules/nonblocking (Files): Add m4/nonblocking.m4,
22875         lib/stdio-write.c, m4/asm-underscore.m4.
22876         (Depends-on): Add stdio, unistd.
22877         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
22878         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
22879         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
22880         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
22881         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
22882         problem with non-blocking pipes.
22883         * doc/posix-functions/fputc.texi: Likewise.
22884         * doc/posix-functions/fputs.texi: Likewise.
22885         * doc/posix-functions/fwrite.texi: Likewise.
22886         * doc/posix-functions/printf.texi: Likewise.
22887         * doc/posix-functions/putc.texi: Likewise.
22888         * doc/posix-functions/putchar.texi: Likewise.
22889         * doc/posix-functions/puts.texi: Likewise.
22890         * doc/posix-functions/vfprintf.texi: Likewise.
22891         * doc/posix-functions/vprintf.texi: Likewise.
22892         * doc/posix-functions/write.texi: Likewise.
22893
22894 2011-04-10  Jim Meyering  <meyering@redhat.com>
22895
22896         maint.mk: prohibit doubled words
22897         Detect them also when they're separated by a newline.
22898         There are 3 ways to customize it:
22899           - disable the test on a per file basis, as usual with rules using
22900             $(VC_LIST_EXCEPT)
22901           - replace the default doubled-word-selecting regexp (affects all files)
22902           - ignore a particular file-vs-doubled-word match
22903         I nearly used that last one to ignore the "is is" match in
22904         coreutils' NEWS file, since the text was "ls -is is ..."
22905         To do that, I would have added this line to cfg.mk:
22906           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
22907         but it would have ignored any "is is" match in NEWS.
22908         Low probability, but still...
22909         Instead, I changed the text, slightly:
22910           -  ls -is is now consistent with ls -lis in ignoring values returned
22911           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22912         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22913         (prohibit_doubled_word_): Define.
22914         (sc_prohibit_doubled_word): New rule.
22915         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22916
22917 2011-04-10  Jim Meyering  <meyering@redhat.com>
22918
22919         maint: fix doubled-word typo in comment
22920         * m4/gethostname.m4: s/is is/it is/
22921         * m4/getdomainname.m4: Likewise.
22922
22923 2011-04-10  Jim Meyering  <meyering@redhat.com>
22924
22925         maint: remove doubled word: s/it it/it/
22926         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22927
22928 2011-04-10  Jim Meyering  <meyering@redhat.com>
22929
22930         maint.mk: remove useless semicolon and backslash
22931         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22932         semicolon and backslash.
22933
22934 2011-04-10  Bruno Haible  <bruno@clisp.org>
22935
22936         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22937         * modules/stdint-tests (Depends-on): Add wchar.
22938
22939 2011-04-10  Jim Meyering  <meyering@redhat.com>
22940
22941         maint: remove doubled words in comments, e.g., s/a a/a/
22942         * lib/strptime.c (day_of_the_week): s/the the/the/
22943         * tests/test-chown.h (test_chown): s/a a/a/
22944
22945         test-chown.h: correct a cast
22946         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22947         when the destination is a stat.st_gid.
22948
22949 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22950
22951         getaddrinfo: Fix test for sa_len member.
22952         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22953         include <sys/types.h> before <sys/socket.h>.
22954
22955 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22956
22957         maint: change "can not" to "cannot"
22958         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22959         boundaries.
22960
22961 2011-04-09  Jim Meyering  <meyering@redhat.com>
22962
22963         maint: change "a a" to "a"
22964         * tests/test-lchown.h (test_lchown): s/a a/a/
22965
22966         maint.mk: prohibit \<the the\>
22967         * top/maint.mk (sc_prohibit_the_the): New rule.
22968
22969         maint: fix "the the" in comment
22970         * lib/count-one-bits.h: s/the the/the/
22971
22972         maint: change "can not" to "cannot"
22973         But do not change the occurrences in maintain.texi or in
22974         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22975         * doc/gnulib-tool.texi: s/can not/cannot/
22976         * doc/posix-functions/accept.texi (accept): Likewise.
22977         * doc/posix-functions/socket.texi (socket): Likewise.
22978         * lib/mbrtowc.c: Likewise.
22979
22980         maint.mk: prohibit use of "can not"
22981         * top/maint.mk (sc_prohibit_can_not): New rule.
22982         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22983
22984 2011-04-09  Bruno Haible  <bruno@clisp.org>
22985
22986         careadlinkat: Guard against misuse of careadlinkatcwd.
22987         * lib/careadlinkat.c: Include <stdlib.h>.
22988         (careadlinkatcwd): Check that the fd argument is as expected.
22989
22990 2011-04-09  Bruno Haible  <bruno@clisp.org>
22991
22992         careadlinkat: Use common coding style.
22993         * lib/careadlinkat.c: Move gnulib includes after system includes.
22994
22995 2011-04-09  Bruno Haible  <bruno@clisp.org>
22996
22997         careadlinkat: Clarify specification.
22998         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22999         (careadlinkatcwd): Add comment.
23000         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23001
23002 2011-04-09  Bruno Haible  <bruno@clisp.org>
23003
23004         areadlinkat: Avoid link error on many platforms.
23005         * modules/areadlinkat (Depends-on): Add areadlink.
23006
23007 2011-04-09  Bruno Haible  <bruno@clisp.org>
23008
23009         allocator, careadlinkat: Fix double-inclusion guard.
23010         * lib/allocator.h: Fix double-inclusion guard.
23011         * lib/careadlinkat.h: Likewise.
23012
23013 2011-04-09  Bruno Haible  <bruno@clisp.org>
23014
23015         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23016         * lib/relocwrapper.c: Update dependencies hierarchy.
23017         * build-aux/install-reloc: Update list of files to be compiled.
23018         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23019         lib/allocator.[hc].
23020
23021 2011-04-08  Eric Blake  <eblake@redhat.com>
23022
23023         strftime: silence gnulib-tool warning
23024         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23025
23026 2011-04-08  Bruno Haible  <bruno@clisp.org>
23027
23028         verify: Fix syntax error with GCC 4.6 in C++ mode.
23029         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23030         (HAVE_STATIC_ASSERT): New macro.
23031         (verify_true, verify): Use 'static_assert' if it is supported and
23032         '_Static_assert' is not supported.
23033
23034 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23035
23036         allocator: New module.
23037         * modules/allocator, lib/allocator.c: New files.
23038         * lib/allocator.h (stdlib_allocator): New decl.
23039         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23040         Remove.  Do not include <stdlib.h>.
23041         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23042         * modules/careadlinkat (Files): Remove lib/allocator.h.
23043         (Depends-on): Add allocator.
23044
23045         stdlib: let modules use system malloc, realloc
23046         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23047         if !_GL_USE_STDLIB_ALLOC.
23048         (malloc, realloc): Limit this change to a smaller scope.
23049
23050         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23051         (malloc, realloc): Don't #undef; no longer needed.
23052         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23053         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23054         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23055         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23056         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23057         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23058         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23059         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23060
23061         careadlinkat: rename members to avoid problem
23062         * lib/allocator.h (struct allocator): Rename members from
23063         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23064         and realloc are #define'd.  Reported by Eric Blake in
23065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23066         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23067
23068 2011-04-08  Eric Blake  <eblake@redhat.com>
23069
23070         nonblocking: reduce dependency
23071         * tests/test-nonblocking.c: Only test sockets when in use.
23072         * modules/nonblocking-tests (Depends-on): Drop socket.
23073         (Makefile.am): Link even if sockets are not present.
23074         * modules/pipe2-tests (Makefile.am): Likewise.
23075         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23076
23077         pipe2: fix O_NONBLOCK support on mingw
23078         * modules/pipe2 (Depends-on): Add nonblocking.
23079         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23080         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23081         * tests/test-nonblocking.c (main): Likewise.
23082         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23083
23084         fcntl-h: fix O_ACCMODE on cygwin
23085         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23086         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23087
23088         pipe-filter: drop O_NONBLOCK workarounds
23089         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23090         * modules/pipe-filter-ii (Depends-on): Likewise.
23091         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23092
23093         nonblocking: provide O_NONBLOCK for mingw
23094         * modules/nonblocking (Depends-on): Add open.
23095         (configure.ac): Set new witness macro.
23096         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23097         * modules/fcntl-h (Makefile.am): Substitute it.
23098         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23099         nonblocking module is in use.
23100         * lib/nonblocking.c: Adjust portability test.
23101         * lib/open.c (open): Don't let native open see gnulib flag.
23102         * tests/test-fcntl-h.c (main): Enhance test.
23103         * tests/test-open.h (test_open): Likewise.
23104         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23105
23106         careadlinkat: fix compilation error on mingw
23107         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23108         within struct allocator.
23109
23110 2011-04-06  Eric Blake  <eblake@redhat.com>
23111
23112         binary-io: relicense under LGPLv2+
23113         * modules/binary-io (License): Relax to LGPLv2+.
23114         Requested for libvirt, and required by pipe2.
23115
23116 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23117
23118         verify: use _Static_assert if available
23119         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23120         (verify_true, verify): Use it if available.  This generates better
23121         diagnostics with GCC 4.6.0 and later.
23122
23123 2011-04-05  Bruno Haible  <bruno@clisp.org>
23124
23125         Remove leftover generated .h files after config.status changed.
23126
23127         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23128         GL_GENERATE_ALLOCA_H.
23129         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23130         GL_GENERATE_ALLOCA_H evaluates to false.
23131
23132         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23133         GL_GENERATE_ARGZ_H.
23134         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23135         evaluates to false.
23136
23137         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23138         GL_GENERATE_BYTESWAP_H.
23139         * modules/byteswap (Makefile.am): Remove byteswap.h if
23140         GL_GENERATE_BYTESWAP_H evaluates to false.
23141
23142         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23143         GL_GENERATE_ERRNO_H.
23144         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23145         evaluates to false.
23146
23147         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23148         GL_GENERATE_FLOAT_H.
23149         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23150         evaluates to false.
23151
23152         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23153         GL_GENERATE_FNMATCH_H.
23154         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23155         GL_GENERATE_FNMATCH_H evaluates to false.
23156
23157         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23158         GL_GENERATE_GLOB_H.
23159         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23160         evaluates to false.
23161
23162         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23163         automake conditional GL_GENERATE_ICONV_H.
23164         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23165         evaluates to false.
23166
23167         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23168         GL_GENERATE_NETINET_IN_H.
23169         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23170         GL_GENERATE_NETINET_IN_H evaluates to false.
23171
23172         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23173         conditional GL_GENERATE_PTHREAD_H.
23174         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23175         * modules/pthread (Makefile.am): Remove pthread.h if
23176         GL_GENERATE_PTHREAD_H evaluates to false.
23177
23178         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23179         GL_GENERATE_SCHED_H.
23180         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23181         evaluates to false.
23182
23183         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23184         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23185         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23186         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23187
23188         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23189         GL_GENERATE_STDARG_H.
23190         * modules/stdarg (Makefile.am): Remove stdarg.h if
23191         GL_GENERATE_STDARG_H evaluates to false.
23192
23193         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23194         GL_GENERATE_STDBOOL_H.
23195         * modules/stdbool (Makefile.am): Remove stdbool.h if
23196         GL_GENERATE_STDBOOL_H evaluates to false.
23197
23198         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23199         conditional GL_GENERATE_STDDEF_H.
23200         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23201         * modules/stddef (Makefile.am): Remove stddef.h if
23202         GL_GENERATE_STDDEF_H evaluates to false.
23203
23204         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23205         GL_GENERATE_STDINT_H.
23206         * modules/stdint (Makefile.am): Remove stdint.h if
23207         GL_GENERATE_STDINT_H evaluates to false.
23208
23209         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23210         GL_GENERATE_SYSEXITS_H.
23211         * modules/sysexits (Makefile.am): Remove sysexits.h if
23212         GL_GENERATE_SYSEXITS_H evaluates to false.
23213
23214         Reported by Karl Berry and Ralf Wildenhues.
23215
23216 2011-04-05  Bruno Haible  <bruno@clisp.org>
23217
23218         Ensure to rebuild generated .h files when config.status has changed.
23219         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23220         config.status.
23221         * modules/ctype (Makefile.am): Likewise.
23222         * modules/dirent (Makefile.am): Likewise.
23223         * modules/errno (Makefile.am): Likewise.
23224         * modules/fcntl-h (Makefile.am): Likewise.
23225         * modules/float (Makefile.am): Likewise.
23226         * modules/getopt-posix (Makefile.am): Likewise.
23227         * modules/glob (Makefile.am): Likewise.
23228         * modules/iconv-h (Makefile.am): Likewise.
23229         * modules/inttypes (Makefile.am): Likewise.
23230         * modules/langinfo (Makefile.am): Likewise.
23231         * modules/locale (Makefile.am): Likewise.
23232         * modules/math (Makefile.am): Likewise.
23233         * modules/netdb (Makefile.am): Likewise.
23234         * modules/netinet_in (Makefile.am): Likewise.
23235         * modules/poll-h (Makefile.am): Likewise.
23236         * modules/pthread (Makefile.am): Likewise.
23237         * modules/pty (Makefile.am): Likewise.
23238         * modules/sched (Makefile.am): Likewise.
23239         * modules/search (Makefile.am): Likewise.
23240         * modules/selinux-h (Makefile.am): Likewise.
23241         * modules/signal (Makefile.am): Likewise.
23242         * modules/spawn (Makefile.am): Likewise.
23243         * modules/stdarg (Makefile.am): Likewise.
23244         * modules/stdbool (Makefile.am): Likewise.
23245         * modules/stddef (Makefile.am): Likewise.
23246         * modules/stdint (Makefile.am): Likewise.
23247         * modules/stdio (Makefile.am): Likewise.
23248         * modules/stdlib (Makefile.am): Likewise.
23249         * modules/string (Makefile.am): Likewise.
23250         * modules/strings (Makefile.am): Likewise.
23251         * modules/sys_file (Makefile.am): Likewise.
23252         * modules/sys_ioctl (Makefile.am): Likewise.
23253         * modules/sys_select (Makefile.am): Likewise.
23254         * modules/sys_socket (Makefile.am): Likewise.
23255         * modules/sys_stat (Makefile.am): Likewise.
23256         * modules/sys_time (Makefile.am): Likewise.
23257         * modules/sys_times (Makefile.am): Likewise.
23258         * modules/sys_utsname (Makefile.am): Likewise.
23259         * modules/sys_wait (Makefile.am): Likewise.
23260         * modules/sysexits (Makefile.am): Likewise.
23261         * modules/termios (Makefile.am): Likewise.
23262         * modules/time (Makefile.am): Likewise.
23263         * modules/unistd (Makefile.am): Likewise.
23264         * modules/wchar (Makefile.am): Likewise.
23265         * modules/wctype-h (Makefile.am): Likewise.
23266         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23267
23268 2011-04-05  Bruno Haible  <bruno@clisp.org>
23269
23270         pipe2: Relicense under LGPLv2+.
23271         * modules/pipe2 (License): Change to LGPLv2+.
23272         Requested by Eric Blake, for libvirt.
23273
23274 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23275
23276         bootstrap: compute gnulib_extra_files after updating build_aux
23277         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23278         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23279
23280 2011-04-05  Eric Blake  <eblake@redhat.com>
23281
23282         bootstrap: preserve git whitelist item sorting
23283         * build-aux/bootstrap (sort_patterns): New function.
23284         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23285
23286 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23287
23288         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23289         sc_space_tab check.
23290
23291 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23292
23293         areadlink, areadlinkat: rewrite in terms of careadlinkat
23294         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23295         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23296         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23297         (malloc, realloc): Remove #undefs.
23298         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23299         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23300         readlink, ssize_t, stdint, unistd.
23301         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23302         areadlink, stdint.
23303
23304         careadlinkat: new module
23305         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23306         * modules/careadlinkat: New files, written by me with
23307         a review and feedback from Ben Pfaff in
23308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23309
23310 2011-04-01  Bruno Haible  <bruno@clisp.org>
23311
23312         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23313         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23314         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23315         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23316         Reported by Bruce Korb <bruce.korb@gmail.com>.
23317
23318 2011-04-01  Bruno Haible  <bruno@clisp.org>
23319
23320         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23321         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23322         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23323         * modules/wcpcpy (Depends-on): Add extensions.
23324         * modules/wcpncpy (Depends-on): Likewise.
23325         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23326         systems.
23327         * doc/posix-functions/wcpncpy.texi: Likewise.
23328         * doc/posix-functions/wcwidth.texi: Likewise.
23329
23330 2011-03-31  Eric Blake  <eblake@redhat.com>
23331
23332         nonblocking: fix mingw test failures
23333         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23334         non-blocking flag on regular file.
23335         (get_nonblocking_flag): Set errno on invalid fd.
23336         * tests/test-nonblocking.c (main): Avoid test failure on
23337         directories if fchdir is not active.
23338         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23339
23340 2011-03-31  Bruno Haible  <bruno@clisp.org>
23341
23342         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23343         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23344         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23345         Reported by Simon Josefsson <simon@josefsson.org>.
23346
23347 2011-03-31  Bruno Haible  <bruno@clisp.org>
23348         and Eric Blake  <eblake@redhat.com>
23349
23350         nonblocking: new module
23351         * modules/nonblocking: New module.
23352         * modules/nonblocking-tests: Likewise.
23353         * lib/nonblocking.h: New file.
23354         * lib/nonblocking.c: Likewise.
23355         * tests/test-nonblocking.c: New test.
23356         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23357
23358 2011-03-30  Bruno Haible  <bruno@clisp.org>
23359
23360         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23361         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23362         instead of 'printf' format for GCC >= 4.4.
23363         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23364         (fprintf, printf, vfprintf, vprintf): Declare with
23365         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23366         the system's vfprintf() function.
23367         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23368
23369 2011-03-30  Eric Blake  <eblake@redhat.com>
23370
23371         passfd: fix scoping bug
23372         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23373         before sendmsg/recvmsg.
23374
23375         passfd: standardize coding conventions
23376         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23377         can be learned at compile time.
23378         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23379         ifdefs.
23380         (sendfd, recvfd): Follow gnulib code conventions.
23381
23382         passfd: fix incorrect sendmsg arguments
23383         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23384         incorrect msg_controllen value.
23385         * modules/passfd-tests (Depends-on): Check for alarm.
23386         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23387         Reported by Bastien ROUCARIES.
23388
23389 2011-03-30  Bruno Haible  <bruno@clisp.org>
23390
23391         c-strcasestr: Relicense under LGPLv2+.
23392         * modules/c-strcasestr (License): Change to LGPLv2+.
23393         Requested by Eric Blake, for libvirt.
23394
23395 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23396
23397         * users.txt: Add libidn2.  Fix libtasn1 link.
23398
23399 2011-03-30  Jim Meyering  <meyering@redhat.com>
23400
23401         tests: readlink* ("",... fails with EINVAL on newer kernels
23402         readlink and readlinkat have typically failed with ENOENT for
23403         the invalid, empty file name,  "".  However, with the advent
23404         of linux-2.6.39, they fail with EINVAL.
23405         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23406         when operating on the empty file name.
23407         * tests/test-readlink.h (test_readlink): Likewise.
23408
23409 2011-03-29  Bruno Haible  <bruno@clisp.org>
23410
23411         Relicense some modules under LGPLv2+, for libidn2.
23412         * modules/array-mergesort (License): Change to LGPLv2+.
23413         * modules/c-strcaseeq (License): Likewise.
23414         * modules/striconveh (License): Likewise.
23415         * modules/striconveha (License): Likewise.
23416         * modules/uniconv/base (License): Likewise.
23417         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23418         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23419         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23420         * modules/unictype/base (License): Likewise.
23421         * modules/unictype/bidiclass-of (License): Likewise.
23422         * modules/unictype/category-M (License): Likewise.
23423         * modules/unictype/category-none (License): Likewise.
23424         * modules/unictype/category-of (License): Likewise.
23425         * modules/unictype/category-test (License): Likewise.
23426         * modules/unictype/category-test-withtable (License): Likewise.
23427         * modules/unictype/combining-class (License): Likewise.
23428         * modules/unictype/joiningtype-of (License): Likewise.
23429         * modules/unictype/scripts (License): Likewise.
23430         * modules/uninorm/base (License): Likewise.
23431         * modules/uninorm/canonical-decomposition (License): Likewise.
23432         * modules/uninorm/composition (License): Likewise.
23433         * modules/uninorm/decompose-internal (License): Likewise.
23434         * modules/uninorm/decomposition-table (License): Likewise.
23435         * modules/uninorm/nfc (License): Likewise.
23436         * modules/uninorm/nfd (License): Likewise.
23437         * modules/uninorm/u32-normalize (License): Likewise.
23438         * modules/unistr/base (License): Likewise.
23439         * modules/unistr/u32-cpy (License): Likewise.
23440         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23441         * modules/unistr/u32-to-u8 (License): Likewise.
23442         * modules/unistr/u32-uctomb (License): Likewise.
23443         * modules/unistr/u8-check (License): Likewise.
23444         * modules/unistr/u8-mblen (License): Likewise.
23445         * modules/unistr/u8-mbtouc (License): Likewise.
23446         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23447         * modules/unistr/u8-mbtoucr (License): Likewise.
23448         * modules/unistr/u8-prev (License): Likewise.
23449         * modules/unistr/u8-strlen (License): Likewise.
23450         * modules/unistr/u8-to-u32 (License): Likewise.
23451         * modules/unistr/u8-uctomb (License): Likewise.
23452         * modules/unitypes (License): Likewise.
23453         Requested by Simon Josefsson.
23454
23455 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23456
23457         lib-symbol-visibility: Add a notice.
23458         * modules/lib-symbol-visibility (Notice): New field.
23459
23460 2011-03-29  Bruno Haible  <bruno@clisp.org>
23461
23462         getaddrinfo: Doc fix.
23463         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23464         section "fixed in Gnulib".
23465
23466 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23467
23468         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23469         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23470
23471 2011-03-26  Bruno Haible  <bruno@clisp.org>
23472
23473         unictype/property-byname: Reduce the number of load-time relocations.
23474         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23475         (UC_PROPERTY_INDEX_*): New enumeration values.
23476         (uc_property_byname): Convert an index from the lookup table to an
23477         uc_property_t.
23478         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23479         values.
23480
23481 2011-03-26  Bruno Haible  <bruno@clisp.org>
23482
23483         unictype/property-byname: Allow omitted word separators and aliases.
23484         * lib/unictype/pr_byname.gperf: Add property names without word
23485         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23486         for 'space'.
23487
23488 2011-03-26  Bruno Haible  <bruno@clisp.org>
23489
23490         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23491         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23492         also hyphens to space.
23493         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23494         without spaces.
23495         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23496
23497 2011-03-26  Bruno Haible  <bruno@clisp.org>
23498
23499         unictype/joiningtype-byname: Recognize long names as well.
23500         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23501         a long name.
23502         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23503         unictype/joiningtype_byname.h.
23504         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23505         * lib/unictype/joiningtype_byname.gperf: New file.
23506         * modules/unictype/joiningtype-byname (Files): Add
23507         lib/unictype/joiningtype_byname.gperf.
23508         (Depends-on): Add gperf.
23509         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23510         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23511         long names.
23512
23513         Tests for module 'unictype/joiningtype-longname'.
23514         * modules/unictype/joiningtype-longname-tests: New file.
23515         * tests/unictype/test-joiningtype_longname.c: New file.
23516
23517         New module 'unictype/joiningtype-longname'.
23518         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23519         * lib/unictype/joiningtype_longname.c: New file.
23520         * modules/unictype/joiningtype-longname: New file.
23521         * modules/unictype/joiningtype-all (Depends-on): Add
23522         unictype/joiningtype-longname.
23523
23524 2011-03-26  Bruno Haible  <bruno@clisp.org>
23525
23526         unictype/bidiclass-byname: Recognize long names as well.
23527         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23528         name.
23529         * lib/unictype/bidi_byname.c: Include <string.h>,
23530         unictype/bidi_byname.h.
23531         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23532         * lib/unictype/bidi_byname.gperf: New file.
23533         * modules/unictype/bidiclass-byname (Files): Add
23534         lib/unictype/bidi_byname.gperf.
23535         (Depends-on): Add gperf.
23536         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23537         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23538         long names.
23539
23540         Tests for module 'unictype/bidiclass-longname'.
23541         * modules/unictype/bidiclass-longname-tests: New file.
23542         * tests/unictype/test-bidi_longname.c: New file.
23543
23544         New module 'unictype/bidiclass-longname'.
23545         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23546         * lib/unictype/bidi_longname.c: New file.
23547         * modules/unictype/bidiclass-longname: New file.
23548         * modules/unictype/bidiclass-all (Depends-on): Add
23549         unictype/bidiclass-longname.
23550
23551 2011-03-26  Bruno Haible  <bruno@clisp.org>
23552
23553         unictype/bidi*: Rename modules.
23554         * modules/unictype/bidiclass-all: Renamed from
23555         modules/unictype/bidicategory-all.
23556         * modules/unictype/bidiclass-name: Renamed from
23557         modules/unictype/bidiclass-name.
23558         (Description): Update.
23559         * modules/unictype/bidiclass-name-tests: Renamed from
23560         modules/unictype/bidicategory-name-tests.
23561         * modules/unictype/bidiclass-byname: Renamed from
23562         modules/unictype/bidicategory-byname.
23563         (Description): Update.
23564         * modules/unictype/bidiclass-byname-tests: Renamed from
23565         modules/unictype/bidicategory-byname-tests.
23566         * modules/unictype/bidiclass-of: Renamed from
23567         modules/unictype/bidicategory-of.
23568         (Description): Update.
23569         * modules/unictype/bidiclass-of-tests: Renamed from
23570         modules/unictype/bidicategory-of-tests.
23571         * modules/unictype/bidiclass-test: Renamed from
23572         modules/unictype/bidicategory-test.
23573         (Description): Update.
23574         * modules/unictype/bidiclass-test-tests: Renamed from
23575         modules/unictype/bidicategory-test-tests.
23576         * modules/unictype/bidicategory-all: New file, a simple redirection.
23577         * modules/unictype/bidicategory-name: Likewise.
23578         * modules/unictype/bidicategory-byname: Likewise.
23579         * modules/unictype/bidicategory-of: Likewise.
23580         * modules/unictype/bidicategory-test: Likewise.
23581         * modules/unictype/property-bidi-* (Dependencies): Update.
23582         * lib/unictype/bidi_*.c: Update comment.
23583
23584 2011-03-26  Bruno Haible  <bruno@clisp.org>
23585
23586         unictype/bidi*: Rename functions, part 2.
23587         * modules/unictype/bidicategory-name (configure.ac): Update required
23588         libunistring version.
23589         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23590
23591 2011-03-25  Bruno Haible  <bruno@clisp.org>
23592
23593         New module 'unictype/combining-class-all'.
23594         * modules/unictype/combining-class-all: New file.
23595
23596         Tests for module 'unictype/combining-class-byname'.
23597         * modules/unictype/combining-class-byname-tests: New file.
23598         * tests/unictype/test-combiningclass_byname.c: New file.
23599
23600         New module 'unictype/combining-class-byname'.
23601         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23602         * lib/unictype/combiningclass_byname.c: New file.
23603         * lib/unictype/combiningclass_byname.gperf: New file.
23604         * modules/unictype/combining-class-byname: New file.
23605
23606         Tests for module 'unictype/combining-class-longname'.
23607         * modules/unictype/combining-class-longname-tests: New file.
23608         * tests/unictype/test-combiningclass_longname.c: New file.
23609
23610         New module 'unictype/combining-class-longname'.
23611         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23612         * lib/unictype/combiningclass_longname.c: New file.
23613         * modules/unictype/combining-class-longname: New file.
23614
23615         Tests for module 'unictype/combining-class-name'.
23616         * modules/unictype/combining-class-name-tests: New file.
23617         * tests/unictype/test-combiningclass_name.c: New file.
23618
23619         New module 'unictype/combining-class-name'.
23620         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23621         * lib/unictype/combiningclass_name.c: New file.
23622         * modules/unictype/combining-class-name: New file.
23623
23624 2011-03-25  Bruno Haible  <bruno@clisp.org>
23625
23626         unictype/combining-class: Rename source files.
23627         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23628         of unictype/combining.h.
23629         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23630         Update.
23631         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23632         * modules/unictype/combining-class (Description): Fix.
23633         (Files, Makefile.am): Update.
23634         * tests/unictype/test-combiningclass.c: Renamed from
23635         tests/unictype/test-combining.c.
23636         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23637
23638 2011-03-25  Bruno Haible  <bruno@clisp.org>
23639
23640         unictype: Update list of canonical combining classes.
23641         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23642
23643 2011-03-25  Bruno Haible  <bruno@clisp.org>
23644
23645         unictype/category-byname: Recognize long names as well.
23646         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23647         a long name.
23648         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23649         unictype/categ_byname.h.
23650         (UC_CATEGORY_INDEX_*): New enumeration values.
23651         (uc_general_category_byname): Use uc_general_category_lookup and
23652         convert from index to value.
23653         * lib/unictype/categ_byname.gperf: New file.
23654         * modules/unictype/category-byname (Files): Add
23655         lib/unictype/categ_byname.gperf.
23656         (Depends-on): Add gperf.
23657         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23658         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23659         long names.
23660
23661         Tests for module 'unictype/category-longname'.
23662         * modules/unictype/category-longname-tests: New file.
23663         * tests/unictype/test-categ_longname.c: New file.
23664
23665         New module 'unictype/category-longname'.
23666         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23667         * lib/unictype/categ_longname.c: New file.
23668         * modules/unictype/category-longname: New file.
23669         * modules/unictype/category-all (Depends-on): Add it.
23670
23671 2011-03-25  Bruno Haible  <bruno@clisp.org>
23672
23673         Tests for module 'unictype/category-LC'.
23674         * modules/unictype/category-LC-tests: New file.
23675         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23676
23677         New module 'unictype/category-LC'.
23678         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23679         (UC_CATEGORY_LC): New declaration.
23680         (UC_CASED_LETTER): New macro.
23681         * lib/gen-uni-tables.c (is_category_LC): New function.
23682         (output_categories): Also handle category LC.
23683         (UC_CATEGORY_MASK_LC): New enumeration value.
23684         (general_category_byname): Also handle category LC.
23685         * lib/unictype/categ_LC.c: New file.
23686         * lib/unictype/categ_LC.h: New file, automatically generated.
23687         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23688         category LC.
23689         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23690         * modules/unictype/category-LC: New file.
23691         * modules/unictype/category-byname (Depends-on): Add
23692         unictype/category-LC.
23693         * modules/unictype/category-all (Depends-on): Likewise.
23694
23695 2011-03-25  Eric Blake  <eblake@redhat.com>
23696
23697         xmalloc: revert yesterday's regression
23698         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23699         realloc's underlying behavior (allowing allocation of zero-size
23700         objects, especially if malloc-gnu is also in use).
23701
23702 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23703
23704         maint.mk: add missing version to VC-tag
23705         * top/maint.mk: git tag was missing actual tag name; add it.
23706
23707         valgrind: do leak checking, and exit with code 1 on error (not 0)
23708         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23709         to VALGRIND.
23710
23711 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23712
23713         posix-modules: say what it does.
23714         * posix-modules: Add a line to the --help output saying what it does.
23715
23716 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23717
23718         xmalloc: Do not leak if underlying realloc is C99 compatible.
23719         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23720         This avoids a leak on C99-based systems.  See
23721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23722
23723 2011-03-24  Eric Blake  <eblake@redhat.com>
23724
23725         realloc: document portability problem
23726         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23727         passing 0 size to realloc.
23728
23729 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23730
23731         doc: update users.txt
23732         * users.txt: Add cvsps, tmpwatch
23733
23734 2011-03-23  Matt Rice  <ratmice@gmail.com>
23735
23736         doc: update users.txt
23737         * users.txt: Add gdb.
23738
23739 2011-03-23  Jim Meyering  <meyering@redhat.com>
23740
23741         doc: update users.txt
23742         Looking through matches up to the following URL (there are still
23743         several more pages), I found several projects that use gnulib:
23744         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23745         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23746         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23747
23748 2011-03-22  Bruno Haible  <bruno@clisp.org>
23749
23750         unictype/bidi*: Rename functions.
23751         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23752         uc_bidi_class, uc_is_bidi_class): New declarations.
23753         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23754         uc_bidi_category_byname.
23755         (uc_bidi_category_byname): New function.
23756         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23757         u_bidi_category_name.
23758         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23759         (uc_bidi_category_name): New function.
23760         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23761         uc_bidi_category.
23762         (uc_bidi_category): New function.
23763         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23764         uc_is_bidi_category. Invoke uc_bidi_class.
23765         (uc_is_bidi_category): New function.
23766         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23767         instead of uc_bidi_category_byname.
23768         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23769         instead of uc_bidi_category_name.
23770         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23771         uc_bidi_category.
23772         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23773         instead of uc_is_bidi_category.
23774
23775 2011-03-21  Bruno Haible  <bruno@clisp.org>
23776
23777         New module 'unictype/joininggroup-all'.
23778         * modules/unictype/joininggroup-all: New file.
23779
23780         Tests for module 'unictype/joininggroup-of'.
23781         * modules/unictype/joininggroup-of-tests: New file.
23782         * tests/unictype/test-joininggroup_of.c: New file.
23783         * tests/unictype/test-joininggroup_of.h: New file, automatically
23784         generated by gen-uni-tables.
23785
23786         New module 'unictype/joininggroup-of'.
23787         * modules/unictype/joininggroup-of: New file.
23788         * lib/unictype/joininggroup_of.c: New file.
23789         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23790         gen-uni-tables.
23791
23792         Tests for module 'unictype/joininggroup-byname'.
23793         * modules/unictype/joininggroup-byname-tests: New file.
23794         * tests/unictype/test-joininggroup_byname.c: New file.
23795
23796         New module 'unictype/joininggroup-byname'.
23797         * modules/unictype/joininggroup-byname: New file.
23798         * lib/unictype/joininggroup_byname.c: New file.
23799         * lib/unictype/joininggroup_byname.gperf: New file.
23800
23801         Tests for module 'unictype/joininggroup-name'.
23802         * modules/unictype/joininggroup-name-tests: New file.
23803         * tests/unictype/test-joininggroup_name.c: New file.
23804
23805         New module 'unictype/joininggroup-name'.
23806         * modules/unictype/joininggroup-name: New file.
23807         * lib/unictype/joininggroup_name.c: New file.
23808         * lib/unictype/joininggroup_name.h: New file.
23809
23810         New module 'unictype/joiningtype-all'.
23811         * modules/unictype/joiningtype-all: New file.
23812
23813         Tests for module 'unictype/joiningtype-of'.
23814         * modules/unictype/joiningtype-of-tests: New file.
23815         * tests/unictype/test-joiningtype_of.c: New file.
23816         * tests/unictype/test-joiningtype_of.h: New file, automatically
23817         generated by gen-uni-tables.
23818
23819         New module 'unictype/joiningtype-of'.
23820         * modules/unictype/joiningtype-of: New file.
23821         * lib/unictype/joiningtype_of.c: New file.
23822         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23823         gen-uni-tables.
23824
23825         Tests for module 'unictype/joiningtype-byname'.
23826         * modules/unictype/joiningtype-byname-tests: New file.
23827         * tests/unictype/test-joiningtype_byname.c: New file.
23828
23829         New module 'unictype/joiningtype-byname'.
23830         * modules/unictype/joiningtype-byname: New file.
23831         * lib/unictype/joiningtype_byname.c: New file.
23832
23833         Tests for module 'unictype/joiningtype-name'.
23834         * modules/unictype/joiningtype-name-tests: New file.
23835         * tests/unictype/test-joiningtype_name.c: New file.
23836
23837         New module 'unictype/joiningtype-name'.
23838         * modules/unictype/joiningtype-name: New file.
23839         * lib/unictype/joiningtype_name.c: New file.
23840
23841         unictype: Add support for Arabic shaping properties.
23842         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23843         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23844         declarations.
23845         (UC_JOINING_GROUP_*): New enumeration values.
23846         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23847         declarations.
23848         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23849         (unicode_joining_type): New variable.
23850         (UC_JOINING_GROUP_*): New enumeration values.
23851         (unicode_joining_group): New variable.
23852         (fill_arabicshaping, joining_type_as_c_identifier,
23853         output_joining_type_test, output_joining_type,
23854         joining_group_as_c_identifier, output_joining_group_test,
23855         output_joining_group): New functions.
23856         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23857         fill_arabicshaping and output_joining_type_test, output_joining_type,
23858         output_joining_group_test, output_joining_group.
23859         Reported by Simon Josefsson.
23860
23861 2011-03-21  Jim Meyering  <meyering@redhat.com>
23862
23863         strftime: fix a bug in yesterday's change
23864         * lib/strftime.c (add): Accommodate width's initial value of -1.
23865         Otherwise, nstrftime would copy uninitialized data into
23866         the result buffer.
23867
23868 2011-03-21  Jim Meyering  <meyering@redhat.com>
23869
23870         tests: add strftime-tests module
23871         * tests/test-strftime.c: New file.
23872         * modules/strftime-tests: New module.
23873
23874 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23875
23876         strftime: don't assume a byte count fits in 'int'
23877         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
23878         found this problem by static analysis, using gcc -Wstrict-overflow
23879         (GCC 4.5.2, x86-64).  This reported an optimization that depended
23880         on an integer overflow having undefined behavior, but it turns out
23881         that the argument is a size, which might not fit in 'int' anyway,
23882
23883 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23884
23885         stdio: don't require ignore_value around fwrite
23886
23887         This patch works around libc bug 11959
23888         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
23889         Without this patch, applications must often write
23890         ignore_value (fwrite (...)) even though the ignore_value is
23891         not helpful here.  It's common to write many objects, using
23892         fwrite/printf/etc., and then use ferror to detect output error.
23893
23894         I considered making this patch optional, but decided against it,
23895         because libc is obviously being inconsistent here: there is no
23896         reason libc should insist that user code must inspect fwrite
23897         return's value without also insisting that it inspect printf's,
23898         putchar's, etc.  If user code wants to have a strict style where
23899         all these functions' values are checked (so that ferror need not
23900         be checked), we could add support for that style in a new gnulib
23901         module, but in the meantime it's better to be consistent and to
23902         support common usage.
23903
23904         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
23905         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
23906         that we are compiling in checking mode, and if not C++, and
23907         if not already wrapping fwrite for some other reason.
23908         (fwrite): #define to rpl_fwrite if the latter is defined.
23909
23910 2011-03-20  Bruno Haible  <bruno@clisp.org>
23911
23912         verror: Fix compilation error introduced on 2011-02-13.
23913         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23914         instead of __attribute__.
23915         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23916
23917 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23918             Bruno Haible  <bruno@clisp.org>
23919
23920         socklen: do not depend on sys_socket
23921         While trying to modify Emacs to use gnulib's socklen module,
23922         I discovered a circular dependency: socklen depends on sys_socket
23923         and vice versa.  Emacs can use socklen, but it does not need
23924         sys_socket because it has its own substitute for sys/socket.h.
23925         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23926         gl_TYPE_SOCKLEN_T.
23927         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23928         gl_PREREQ_SYS_H_SOCKET.
23929         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23930         gl_PREREQ_SYS_H_SOCKET.
23931         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23932         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23933         * modules/socklen (Depends-on): Do not depend on sys_socket.
23934         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23935
23936 2011-03-20  Jim Meyering  <meyering@redhat.com>
23937
23938         maint.mk: sort file names *after* new transformation
23939         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23940         prefix would have led to an unwarranted failure in GNU parted.
23941         Sort after that transformation.
23942
23943 2011-03-19  Jim Meyering  <meyering@redhat.com>
23944
23945         maint.mk: fix po-file syntax-check rule
23946         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23947         Patch by Bruno Haible.
23948
23949 2011-03-19  Bruno Haible  <bruno@clisp.org>
23950
23951         socklen: Update comment.
23952         * m4/socklen.m4: Update comment about platforms.
23953
23954 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23955             Bruno Haible  <bruno@clisp.org>
23956
23957         inet_ntop, inet_pton: Simplify.
23958         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23959         documented to provide socklen_t and we already depend on sys_socket.
23960         * modules/inet_pton (Depends-on): Likewise.
23961         * lib/arpa_inet.in.h: Adjust comment.
23962
23963 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23964             Bruno Haible  <bruno@clisp.org>
23965
23966         netdb: Simplify.
23967         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23968         documented to provide socklen_t and we already depend on sys_socket.
23969         * lib/netdb.in.h: Adjust comment.
23970
23971 2011-03-19  Bruno Haible  <bruno@clisp.org>
23972
23973         sys_socket, netdb: Document problem with socklen_t.
23974         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23975         platforms.
23976         * doc/posix-headers/netdb.texi: Likewise.
23977
23978 2011-03-18  Eric Blake  <eblake@redhat.com>
23979
23980         maint.mk: let po check work in VPATH build
23981         * top/maint.mk (po_file): Allow cfg.mk override.
23982         (sc_po_check): Allow VPATH use.
23983         Reported by Jiri Denemark.
23984
23985 2011-03-16  Jim Meyering  <meyering@redhat.com>
23986
23987         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23988         Before, you would have had to create one .x-sc_ file per rule in order
23989         to exempt offending files.  Now, you may instead use a Make variable --
23990         usually defined in cfg.mk -- whose name identifies the affected rule.
23991         * top/maint.mk (_sc_excl): Define.
23992         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23993         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23994
23995 2011-03-13  Bruno Haible  <bruno@clisp.org>
23996
23997         ignore-value tests: Avoid warnings.
23998         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23999         empty for gcc < 3.4.
24000
24001 2011-03-13  Bruno Haible  <bruno@clisp.org>
24002
24003         passfd: Fix link error on Solaris.
24004         * modules/passfd (Description): Correct.
24005         (Depends-on): Add socketlib.
24006         (Link): New section.
24007         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24008
24009 2011-03-13  Bruno Haible  <bruno@clisp.org>
24010
24011         passfd: Fix link error on AIX 5.2.
24012         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24013
24014 2011-03-13  Bruno Haible  <bruno@clisp.org>
24015
24016         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24017         * lib/sys_socket.in.h: Include <stddef.h>.
24018         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24019         CMSG_FIRSTHDR. Remove unused variable.
24020
24021 2011-03-13  Bruno Haible  <bruno@clisp.org>
24022
24023         passfd: Fix compilation error on OpenBSD.
24024         * lib/passfd.c: Include <sys/uio.h>.
24025
24026 2011-03-13  Bruno Haible  <bruno@clisp.org>
24027
24028         passfd test: Fix warnings.
24029         * tests/test-passfd.c: Include <sys/wait.h>.
24030         (main): Fix typo.
24031
24032 2011-03-13  Bruno Haible  <bruno@clisp.org>
24033
24034         passfd module, part 4, tweaks.
24035         * tests/test-passfd.c: Reorder includes.
24036         (main): Fix perror and printf calls.
24037
24038 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24039
24040         passfd module, part 4.
24041         * modules/passfd-tests: New file.
24042         * tests/test-passfd.c: New file.
24043
24044 2011-03-13  Jim Meyering  <meyering@redhat.com>
24045
24046         Makefile: rely on GNU make; derive syntax-check rule names
24047         Rather than requiring that each sc_ rule be listed as a dependent
24048         of "check", use features of GNU make to derive the list.
24049         * Makefile (syntax-check-rules): Define.
24050         (check): Depend on the new variable, not the hard-coded list.
24051
24052 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24053             Bruno Haible  <bruno@clisp.org>
24054
24055         passfd module, part 3.
24056         * lib/passfd.h (recvfd): Add a flags argument.
24057         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24058         (recvfd): Add a flags argument.
24059         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24060         exists.
24061         * modules/passfd (Depends-on): Add cloexec.
24062         Suggested by Eric Blake.
24063
24064 2011-03-13  Bruno Haible  <bruno@clisp.org>
24065
24066         passfd module, part 2, tweaks.
24067         * modules/passfd (Files): Reorder.
24068         (Depends-on): Remove errno.
24069         (Include): Remove <sys/socket.h>, <sys/un.h>.
24070         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24071         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24072         specification header. Include <sys/socket.h> always. Don't include
24073         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24074         (sendfd): Clarify that it sets errno when it fails.
24075         (recvfd): Fix specification.
24076
24077 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24078
24079         passfd module, part 2.
24080         * modules/passfd: New file.
24081         * lib/passfd.h: New file.
24082         * lib/passfd.c: New file.
24083
24084 2011-03-12  Bruno Haible  <bruno@clisp.org>
24085
24086         wcswidth, mbswidth: Avoid integer overflow.
24087         * lib/wcswidth.c: Include <limits.h>.
24088         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24089         * lib/mbswidth.c: Include <limits.h>.
24090         (mbsnwidth): Avoid 'int' overflow.
24091         Reported by Jim Meyering.
24092
24093 2011-03-12  Bruno Haible  <bruno@clisp.org>
24094
24095         futimens, utimensat: Avoid endless recursion on Solaris 10.
24096         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24097         Solaris.
24098         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24099         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24100
24101 2011-03-11  Jim Meyering  <meyering@redhat.com>
24102
24103         maint.mk: relax a regexp to accommodate other formatting styles
24104         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24105         between "ngettext" and the following "(".
24106
24107 2011-03-11  Pádraig Brady <P@draigBrady.com>
24108
24109         maint.mk: suppress a false positive warning
24110         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24111         diagnostics are marked with ngettext.
24112
24113 2011-03-10  Eric Blake  <eblake@redhat.com>
24114
24115         wchar: add explicit dependencies, for Tru64
24116         * modules/mbmemcasecoll (Depends-on): Add wchar.
24117         * modules/mbtowc (Depends-on): Likewise.
24118         * modules/vasnprintf (Depends-on): Likewise.
24119         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24120         * modules/wctomb (Depends-on): Likewise.
24121         Reported by Peter O'Gorman.
24122
24123 2011-03-08  Bruno Haible  <bruno@clisp.org>
24124
24125         passfd module, part 1, tweaks.
24126         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24127         Improve indentation. Improve AC_MSG_CHECKING messages.
24128         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24129         gl_SOCKET_FAMILIES.
24130
24131 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24132
24133         passfd module, part 1.
24134         * m4/afunix.m4: New file.
24135         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24136         sockets.
24137
24138 2011-03-08  Bruno Haible  <bruno@clisp.org>
24139
24140         regex-quote: New API.
24141         * lib/regex-quote.h: Include <stdbool.h>.
24142         (struct regex_quote_spec): New type.
24143         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24144         New declarations.
24145         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24146         'const struct regex_quote_spec *' argument.
24147         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24148         (pcre_special): New constant.
24149         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24150         New functions.
24151         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24152         'const struct regex_quote_spec *' argument.
24153         * modules/regex-quote (Depends-on): Add stdbool.
24154         * tests/test-regex-quote.c (check): Update for new API. Add test for
24155         anchored results.
24156         * NEWS: Mention the API change.
24157         Reported by Reuben Thomas and Eric Blake.
24158
24159 2011-03-06  Bruno Haible  <bruno@clisp.org>
24160
24161         regex-quote: Fix creation of POSIX extended regular expressions.
24162         * lib/regex-quote.c (ere_special): Add grouping and alternation
24163         operators.
24164
24165 2011-03-05  Bruno Haible  <bruno@clisp.org>
24166
24167         doc: Improve doc regarding autopoint vs. gnulib.
24168         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24169         disable autopoint while running autoreconf.
24170         Suggested by Ralf Wildenhues.
24171
24172 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24173
24174         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24175         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24176
24177 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24178
24179         parse-duration: remove xalloc.h dependency
24180         * lib/parse-duration.c (parse_period): handle NULL return from
24181         strdup instead of calling xstrdup().
24182         * modules/parse-duration: remove "xalloc" dependency
24183
24184 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24185
24186         bootstrap: honor m4_base when running aclocal
24187         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24188
24189 2011-03-02  Jim Meyering  <meyering@redhat.com>
24190
24191         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24192         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24193         on request from Matt Booth.
24194
24195 2011-03-01  Eric Blake  <eblake@redhat.com>
24196
24197         test-link: work on Hurd
24198         * tests/test-link.h (test_link): Hurd rejects linking directories
24199         with EISDIR instead of the POSIX-mandated EPERM.
24200
24201 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24202
24203         stdio: simplify by moving files to printf-posix, sigpipe
24204         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24205         since this symbol is needed only if printf is replaced.
24206         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24207         Require gl_ASM_SYMBOL_PREFIX.
24208         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24209         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24210         (Depends-on): Add 'raise'.
24211         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24212         * modules/stdio (Files): Remove lib/stdio-write.c,
24213         m4/asm-underscore.m4.
24214         (Depends-on): Remove 'raise'.
24215
24216         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24217         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24218         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24219         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24220
24221 2011-02-28  Bruno Haible  <bruno@clisp.org>
24222
24223         localcharset: Assume ANSI C behaviour of free().
24224         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24225         calling free().
24226         Suggested by Simon Josefsson <simon@josefsson.org>.
24227
24228 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24229             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24230             Bruno Haible  <bruno@clisp.org>  (tiny change)
24231
24232         On Cygwin, use /proc file system instead of win32 API.
24233         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24234         Win32 file names.
24235         (DllMain): Simplify by removing Cygwin specific code.
24236         (find_shared_library_fullname): Use Linux specific implementation also
24237         for Cygwin.
24238         (get_shared_library_fullname): Update accordingly.
24239         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24240         Win32 file names.
24241         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24242         Cygwin specific code.
24243
24244 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24245             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24246
24247         Fix OpenMP flag detection for various Fortran compilers.
24248         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24249         OpenMP-conditional compilation construct, to force compile
24250         failure with missing OpenMP flag.
24251         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24252
24253 2011-02-25  Eric Blake  <eblake@redhat.com>
24254
24255         strstr: expand test coverage
24256         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24257         compilation.
24258         * tests/test-memmem.c (main): Duplicate tests.
24259         * tests/test-strcasestr.c (main): Likewise.
24260         * tests/test-c-strcasestr.c (main): Likewise.
24261
24262 2011-02-25  Jim Meyering  <meyering@redhat.com>
24263
24264         maint.mk: detect missing-NL-at-EOF, too
24265         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24266         it also detects when a file lacks a newline at EOF.
24267         (require_exactly_one_NL_at_EOF_): Renamed from
24268         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24269         since people may well have .x-sc_... file names tied to the
24270         existing name.  Suggested by Eric Blake.
24271
24272 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24273
24274         dirname: move m4/dos.m4 functionality into lib/dosname.h
24275
24276         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24277         extracts symbols from it, puts them into config.h; but it's much
24278         easier to use the symbols directly.  filename.h already does this,
24279         but it disagrees with dos.m4 in some respects.  This patch
24280         introduces a different include file dosname.h that packages up
24281         dos.m4, and then later we can work on merging filename.h and
24282         dosname.h.  Applications that need only the easy-to-configure
24283         symbols should consider including dosname.h rather than dirname.h.
24284         * NEWS: Mention incompatible changes.
24285         * m4/dos.m4: Remove.
24286         * lib/dosname.h, modules/dosname: New files.
24287         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24288         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24289         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24290         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24291         Include dosname.h, not dirname.h.
24292         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24293         Include dosname.h, for definitions of symbols like ISSLASH
24294         that used to be in config.h.
24295         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24296         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24297         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24298         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24299         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24300         * modules/rmdir (Files): Likewise.
24301         * modules/stat (Files): Likewise.
24302         * modules/unlink (Files): Likewise.
24303         * modules/dirname-lgpl (Depends-on): Add dosname.
24304         * modules/lstat (Depends-on): Likewise.
24305         * modules/openat (Depends-on): Likewise.
24306         * modules/rmdir (Depends-on): Likewise.
24307         * modules/savewd (Depends-on): Likewise.
24308         * modules/stat (Depends-on): Likewise.
24309         * modules/unlink (Depends-on): Likewise.
24310         * modules/openat (Depends-on): Remove dirname-lgpl.
24311         * modules/savewd (Depends-on): Likewise.
24312         * tests/test-dirname.c: Do not use removed symbols like
24313         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24314         the remaining symbols, e.g., ISSLASH ('\\').
24315
24316 2011-02-25  Eric Blake  <eblake@redhat.com>
24317
24318         strstr: revert patches that introduced bug and pessimization
24319         * lib/str-two-way.h: Add another reference.
24320         (two_way_short_needle, two_way_long_needle): Revert changes from
24321         2011-02-24; they pessimize search speed.
24322         (critical_factorization): Partially revert changes from
24323         2010-06-22; they violate the requirement that the left half of the
24324         needle be smaller than the period of the needle.
24325
24326 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24327
24328         filenamecat: remove unnecessary dependency on dirname-lgpl
24329         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24330         is no direct dependency, just an indirect one via filenamecat-lgpl.
24331
24332         remove: remove unnecessary use of m4/dos.m4
24333         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24334         * modules/remove (FILES): Remove m4/dos.m4.
24335
24336         * lib/openat-proc.c: Don't include dirname.h; not needed.
24337
24338         backupfile: remove unnecessary use of m4/dos.m4
24339         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24340         of its symbols are used by the backupfile code.  backupfile.c does
24341         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24342         for the rare case of programs that want all their backup file
24343         names to live within 8+3 limits, and dos.m4 doesn't address that.
24344         * modules/backupfile (Files): Remove m4/dos.m4.
24345
24346 2011-02-24  Jim Meyering  <meyering@redhat.com>
24347
24348         strstr: fix a bug whereby strstr would mistakenly return NULL
24349         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24350         in period calculation.
24351         (two_way_long_needle): Likewise.
24352         The original problem was reported by Mike Stump in
24353         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24354         Ralf Wildenhues provided the short needle and haystack.
24355         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24356         Add a more involved test to trigger the bug in two_way_long_needle.
24357
24358 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24359
24360         gnulib-tool: remove use of bold display in help screen
24361         * gnulib-tool (func_usage): Do not use bold display anymore in the
24362         help screen.  That was just meant to be a temporary emphasis for a
24363         backward-incompatible change.
24364
24365 2011-02-23  Bruno Haible  <bruno@clisp.org>
24366
24367         Fix misindentation of preprocessor directives.
24368         * lib/argp-namefrob.h: Reindent preprocessor directives.
24369         * lib/getopt_int.h (struct _getopt_data): Likewise.
24370         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24371         * lib/vasnprintf.c (decode_long_double): Likewise.
24372         * tests/test-argmatch.c: Insert blank lines, for clarity.
24373         * tests/test-exclude.c: Likewise.
24374
24375 2011-02-22  Bruno Haible  <bruno@clisp.org>
24376
24377         ioctl: Fix for MacOS X in 64-bit mode.
24378         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24379         value.
24380         Suggested by Eric Blake.
24381         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24382
24383 2011-02-22  Jim Meyering  <meyering@redhat.com>
24384
24385         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24386         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24387         in lib/.
24388
24389 2011-02-22  Eric Blake  <eblake@redhat.com>
24390
24391         maint: avoid any CDPATH issue
24392         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24393
24394         maint: adjust cpp indentation for my modules, as well
24395         * Makefile (sc_cpp_indent_check): Add my name.
24396         * lib/fbufmode.c: Filter through cppi.
24397         * lib/fpurge.c: Likewise.
24398         * lib/freadable.c: Likewise.
24399         * lib/freading.c: Likewise.
24400         * lib/fwritable.c: Likewise.
24401         * lib/fwriting.c: Likewise.
24402         * lib/sigaction.c: Likewise.
24403
24404 2011-02-22  Jim Meyering  <meyering@redhat.com>
24405
24406         maint: adjust cpp indentation to reflect nesting depth
24407         I.e., in a block of code that begins with an unnested "#if",
24408         put one space between the "#" in column 1 and following token.
24409         For example,
24410         -#include <sys/vfs.h>
24411         +# include <sys/vfs.h>
24412         Do this only in .c files that are part of a module I maintain.
24413         * lib/linkat.c: Filter through cppi.
24414         * lib/nanosleep.c: Likewise.
24415         * lib/openat.c: Likewise.
24416         * lib/openat-die.c: Likewise.
24417         * lib/dup3.c: Likewise.
24418         * lib/fchownat.c: Likewise.
24419         * lib/flock.c: Likewise.
24420         * lib/fsync.c: Likewise.
24421         * lib/fts.c: Likewise.
24422         * lib/getpass.c: Likewise.
24423         * lib/gettimeofday.c: Likewise.
24424         * lib/userspec.c: Likewise.
24425         * Makefile (sc_cpp_indent_check): New rule, to check this.
24426
24427 2011-02-22  Bruno Haible  <bruno@clisp.org>
24428
24429         New module 'wctomb'.
24430         * lib/stdlib.in.h (wctomb): New declaration.
24431         * lib/wctomb.c: New file.
24432         * lib/wctomb-impl.h: New file.
24433         * m4/wctomb.m4: New file.
24434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24435         REPLACE_WCTOMB.
24436         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24437         REPLACE_WCTOMB.
24438         * modules/wctomb: New file.
24439         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24440         * doc/posix-functions/wctomb.texi: Mention the new module.
24441         * modules/wctob (Depends-on): Add wctomb.
24442
24443 2011-02-22  Bruno Haible  <bruno@clisp.org>
24444
24445         New module 'mbtowc'.
24446         * lib/stdlib.in.h (mbtowc): New declaration.
24447         * lib/mbtowc.c: New file.
24448         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24449         * m4/mbtowc.m4: New file.
24450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24451         REPLACE_MBTOWC.
24452         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24453         REPLACE_MBTOWC.
24454         * modules/mbtowc: New file.
24455         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24456         * doc/posix-functions/mbtowc.texi: Mention the new module.
24457         * modules/btowc (Depends-on): Add mbtowc.
24458
24459 2011-02-22  Bruno Haible  <bruno@clisp.org>
24460
24461         wcrtomb: Add more tests for native Windows platforms.
24462         * tests/test-wcrtomb-w32-1.sh: New file.
24463         * tests/test-wcrtomb-w32-2.sh: New file.
24464         * tests/test-wcrtomb-w32-3.sh: New file.
24465         * tests/test-wcrtomb-w32-4.sh: New file.
24466         * tests/test-wcrtomb-w32-5.sh: New file.
24467         * tests/test-wcrtomb-w32.c: New file.
24468         * modules/wcrtomb-tests (Files): Add them.
24469         (Makefile.am): Arrange to run these tests.
24470         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24471         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24472
24473 2011-02-20  Bruno Haible  <bruno@clisp.org>
24474
24475         wcrtomb: Enhance test.
24476         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24477
24478 2011-02-20  Bruno Haible  <bruno@clisp.org>
24479
24480         mbrtowc: Tiny optimization.
24481         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24482
24483 2011-02-20  Jim Meyering  <meyering@redhat.com>
24484
24485         test-exclude.c: remove unmatched #endif
24486         * tests/test-exclude.c: Remove stray #endif, left over from
24487         the change of a week ago.
24488
24489 2011-02-19  Jim Meyering  <meyering@redhat.com>
24490
24491         git-version-gen: skip "-dirty" check when appropriate
24492         * build-aux/git-version-gen: Don't run any git commands when the
24493         version string comes from .tarball-version.  Prior to this, we
24494         would run git update-index --refresh even from a just-unpacked
24495         tarball directory, and that could affect a .git/ directory in a
24496         parent of the build directory.  Reported by Mike Frysinger.
24497
24498 2011-02-19  Bruno Haible  <bruno@clisp.org>
24499
24500         unictype/property-byname: Reduce the size of the 'data' segment.
24501         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24502
24503 2011-02-19  Bruno Haible  <bruno@clisp.org>
24504
24505         unictype/scripts: Reduce the size of the 'data' segment.
24506         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24507         '%pic'.
24508         * lib/unictype/scripts_byname.gperf: Regenerated.
24509
24510 2011-02-19  Bruno Haible  <bruno@clisp.org>
24511
24512         stdint: Update documentation.
24513         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24514
24515 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24516
24517         stdint: omit redundant check for wchar.h
24518         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24519         always tests whether wchar.h exists, so remove the now-redundant test.
24520
24521 2011-02-18  Bruno Haible  <bruno@clisp.org>
24522
24523         stdint: Cut dependency to module 'wchar'.
24524         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24525         include the necessary prerequisites.
24526         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24527         * modules/stdint (Depends-on): Remove wchar.
24528         (Makefile.am): Substitute HAVE_WCHAR_H.
24529         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24530
24531 2011-02-18  Eric Blake  <eblake@redhat.com>
24532
24533         longlong: skip, rather than fail, on cross-compilation
24534         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24535         when cross-compiling; regression from 2011-02-16.
24536
24537 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24538
24539         * NEWS: Mention 2011-02-08 change to stdlib.
24540
24541 2011-02-17  Bruno Haible  <bruno@clisp.org>
24542
24543         getloadavg: Add comments about platforms.
24544         * m4/getloadavg.m4: Add comment.
24545         * lib/getloadavg.c: Likewise.
24546
24547 2011-02-17  Bruno Haible  <bruno@clisp.org>
24548
24549         getloadavg: Fix link error on Solaris 2.6.
24550         * modules/getloadavg (Link): New section.
24551         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24552         linking test-getloadavg.
24553         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24554         getloadavg.
24555
24556 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24557
24558         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24559         It was 'int', but this doesn't match the IRIX 6.5 manual.
24560         Suggested by Bruno Haible in
24561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24562
24563 2011-02-17  Bruno Haible  <bruno@clisp.org>
24564
24565         havelib: Fix comments.
24566         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24567         change.
24568
24569 2011-02-17  Bruno Haible  <bruno@clisp.org>
24570
24571         havelib: Update config.rpath.
24572         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24573
24574 2011-02-17  Bruno Haible  <bruno@clisp.org>
24575
24576         getloadavg test: Add some plausibility checks.
24577         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24578         is improbable.
24579
24580 2011-02-16  Eric Blake  <eblake@redhat.com>
24581
24582         maintainer-makefile: make syntax-check a no-op from tarballs
24583         * top/maint.mk (no-vc-detected): New rule.
24584         (local-checks-available): Use it to avoid hanging if someone tries
24585         'make syntax-check' from a tarball.  Also append to any non-syntax
24586         checks already defined in cfg.mk.
24587
24588 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24589
24590         longlong: tune, particularly for common case of c99
24591
24592         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24593         or running anything if c99, or if unsigned long long int does not
24594         work.  In either case, we know the answer without further tests.
24595         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24596         it at most once, and use its results for both long long int and
24597         unsigned long long int.  This is more likely to be efficient in
24598         the common case where the program wants to check for both long
24599         long int and unsigned long long int.
24600         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24601         since the answer is already known.
24602
24603 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24604
24605         getloadavg: set errno
24606         * lib/getloadavg.c: Set errno when returning -1.  If no other
24607         error number looks appropriate, set it to ENOSYS if the getloadavg
24608         looks like it can't possibly ever work, ENOTSUP otherwise.
24609         Suggested by Bruno Haible in
24610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24611
24612         getloadavg: trim unused parts and speed up 'configure'
24613         * NEWS: Document this.
24614         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24615         always compiled if getloadavg is absent.
24616         Move test code to ...
24617         * tests/test-getloadavg.c: New file, containing previous
24618         contents of test from lib/getloadavg.c.  It also contains
24619         suggestions by Bruno Haible in
24620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24621         * modules/getloadavg-tests: New file.
24622         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24623         Do tests in the same order as they're needed for getloadavg.c.
24624         Omit setgid-related tests that generate symbols KMEM_GROUP,
24625         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24626         Do only the tests that are needed to see whether the system has
24627         getloadavg, moving the other tests into ...
24628         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24629         NLIST_NAME_UNION; nobody should be using it.  Do not define
24630         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24631         relevant, as the user of this module shouldn't care how getloadavg
24632         is implemented.
24633
24634         getloadavg: omit unused var
24635         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24636
24637 2011-02-15  Jim Meyering  <meyering@redhat.com>
24638
24639         doc: update users.txt
24640         * users.txt: Update iwhd's URL.
24641
24642 2011-02-13  Bruno Haible  <bruno@clisp.org>
24643
24644         Consistent macro naming for macros that use GCC __attribute__.
24645         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24646         _ATTRIBUTE_NONNULL_.
24647         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24648         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24649         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24650         ATTRIBUTE_DEPRECATED.
24651         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24652         ATTRIBUTE_NORETURN.
24653         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24654         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24655         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24656         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24657         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24658         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24659         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24660         ATTRIBUTE_SENTINEL.
24661         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24662         ATTRIBUTE_RETURN_CHECK.
24663         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24664         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24665         ATTRIBUTE_NORETURN.
24666         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24667         Reported by Paul Eggert.
24668
24669 2011-02-13  Bruno Haible  <bruno@clisp.org>
24670
24671         Don't interfere with a program's definition of __attribute__.
24672         * lib/argp.h (__attribute__): Remove definition.
24673         (_GL_ATTRIBUTE_FORMAT): New macro.
24674         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24675         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24676         (_GL_ATTRIBUTE_FORMAT): New macro.
24677         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24678         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24679         GCC 3 or newer.
24680         * lib/error.h (__attribute__): Remove definition.
24681         (_GL_ATTRIBUTE_FORMAT): New macro.
24682         (error, error_at_line): Use it.
24683         * lib/hash.h (__attribute__): Remove definition.
24684         (ATTRIBUTE_WUR): Update definition. Define always.
24685         * lib/openat.h (__attribute__): Remove definition.
24686         (ATTRIBUTE_NORETURN): Update definition. Define always.
24687         * lib/sigpipe-die.h (__attribute__): Remove definition.
24688         (ATTRIBUTE_NORETURN): Update definition. Define always.
24689         * lib/vasnprintf.h (__attribute__): Remove definition.
24690         (_GL_ATTRIBUTE_FORMAT): New macro.
24691         (asnprintf, vasnprintf): Use it.
24692         * lib/xalloc.h (__attribute__): Remove definition.
24693         (ATTRIBUTE_NORETURN): Update definition. Define always.
24694         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24695         * lib/xmemdup0.h (__attribute__): Remove definition.
24696         (ATTRIBUTE_NORETURN): Update definition. Define always.
24697         * lib/xprintf.h (__attribute__): Remove definition.
24698         (_GL_ATTRIBUTE_FORMAT): New macro.
24699         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24700         * lib/xstrtol.h (__attribute__): Remove definition.
24701         (ATTRIBUTE_NORETURN): Update definition. Define always.
24702         * lib/xvasprintf.h (__attribute__): Remove definition.
24703         (_GL_ATTRIBUTE_FORMAT): New macro.
24704         (xasprintf, xvasprintf): Use it.
24705         * tests/test-argmatch.c (__attribute__): Remove definition.
24706         (ATTRIBUTE_NORETURN): Update definition. Define always.
24707         * tests/test-exclude.c (__attribute__): Remove definition.
24708         (ATTRIBUTE_NORETURN): Update definition. Define always.
24709         Reported by Paul Eggert.
24710
24711 2011-02-13  Bruno Haible  <bruno@clisp.org>
24712
24713         mbrtowc: Add more tests for native Windows platforms.
24714         * tests/test-mbrtowc-w32-1.sh: New file.
24715         * tests/test-mbrtowc-w32-2.sh: New file.
24716         * tests/test-mbrtowc-w32-3.sh: New file.
24717         * tests/test-mbrtowc-w32-4.sh: New file.
24718         * tests/test-mbrtowc-w32-5.sh: New file.
24719         * tests/test-mbrtowc-w32.c: New file.
24720         * modules/mbrtowc-tests (Files): Add them.
24721         (Makefile.am): Arrange to run these tests.
24722         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24723         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24724
24725 2011-02-13  Bruno Haible  <bruno@clisp.org>
24726
24727         mbrtowc: Work around native Windows bug.
24728         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24729         guess when no suitable locale for testing was found.
24730         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24731
24732 2011-02-13  Bruno Haible  <bruno@clisp.org>
24733
24734         mbsinit: Work around mingw bug.
24735         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24736         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24737         Windows.
24738         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24739
24740 2011-02-13  Bruno Haible  <bruno@clisp.org>
24741
24742         mbsinit: Don't crash for a NULL argument.
24743         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24744         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24745
24746 2011-02-13  Bruno Haible  <bruno@clisp.org>
24747
24748         Don't interfere with a program's definition of __attribute__.
24749         * lib/stdio.in.h (__attribute__): Remove definition.
24750         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24751         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24752         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24753         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24754         * lib/string.in.h (__attribute__): Remove definition.
24755         Reported by Paul Eggert.
24756
24757 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24758
24759         stdlib: don't get in the way of non-GCC __attribute__
24760         See thread starting at
24761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24762         Revert previous stdlib change, installing the following instead:
24763         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24764         to get in the way of a non-GCC compiler that supports __attribute__.
24765         (_GL_ATTRIBUTE_RETURN): New macro.
24766         (_Exit): Use it instead of __attribute__.
24767
24768 2011-02-12  Bruno Haible  <bruno@clisp.org>
24769
24770         quotearg test: Avoid test failure on mingw.
24771         * tests/test-quotearg.sh: Convert the locale identifier from native
24772         Windows syntax to Unix syntax.
24773
24774 2011-02-12  Bruno Haible  <bruno@clisp.org>
24775
24776         setlocale: Prefer gnulib's override over libintl's override.
24777         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24778         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24779         GNULIB_defined_setlocale is set.
24780
24781 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24782
24783         stdlib: support non-GCC __attribute__
24784
24785         Fix a serious and tricky problem encountered when attempting to
24786         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24787         5.5, but it crashed due to memory corruption on Solaris 10 with
24788         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24789         bits that are otherwise zero.  This tagging is optional inside
24790         Emacs but is preferred and is used when __attribute__ ((__aligned
24791         (8))) works, as it does with both recent-enough GCC and with Sun C
24792         5.11.  However, Sun C 5.11 is not GCC and does not #define
24793         __GNUC__ and __GNUC_MINOR__.
24794
24795         When I added the getloadavg module to Emacs, it brought in
24796         stdlib.in.h, which contained this fragment:
24797
24798            #ifndef __attribute__
24799            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24800            #  define __attribute__(Spec)   /* empty */
24801            # endif
24802            #endif
24803
24804         When files that include <stdlib.h> were compiled with Sun C 5.11,
24805         the above code disabled __attribute__ ((__aligned (8))), which
24806         caused variables to not be properly aligned, which eventually led
24807         to the pointer corruption mentioned above.  (This was a bit hard
24808         to diagnose, unfortunately.)
24809
24810         Several "#define __attribute__(X) /* empty */" code snippets need
24811         to be eradicated from Gnulib to work with non-GCC compilers that
24812         support __attribute__.  The Autoconf way to do this is to test for
24813         each kind of attribute that we want support for, and selectively
24814         enable that in source code.
24815
24816         Fix this problem just for stdlib.h, by adding a test for the
24817         __noreturn__ attribute, and change stdlib.in.h to use that test
24818         when needed.  This technique can be easily generalized to the
24819         other *.in.h files and attributes, and a similar technique can be
24820         used for *.h and *.c files.  This patch is enough to solve the
24821         problem for Emacs + getloadavg, and I thought I'd publish it for
24822         feedback before undertaking further, similar fixes in other
24823         modules.
24824
24825         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24826         because it's not needed for stdlib.h.  It merely substitutes the
24827         value directly into stdlib.h.  We may well need to #define it, or
24828         similar symbols, for other modules, but it's nice to also have an
24829         option to not #define it for applications like Emacs that do not
24830         need it.
24831
24832         * lib/stdlib.in.h (__attribute__): Do not #define.
24833         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24834         be defined only if the _Exit module is also used.
24835         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24837         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24838         platforms.
24839         * modules/_Exit (Files): Add m4/attribute.m4.
24840         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24841         * m4/attribute.m4: New file.
24842
24843 2011-02-12  Bruno Haible  <bruno@clisp.org>
24844
24845         wcsrtombs: Work around bug on native Windows.
24846         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24847         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24848         instead of len.
24849         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24850
24851 2011-02-12  Bruno Haible  <bruno@clisp.org>
24852
24853         mbsrtowcs: Work around bug on native Windows.
24854         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24855         against mingw bug.
24856         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24857
24858 2011-02-12  Bruno Haible  <bruno@clisp.org>
24859
24860         Avoid setlocale bugs in tests.
24861         * modules/btowc (Dependencies): Add setlocale.
24862         * modules/c-strcase (Dependencies): Likewise.
24863         * modules/mbmemcasecmp (Dependencies): Likewise.
24864         * modules/mbmemcasecoll (Dependencies): Likewise.
24865         * modules/mbrtowc (Dependencies): Likewise.
24866         * modules/mbscasecmp (Dependencies): Likewise.
24867         * modules/mbscasestr (Dependencies): Likewise.
24868         * modules/mbschr (Dependencies): Likewise.
24869         * modules/mbscspn (Dependencies): Likewise.
24870         * modules/mbsinit (Dependencies): Likewise.
24871         * modules/mbsncasecmp (Dependencies): Likewise.
24872         * modules/mbsnrtowcs (Dependencies): Likewise.
24873         * modules/mbspbrk (Dependencies): Likewise.
24874         * modules/mbspcasecmp (Dependencies): Likewise.
24875         * modules/mbsrchr (Dependencies): Likewise.
24876         * modules/mbsrtowcs (Dependencies): Likewise.
24877         * modules/mbsspn (Dependencies): Likewise.
24878         * modules/mbsstr (Dependencies): Likewise.
24879         * modules/nl_langinfo (Dependencies): Likewise.
24880         * modules/quotearg (Dependencies): Likewise.
24881         * modules/unicase/locale-language (Dependencies): Likewise.
24882         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
24883         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
24884         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
24885         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
24886         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
24887         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
24888         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
24889         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
24890         * modules/vasnprintf-posix (Dependencies): Likewise.
24891         * modules/wcrtomb (Dependencies): Likewise.
24892         * modules/wcsnrtombs (Dependencies): Likewise.
24893         * modules/wcsrtombs (Dependencies): Likewise.
24894
24895 2011-02-12  Bruno Haible  <bruno@clisp.org>
24896
24897         setlocale: Workaround native Windows bug.
24898         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
24899         succeeds but sets LC_CTYPE to "C", report a failure.
24900         * tests/test-setlocale2.sh: New file.
24901         * tests/test-setlocale2.c: New file.
24902         * modules/setlocale-tests (Files): Add the new files.
24903         (Makefile.am): Enable test-setlocale2.sh test.
24904         * doc/posix-functions/setlocale.texi: Mention workaround.
24905
24906 2011-02-11  Bruno Haible  <bruno@clisp.org>
24907
24908         Tests for module 'setlocale'.
24909         * modules/setlocale-tests: New file.
24910         * tests/test-setlocale1.sh: New file.
24911         * tests/test-setlocale1.c: New file.
24912
24913         New module 'setlocale'.
24914         * lib/locale.in.h (setlocale): New declaration.
24915         * lib/setlocale.c: New file, based on
24916         gettext/gettext-runtime/intl/setlocale.c.
24917         * m4/setlocale.m4: New file.
24918         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24919         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24920         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24921         REPLACE_SETLOCALE.
24922         * modules/setlocale: New file.
24923         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24924         * doc/posix-functions/setlocale.texi: Mention the new module.
24925
24926 2011-02-11  Bruno Haible  <bruno@clisp.org>
24927
24928         Prepare for locale dependent tests on mingw.
24929         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24930         because it has the wrong locale encoding.
24931         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24932         French_France.1252 instead of "fr".
24933         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24934         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24935         because it has the wrong locale encoding.
24936         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24937         native Windows, try Turkish_Turkey.65001.
24938         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24939         Chinese_China.54936.
24940
24941         Prepare for locale dependent tests on mingw.
24942         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24943         differently.
24944         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24945         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24946         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24947         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24948
24949 2011-02-11  Eric Blake  <eblake@redhat.com>
24950
24951         strptime: avoid compiler warnings
24952         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24953         compiler warnings about dead code.
24954         Reported by Daniel P. Berrange.
24955
24956 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24957
24958         doc: update users.txt
24959         * users.txt: Add rcs.
24960
24961 2011-02-10  John W. Eaton  <jwe@gnu.org>
24962
24963         doc: update users.txt
24964         * users.txt: Add octave.
24965
24966 2011-02-10  Jim Meyering  <meyering@redhat.com>
24967
24968         doc: update users.txt
24969         * users.txt: Add iwhd.
24970
24971 2011-02-09  Bruno Haible  <bruno@clisp.org>
24972
24973         gnulib-tool: Make copyright notice adjustment more robust.
24974         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24975         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24976         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24977         License".
24978         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24979
24980 2011-02-06  Bruno Haible  <bruno@clisp.org>
24981
24982         New module 'towctrans'.
24983         * modules/towctrans: New file.
24984         * lib/wctype.in.h (towctrans): New declaration.
24985         * lib/towctrans.c: New file.
24986         * lib/towctrans-impl.h: New file.
24987         * m4/towctrans.m4: New file.
24988         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24989         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24990         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24991         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24992         * doc/posix-functions/towctrans.texi: Mention the new module.
24993
24994 2011-02-06  Bruno Haible  <bruno@clisp.org>
24995
24996         New module 'wctrans'.
24997         * modules/wctrans: New file.
24998         * lib/wctype.in.h (wctrans): New declaration.
24999         * lib/wctrans.c: New file.
25000         * lib/wctrans-impl.h: New file.
25001         * m4/wctrans.m4: New file.
25002         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25003         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25004         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25005         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25006         * doc/posix-functions/wctrans.texi: Mention the new module.
25007
25008 2011-02-06  Bruno Haible  <bruno@clisp.org>
25009
25010         New module 'iswctype'.
25011         * modules/iswctype: New file.
25012         * lib/wctype.in.h (iswctype): New declaration.
25013         * lib/iswctype.c: New file.
25014         * lib/iswctype-impl.h: New file.
25015         * m4/iswctype.m4: New file.
25016         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25017         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25018         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25019         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25020         * doc/posix-functions/iswctype.texi: Mention the new module and the
25021         HP-UX 11.00 problem.
25022
25023 2011-02-06  Bruno Haible  <bruno@clisp.org>
25024
25025         New module 'wctype'.
25026         * modules/wctype: Change to represent the wctype() substitute.
25027         * lib/wctype.in.h (wctype): New declaration.
25028         * lib/wctype.c: New file.
25029         * lib/wctype-impl.h: New file.
25030         * m4/wctype.m4: New file.
25031         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25032         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25033         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25034         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25035         * doc/posix-functions/wctype.texi: Mention the new module and the
25036         HP-UX 11.00 problem.
25037
25038 2011-02-06  Bruno Haible  <bruno@clisp.org>
25039
25040         wctype-h: Ensure wctype_t and wctrans_t are defined.
25041         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25042         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25043         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25044         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25045         HAVE_WCTRANS_T.
25046         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25047
25048 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25049
25050         flock: fix license typo
25051
25052         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25053         omitted.
25054
25055 2011-02-08  Bruno Haible  <bruno@clisp.org>
25056
25057         Split large sed scripts, for HP-UX sed.
25058         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25059         to avoid HP-UX limit of 99 commands, in the near future.
25060         * modules/stdlib (Makefile.am): Likewise.
25061         * modules/unistd (Makefile.am): Likewise.
25062         * modules/wchar (Makefile.am): Likewise.
25063         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25064         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25065         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25066
25067 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25068             Bruno Haible  <bruno@clisp.org>
25069
25070         stdlib: improve random_r modularization
25071         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25072         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25073         you also need the random_r module to get this material right.
25074         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25075         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25076         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25077
25078 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25079
25080         stdlib: don't depend on stdint
25081         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25082         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25083         be independent of whether stdint.h is needed.
25084         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25085         here, instead of ...
25086         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25087         struct random_data should be using the random_r module, not just
25088         the stdlib module (which wouldn't make sense: what package needs
25089         just struct random_data without also needing random_r?).
25090         * modules/stdlib (Depends-on): Remove stdint.
25091
25092         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25093         See the thread rooted at
25094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25095         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25096         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25097         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25098         __VMS)); previously it was always included (via fcntl--.h).
25099         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25100         hand; this is good enough for load averages.  Also, do not use
25101         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25102         flags directly if available and don't bother otherwise.  (Packages
25103         that need the extra reliability should use the modules that define
25104         these flags on older platforms that lack them.)
25105         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25106         fcntl-safer.
25107
25108 2011-02-08  Jim Meyering  <meyering@redhat.com>
25109
25110         di-set.h, ino-map.h: add multiple-inclusion guard
25111         Technically, the guard is required only for ino-map.h, due to its
25112         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25113         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25114         * lib/ino-map.h: Likewise.
25115
25116 2011-02-06  Bruno Haible  <bruno@clisp.org>
25117
25118         iswblank: Ensure declaration on glibc systems.
25119         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25120         * modules/iswblank (Dependencies): Add 'extensions'.
25121         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25122
25123 2011-02-06  Bruno Haible  <bruno@clisp.org>
25124
25125         New module 'iswblank'.
25126         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25127         * modules/iswblank: New file.
25128         * modules/wctype-h (Files): Remove lib/iswblank.c.
25129         (Makefile.am): Substitute GNULIB_ISWBLANK.
25130         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25131         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25132         (gl_WCTYPE_H_DEFAULTS): New macro.
25133         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25134         * modules/iswblank-tests: New file.
25135         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25136         * tests/test-wctype-h.c (main): Remove iswblank tests.
25137         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25138         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25139         of 'wctype-h'.
25140         * NEWS: Mention the change.
25141         * modules/mbchar (Depends-on): Add iswblank.
25142
25143 2011-02-08  Bruno Haible  <bruno@clisp.org>
25144
25145         di-set tests: Refactor.
25146         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25147         unnecessary includes.
25148         (ASSERT): Remove macro.
25149         (main): Make C90 compliant by avoiding variable declaration after
25150         statement.
25151         * modules/di-set-tests (Files): Add tests/macros.h.
25152
25153 2011-02-08  Bruno Haible  <bruno@clisp.org>
25154
25155         ino-map tests: Refactor.
25156         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25157         unnecessary includes.
25158         (ASSERT): Remove macro.
25159         (main): Make C90 compliant by avoiding variable declaration after
25160         statement.
25161         * modules/ino-map-tests (Files): Add tests/macros.h.
25162
25163 2011-02-08  Jim Meyering  <meyering@redhat.com>
25164
25165         di-set: add "const" to a cast
25166         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25167         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25168
25169 2011-02-06  Bruno Haible  <bruno@clisp.org>
25170
25171         Rename module 'wctype' to 'wctype-h'.
25172         * modules/wctype-h: Renamed from modules/wctype.
25173         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25174         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25175         (Files, Depends-on, Makefile.am): Update.
25176         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25177         (Files, Makefile.am): Update.
25178         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25179         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25180         * doc/posix-headers/wctype.texi: Update.
25181         * doc/posix-functions/iswalnum.texi: Update.
25182         * doc/posix-functions/iswalpha.texi: Update.
25183         * doc/posix-functions/iswblank.texi: Update.
25184         * doc/posix-functions/iswcntrl.texi: Update.
25185         * doc/posix-functions/iswdigit.texi: Update.
25186         * doc/posix-functions/iswgraph.texi: Update.
25187         * doc/posix-functions/iswlower.texi: Update.
25188         * doc/posix-functions/iswprint.texi: Update.
25189         * doc/posix-functions/iswpunct.texi: Update.
25190         * doc/posix-functions/iswspace.texi: Update.
25191         * doc/posix-functions/iswupper.texi: Update.
25192         * doc/posix-functions/iswxdigit.texi: Update.
25193         * doc/posix-functions/towlower.texi: Update.
25194         * doc/posix-functions/towupper.texi: Update.
25195         * NEWS: Mention the change.
25196         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25197         * modules/mbchar (Dependencies): Likewise.
25198         * modules/mbswidth (Dependencies): Likewise.
25199         * modules/quotearg (Dependencies): Likewise.
25200         * modules/regex (Dependencies): Likewise.
25201         * modules/wcscasecmp (Dependencies): Likewise.
25202         * modules/wcsncasecmp (Dependencies): Likewise.
25203         * modules/wcwidth (Dependencies): Likewise.
25204
25205 2011-02-06  Bruno Haible  <bruno@clisp.org>
25206
25207         New module 'wcswidth'.
25208         * modules/wcswidth: New file.
25209         * lib/wchar.in.h (wcswidth): New declaration.
25210         * lib/wcswidth.c: New file.
25211         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25212         * m4/wcswidth.m4: New file.
25213         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25214         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25215         REPLACE_WCSWIDTH.
25216         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25217         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25218         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25219         * doc/posix-functions/wcswidth.texi: Mention the new module.
25220
25221 2011-02-06  Bruno Haible  <bruno@clisp.org>
25222
25223         New module 'wcstok'.
25224         * modules/wcstok: New file.
25225         * lib/wchar.in.h (wcstok): New declaration.
25226         * lib/wcstok.c: New file.
25227         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25228         * m4/wcstok.m4: New file.
25229         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25230         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25231         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25232         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25233         * doc/posix-functions/wcstok.texi: Mention the new module.
25234
25235 2011-02-06  Bruno Haible  <bruno@clisp.org>
25236
25237         New module 'wcsstr'.
25238         * modules/wcsstr: New file.
25239         * lib/wchar.in.h (wcsstr): New declaration.
25240         * lib/wcsstr.c: New file.
25241         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25242         * m4/wcsstr.m4: New file.
25243         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25244         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25245         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25246         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25247         * doc/posix-functions/wcsstr.texi: Mention the new module.
25248
25249 2011-02-06  Bruno Haible  <bruno@clisp.org>
25250
25251         New module 'wcspbrk'.
25252         * modules/wcspbrk: New file.
25253         * lib/wchar.in.h (wcspbrk): New declaration.
25254         * lib/wcspbrk.c: New file.
25255         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25256         * m4/wcspbrk.m4: New file.
25257         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25258         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25259         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25260         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25261         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25262
25263 2011-02-06  Bruno Haible  <bruno@clisp.org>
25264
25265         New module 'wcsspn'.
25266         * modules/wcsspn: New file.
25267         * lib/wchar.in.h (wcsspn): New declaration.
25268         * lib/wcsspn.c: New file.
25269         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25270         * m4/wcsspn.m4: New file.
25271         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25272         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25273         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25274         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25275         * doc/posix-functions/wcsspn.texi: Mention the new module.
25276
25277 2011-02-06  Bruno Haible  <bruno@clisp.org>
25278
25279         New module 'wcscspn'.
25280         * modules/wcscspn: New file.
25281         * lib/wchar.in.h (wcscspn): New declaration.
25282         * lib/wcscspn.c: New file.
25283         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25284         * m4/wcscspn.m4: New file.
25285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25287         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25288         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25289         * doc/posix-functions/wcscspn.texi: Mention the new module.
25290
25291 2011-02-06  Bruno Haible  <bruno@clisp.org>
25292
25293         New module 'wcsrchr'.
25294         * modules/wcsrchr: New file.
25295         * lib/wchar.in.h (wcsrchr): New declaration.
25296         * lib/wcsrchr.c: New file.
25297         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25298         * m4/wcsrchr.m4: New file.
25299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25302         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25303         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25304
25305 2011-02-06  Bruno Haible  <bruno@clisp.org>
25306
25307         New module 'wcschr'.
25308         * modules/wcschr: New file.
25309         * lib/wchar.in.h (wcschr): New declaration.
25310         * lib/wcschr.c: New file.
25311         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25312         * m4/wcschr.m4: New file.
25313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25315         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25316         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25317         * doc/posix-functions/wcschr.texi: Mention the new module.
25318
25319 2011-02-06  Bruno Haible  <bruno@clisp.org>
25320
25321         New module 'wcsdup'.
25322         * modules/wcsdup: New file.
25323         * lib/wchar.in.h (wcsdup): New declaration.
25324         * lib/wcsdup.c: New file.
25325         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25326         * m4/wcsdup.m4: New file.
25327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25329         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25330         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25331         * doc/posix-functions/wcsdup.texi: Mention the new module.
25332
25333 2011-02-06  Bruno Haible  <bruno@clisp.org>
25334
25335         New module 'wcsxfrm'.
25336         * modules/wcsxfrm: New file.
25337         * lib/wchar.in.h (wcsxfrm): New declaration.
25338         * lib/wcsxfrm.c: New file.
25339         * lib/wcsxfrm-impl.h: New file.
25340         * m4/wcsxfrm.m4: New file.
25341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25343         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25344         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25345         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25346
25347 2011-02-06  Bruno Haible  <bruno@clisp.org>
25348
25349         New module 'wcscoll'.
25350         * modules/wcscoll: New file.
25351         * lib/wchar.in.h (wcscoll): New declaration.
25352         * lib/wcscoll.c: New file.
25353         * lib/wcscoll-impl.h: New file.
25354         * m4/wcscoll.m4: New file.
25355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25357         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25358         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25359         * doc/posix-functions/wcscoll.texi: Mention the new module.
25360
25361 2011-02-06  Bruno Haible  <bruno@clisp.org>
25362
25363         New module 'wcsncasecmp'.
25364         * modules/wcsncasecmp: New file.
25365         * lib/wchar.in.h (wcsncasecmp): New declaration.
25366         * lib/wcsncasecmp.c: New file.
25367         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25368         * m4/wcsncasecmp.m4: New file.
25369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25372         HAVE_WCSNCASECMP.
25373         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25374         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25375
25376 2011-02-06  Bruno Haible  <bruno@clisp.org>
25377
25378         New module 'wcscasecmp'.
25379         * modules/wcscasecmp: New file.
25380         * lib/wchar.in.h (wcscasecmp): New declaration.
25381         * lib/wcscasecmp.c: New file.
25382         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25383         * m4/wcscasecmp.m4: New file.
25384         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25385         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25386         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25387         HAVE_WCSCASECMP.
25388         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25389         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25390
25391 2011-02-05  Bruno Haible  <bruno@clisp.org>
25392
25393         New module 'wcsncmp'.
25394         * modules/wcsncmp: New file.
25395         * lib/wchar.in.h (wcsncmp): New declaration.
25396         * lib/wcsncmp.c: New file.
25397         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25398         * m4/wcsncmp.m4: New file.
25399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25402         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25403         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25404
25405 2011-02-05  Bruno Haible  <bruno@clisp.org>
25406
25407         New module 'wcscmp'.
25408         * modules/wcscmp: New file.
25409         * lib/wchar.in.h (wcscmp): New declaration.
25410         * lib/wcscmp.c: New file.
25411         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25412         * m4/wcscmp.m4: New file.
25413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25416         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25417         * doc/posix-functions/wcscmp.texi: Mention the new module.
25418
25419 2011-02-05  Bruno Haible  <bruno@clisp.org>
25420
25421         New module 'wcsncat'.
25422         * modules/wcsncat: New file.
25423         * lib/wchar.in.h (wcsncat): New declaration.
25424         * lib/wcsncat.c: New file.
25425         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25426         * m4/wcsncat.m4: New file.
25427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25430         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25431         * doc/posix-functions/wcsncat.texi: Mention the new module.
25432
25433 2011-02-05  Bruno Haible  <bruno@clisp.org>
25434
25435         New module 'wcscat'.
25436         * modules/wcscat: New file.
25437         * lib/wchar.in.h (wcscat): New declaration.
25438         * lib/wcscat.c: New file.
25439         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25440         * m4/wcscat.m4: New file.
25441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25444         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25445         * doc/posix-functions/wcscat.texi: Mention the new module.
25446
25447 2011-02-05  Bruno Haible  <bruno@clisp.org>
25448
25449         New module 'wcpncpy'.
25450         * modules/wcpncpy: New file.
25451         * lib/wchar.in.h (wcpncpy): New declaration.
25452         * lib/wcpncpy.c: New file.
25453         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25454         * m4/wcpncpy.m4: New file.
25455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25457         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25458         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25459         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25460
25461 2011-02-05  Bruno Haible  <bruno@clisp.org>
25462
25463         New module 'wcsncpy'.
25464         * modules/wcsncpy: New file.
25465         * lib/wchar.in.h (wcsncpy): New declaration.
25466         * lib/wcsncpy.c: New file.
25467         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25468         * m4/wcsncpy.m4: New file.
25469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25472         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25473         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25474
25475 2011-02-05  Bruno Haible  <bruno@clisp.org>
25476
25477         New module 'wcpcpy'.
25478         * modules/wcpcpy: New file.
25479         * lib/wchar.in.h (wcpcpy): New declaration.
25480         * lib/wcpcpy.c: New file.
25481         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25482         * m4/wcpcpy.m4: New file.
25483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25485         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25486         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25487         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25488
25489 2011-02-05  Bruno Haible  <bruno@clisp.org>
25490
25491         New module 'wcscpy'.
25492         * modules/wcscpy: New file.
25493         * lib/wchar.in.h (wcscpy): New declaration.
25494         * lib/wcscpy.c: New file.
25495         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25496         * m4/wcscpy.m4: New file.
25497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25500         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25501         * doc/posix-functions/wcscpy.texi: Mention the new module.
25502
25503 2011-02-05  Bruno Haible  <bruno@clisp.org>
25504
25505         New module 'wcsnlen'.
25506         * modules/wcsnlen: New file.
25507         * lib/wchar.in.h (wcsnlen): New declaration.
25508         * lib/wcsnlen.c: New file.
25509         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25510         * m4/wcsnlen.m4: New file.
25511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25514         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25515         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25516
25517 2011-02-05  Bruno Haible  <bruno@clisp.org>
25518
25519         New module 'wcslen'.
25520         * modules/wcslen: New file.
25521         * lib/wchar.in.h (wcslen): New declaration.
25522         * lib/wcslen.c: New file.
25523         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25524         * m4/wcslen.m4: New file.
25525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25528         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25529         * doc/posix-functions/wcslen.texi: Mention the new module.
25530
25531 2011-02-05  Bruno Haible  <bruno@clisp.org>
25532
25533         New module 'wmemset'.
25534         * modules/wmemset: New file.
25535         * lib/wchar.in.h (wmemset): New declaration.
25536         * lib/wmemset.c: New file.
25537         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25538         * m4/wmemset.m4: New file.
25539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25541         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25542         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25543         * doc/posix-functions/wmemset.texi: Mention the new module.
25544
25545 2011-02-05  Bruno Haible  <bruno@clisp.org>
25546
25547         New module 'wmemmove'.
25548         * modules/wmemmove: New file.
25549         * lib/wchar.in.h (wmemmove): New declaration.
25550         * lib/wmemmove.c: New file.
25551         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25552         * m4/wmemmove.m4: New file.
25553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25555         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25556         HAVE_WMEMMOVE.
25557         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25558         * doc/posix-functions/wmemmove.texi: Mention the new module.
25559
25560 2011-02-05  Bruno Haible  <bruno@clisp.org>
25561
25562         New module 'wmemcpy'.
25563         * modules/wmemcpy: New file.
25564         * lib/wchar.in.h (wmemcpy): New declaration.
25565         * lib/wmemcpy.c: New file.
25566         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25567         * m4/wmemcpy.m4: New file.
25568         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25569         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25570         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25571         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25572         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25573
25574 2011-02-05  Bruno Haible  <bruno@clisp.org>
25575
25576         New module 'wmemcmp'.
25577         * modules/wmemcmp: New file.
25578         * lib/wchar.in.h (wmemcmp): New declaration.
25579         * lib/wmemcmp.c: New file.
25580         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25581         * m4/wmemcmp.m4: New file.
25582         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25583         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25584         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25585         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25586         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25587
25588 2011-02-07  Jim Meyering  <meyering@redhat.com>
25589
25590         di-set, ino-map: new modules, from coreutils
25591         * lib/di-set.c: New file.
25592         * lib/di-set.h: Likewise.
25593         * lib/ino-map.c: Likewise.
25594         * lib/ino-map.h: Likewise.
25595         * modules/di-set: Likewise.
25596         * modules/di-set-tests: Likewise.
25597         * modules/ino-map: Likewise.
25598         * modules/ino-map-tests: Likewise.
25599         * tests/test-di-set.c: Likewise.
25600         * tests/test-ino-map.c: Likewise.
25601
25602 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25603
25604         getloadavg: merge minor changes from Emacs
25605
25606         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25607         (getloadavg): Use memset, not bzero.
25608
25609         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25610         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25611         clash (bug#86).
25612
25613 2010-11-14  Bruno Haible  <bruno@clisp.org>
25614
25615         Allow multiple gnulib generated replacements to coexist.
25616         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25617         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25618         * lib/langinfo.in.h (nl_item): Likewise.
25619         * lib/math.in.h (_NaN, NAN): Likewise.
25620         * lib/netdb.in.h (struct addrinfo): Likewise.
25621         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25622         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25623         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25624         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25625         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25626         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25627         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25628         pthread_mutexattr_init, pthread_mutexattr_settype,
25629         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25630         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25631         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25632         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25633         * lib/sched.in.h (struct sched_param): Likewise.
25634         * lib/se-selinux.in.h (security_class_t, security_context_t,
25635         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25636         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25637         lsetfilecon, fsetfilecon, security_check_context,
25638         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25639         Likewise.
25640         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25641         Likewise.
25642         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25643         _gl_function_taking_int_returning_void_t, union sigval,
25644         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25645         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25646         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25647         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25648         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25649         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25650         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25651         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25652         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25653         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25654         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25655         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25656         socklen_t, rpl_fd_isset): Likewise.
25657         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25658         * lib/sys_time.in.h (struct timeval): Likewise.
25659         * lib/sys_times.in.h (struct tms): Likewise.
25660         * lib/sys_utsname.in.h (struct utsname):
25661         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25662         * lib/unistd.in.h (getpagesize): Likewise.
25663         * lib/wchar.in.h (mbstate_t): Likewise.
25664         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25665         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25666         towlower, towupper): Likewise.
25667         Reported by Sam Steingold <sds@gnu.org>.
25668
25669 2011-02-05  Eric Blake  <eblake@redhat.com>
25670
25671         unsetenv: work around Haiku issues
25672         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25673         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25674
25675 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25676
25677         libposix: avoid calling error() within libposix
25678         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25679         is defined.
25680
25681 2011-02-05  Eric Blake  <eblake@redhat.com>
25682
25683         strerror_r-posix: port to cygwin
25684         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25685         implementation.
25686         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25687         * tests/test-strerror_r.c (main): Fix test.
25688         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25689         issue.
25690
25691 2011-02-05  Bruno Haible  <bruno@clisp.org>
25692
25693         New module 'wmemchr'.
25694         * modules/wmemchr: New file.
25695         * lib/wchar.in.h (wmemchr): New declaration.
25696         * lib/wmemchr.c: New file.
25697         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25698         * m4/wmemchr.m4: New file.
25699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25701         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25702         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25703         * doc/posix-functions/wmemchr.texi: Mention the new module.
25704
25705 2011-02-04  Eric Blake  <eblake@redhat.com>
25706
25707         fdopendir: detect FreeBSD bug
25708         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25709         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25710
25711 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25712
25713         stdbool: do not define HAVE_STDBOOL_H
25714         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25715         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25716         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25717         imported from the latest Autoconf git.  It was motivated by Emacs,
25718         which uses gnulib but does not need HAVE_STDBOOL_H.
25719
25720 2011-02-04  Bruno Haible  <bruno@clisp.org>
25721
25722         wcsnrtombs: Prepare for new module wwcsnrtombs.
25723         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25724         * lib/wcsnrtombs.c: Include it.
25725         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25726
25727         wcsrtombs: Prepare for new module wwcsrtombs.
25728         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25729         * lib/wcsrtombs.c: Include it.
25730         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25731
25732         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25733         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25734         * lib/mbsnrtowcs.c: Include it.
25735         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25736
25737         mbsrtowcs: Prepare for new module mbsrtowwcs.
25738         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25739         * lib/mbsrtowcs.c: Include it.
25740         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25741
25742 2011-02-04  Bruno Haible  <bruno@clisp.org>
25743
25744         vasnprintf: Reduce use of malloc for small format strings.
25745         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25746         (arguments): Add room for the first 7 arguments.
25747         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25748         (char_directives, u8_directives, u16_directives, u32_directives): Add
25749         room for the first 7 directives.
25750         * lib/printf-parse.c: Include <string.h>.
25751         (PRINTF_PARSE): Change memory handling code so that it uses the first
25752         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25753         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25754         Reported by Pádraig Brady <P@draigbrady.com>.
25755
25756 2011-01-31  Eric Blake  <eblake@redhat.com>
25757
25758         dup2: work around Haiku bug
25759         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25760         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25761         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25762         * tests/test-dup2.c (main): Enhance test.
25763
25764 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25765
25766         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25767         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25768         declared by eglibc 2.11.2.
25769         * lib/stdio.in.h: Likewise.
25770
25771 2011-01-31  Eric Blake  <eblake@redhat.com>
25772
25773         ignore-value: add missing test dependency
25774         * tests/test-ignore-value.c: Revert previous change; stdio.h
25775         provides off_t.
25776         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25777
25778 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25779
25780         mktime: clarify long_int width checking
25781         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25782         the top level, to make it clearer that the assumption about
25783         long_int width is being checked.  See
25784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25785
25786 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25787
25788         ignore-value: Fix self-test.
25789         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25790
25791 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25792
25793         TYPE_MAXIMUM: avoid theoretically undefined behavior
25794         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25795         negative number, which the C Standard says has undefined behavior.
25796         In practice this is not a problem, but might as well do it by the book.
25797         Reported by Rich Felker and Eric Blake; see
25798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25799         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25800         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25802         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25803         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25804         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25805
25806         mktime: #undef mktime before #defining it
25807         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25808
25809         mktime: systematically normalize tm_isdst comparisons
25810         * lib/mktime.c (isdst_differ): New function.
25811         (__mktime_internal): Use it systematically for all isdst comparisons.
25812         This completes the fix for libc BZ #6723, and removes the need for
25813         normalizing tm_isdst.  See
25814         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25815         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25816
25817         mktime: fix some integer overflow issues and sidestep the rest
25818
25819         This was prompted by a bug report by Benjamin Lindner for MinGW
25820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25821         His bug is due to signed integer overflow (0 - INT_MIN), and I
25822         I scanned through mktime.c looking for other integer overflow
25823         problems, fixing all the bugs I found.
25824
25825         Although the C Standard says the resulting code is still not safe
25826         in the presence of integer overflow, in practice it should be good
25827         enough for all real-world two's-complement implementations, except
25828         for debugging environments that deliberately trap on integer
25829         overflow (e.g., gcc -ftrapv).
25830
25831         * lib/mktime.c (WRAPV): New macro.
25832         (SHR): Also check that long_int and time_t shift right in the
25833         usual way, before using the fast-but-unportable method.
25834         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25835         used.  The code already assumed two's complement, so there's
25836         no need to test for alternatives.  All uses removed.
25837         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25838         the C standard.  Problem reported by Rich Felker in
25839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25840         (twos_complement_arithmetic): Also check long_int and time_t.
25841         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25842         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25843         (__mktime_internal): Avoid integer overflow with unary subtraction
25844         in two instances where -1 - X is an adequate replacement for -X,
25845         since the calculations are approximate.
25846
25847 2011-01-29  Eric Blake  <eblake@redhat.com>
25848
25849         mktime: avoid infinite loop
25850         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25851         type; behavior is still undefined but portable to all known targets.
25852         Reported by Rich Felker.
25853
25854 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25855
25856         rename, unlink, same-inode: Relicense.
25857         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25858         * modules/unlink (License): Likewise.
25859         * modules/same-inode (License): Likewise.
25860
25861 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25862
25863         mktime: avoid problems on NetBSD 5 / i386
25864         * lib/mktime.c (long_int): New type.  This works around a problem
25865         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
25866         but time_t is 64 bits, and where I expect the existing code is
25867         wrong in some cases.
25868         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
25869         (ydhms_diff): Bring back the compile-time check for wide-enough
25870         year and yday.
25871
25872         mktime: fix misspelling in comment
25873         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
25874         This merges all recent glibc changes of importance.
25875
25876 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25877
25878         move-if-change: cope with concurrent mv of identical file.
25879         * build-aux/move-if-change (CMPPROG): Accept environment
25880         variable as an override for `cmp'.
25881         (usage): Document CMPPROG.
25882         Adjust comparison to drop stdout.  Cope with failure of mv if
25883         the target file exists and is identical to the source, for
25884         parallel builds.
25885         Report from H.J. Lu against binutils in PR binutils/12283.
25886
25887 2011-01-28  Bruce Korb  <bkorb@gnu.org>
25888
25889         * users.txt: Mention sharutils.
25890
25891 2011-01-28  Simon Josefsson  <simon@josefsson.org>
25892
25893         * users.txt: Mention OATH Toolkit.
25894
25895 2011-01-27  Bruno Haible  <bruno@clisp.org>
25896
25897         Prepare for supporting FreeBSD 10.
25898         * build-aux/config.libpath: Remove handling of freebsd1*.
25899
25900 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
25901
25902         Prepare for supporting FreeBSD 10.
25903         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
25904         match FreeBSD 10.0.
25905
25906 2011-01-27  Bruno Haible  <bruno@clisp.org>
25907
25908         vma-iter, get-rusage-as: Add OpenBSD support.
25909         * modules/vma-iter (configure.ac): Test for mquery.
25910         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25911         * lib/vma-iter.c: Include <sys/mman.h>.
25912         (vma_iterate): Add an implementation based on mquery().
25913         * lib/resource-ext.h (get_rusage_as): Update comments.
25914         * lib/get-rusage-as.c: Likewise.
25915         * lib/get-rusage-data.c: Likewise.
25916
25917 2011-01-26  Karl Berry  <karl@gnu.org>
25918
25919         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25920         variables to make it easier to override the makeinfo program used.
25921
25922 2011-01-26  Eric Blake  <eblake@redhat.com>
25923
25924         fcntl: work around Haiku F_DUPFD bugs
25925         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25926         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25927         cloexec bit on duplication.
25928         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25929
25930 2011-01-26  Bruno Haible  <bruno@clisp.org>
25931
25932         Enable memory leak tests on AIX.
25933         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25934         * tests/test-fprintf-posix3.c (main): Likewise.
25935
25936 2011-01-26  Bruno Haible  <bruno@clisp.org>
25937
25938         Tests for module 'get-rusage-data'.
25939         * modules/get-rusage-data-tests: New file.
25940         * tests/test-get-rusage-data.c: New file.
25941
25942         New module 'get-rusage-data'.
25943         * lib/resource-ext.h (get_rusage_data): New declaration.
25944         * lib/get-rusage-data.c: New file.
25945         * modules/get-rusage-data: New file.
25946
25947 2011-01-25  Bruno Haible  <bruno@clisp.org>
25948
25949         get-rusage-as: Allow for easier testing.
25950         * lib/resource-ext.h (get_rusage_as): Add comment.
25951         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25952         (main): New function for interactive testing.
25953
25954 2011-01-25  Bruno Haible  <bruno@clisp.org>
25955
25956         vma-iter: Treat Haiku like BeOS.
25957         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25958         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25959
25960 2011-01-25  Eric Blake  <eblake@redhat.com>
25961
25962         c-stack: fix regression on cygwin when libsigsegv is present
25963         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25964
25965 2011-01-24  Bruno Haible  <bruno@clisp.org>
25966
25967         vma-iter: Avoid empty intervals.
25968         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25969         on an empty interval.
25970
25971 2011-01-24  Jim Meyering  <meyering@redhat.com>
25972
25973         u64: remove unnecessary #include
25974         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25975
25976 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25977
25978         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25979         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25980
25981 2011-01-23  Bruno Haible  <bruno@clisp.org>
25982
25983         New module 'vma-iter'.
25984         * lib/vma-iter.h: New file.
25985         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25986         * modules/vma-iter: New file.
25987         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25988         for get_rusage_as_via_iterator.
25989         (vma_iterate_callback): New function.
25990         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25991         * modules/get-rusage-as (Depends-on): Add vma-iter.
25992
25993 2011-01-23  Bruno Haible  <bruno@clisp.org>
25994
25995         uninorm: Tweak includes.
25996         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25997         Reported by Jim Meyering.
25998
25999 2011-01-23  Bruno Haible  <bruno@clisp.org>
26000
26001         get-rusage-as: Improve on NetBSD.
26002         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26003         /proc, like on FreeBSD.
26004
26005 2011-01-23  Jim Meyering  <meyering@redhat.com>
26006
26007         xreadlink.h: remove unnecessary #include
26008         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26009
26010         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26011         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26012
26013 2011-01-23  Bruno Haible  <bruno@clisp.org>
26014
26015         get-rusage-as: Fix bug.
26016         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26017         original limit when aborting the first loop.
26018
26019 2011-01-23  Bruno Haible  <bruno@clisp.org>
26020
26021         wctype: Ensure valid C syntax.
26022         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26023         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26024
26025 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26026
26027         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26029         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26030         as they are needed only for configure's test case.
26031         This removes two unnecessary symbols from config.h.
26032
26033         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26034         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26036         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26037         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26038         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26039         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26040         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26041         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26042         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26043         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26044         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26045         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26046         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26047         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26048         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26049         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26050         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26051
26052 2011-01-21  Eric Blake  <eblake@redhat.com>
26053
26054         maintainer-makefile: work with older git for submodule check
26055         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26056         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26057         Reported by Matthias Bolte.
26058
26059         bootstrap: minor portability fixes
26060         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26061         (usage): Omit leading capital and trailing . on help phrases, per
26062         GNU Coding Standards.
26063         (check_versions, top level): Prefix messages with script name.
26064
26065 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26066
26067         bootstrap: support --no-git option
26068         * build-aux/bootstrap: Add --no-git option, to be used when
26069         --gnulib-srcdir points to the exact desired checkout.
26070
26071 2011-01-21  Eric Blake  <eblake@redhat.com>
26072
26073         strerror_r-posix: work with glibc 2.13
26074         * lib/strerror_r.c (strerror_r): Fix return type.
26075
26076 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26077             Bruno Haible  <bruno@clisp.org>
26078
26079         uN_strstr: New unit tests.
26080         * modules/unistr/u8-strstr-tests: New file.
26081         * modules/unistr/u16-strstr-tests: New file.
26082         * modules/unistr/u32-strstr-tests: New file.
26083         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26084         * tests/unistr/test-u8-strstr.c: New file.
26085         * tests/unistr/test-u16-strstr.c: New file.
26086         * tests/unistr/test-u32-strstr.c: New file.
26087
26088 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26089             Bruno Haible  <bruno@clisp.org>
26090
26091         Make uN_strstr functions O(n) worst-case.
26092         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26093         16-bit and 32-bit unit cases, use the unibyte algorithm from
26094         lib/mbsstr.c.
26095         * lib/unistr/u8-strstr.c: Include <string.h>.
26096         (UNIT_IS_UINT8_T): New macro.
26097         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26098         (U_STRLEN, U_STRNLEN): New macros.
26099         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26100         (U_STRLEN, U_STRNLEN): New macros.
26101         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26102         (configure.ac): Update required libunistring version.
26103         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26104         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26105         malloca.
26106         (configure.ac): Update required libunistring version.
26107         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26108         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26109         malloca.
26110         (configure.ac): Update required libunistring version.
26111
26112 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26113             Bruno Haible  <bruno@clisp.org>
26114
26115         Prepare for faster uN_strstr functions.
26116         * lib/str-kmp.h: Support definable UNITs.
26117         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26118         needle_len argument.
26119         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26120         * lib/mbscasestr.c (mbscasestr): Likewise.
26121
26122 2011-01-21  Pádraig Brady <P@draigBrady.com>
26123
26124         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26125         * tests/test-malloca.c (main): Unset the environment variable
26126         to greatly speed up the test.
26127         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26128         * modules/malloca-tests: Depend on unsetenv.
26129
26130 2011-01-21  Pádraig Brady <P@draigBrady.com>
26131
26132         ignore-value: remove stdint dependency
26133         * lib/ignore-value.h: Remove <stdint.h>
26134         * modules/ignore-value: Remove stdint dependency.
26135
26136 2011-01-21  Jim Meyering  <meyering@redhat.com>
26137
26138         maint.mk: adjust variable name to be consistent with other gl_ vars
26139         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26140         to be lower case.
26141
26142 2011-01-20  Jim Meyering  <meyering@redhat.com>
26143
26144         maint.mk: make "check" depend on public-submodule-commit by default
26145         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26146
26147 2011-01-20  Bruno Haible  <bruno@clisp.org>
26148
26149         mbfile, mbiter: Complete change from 2008-12-21.
26150         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26151         * m4/mbiter.m4 (gl_MBITER): Likewise.
26152
26153 2011-01-20  Jim Meyering  <meyering@redhat.com>
26154
26155         init.sh: insert space between each function name and "()"
26156         * tests/init.sh: Make it a little easier to see that a function's
26157         name is "warn_", and not "warn" when looking at the first part of
26158         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26159
26160 2011-01-20  Jim Meyering  <meyering@redhat.com>
26161
26162         mountlist: clean up code formatting
26163         * lib/mountlist.c (read_file_system_list): Split a long line,
26164         correct bracing style, use NULL in place of "(struct statfs *)0",
26165         don't parenthesize return value, add spaces around "=" and after
26166         ";-in-for-stmt".
26167
26168 2011-01-14  Markus Duft <mduft@gentoo.org>
26169
26170         mountlist: add support for Interix
26171         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26172         Apply statvfs to all entries of /dev/fs.
26173         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26174         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26175
26176 2011-01-20  Jim Meyering  <meyering@redhat.com>
26177
26178         maint.mk: improve the public-submodule-commit rule
26179         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26180         to suppress printing of its commands... unless V=1.
26181         Add git submodule's --quiet option to suppress printing of e.g.,
26182         "Entering gnulib" output.
26183         "cd" into $(srcdir) before running git submodule.
26184
26185 2011-01-20  Bruno Haible  <bruno@clisp.org>
26186
26187         include_next: Fix bug introduced on 2011-01-18.
26188         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26189         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26190         ac_cv_header_... variable if the second argument is not 'check'.
26191         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26192         gl_NEXT_HEADERS_INTERNAL.
26193
26194 2011-01-20  Bruno Haible  <bruno@clisp.org>
26195
26196         Allow the user to avoid the GNULIB_TEST_* macros.
26197         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26198         Suggested by Paul Eggert.
26199
26200 2011-01-14  Jim Meyering  <meyering@redhat.com>
26201
26202         bootstrap: avoid failure when there is no .gitmodules file
26203         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26204         has been assigned to, even when its value is the empty string.
26205         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26206         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26207         Reported by John W. Eaton <jwe@gnu.org>.
26208
26209 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26210
26211         assume <ctype.h>, ..., <time.h> exist
26212         For years gnulib has been assuming the existence of the headers
26213         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26214         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26215         them, since they don't appear to be needed.
26216         * README (Portability guidelines): Document this.
26217         * lib/flock.c: Assume <fcntl.h> exists.
26218         * lib/regex_internal.h: Assume <locale.h> exists.
26219         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26220         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26221         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26222         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26223         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26224         * m4/regex.m4 (gl_REGEX): Likewise.
26225         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26226         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26227         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26228         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26229         * tests/test-argp.c: Likewise.
26230         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26231
26232         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26233         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26234         AA_APPLE_UNIVERSAL_BUILD.  See
26235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26236         * NEWS: Document this.
26237
26238 2011-01-19  Eric Blake  <eblake@redhat.com>
26239
26240         c-stack: assume stack overflow if SA_SIGINFO unsupported
26241         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26242         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26243         sigaction will work.
26244         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26245         behavior match Linux.
26246         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26247
26248         stdbool-tests: accommodate Haiku
26249         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26250
26251         binary-io: fix O_TEXT on Haiku
26252         * modules/binary-io (Depends-on): Add fcntl-h.
26253         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26254         than blindly undefining O_TEXT.
26255         Reported by Scott McCreary.
26256
26257 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26258
26259         include_next: do not check for standard headers like stddef.h
26260
26261         I found this problem when modifying Emacs to use gnulib.
26262         I noticed that it added HAVE_STDDEF_H to config.h, even though
26263         gnulib always assumes <stddef.h> exists as per README and this
26264         symbol is unnecessary.
26265         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26266         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26267         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26268         faster for headers like stddef.h that are known to exist.
26269         (gl_CHECK_NEXT_HEADERS): Use it.
26270         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26271         rather than gl_CHECK_NEXT_HEADERS.
26272         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26273         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26274
26275 2011-01-18  Eric Blake  <eblake@redhat.com>
26276
26277         ansi-c++-opt: skip C++ dependency style if C++ is unused
26278         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26279         tests when we know C++ compilation is not desired.
26280         Reported by Scott McCreary.
26281
26282 2011-01-18  Bruno Haible  <bruno@clisp.org>
26283
26284         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26285         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26286         (main): Perform test also when getrlimit and setrlimit don't exist or
26287         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26288         limiting the address space size using setrlimit, compare the address
26289         space size before and after the the test.
26290         * tests/test-dprintf-posix2.c: Likewise.
26291         * tests/test-fprintf-posix3.sh: Update skip messages.
26292         * tests/test-dprintf-posix2.sh: Likewise.
26293         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26294         * modules/dprintf-posix-tests (Depends-on): Likewise.
26295         Reported by Bruce Korb <bkorb@gnu.org> and
26296         Gary V. Vaughan <gary@gnu.org>.
26297
26298 2011-01-18  Bruno Haible  <bruno@clisp.org>
26299
26300         get-rusage-as: Improvement for Cygwin.
26301         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26302         areas that are merely reserved.
26303
26304 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26305
26306         strftime: remove dependencies on multibyte modules
26307
26308         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26309         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26310         only if __osf__ is defined, and I suspect OSF doesn't need these
26311         other modules.  If my guess is wrong, we'll need to come up with a
26312         variant of strftime that doesn't need the multibyte modules.
26313
26314         I discovered this problem when attempting modify Emacs to use the
26315         strftime module.  With the previous gnulib, this caused Emacs to
26316         need 31 new files, ranging from lib/config.charset to
26317         m4/wint_t.m4.  This was overkill and I expect would be offputting
26318         to the Emacs maintainers.  After this change, only 6 new files are
26319         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26320         stdbool.m4, and tm_gmtoff.m4.
26321
26322         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26323         Suggested by Bruno Haible in
26324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26325         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26326         and do not check for wchar.h.
26327         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26328         (Depends-on): Remove mbrlen, mbsinit, wchar.
26329
26330 2011-01-18  Bruno Haible  <bruno@clisp.org>
26331
26332         Tests for module 'get-rusage-as'.
26333         * modules/get-rusage-as-tests: New file.
26334         * tests/test-get-rusage-as.c: New file.
26335
26336         New module 'get-rusage-as'.
26337         * modules/get-rusage-as: New file.
26338         * lib/resource-ext.h: New file.
26339         * lib/get-rusage-as.c: New file.
26340
26341 2011-01-17  Eric Blake  <eblake@redhat.com>
26342
26343         sigaction: relax license from LGPLv3+ to LGPLv2+
26344         * modules/sigaction (License): Relax to LGPLv2+.
26345
26346 2011-01-14  Bruno Haible  <bruno@clisp.org>
26347
26348         filemode: Make function declarations usable in C++ mode.
26349         * lib/filemode.h: Enclose function declarations in extern "C" block.
26350         Reported by John W. Eaton <jwe@gnu.org>.
26351
26352 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26353
26354         save-cwd: no longer include "xgetcwd.h"
26355         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26356         This avoids a compilation failure in projects that use save-cwd
26357         without also using the xgetcwd module.
26358
26359 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26360
26361         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26362         This is so that a program like Emacs, which needs only dtoastr,
26363         does not have to bother with distributing and compiling ftoastr
26364         and ldtoastr.
26365         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26366         * modules/dtoastr, modules/ldtoastr: New files.
26367         * modules/ftoastr: Now works just for 'float'.
26368         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26369         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26370         dtoastr.c, ldtoastr.c.
26371
26372 2011-01-11  Jim Meyering  <meyering@redhat.com>
26373
26374         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26375         There is no need to work around the lack of the fchdir function,
26376         since gnulib can now provide a replacement when required.
26377         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26378         * modules/save-cwd (Depends-on): Add fchdir.
26379
26380 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26381
26382         openat, save-cwd: avoid xmalloc
26383
26384         This removes a direct (but undocumented) dependency of openat on
26385         xalloc, along with an indirect dependency via save-cwd.  It also
26386         removes a dependency of save-cwd on xgetcwd, and thereby
26387         indirectly on xalloc.  This change causes the openat substitute
26388         to fall back on save_cwd when memory is tight, and for save_cwd to
26389         fail instead of dying when memory is tight, but that's good enough.
26390         Problem and initial idea for fix reported by Bastien Roucaries in
26391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26392
26393         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26394         xalloc.h (for xmalloc).
26395         (openat_proc_name): Use malloc, not xmalloc.
26396         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26397         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26398
26399         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26400         This avoids heap allocation for file names whose lengths are in
26401         the range 512..1023, with the upper bound increasing to at most
26402         4031 depending on the platform's PATH_MAX.  (We do not want
26403         pathmax.h here as it might supply a non-constant PATH_MAX.)
26404         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26405         Perhaps they should be moved to malloca.h?
26406         (OPENAT_BUFFER_SIZE): Use them.
26407
26408 2011-01-10  Bruno Haible  <bruno@clisp.org>
26409
26410         doc: Update users.txt.
26411         * users.txt: Add recutils.
26412
26413 2011-01-09  Karl Berry  <karl@gnu.org>
26414
26415         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26416
26417         * doc/configmake.texi: New file.
26418         * doc/gnulib.texi: Include it.
26419         * modules/configmake: Move documentation from here.
26420
26421 2011-01-09  Bruno Haible  <bruno@clisp.org>
26422
26423         Update to Unicode 6.0.0.
26424         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26425         (get_lbp): Update for Unicode 6.0.0.
26426         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26427         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26428         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26429         U+11001, U+11038..U+11046. Remove U+06DE.
26430         (uc_width): Fix bounds of planes.
26431         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26432         lib/uniwidth/width.c.
26433         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26434         trailing whitespace removed.
26435         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26436         without comments, but with the original copyright notice.
26437         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26438         * lib/unicase/ignorable.h: Likewise.
26439         * lib/unicase/tocasefold.h: Likewise.
26440         * lib/unicase/tolower.h: Likewise.
26441         * lib/unicase/totitle.h: Likewise.
26442         * lib/unicase/toupper.h: Likewise.
26443         * lib/unictype/bidi_of.h: Likewise.
26444         * lib/unictype/blocks.h: Likewise.
26445         * lib/unictype/categ_C.h: Likewise.
26446         * lib/unictype/categ_Cn.h: Likewise.
26447         * lib/unictype/categ_L.h: Likewise.
26448         * lib/unictype/categ_Ll.h: Likewise.
26449         * lib/unictype/categ_Lm.h: Likewise.
26450         * lib/unictype/categ_Lo.h: Likewise.
26451         * lib/unictype/categ_Lu.h: Likewise.
26452         * lib/unictype/categ_M.h: Likewise.
26453         * lib/unictype/categ_Mc.h: Likewise.
26454         * lib/unictype/categ_Me.h: Likewise.
26455         * lib/unictype/categ_Mn.h: Likewise.
26456         * lib/unictype/categ_N.h: Likewise.
26457         * lib/unictype/categ_Nd.h: Likewise.
26458         * lib/unictype/categ_No.h: Likewise.
26459         * lib/unictype/categ_P.h: Likewise.
26460         * lib/unictype/categ_Po.h: Likewise.
26461         * lib/unictype/categ_S.h: Likewise.
26462         * lib/unictype/categ_Sc.h: Likewise.
26463         * lib/unictype/categ_Sk.h: Likewise.
26464         * lib/unictype/categ_Sm.h: Likewise.
26465         * lib/unictype/categ_So.h: Likewise.
26466         * lib/unictype/categ_of.h: Likewise.
26467         * lib/unictype/combining.h: Likewise.
26468         * lib/unictype/ctype_alnum.h: Likewise.
26469         * lib/unictype/ctype_alpha.h: Likewise.
26470         * lib/unictype/ctype_graph.h: Likewise.
26471         * lib/unictype/ctype_lower.h: Likewise.
26472         * lib/unictype/ctype_print.h: Likewise.
26473         * lib/unictype/ctype_punct.h: Likewise.
26474         * lib/unictype/ctype_upper.h: Likewise.
26475         * lib/unictype/decdigit.h: Likewise.
26476         * lib/unictype/digit.h: Likewise.
26477         * lib/unictype/numeric.h: Likewise.
26478         * lib/unictype/pr_alphabetic.h: Likewise.
26479         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26480         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26481         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26482         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26483         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26484         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26485         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26486         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26487         * lib/unictype/pr_case_ignorable.h: Likewise.
26488         * lib/unictype/pr_cased.h: Likewise.
26489         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26490         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26491         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26492         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26493         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26494         * lib/unictype/pr_combining.h: Likewise.
26495         * lib/unictype/pr_composite.h: Likewise.
26496         * lib/unictype/pr_currency_symbol.h: Likewise.
26497         * lib/unictype/pr_decimal_digit.h: Likewise.
26498         * lib/unictype/pr_deprecated.h: Likewise.
26499         * lib/unictype/pr_format_control.h: Likewise.
26500         * lib/unictype/pr_grapheme_base.h: Likewise.
26501         * lib/unictype/pr_grapheme_extend.h: Likewise.
26502         * lib/unictype/pr_grapheme_link.h: Likewise.
26503         * lib/unictype/pr_id_continue.h: Likewise.
26504         * lib/unictype/pr_id_start.h: Likewise.
26505         * lib/unictype/pr_ideographic.h: Likewise.
26506         * lib/unictype/pr_lowercase.h: Likewise.
26507         * lib/unictype/pr_math.h: Likewise.
26508         * lib/unictype/pr_numeric.h: Likewise.
26509         * lib/unictype/pr_other_alphabetic.h: Likewise.
26510         * lib/unictype/pr_other_id_continue.h: Likewise.
26511         * lib/unictype/pr_other_math.h: Likewise.
26512         * lib/unictype/pr_punctuation.h: Likewise.
26513         * lib/unictype/pr_sentence_terminal.h: Likewise.
26514         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26515         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26516         * lib/unictype/pr_unified_ideograph.h: Likewise.
26517         * lib/unictype/pr_uppercase.h: Likewise.
26518         * lib/unictype/pr_xid_continue.h: Likewise.
26519         * lib/unictype/pr_xid_start.h: Likewise.
26520         * lib/unictype/scripts.h: Likewise.
26521         * lib/unictype/scripts_byname.gperf: Likewise.
26522         * lib/unictype/sy_java_ident.h: Likewise.
26523         * lib/unigbrk/gbrkprop.h: Likewise.
26524         * lib/unilbrk/lbrkprop1.h: Likewise.
26525         * lib/unilbrk/lbrkprop2.h: Likewise.
26526         * lib/uninorm/decomposition-table2.h: Likewise.
26527         * lib/uniwbrk/wbrkprop.h: Likewise.
26528         * tests/unicase/test-cased.c: Likewise.
26529         * tests/unicase/test-ignorable.c: Likewise.
26530         * tests/unicase/test-uc_tolower.c: Likewise.
26531         * tests/unicase/test-uc_totitle.c: Likewise.
26532         * tests/unicase/test-uc_toupper.c: Likewise.
26533         * tests/unictype/test-categ_C.c: Likewise.
26534         * tests/unictype/test-categ_Cn.c: Likewise.
26535         * tests/unictype/test-categ_L.c: Likewise.
26536         * tests/unictype/test-categ_Ll.c: Likewise.
26537         * tests/unictype/test-categ_Lm.c: Likewise.
26538         * tests/unictype/test-categ_Lo.c: Likewise.
26539         * tests/unictype/test-categ_Lu.c: Likewise.
26540         * tests/unictype/test-categ_M.c: Likewise.
26541         * tests/unictype/test-categ_Mc.c: Likewise.
26542         * tests/unictype/test-categ_Me.c: Likewise.
26543         * tests/unictype/test-categ_Mn.c: Likewise.
26544         * tests/unictype/test-categ_N.c: Likewise.
26545         * tests/unictype/test-categ_Nd.c: Likewise.
26546         * tests/unictype/test-categ_No.c: Likewise.
26547         * tests/unictype/test-categ_P.c: Likewise.
26548         * tests/unictype/test-categ_Po.c: Likewise.
26549         * tests/unictype/test-categ_S.c: Likewise.
26550         * tests/unictype/test-categ_Sc.c: Likewise.
26551         * tests/unictype/test-categ_Sk.c: Likewise.
26552         * tests/unictype/test-categ_Sm.c: Likewise.
26553         * tests/unictype/test-categ_So.c: Likewise.
26554         * tests/unictype/test-ctype_alnum.c: Likewise.
26555         * tests/unictype/test-ctype_alpha.c: Likewise.
26556         * tests/unictype/test-ctype_graph.c: Likewise.
26557         * tests/unictype/test-ctype_lower.c: Likewise.
26558         * tests/unictype/test-ctype_print.c: Likewise.
26559         * tests/unictype/test-ctype_punct.c: Likewise.
26560         * tests/unictype/test-ctype_upper.c: Likewise.
26561         * tests/unictype/test-decdigit.h: Likewise.
26562         * tests/unictype/test-digit.h: Likewise.
26563         * tests/unictype/test-numeric.h: Likewise.
26564         * tests/unictype/test-pr_alphabetic.c: Likewise.
26565         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26566         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26567         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26568         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26569         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26570         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26571         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26572         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26573         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26574         * tests/unictype/test-pr_cased.c: Likewise.
26575         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26576         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26577         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26578         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26579         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26580         * tests/unictype/test-pr_combining.c: Likewise.
26581         * tests/unictype/test-pr_composite.c: Likewise.
26582         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26583         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26584         * tests/unictype/test-pr_deprecated.c: Likewise.
26585         * tests/unictype/test-pr_format_control.c: Likewise.
26586         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26587         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26588         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26589         * tests/unictype/test-pr_id_continue.c: Likewise.
26590         * tests/unictype/test-pr_id_start.c: Likewise.
26591         * tests/unictype/test-pr_ideographic.c: Likewise.
26592         * tests/unictype/test-pr_lowercase.c: Likewise.
26593         * tests/unictype/test-pr_math.c: Likewise.
26594         * tests/unictype/test-pr_numeric.c: Likewise.
26595         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26596         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26597         * tests/unictype/test-pr_other_math.c: Likewise.
26598         * tests/unictype/test-pr_punctuation.c: Likewise.
26599         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26600         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26601         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26602         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26603         * tests/unictype/test-pr_uppercase.c: Likewise.
26604         * tests/unictype/test-pr_xid_continue.c: Likewise.
26605         * tests/unictype/test-pr_xid_start.c: Likewise.
26606         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26607         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26608         changes.
26609         * lib/unictype/categ_Cc.h: Likewise.
26610         * lib/unictype/categ_Cf.h: Likewise.
26611         * lib/unictype/categ_Co.h: Likewise.
26612         * lib/unictype/categ_Cs.h: Likewise.
26613         * lib/unictype/categ_Lt.h: Likewise.
26614         * lib/unictype/categ_Nl.h: Likewise.
26615         * lib/unictype/categ_Pc.h: Likewise.
26616         * lib/unictype/categ_Pd.h: Likewise.
26617         * lib/unictype/categ_Pe.h: Likewise.
26618         * lib/unictype/categ_Pf.h: Likewise.
26619         * lib/unictype/categ_Pi.h: Likewise.
26620         * lib/unictype/categ_Ps.h: Likewise.
26621         * lib/unictype/categ_Z.h: Likewise.
26622         * lib/unictype/categ_Zl.h: Likewise.
26623         * lib/unictype/categ_Zp.h: Likewise.
26624         * lib/unictype/categ_Zs.h: Likewise.
26625         * lib/unictype/ctype_blank.h: Likewise.
26626         * lib/unictype/ctype_cntrl.h: Likewise.
26627         * lib/unictype/ctype_digit.h: Likewise.
26628         * lib/unictype/ctype_space.h: Likewise.
26629         * lib/unictype/ctype_xdigit.h: Likewise.
26630         * lib/unictype/mirror.h: Likewise.
26631         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26632         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26633         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26634         * lib/unictype/pr_bidi_control.h: Likewise.
26635         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26636         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26637         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26638         * lib/unictype/pr_bidi_pdf.h: Likewise.
26639         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26640         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26641         * lib/unictype/pr_dash.h: Likewise.
26642         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26643         * lib/unictype/pr_diacritic.h: Likewise.
26644         * lib/unictype/pr_extender.h: Likewise.
26645         * lib/unictype/pr_hex_digit.h: Likewise.
26646         * lib/unictype/pr_hyphen.h: Likewise.
26647         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26648         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26649         * lib/unictype/pr_ignorable_control.h: Likewise.
26650         * lib/unictype/pr_iso_control.h: Likewise.
26651         * lib/unictype/pr_join_control.h: Likewise.
26652         * lib/unictype/pr_left_of_pair.h: Likewise.
26653         * lib/unictype/pr_line_separator.h: Likewise.
26654         * lib/unictype/pr_logical_order_exception.h: Likewise.
26655         * lib/unictype/pr_non_break.h: Likewise.
26656         * lib/unictype/pr_not_a_character.h: Likewise.
26657         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26658         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26659         * lib/unictype/pr_other_id_start.h: Likewise.
26660         * lib/unictype/pr_other_lowercase.h: Likewise.
26661         * lib/unictype/pr_other_uppercase.h: Likewise.
26662         * lib/unictype/pr_paired_punctuation.h: Likewise.
26663         * lib/unictype/pr_paragraph_separator.h: Likewise.
26664         * lib/unictype/pr_pattern_syntax.h: Likewise.
26665         * lib/unictype/pr_pattern_white_space.h: Likewise.
26666         * lib/unictype/pr_private_use.h: Likewise.
26667         * lib/unictype/pr_quotation_mark.h: Likewise.
26668         * lib/unictype/pr_radical.h: Likewise.
26669         * lib/unictype/pr_soft_dotted.h: Likewise.
26670         * lib/unictype/pr_space.h: Likewise.
26671         * lib/unictype/pr_titlecase.h: Likewise.
26672         * lib/unictype/pr_variation_selector.h: Likewise.
26673         * lib/unictype/pr_white_space.h: Likewise.
26674         * lib/unictype/pr_zero_width.h: Likewise.
26675         * lib/unictype/sy_c_ident.h: Likewise.
26676         * lib/unictype/sy_c_whitespace.h: Likewise.
26677         * lib/unictype/sy_java_whitespace.h: Likewise.
26678         * lib/uninorm/composition-table.gperf: Likewise.
26679         * lib/uninorm/decomposition-table1.h: Likewise.
26680         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26681         LB8.
26682         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26683         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26684         * modules/unictype/*: Bump version number of expected libunistring
26685         version.
26686
26687 2011-01-09  Bruno Haible  <bruno@clisp.org>
26688
26689         Update to Unicode 5.2.0.
26690         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26691         trailing whitespace removed.
26692
26693 2011-01-09  Bruno Haible  <bruno@clisp.org>
26694
26695         New Unicode character properties, from Unicode 5.2.0.
26696         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26697         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26698         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26699         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26700         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26701         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26702         uc_is_property_cased, uc_is_property_case_ignorable,
26703         uc_is_property_changes_when_lowercased,
26704         uc_is_property_changes_when_uppercased,
26705         uc_is_property_changes_when_titlecased,
26706         uc_is_property_changes_when_casefolded,
26707         uc_is_property_changes_when_casemapped): New declarations.
26708         * lib/unictype/pr_byname.gperf: Add the new properties.
26709         * modules/unictype/property-byname (Depends-on): Depend on the new
26710         properties modules.
26711         * modules/unictype/property-all (Depends-on): Likewise.
26712         * MODULES.html.sh (Unicode string functions): Add
26713         unictype/property-case-ignorable, unictype/property-cased,
26714         unictype/property-changes-when-casefolded,
26715         unictype/property-changes-when-casemapped,
26716         unictype/property-changes-when-lowercased,
26717         unictype/property-changes-when-titlecased,
26718         unictype/property-changes-when-uppercased.
26719
26720         New module 'unictype/property-changes-when-casemapped'.
26721         * modules/unictype/property-changes-when-casemapped: New file.
26722         * lib/unictype/pr_changes_when_casemapped.c: New file.
26723         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26724         generated by gen-uni-tables.
26725         * modules/unictype/property-changes-when-casemapped-tests: New file.
26726         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26727         automatically generated by gen-uni-tables.
26728
26729         New module 'unictype/property-changes-when-casefolded'.
26730         * modules/unictype/property-changes-when-casefolded: New file.
26731         * lib/unictype/pr_changes_when_casefolded.c: New file.
26732         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26733         generated by gen-uni-tables.
26734         * modules/unictype/property-changes-when-casefolded-tests: New file.
26735         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26736         automatically generated by gen-uni-tables.
26737
26738         New module 'unictype/property-changes-when-titlecased'.
26739         * modules/unictype/property-changes-when-titlecased: New file.
26740         * lib/unictype/pr_changes_when_titlecased.c: New file.
26741         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26742         generated by gen-uni-tables.
26743         * modules/unictype/property-changes-when-titlecased-tests: New file.
26744         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26745         automatically generated by gen-uni-tables.
26746
26747         New module 'unictype/property-changes-when-uppercased'.
26748         * modules/unictype/property-changes-when-uppercased: New file.
26749         * lib/unictype/pr_changes_when_uppercased.c: New file.
26750         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26751         generated by gen-uni-tables.
26752         * modules/unictype/property-changes-when-uppercased-tests: New file.
26753         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26754         automatically generated by gen-uni-tables.
26755
26756         New module 'unictype/property-changes-when-lowercased'.
26757         * modules/unictype/property-changes-when-lowercased: New file.
26758         * lib/unictype/pr_changes_when_lowercased.c: New file.
26759         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26760         generated by gen-uni-tables.
26761         * modules/unictype/property-changes-when-lowercased-tests: New file.
26762         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26763         automatically generated by gen-uni-tables.
26764
26765         New module 'unictype/property-case-ignorable'.
26766         * modules/unictype/property-case-ignorable: New file.
26767         * lib/unictype/pr_case_ignorable.c: New file.
26768         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26769         by gen-uni-tables.
26770         * modules/unictype/property-case-ignorable-tests: New file.
26771         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26772         generated by gen-uni-tables.
26773
26774         New module 'unictype/property-cased'.
26775         * modules/unictype/property-cased: New file.
26776         * lib/unictype/pr_cased.c: New file.
26777         * lib/unictype/pr_cased.h: New file, automatically generated by
26778         gen-uni-tables.
26779         * modules/unictype/property-cased-tests: New file.
26780         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26781         gen-uni-tables.
26782
26783 2011-01-09  Bruno Haible  <bruno@clisp.org>
26784
26785         Update to Unicode 5.2.0.
26786         * lib/gen-uni-tables.c (output_predicate, output_category,
26787         output_combclass, output_bidi_category, output_decimal_digit_test,
26788         output_decimal_digit, output_digit_test, output_digit,
26789         output_numeric_test, output_numeric, output_mirror, output_scripts,
26790         output_scripts_byname, output_blocks, output_ident_category): Fix
26791         comment header.
26792         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26793         get_wbp.
26794         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26795         items.
26796         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26797         Changes_When_Lowercased, Changes_When_Uppercased,
26798         Changes_When_Titlecased, Changes_When_Casefolded,
26799         Changes_When_Casemapped.
26800         (is_property_alphabetic, is_property_default_ignorable_code_point):
26801         Update for Unicode 5.2.0.
26802         (is_property_cased, is_property_case_ignorable,
26803         is_property_changes_when_lowercased,
26804         is_property_changes_when_uppercased,
26805         is_property_changes_when_titlecased,
26806         is_property_changes_when_casefolded,
26807         is_property_changes_when_casemapped): New functions.
26808         (output_properties): Output also the properties cased, case_ignorable,
26809         changes_when_lowercased, changes_when_uppercased,
26810         changes_when_titlecased, changes_when_casefolded,
26811         changes_when_casemapped.
26812         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26813         Unicode TR#11 revision 17 -> 19.
26814         (LBP_CP): New enumeration value.
26815         (LBP_*): Adjust values accordingly.
26816         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26817         TR#14 revision 22 -> 24.
26818         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26819         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26820         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26821         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26822         is_WBP_MIDLETTER.
26823         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26824         the code1 and code2 of each composition rule.
26825         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26826         * lib/unicase/ignorable.h: Likewise.
26827         * lib/unicase/tocasefold.h: Likewise.
26828         * lib/unicase/tolower.h: Likewise.
26829         * lib/unicase/totitle.h: Likewise.
26830         * lib/unicase/toupper.h: Likewise.
26831         * lib/unictype/bidi_of.h: Likewise.
26832         * lib/unictype/blocks.h: Likewise.
26833         * lib/unictype/categ_C.h: Likewise.
26834         * lib/unictype/categ_Cf.h: Likewise.
26835         * lib/unictype/categ_Cn.h: Likewise.
26836         * lib/unictype/categ_L.h: Likewise.
26837         * lib/unictype/categ_Ll.h: Likewise.
26838         * lib/unictype/categ_Lm.h: Likewise.
26839         * lib/unictype/categ_Lo.h: Likewise.
26840         * lib/unictype/categ_Lu.h: Likewise.
26841         * lib/unictype/categ_M.h: Likewise.
26842         * lib/unictype/categ_Mc.h: Likewise.
26843         * lib/unictype/categ_Mn.h: Likewise.
26844         * lib/unictype/categ_N.h: Likewise.
26845         * lib/unictype/categ_Nd.h: Likewise.
26846         * lib/unictype/categ_Nl.h: Likewise.
26847         * lib/unictype/categ_No.h: Likewise.
26848         * lib/unictype/categ_P.h: Likewise.
26849         * lib/unictype/categ_Pd.h: Likewise.
26850         * lib/unictype/categ_Po.h: Likewise.
26851         * lib/unictype/categ_S.h: Likewise.
26852         * lib/unictype/categ_Sc.h: Likewise.
26853         * lib/unictype/categ_So.h: Likewise.
26854         * lib/unictype/categ_of.h: Likewise.
26855         * lib/unictype/combining.h: Likewise.
26856         * lib/unictype/ctype_alnum.h: Likewise.
26857         * lib/unictype/ctype_alpha.h: Likewise.
26858         * lib/unictype/ctype_graph.h: Likewise.
26859         * lib/unictype/ctype_lower.h: Likewise.
26860         * lib/unictype/ctype_print.h: Likewise.
26861         * lib/unictype/ctype_punct.h: Likewise.
26862         * lib/unictype/ctype_upper.h: Likewise.
26863         * lib/unictype/decdigit.h: Likewise.
26864         * lib/unictype/digit.h: Likewise.
26865         * lib/unictype/numeric.h: Likewise.
26866         * lib/unictype/pr_alphabetic.h: Likewise.
26867         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26868         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26869         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26870         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26871         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26872         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26873         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26874         * lib/unictype/pr_combining.h: Likewise.
26875         * lib/unictype/pr_composite.h: Likewise.
26876         * lib/unictype/pr_currency_symbol.h: Likewise.
26877         * lib/unictype/pr_dash.h: Likewise.
26878         * lib/unictype/pr_decimal_digit.h: Likewise.
26879         * lib/unictype/pr_deprecated.h: Likewise.
26880         * lib/unictype/pr_diacritic.h: Likewise.
26881         * lib/unictype/pr_extender.h: Likewise.
26882         * lib/unictype/pr_grapheme_base.h: Likewise.
26883         * lib/unictype/pr_grapheme_extend.h: Likewise.
26884         * lib/unictype/pr_grapheme_link.h: Likewise.
26885         * lib/unictype/pr_id_continue.h: Likewise.
26886         * lib/unictype/pr_id_start.h: Likewise.
26887         * lib/unictype/pr_ideographic.h: Likewise.
26888         * lib/unictype/pr_ignorable_control.h: Likewise.
26889         * lib/unictype/pr_logical_order_exception.h: Likewise.
26890         * lib/unictype/pr_lowercase.h: Likewise.
26891         * lib/unictype/pr_numeric.h: Likewise.
26892         * lib/unictype/pr_other_alphabetic.h: Likewise.
26893         * lib/unictype/pr_punctuation.h: Likewise.
26894         * lib/unictype/pr_sentence_terminal.h: Likewise.
26895         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26896         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26897         * lib/unictype/pr_unified_ideograph.h: Likewise.
26898         * lib/unictype/pr_uppercase.h: Likewise.
26899         * lib/unictype/pr_xid_continue.h: Likewise.
26900         * lib/unictype/pr_xid_start.h: Likewise.
26901         * lib/unictype/pr_zero_width.h: Likewise.
26902         * lib/unictype/scripts.h: Likewise.
26903         * lib/unictype/scripts_byname.gperf: Likewise.
26904         * lib/unictype/sy_java_ident.h: Likewise.
26905         * lib/unigbrk/gbrkprop.h: Likewise.
26906         * lib/unilbrk/lbrkprop1.h: Likewise.
26907         * lib/unilbrk/lbrkprop2.h: Likewise.
26908         * lib/unilbrk/lbrktables.h: Likewise.
26909         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
26910         LBP_CP. Implement rule LB30.
26911         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26912         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26913         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26914         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26915         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26916         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26917         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26918         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26919         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26920         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26921         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26922         bits instead of 16 bits in the code1 and code2 of each composition
26923         rule.
26924         (uc_composition): Update for Unicode 5.2.0.
26925         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26926         * lib/uninorm/decomposition-table2.h: Likewise.
26927         * lib/uniwbrk/wbrkprop.h: Likewise.
26928         * tests/unicase/test-cased.c: Likewise.
26929         * tests/unicase/test-ignorable.c: Likewise.
26930         * tests/unicase/test-uc_tolower.c: Likewise.
26931         * tests/unicase/test-uc_totitle.c: Likewise.
26932         * tests/unicase/test-uc_toupper.c: Likewise.
26933         * tests/unictype/test-categ_C.c: Likewise.
26934         * tests/unictype/test-categ_Cf.c: Likewise.
26935         * tests/unictype/test-categ_Cn.c: Likewise.
26936         * tests/unictype/test-categ_L.c: Likewise.
26937         * tests/unictype/test-categ_Ll.c: Likewise.
26938         * tests/unictype/test-categ_Lm.c: Likewise.
26939         * tests/unictype/test-categ_Lo.c: Likewise.
26940         * tests/unictype/test-categ_Lu.c: Likewise.
26941         * tests/unictype/test-categ_M.c: Likewise.
26942         * tests/unictype/test-categ_Mc.c: Likewise.
26943         * tests/unictype/test-categ_Mn.c: Likewise.
26944         * tests/unictype/test-categ_N.c: Likewise.
26945         * tests/unictype/test-categ_Nd.c: Likewise.
26946         * tests/unictype/test-categ_Nl.c: Likewise.
26947         * tests/unictype/test-categ_No.c: Likewise.
26948         * tests/unictype/test-categ_P.c: Likewise.
26949         * tests/unictype/test-categ_Pd.c: Likewise.
26950         * tests/unictype/test-categ_Po.c: Likewise.
26951         * tests/unictype/test-categ_S.c: Likewise.
26952         * tests/unictype/test-categ_Sc.c: Likewise.
26953         * tests/unictype/test-categ_So.c: Likewise.
26954         * tests/unictype/test-ctype_alnum.c: Likewise.
26955         * tests/unictype/test-ctype_alpha.c: Likewise.
26956         * tests/unictype/test-ctype_graph.c: Likewise.
26957         * tests/unictype/test-ctype_lower.c: Likewise.
26958         * tests/unictype/test-ctype_print.c: Likewise.
26959         * tests/unictype/test-ctype_punct.c: Likewise.
26960         * tests/unictype/test-ctype_upper.c: Likewise.
26961         * tests/unictype/test-decdigit.h: Likewise.
26962         * tests/unictype/test-digit.h: Likewise.
26963         * tests/unictype/test-numeric.h: Likewise.
26964         * tests/unictype/test-pr_alphabetic.c: Likewise.
26965         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26966         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26967         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26968         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26969         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26970         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26971         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26972         * tests/unictype/test-pr_combining.c: Likewise.
26973         * tests/unictype/test-pr_composite.c: Likewise.
26974         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26975         * tests/unictype/test-pr_dash.c: Likewise.
26976         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26977         * tests/unictype/test-pr_deprecated.c: Likewise.
26978         * tests/unictype/test-pr_diacritic.c: Likewise.
26979         * tests/unictype/test-pr_extender.c: Likewise.
26980         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26981         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26982         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26983         * tests/unictype/test-pr_id_continue.c: Likewise.
26984         * tests/unictype/test-pr_id_start.c: Likewise.
26985         * tests/unictype/test-pr_ideographic.c: Likewise.
26986         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26987         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26988         * tests/unictype/test-pr_lowercase.c: Likewise.
26989         * tests/unictype/test-pr_numeric.c: Likewise.
26990         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26991         * tests/unictype/test-pr_punctuation.c: Likewise.
26992         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26993         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26994         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26995         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26996         * tests/unictype/test-pr_uppercase.c: Likewise.
26997         * tests/unictype/test-pr_xid_continue.c: Likewise.
26998         * tests/unictype/test-pr_xid_start.c: Likewise.
26999         * tests/unictype/test-pr_zero_width.c: Likewise.
27000         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27001         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27002         changed behaviour: line breaking is now disallowed between a letter
27003         or '=' and '('.
27004         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27005         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27006         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27007         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27008         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27009         lib/uniwidth/width.c.
27010         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27011         without comments, but with the original copyright notice.
27012         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27013         changes.
27014         * lib/unictype/categ_Cc.h: Likewise.
27015         * lib/unictype/categ_Co.h: Likewise.
27016         * lib/unictype/categ_Cs.h: Likewise.
27017         * lib/unictype/categ_Lt.h: Likewise.
27018         * lib/unictype/categ_Me.h: Likewise.
27019         * lib/unictype/categ_Pc.h: Likewise.
27020         * lib/unictype/categ_Pe.h: Likewise.
27021         * lib/unictype/categ_Pf.h: Likewise.
27022         * lib/unictype/categ_Pi.h: Likewise.
27023         * lib/unictype/categ_Ps.h: Likewise.
27024         * lib/unictype/categ_Sk.h: Likewise.
27025         * lib/unictype/categ_Sm.h: Likewise.
27026         * lib/unictype/categ_Z.h: Likewise.
27027         * lib/unictype/categ_Zl.h: Likewise.
27028         * lib/unictype/categ_Zp.h: Likewise.
27029         * lib/unictype/categ_Zs.h: Likewise.
27030         * lib/unictype/ctype_blank.h: Likewise.
27031         * lib/unictype/ctype_cntrl.h: Likewise.
27032         * lib/unictype/ctype_digit.h: Likewise.
27033         * lib/unictype/ctype_space.h: Likewise.
27034         * lib/unictype/ctype_xdigit.h: Likewise.
27035         * lib/unictype/mirror.h: Likewise.
27036         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27037         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27038         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27039         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27040         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27041         * lib/unictype/pr_bidi_control.h: Likewise.
27042         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27043         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27044         * lib/unictype/pr_bidi_pdf.h: Likewise.
27045         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27046         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27047         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27048         * lib/unictype/pr_format_control.h: Likewise.
27049         * lib/unictype/pr_hex_digit.h: Likewise.
27050         * lib/unictype/pr_hyphen.h: Likewise.
27051         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27052         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27053         * lib/unictype/pr_iso_control.h: Likewise.
27054         * lib/unictype/pr_join_control.h: Likewise.
27055         * lib/unictype/pr_left_of_pair.h: Likewise.
27056         * lib/unictype/pr_line_separator.h: Likewise.
27057         * lib/unictype/pr_math.h: Likewise.
27058         * lib/unictype/pr_non_break.h: Likewise.
27059         * lib/unictype/pr_not_a_character.h: Likewise.
27060         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27061         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27062         * lib/unictype/pr_other_id_continue.h: Likewise.
27063         * lib/unictype/pr_other_id_start.h: Likewise.
27064         * lib/unictype/pr_other_lowercase.h: Likewise.
27065         * lib/unictype/pr_other_math.h: Likewise.
27066         * lib/unictype/pr_other_uppercase.h: Likewise.
27067         * lib/unictype/pr_paired_punctuation.h: Likewise.
27068         * lib/unictype/pr_paragraph_separator.h: Likewise.
27069         * lib/unictype/pr_pattern_syntax.h: Likewise.
27070         * lib/unictype/pr_pattern_white_space.h: Likewise.
27071         * lib/unictype/pr_private_use.h: Likewise.
27072         * lib/unictype/pr_quotation_mark.h: Likewise.
27073         * lib/unictype/pr_radical.h: Likewise.
27074         * lib/unictype/pr_soft_dotted.h: Likewise.
27075         * lib/unictype/pr_space.h: Likewise.
27076         * lib/unictype/pr_titlecase.h: Likewise.
27077         * lib/unictype/pr_variation_selector.h: Likewise.
27078         * lib/unictype/pr_white_space.h: Likewise.
27079         * lib/unictype/sy_c_ident.h: Likewise.
27080         * lib/unictype/sy_c_whitespace.h: Likewise.
27081         * lib/unictype/sy_java_whitespace.h: Likewise.
27082         * modules/uni*/*: Bump version number of expected libunistring version.
27083         Reported by Simon Josefsson.
27084
27085 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27086
27087         useless-if-before-free: fix typo in --help and make the internal,
27088         automatic version date update process work once again.
27089         --help output contained a NUL character instead of the
27090         backslash-zero that was intended.  Also, the "must lie within
27091         the first 8 lines" line is on line 9, and hence not getting
27092         automatically updated.
27093         * build-aux/useless-if-before-free: Fix the former by adding a
27094         backslash, and the latter by condensing the three lines of what-it-does
27095         to a single line, leaving one line of slack for the future.
27096
27097 2011-01-09  Bruno Haible  <bruno@clisp.org>
27098
27099         uniwidth/width: Fix width of U+1D173..U+1D17A.
27100         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27101         symbolic_width, output_width_property_test): New functions.
27102         (main): Invoke output_nonspacing_property, output_width_property_test.
27103         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27104         U+1D173..U+1D17A.
27105         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27106         1.
27107         * modules/uniwidth/*: Bump version number of expected libunistring
27108         version.
27109         * modules/unilbrk/*: Likewise.
27110
27111 2011-01-08  Bruno Haible  <bruno@clisp.org>
27112
27113         uninorm tests: Preserve copyright of Unicode data file.
27114         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27115         Mention modifications.
27116
27117 2011-01-08  Bruno Haible  <bruno@clisp.org>
27118
27119         gen-uni-tables: Prepare for Unicode 5.2.0.
27120         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27121         (debug_output_lbp, output_lbp): Update.
27122
27123 2011-01-08  Bruno Haible  <bruno@clisp.org>
27124
27125         unilbrk: Clarify gen-uni-tables.c code.
27126         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27127         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27128         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27129
27130 2011-01-07  Bruno Haible  <bruno@clisp.org>
27131
27132         strtod: Restore errno when successfully parsing Infinity or NaN.
27133         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27134         restore the original errno.
27135
27136 2011-01-07  Bruno Haible  <bruno@clisp.org>
27137
27138         remove test: Avoid failure on HP-UX 11.
27139         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27140
27141 2011-01-07  Bruno Haible  <bruno@clisp.org>
27142
27143         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27144         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27145         error code.
27146
27147 2011-01-07  Pádraig Brady <P@draigBrady.com>
27148
27149         ignore-value: fixup comments, and add Eric Blake
27150         as an author since he rewrote the macros.
27151         * lib/ignore-value.h (ignore_value):  State that
27152         we now support aggregates.  Also specify exactly
27153         when the GCC warn_unused_result feature was added.
27154
27155 2011-01-06  Eric Blake  <eblake@redhat.com>
27156
27157         ignore-value: support aggregate types
27158         * lib/ignore-value.h (ignore_value): Provide separate gcc
27159         definition.
27160         * modules/ignore-value-tests: New test module.
27161         * tests/test-ignore-value.c: New test.
27162
27163         maint.mk: improve sc_prohibit_strcmp regex
27164         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27165         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27166         definition of STRNEQ.
27167
27168         signal: work around Haiku issue with SIGBUS
27169         * lib/siglist.h: Add comment.
27170         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27171         strsignal's favoring of SIGSEGV.
27172         * tests/test-signal.c (main): Avoid test failure.
27173         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27174         Reported by Scott McCreary.
27175
27176         maint.mk: add pre-release check to ensure submodule commits are public
27177         * top/maint.mk (public-submodule-commit): New rule.
27178         (submodule-checks): New variable.
27179         (alpha beta stable): Depend on the variable.
27180
27181 2011-01-05  Pádraig Brady <P@draigBrady.com>
27182         and Jim Meyering  <meyering@redhat.com>
27183
27184         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27185         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27186         (ATTRIBUTE_DEPRECATED): Define.
27187         (_ignore_case): New function.
27188         (ignore_value): New macro, to replace the old function.
27189         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27190         * modules/ignore-value (Depends-on): Add stdint.
27191
27192 2011-01-04  Eric Blake  <eblake@redhat.com>
27193
27194         doc: regenerate INSTALL
27195         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27196         @firstparagraphindent support, now that autoconf dropped it.
27197         (INSTALL_PRELUDE): Reinstate old macro.
27198         * doc/install.texi: Resync from autoconf.
27199         * doc/INSTALL: Reflect recent autoconf update.
27200         * doc/INSTALL.ISO: Likewise.
27201         * doc/INSTALL.UTF-8: Likewise.
27202         Reported by Karl Berry.
27203
27204 2011-01-04  Bruce Korb  <address@hidden>
27205
27206         git-version-gen: avoid a sub-shell
27207         * build-aux/git-version-gen: Redirect stderr in `...` via
27208         "exec 2>...", rather than via an added sub-shell.
27209
27210 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27211
27212         git-version-gen: use (...) rather than sh -c '...'
27213         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27214         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27215
27216 2011-01-03  Jim Meyering  <meyering@redhat.com>
27217
27218         git-version-gen: convert leading TABs to spaces
27219         * build-aux/git-version-gen: Expand leading TABs.
27220
27221         git-version-gen: handle failed "git rev-list"
27222         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27223         from git and proceeding as if it had succeeded but printed no SHA1
27224         checksums, suppress the diagnostic and handle the failure.
27225         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27226
27227         git-version-gen: include command name in one more diagnostic
27228         * build-aux/git-version-gen: When the required .tarball-version file
27229         was missing or unreadable, you might see the diagnostic from "cat",
27230         but no trace of the name of the invoking script.  Now, you still see
27231         the diagnostic from cat, but also get one from "git-version-gen: ".
27232         Inspired by a patch from Bruce Korb.
27233
27234         update-copyright: adjust test to match changed code
27235         * tests/test-update-copyright.sh: Change test's expected output
27236         to match new actual output.
27237
27238 2011-01-02  Bruno Haible  <bruno@clisp.org>
27239
27240         getlogin_r: Avoid test failure on HP-UX 11.
27241         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27242         ERANGE when the second argument is zero.
27243         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27244         portability problem.
27245
27246 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27247
27248         * build-aux/update-copyright: doc Simon's changes
27249
27250 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27251
27252         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27253         environment variable.
27254
27255 2011-01-02  Bruno Haible  <bruno@clisp.org>
27256
27257         unigbrk: Avoid gcc warnings.
27258         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27259         unused variable.
27260         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27261         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27262         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27263         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27264         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27265         Change type of first argument to 'const char *'.
27266         (main): Remove unused variable.
27267         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27268         type of first argument to 'const char *'.
27269         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27270         Likewise.
27271         (main): Change type of variable 's'.
27272         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27273         to 'int'.
27274
27275 2011-01-02  Bruno Haible  <bruno@clisp.org>
27276
27277         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27278         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27279         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27280         bug.
27281         * lib/pwrite.c: Undo 2010-12-31 patch.
27282         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27283
27284 2011-01-02  Bruno Haible  <bruno@clisp.org>
27285
27286         pread: Fix test whether it works.
27287         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27288
27289 2011-01-02  Bruno Haible  <bruno@clisp.org>
27290
27291         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27292         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27293         ends in "6". Don't require a specific month name. Try also the locale
27294         names found on HP-UX 11 and Solaris 7.
27295
27296 2011-01-02  Bruno Haible  <bruno@clisp.org>
27297
27298         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27299         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27300         C linkage.
27301         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27302
27303 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27304
27305         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27306         for consistency, since the "cluster" term is not used elsewhere.
27307         * lib/unigbrk.in.h: Update name.
27308         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27309         * lib/unigbrk/u16-grapheme-next.c: Update name.
27310         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27311         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27312         * lib/unigbrk/u32-grapheme-next.c: Update name.
27313         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27314         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27315         * lib/unigbrk/u8-grapheme-next.c: Update name.
27316         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27317         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27318         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27319         Suggested by Bruno Haible.
27320
27321 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27322
27323         Remove module 'u8-grapheme-len' as too redundant with
27324         'u8-grapheme-next'.
27325         * modules/unigbrk/u8-grapheme-len: Delete file.
27326         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27327         * lib/unigbrk.in.h: Remove prototype for deleted function.
27328         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27329         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27330
27331         Remove module 'u16-grapheme-len' as too redundant with
27332         'u16-grapheme-next'.
27333         * modules/unigbrk/u16-grapheme-len: Delete file.
27334         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27335         * lib/unigbrk.in.h: Remove prototype for deleted function.
27336         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27337         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27338
27339         Remove module 'u32-grapheme-len' as too redundant with
27340         'u32-grapheme-next'.
27341         * modules/unigbrk/u32-grapheme-len: Delete file.
27342         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27343         * lib/unigbrk.in.h: Remove prototype for deleted function.
27344         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27345         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27346
27347         Suggested by Bruno Haible.
27348
27349 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27350
27351         * unigbrk.in.h: Fix typo: "ben" => "been".
27352         Reported by Bruno Haible.
27353
27354 2011-01-01  Jim Meyering  <meyering@redhat.com>
27355
27356         maint: update almost all copyright ranges to include 2011
27357         Run the new "make update-copyright" rule.
27358
27359 2011-01-01  Jim Meyering  <meyering@redhat.com>
27360
27361         maint: update-copyright: exempt doc/INSTALL*
27362         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27363         since they are generated.  Suggested by Bruno Haible.
27364
27365 2011-01-01  Jim Meyering  <meyering@redhat.com>
27366
27367         maint: refine the update-copyright rule
27368         * Makefile (update-copyright): Also exclude any file that includes
27369         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27370         code that merely generates the comment.
27371
27372 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27373
27374         New module 'u8-grapheme-len'.
27375         * modules/unigbrk/u8-grapheme-len: New file.
27376         * modules/unigbrk/u8-grapheme-len-tests: New file.
27377         * lib/unigbrk.in.h: Add prototype for new function.
27378         * lib/unigbrk/u8-grapheme-len.c: New file.
27379         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27380
27381         New module 'u16-grapheme-len'.
27382         * modules/unigbrk/u16-grapheme-len: New file.
27383         * modules/unigbrk/u16-grapheme-len-tests: New file.
27384         * lib/unigbrk.in.h: Add prototype for new function.
27385         * lib/unigbrk/u16-grapheme-len.c: New file.
27386         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27387
27388         New module 'u32-grapheme-len'.
27389         * modules/unigbrk/u32-grapheme-len: New file.
27390         * modules/unigbrk/u32-grapheme-len-tests: New file.
27391         * lib/unigbrk.in.h: Add prototype for new function.
27392         * lib/unigbrk/u32-grapheme-len.c: New file.
27393         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27394
27395         New module 'u8-grapheme-next'.
27396         * modules/unigbrk/u8-grapheme-next: New file.
27397         * modules/unigbrk/u8-grapheme-next-tests: New file.
27398         * lib/unigbrk.in.h: Add prototype for new function.
27399         * lib/unigbrk/u8-grapheme-next.c: New file.
27400         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27401
27402         New module 'u16-grapheme-next'.
27403         * modules/unigbrk/u16-grapheme-next: New file.
27404         * modules/unigbrk/u16-grapheme-next-tests: New file.
27405         * lib/unigbrk.in.h: Add prototype for new function.
27406         * lib/unigbrk/u16-grapheme-next.c: New file.
27407         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27408
27409         New module 'u32-grapheme-next'.
27410         * modules/unigbrk/u32-grapheme-next: New file.
27411         * modules/unigbrk/u32-grapheme-next-tests: New file.
27412         * lib/unigbrk.in.h: Add prototype for new function.
27413         * lib/unigbrk/u32-grapheme-next.c: New file.
27414         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27415
27416         New module 'u8-grapheme-prev'.
27417         * modules/unigbrk/u8-grapheme-prev: New file.
27418         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27419         * lib/unigbrk.in.h: Add prototype for new function.
27420         * lib/unigbrk/u8-grapheme-prev.c: New file.
27421         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27422
27423         New module 'u16-grapheme-prev'.
27424         * modules/unigbrk/u16-grapheme-prev: New file.
27425         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27426         * lib/unigbrk.in.h: Add prototype for new function.
27427         * lib/unigbrk/u16-grapheme-prev.c: New file.
27428         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27429
27430         New module 'u32-grapheme-prev'.
27431         * modules/unigbrk/u32-grapheme-prev: New file.
27432         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27433         * lib/unigbrk.in.h: Add prototype for new function.
27434         * lib/unigbrk/u32-grapheme-prev.c: New file.
27435         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27436
27437         New module 'u8-grapheme-breaks'.
27438         * modules/unigbrk/u8-grapheme-breaks: New file.
27439         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27440         * lib/unigbrk.in.h: Add prototype for new function.
27441         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27442         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27443
27444         New module 'u16-grapheme-breaks'.
27445         * modules/unigbrk/u16-grapheme-breaks: New file.
27446         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27447         * lib/unigbrk.in.h: Add prototype for new function.
27448         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27449         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27450
27451         New module 'u32-grapheme-breaks'.
27452         * modules/unigbrk/u32-grapheme-breaks: New file.
27453         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27454         * lib/unigbrk.in.h: Add prototype for new function.
27455         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27456         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27457
27458         New module 'ulc-grapheme-breaks'.
27459         * modules/unigbrk/ulc-grapheme-breaks: New file.
27460         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27461         * m4/locale-ar.m4: New file.
27462         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27463         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27464         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27465
27466 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27467
27468         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27469         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27470         modified how this file was generated before I initially submitted
27471         the module, but failed to regenerate it.  This meant that several
27472         of the level2 entries were wrong.
27473         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27474         Remove the division-by-2 that is folded into the table now that
27475         gbrkprop.h has been regenerated properly.  Now -1 entries are
27476         handled correctly.
27477
27478         New module 'unigbrk/uc-gbrk-prop-tests'.
27479         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27480         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27481         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27482         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27483
27484 2011-01-01  Bruno Haible  <bruno@clisp.org>
27485
27486         Avoid use of hexadecimal escapes.
27487         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27488         instead of hexadecimal escapes.
27489
27490 2011-01-01  Jim Meyering  <meyering@redhat.com>
27491
27492         maint: new rule to update copyright year ranges
27493         * Makefile (update-copyright): New rule.
27494
27495         maint: indent with TABs in Makefile
27496         * Makefile: Expand leading sequences of spaces to TABs
27497
27498         version-etc: update the copyright year it reports
27499         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27500
27501 2010-12-31  Bruno Haible  <bruno@clisp.org>
27502
27503         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27504         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27505         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27506         zero.
27507
27508 2010-12-31  Bruno Haible  <bruno@clisp.org>
27509
27510         pwrite: Work around HP-UX 11.11 bug.
27511         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27512         works and set REPLACE_PWRITE if not.
27513         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27514         function.
27515         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27516
27517 2010-12-31  Bruno Haible  <bruno@clisp.org>
27518
27519         pread: Work around HP-UX 11 bugs.
27520         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27521         and set REPLACE_PREAD if not.
27522         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27523
27524 2010-12-31  Eric Blake  <eblake@redhat.com>
27525
27526         nl_langinfo: fix YESEXPR on Irix 6.5
27527         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27528         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27529         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27530         it.
27531
27532 2010-12-31  Bruno Haible  <bruno@clisp.org>
27533
27534         iconv: Document HP-UX 11 bug.
27535         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27536
27537 2010-12-31  Bruno Haible  <bruno@clisp.org>
27538
27539         ldexpl: Fix link error on HP-UX 11.
27540         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27541         LDEXPL_LIBM, using $ISNANL_LIBM.
27542
27543 2010-12-31  Eric Blake  <eblake@redhat.com>
27544
27545         ftello: avoid compilation failure with SunStudio c89
27546         * lib/ftello.c (ftello): Use lseek, not llseek.
27547
27548         tests: avoid failing coreutils tests on cygwin
27549         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27550         (create_exe_shims_): Return 0 when skipping.
27551
27552 2010-12-31  Bruno Haible  <bruno@clisp.org>
27553
27554         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27555         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27556
27557 2010-12-31  Bruno Haible  <bruno@clisp.org>
27558
27559         waitpid: Fix link error in C++ mode.
27560         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27561
27562 2010-12-31  Bruno Haible  <bruno@clisp.org>
27563
27564         isnan: Use GCC built-ins when possible.
27565         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27566         __builtin_isnan.
27567         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27568         (isnan): Define using GCC built-ins for GCC >= 4.0.
27569
27570 2010-12-31  Bruno Haible  <bruno@clisp.org>
27571
27572         isnand: Fix mistake.
27573         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27574         __builtin_isnand.
27575
27576 2010-12-31  Bruno Haible  <bruno@clisp.org>
27577
27578         open: Avoid C++ error on HP-UX 11.
27579         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27580
27581 2010-12-31  Bruno Haible  <bruno@clisp.org>
27582
27583         time_r: Add missing declarations on HP-UX 11.
27584         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27585         instead of HAVE_LOCALTIME_R.
27586         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27587         HAVE_LOCALTIME_R always.
27588         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27589         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27590         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27591         HAVE_LOCALTIME_R.
27592         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27593         * doc/posix-functions/localtime_r.texi: Likewise.
27594
27595 2010-12-29  Eric Blake  <eblake@redhat.com>
27596
27597         mountlist: tweak previous commit
27598         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27599         Reported by Paul Eggert.
27600
27601         mountlist: fix local drive detection on cygwin
27602         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27603         that works for cygwin.
27604
27605 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27606
27607         ftoastr, snprintf: ftoastr + snprintf module
27608         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27609         since the snprintf module now should be good enough here.
27610         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27611         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27612         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27613         GNULIB_SNPRINTF only for the test directory, and the latter
27614         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27615         seems to suffice by itself.
27616
27617 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27618
27619         alloca: one step towards thread-safety
27620         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27621         need for a static variable.  All callers changed.  This does not
27622         make the alloca replacement thread-safe, but it's one step.
27623
27624         tests: minor indenting change
27625         * tests/init.sh: Sync from coreutils housekeeping patch
27626         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27627         to keep lines within 80 columns.
27628
27629 2010-12-28  Jim Meyering  <meyering@redhat.com>
27630
27631         regex: don't infloop on persistent failing calloc
27632         * lib/regexec.c (build_trtable): Return failure indication upon
27633         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27634         In glibc, this was fixed for version 2.13:
27635         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27636
27637 2010-12-28  Bruno Haible  <bruno@clisp.org>
27638             Paul Eggert <eggert@cs.ucla.edu>
27639
27640         linkat: Make implementation robust against system behaviour variations.
27641         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27642         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27643         way, and to -2 if it needs a generic runtime test.
27644         * lib/linkat.c (solaris_optimized_link_immediate,
27645         solaris_optimized_link_follow): New functions.
27646         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27647         (check_same_link): Use it.
27648
27649 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27650
27651         New module 'unigbrk/base'.
27652         * modules/unigbrk/base: New file.
27653         * lib/unigbrk.in.h: New file.
27654
27655         New module 'unigbrk/uc-gbrk-prop'.
27656         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27657         * modules/unigbrk/uc-gbrk-prop: New file.
27658         * lib/unigbrk/gbrkprop.h: New file.
27659         * lib/unigbrk/uc-gbrk-prop.c: New file.
27660
27661         New module 'unigbrk/uc-is-grapheme-break'.
27662         * modules/unigbrk/uc-is-grapheme-break: New file.
27663         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27664         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27665         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27666         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27667         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27668
27669         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27670
27671 2010-12-27  Bruno Haible  <bruno@clisp.org>
27672
27673         linkat test: Avoid failure on Solaris 11 2010-11.
27674         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27675
27676 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27677
27678         utimens: work around glibc rounding bug on more platforms
27679         * lib/utimens.c (fdutimens): Work around rounding bug even if
27680         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27681         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27682
27683 2010-12-27  Bruno Haible  <bruno@clisp.org>
27684
27685         select tests: Improve comments.
27686         * tests/test-select.c (do_select): Add comments.
27687
27688 2010-12-27  Bruno Haible  <bruno@clisp.org>
27689
27690         select tests: Safer way of handling timeout.
27691         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27692         at every invocation.
27693
27694 2010-12-27  Bruno Haible  <bruno@clisp.org>
27695
27696         select tests: Use 'bool' where appropriate.
27697         * tests/test-select.c (connect_to_socket): Change argument type to
27698         'bool'.
27699
27700 2010-12-27  Bruno Haible  <bruno@clisp.org>
27701
27702         select tests: Use existing modules.
27703         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27704         (configure.ac): Don't test for unistd.h.
27705         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27706         declared in <unistd.h>.
27707
27708 2010-12-27  Bruno Haible  <bruno@clisp.org>
27709
27710         mbrtowc: Work around a Solaris 7 bug.
27711         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27712         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27713         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27714         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27715         MBRTOWC_NULL_ARG1_BUG.
27716         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27717         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27718         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27719         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27720
27721 2010-12-27  Jim Meyering  <meyering@redhat.com>
27722
27723         read-file.c: tweak syntax
27724         * lib/read-file.c (fread_file): Remove space after "*" in function
27725         definitions.
27726
27727 2010-12-27  Bruno Haible  <bruno@clisp.org>
27728
27729         times test: Avoid gcc warnings on OSF/1.
27730         * tests/test-times.c (main): Cast printf arguments from clock_t to
27731         'long int'.
27732
27733 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27734
27735         utimens: work around glibc rounding bug on older Linux kernels
27736         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27737         on Linux with a glibc whose utimes might not work, then work
27738         around a longstanding glibc bug involving rounding rather than
27739         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27741
27742 2010-12-26  Bruno Haible  <bruno@clisp.org>
27743
27744         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27745         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27746         _GL_CXXALIAS_SYS.
27747         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27748
27749 2010-12-26  Bruno Haible  <bruno@clisp.org>
27750
27751         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27752         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27753         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27754         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27755         looking for the declaration.
27756         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27757         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27758         problem.
27759         * doc/posix-functions/inet_pton.texi: Likewise.
27760
27761 2010-12-26  Bruno Haible  <bruno@clisp.org>
27762
27763         arpa_inet: Use the common idioms with C++ support.
27764         * lib/arpa_inet.in.h: Include c++defs.h.
27765         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27766         support.
27767         * modules/arpa_inet (Depends-on): Add c++defs.
27768         (Makefile.am): Substitute the contents of c++defs.h.
27769         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27770         * modules/arpa_inet-c++-tests: New file.
27771         * tests/test-arpa_inet-c++.cc: New file.
27772
27773 2010-12-25  Bruno Haible  <bruno@clisp.org>
27774
27775         Fix more C++ link errors on Solaris 8.
27776         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27777         $(LIB_EACCESS).
27778         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27779         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27780         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27781         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27782         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27783
27784 2010-12-25  Bruno Haible  <bruno@clisp.org>
27785
27786         printf-posix: Fix link error when a non-GCC compiler is used.
27787         * lib/stdio.in.h (printf): When not using GCC, override printf
27788         correctly.
27789         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27790
27791 2010-12-25  Bruno Haible  <bruno@clisp.org>
27792
27793         strerror_r-posix: Update doc.
27794         * doc/posix-functions/strerror_r.texi: Update doc about the return
27795         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27796
27797 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27798
27799         utimens: simplify the logic of the previous change
27800         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27801         This should not affect whether the test succeeds or fails.
27802
27803         utimens: configure better on hosts with NFS clock skew
27804         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27805         uses the clock of the local host.  It might use the clock of the
27806         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27807         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27808
27809 2010-12-25  Bruno Haible  <bruno@clisp.org>
27810
27811         ptsname test: Avoid failure on Solaris.
27812         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27813         open a pseudo-terminal; don't use BSD-style ptys.
27814         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27815
27816 2010-12-25  Bruno Haible  <bruno@clisp.org>
27817
27818         ptsname: Avoid ERANGE failure on some systems.
27819         * lib/ptsname.c (buffer): Increase size.
27820
27821 2010-12-25  Bruno Haible  <bruno@clisp.org>
27822
27823         rename, renameat: Avoid test failures at NFS mounted locations.
27824         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27825         so that subsequent mkdir calls succeed.
27826
27827 2010-12-25  Bruno Haible  <bruno@clisp.org>
27828
27829         iswblank: Fix C++ link error on Solaris 8.
27830         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27831         _GL_FUNCDECL_SYS.
27832
27833 2010-12-25  Bruno Haible  <bruno@clisp.org>
27834
27835         unistd: Fix C++ link error on Solaris 8.
27836         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27837
27838 2010-12-25  Bruno Haible  <bruno@clisp.org>
27839
27840         readlink doc: Mention an old glibc bug.
27841         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27842
27843 2010-12-25  Bruno Haible  <bruno@clisp.org>
27844
27845         fcntl-h: Fix for use of C++ on glibc systems.
27846         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27847         also on glibc systems in C++ mode.
27848         Reported by Gary V. Vaughan <gary@gnu.org>.
27849
27850 2010-12-25  Bruno Haible  <bruno@clisp.org>
27851
27852         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27853         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27854
27855 2010-12-25  Bruno Haible  <bruno@clisp.org>
27856
27857         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27858         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27859         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27860         test whether truncl works according to ISO C 99 with IEC 60559.
27861         * m4/truncl-ieee.m4: New file.
27862         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
27863         m4/signbit.m4.
27864         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
27865
27866 2010-12-25  Bruno Haible  <bruno@clisp.org>
27867
27868         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27869         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
27870         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
27871         test whether ceill works according to ISO C 99 with IEC 60559.
27872         * m4/ceill-ieee.m4: New file.
27873         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
27874         m4/signbit.m4.
27875         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
27876
27877 2010-12-25  Bruno Haible  <bruno@clisp.org>
27878
27879         Ensure all prerequisites of <wchar.h> are included.
27880         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
27881         before <wchar.h>.
27882         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27883         gl_MBRLEN_NUL_RETVAL): Likewise.
27884         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27885         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
27886         AC_FUNC_MBRTOWC): Likewise.
27887         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27888         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
27889         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27890         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27891         Likewise.
27892         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27893         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
27894         (gl_WCHAR_H): Improve comments.
27895         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
27896
27897 2010-12-25  Bruno Haible  <bruno@clisp.org>
27898
27899         strtok_r: Fix C syntax error in autoconf macro.
27900         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
27901         characters in test program.
27902
27903 2010-12-24  Bruno Haible  <bruno@clisp.org>
27904
27905         ceil, trunc, round: Fix gcc warnings.
27906         * lib/ceil.c (MIN): Undefine before redefining.
27907         * lib/trunc.c (MIN): Likewise.
27908         * lib/round.c (MIN): Likewise.
27909         Include <math.h> first.
27910
27911 2010-12-24  Bruno Haible  <bruno@clisp.org>
27912
27913         select tests: Avoid failures on OSF/1 5.1.
27914         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27915         failure of closing the last socket; it may fail with ECONNRESET.
27916
27917 2010-12-24  Eric Blake  <eblake@redhat.com>
27918
27919         stdint: avoid HP-UX 10.20 preprocessor bug
27920         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27921         than #if.
27922         * tests/test-floor2.c (main): Likewise.
27923         Reported by Peter O'Gorman.
27924
27925         pipe: make obsoletion transition easier
27926         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27927         * modules/pipe (Files): Include revived file.
27928         (Include): Drop reference, to mirror getdate's behavior.
27929
27930 2010-12-24  Bruno Haible  <bruno@clisp.org>
27931
27932         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27933         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27934         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27935         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27936
27937 2010-12-24  Bruno Haible  <bruno@clisp.org>
27938
27939         gethostname: Ensure declaration on NonStop Kernel.
27940         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27941         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27942
27943 2010-12-24  Bruno Haible  <bruno@clisp.org>
27944
27945         sys_select: Ensure all necessary types on NonStop Kernel.
27946         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27947         include <sys/time.h>.
27948         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27949         NonStop Kernel.
27950         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27951
27952 2010-12-24  Bruno Haible  <bruno@clisp.org>
27953
27954         sys_select: Remove unneeded include.
27955         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27956         have <sys/select.h>.
27957
27958 2010-12-24  Bruno Haible  <bruno@clisp.org>
27959
27960         gethostname: Provide a fallback for HOST_NAME_MAX.
27961         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27962         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27963         instead.
27964         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27965
27966 2010-12-24  Bruno Haible  <bruno@clisp.org>
27967
27968         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27969         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27970         (SA_RESTART): Likewise.
27971         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27972
27973 2010-12-24  Bruno Haible  <bruno@clisp.org>
27974
27975         signal: Define NSIG.
27976         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27977         * tests/test-signal.c (nsig): New variable.
27978         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27979
27980 2010-12-24  Bruno Haible  <bruno@clisp.org>
27981
27982         rename, renameat: Avoid test failures on OSF/1 5.1.
27983         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27984         alternative error codes.
27985         * tests/test-renameat.c (main): Likewise.
27986
27987 2010-12-24  Bruno Haible  <bruno@clisp.org>
27988
27989         *printf: Detect large precisions bug on Solaris 10/SPARC.
27990         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27991         by Paul Eggert.
27992         * tests/test-snprintf-posix.h (test_function): Add this test code here
27993         too.
27994         * tests/test-sprintf-posix.h (test_function): Likewise.
27995         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27996         * tests/test-vasprintf-posix.c (test_function): Likewise.
27997         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27998         around by gnulib.
27999         * doc/posix-functions/printf.texi: Likewise.
28000         * doc/posix-functions/snprintf.texi: Likewise.
28001         * doc/posix-functions/sprintf.texi: Likewise.
28002         * doc/posix-functions/vfprintf.texi: Likewise.
28003         * doc/posix-functions/vprintf.texi: Likewise.
28004         * doc/posix-functions/vsnprintf.texi: Likewise.
28005         * doc/posix-functions/vsprintf.texi: Likewise.
28006         * doc/posix-functions/dprintf.texi: Undo last commit.
28007         * doc/posix-functions/vdprintf.texi: Likewise.
28008
28009 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28010
28011         tests: port test-fdutimensat.c to Solaris 8
28012         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28013         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28014         On Solaris 8, it fails with errno == ENOSYS, because there is no
28015         futimens (so it can't use the fd), and there is no lutimens (so it
28016         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28017
28018         vsnprintf: make more consistent with snprintf; doc fixes
28019
28020         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28021         the byte count return problem was promoted from the snprintf-posix
28022         to the snprintf module.
28023         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28024         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28025         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28026         * tests/test-snprintf.c (main): Check the byte count returned.
28027         * tests/test-vsnprintf.c (main): Likewise.
28028
28029 2010-12-23  Eric Blake  <eblake@redhat.com>
28030
28031         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28032         * modules/sigpipe (License): Relax license.
28033
28034 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28035
28036         doc: document Solaris printf bug with large float precisions
28037         * doc/posix-functions/dprintf.texi (dprintf):
28038         * doc/posix-functions/fprintf.texi (fprintf):
28039         * doc/posix-functions/printf.texi (printf):
28040         * doc/posix-functions/snprintf.texi (snprintf):
28041         * doc/posix-functions/sprintf.texi (sprintf):
28042         * doc/posix-functions/vdprintf.texi (vdprintf):
28043         * doc/posix-functions/vfprintf.texi (vfprintf):
28044         * doc/posix-functions/vprintf.texi (vprintf):
28045         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28046         * doc/posix-functions/vsprintf.texi (vsprintf):
28047         Mention that these functions mishandle large floating point
28048         precisions on Solaris 10.  The same bug is also present in Solaris
28049         8, and I assume earlier.  This causes "cd gnulib-tests; make
28050         check" to fail on Solaris 8 (and I assume, later) when building
28051         the latest coreutils, in test-vasprintf-posix's call to
28052         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28053         the wide flavors (e.g., wprintf) so this patch just updates the
28054         documentation for the narrow ones.
28055
28056         test-posixtm.c: add two tests
28057         * tests/test-posixtm.c: Add two tests, to highlight the
28058         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28059         around this bug; this is merely to document it.
28060
28061 2010-12-22  Bruno Haible  <bruno@clisp.org>
28062
28063         getlogin_r: Work around portability problem on OSF/1.
28064         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28065         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28066         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28067         test for a truncated result.
28068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28069         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28070         * modules/getlogin_r (Depends-on): Add memchr.
28071         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28072
28073 2010-12-22  Bruno Haible  <bruno@clisp.org>
28074
28075         ptsname: Avoid test failure on OSF/1 5.1.
28076         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28077         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28078         (same_slave): New function.
28079         (main): Use it to compare ptsname's result with the expected file name.
28080
28081 2010-12-22  Bruno Haible  <bruno@clisp.org>
28082
28083         Port extended stdio modules to HP NonStop Kernel.
28084         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28085         macros.
28086         * lib/fbufmode.c: Update comments.
28087         * lib/fflush.c: Likewise.
28088         * lib/fpurge.c: Likewise.
28089         * lib/freadable.c: Likewise.
28090         * lib/freadahead.c: Likewise.
28091         * lib/freading.c: Likewise.
28092         * lib/freadptr.c: Likewise.
28093         * lib/freadseek.c: Likewise.
28094         * lib/fseeko.c: Likewise.
28095         * lib/fseterr.c: Likewise.
28096         * lib/fwritable.c: Likewise.
28097         * lib/fwriting.c: Likewise.
28098         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28099
28100 2010-12-22  Bruno Haible  <bruno@clisp.org>
28101
28102         ttyname_r: Work around bug on OSF/1 5.1.
28103         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28104         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28105         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28106         present.
28107         * lib/ttyname_r.c (ttyname_r): Update comments.
28108
28109 2010-12-22  Bruno Haible  <bruno@clisp.org>
28110
28111         round: Implement result sign according to IEEE 754.
28112         * lib/round.c (MIN, MINUS_ZERO): New macros.
28113         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28114         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28115         * tests/test-round-ieee.c (main): Likewise.
28116         * tests/test-roundl-ieee.c (main): Likewise.
28117
28118         trunc: Implement result sign according to IEEE 754.
28119         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28120         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28121         * tests/test-trunc2.c: Include minus-zero.h.
28122         (MINUS_ZERO): New macro.
28123         (trunc_reference): Keep in sync with lib/trunc.c.
28124         * tests/test-truncf2.c: Include minus-zero.h.
28125         (MINUS_ZERO): New macro.
28126         (truncf_reference): Keep in sync with lib/trunc.c.
28127         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28128         * tests/test-trunc-ieee.c (main): Likewise.
28129         * tests/test-truncl-ieee.c (main): Likewise.
28130
28131         ceil: Implement result sign according to IEEE 754.
28132         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28133         (FUNC): Return -0.0 for -1 < x < 0.
28134         * tests/test-ceil2.c: Include minus-zero.h.
28135         (MINUS_ZERO): New macro.
28136         (ceil_reference): Keep in sync with lib/ceil.c.
28137         * tests/test-ceilf2.c: Include minus-zero.h.
28138         (MINUS_ZERO): New macro.
28139         (ceilf_reference): Keep in sync with lib/ceil.c.
28140         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28141         * tests/test-ceil-ieee.c (main): Likewise.
28142         * tests/test-ceill-ieee.c (main): Likewise.
28143
28144         floor: Implement result sign according to IEEE 754.
28145         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28146         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28147         * tests/test-floorf2.c (floorf_reference): Likewise.
28148         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28149         * tests/test-floor-ieee.c (main): Likewise.
28150         * tests/test-floorl-ieee.c (main): Likewise.
28151
28152 2010-12-22  Bruno Haible  <bruno@clisp.org>
28153
28154         getaddrinfo: Update doc.
28155         * doc/posix-functions/gai_strerror.texi: Return type is also different
28156         on AIX and HP-UX.
28157
28158 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28159
28160         getaddrinfo, inet_ntop: Update doc for Solaris.
28161         * doc/posix-functions/gai_strerror.texi: Return type is also an
28162         issue on Solaris 9 and earlier.
28163         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28164         on Solaris 10 and earlier.
28165
28166 2010-12-21  Bruno Haible  <bruno@clisp.org>
28167
28168         New module 'roundl-ieee'.
28169         * modules/roundl-ieee: New file.
28170         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28171         test whether roundl works according to ISO C 99 with IEC 60559.
28172         * m4/roundl-ieee.m4: New file.
28173         * modules/roundl-ieee-tests: New file.
28174         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28175         * tests/test-roundl.c (main): Remove signbit tests.
28176         * modules/roundl-tests (Depends-on): Remove signbit.
28177         * doc/posix-functions/roundl.texi: Mention the new module.
28178
28179 2010-12-21  Bruno Haible  <bruno@clisp.org>
28180
28181         New module 'truncl-ieee'.
28182         * modules/truncl-ieee: New file.
28183         * modules/truncl-ieee-tests: New file.
28184         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28185         * tests/test-truncl.c (main): Remove signbit tests.
28186         * modules/truncl-tests (Depends-on): Remove signbit.
28187         * doc/posix-functions/truncl.texi: Mention the new module.
28188
28189 2010-12-21  Bruno Haible  <bruno@clisp.org>
28190
28191         New module 'ceill-ieee'.
28192         * modules/ceill-ieee: New file.
28193         * modules/ceill-ieee-tests: New file.
28194         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28195         * tests/test-ceill.c (main): Remove signbit tests.
28196         * modules/ceill-tests (Depends-on): Remove signbit.
28197         * doc/posix-functions/ceill.texi: Mention the new module.
28198
28199 2010-12-21  Bruno Haible  <bruno@clisp.org>
28200
28201         New module 'floorl-ieee'.
28202         * modules/floorl-ieee: New file.
28203         * modules/floorl-ieee-tests: New file.
28204         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28205         * tests/test-floorl.c (main): Remove signbit tests.
28206         * modules/floorl-tests (Depends-on): Remove signbit.
28207         * doc/posix-functions/floorl.texi: Mention the new module.
28208
28209 2010-12-21  Bruno Haible  <bruno@clisp.org>
28210
28211         New module 'round-ieee'.
28212         * modules/round-ieee: New file.
28213         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28214         whether round works according to ISO C 99 with IEC 60559.
28215         * m4/round-ieee.m4: New file.
28216         * modules/round-ieee-tests: New file.
28217         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28218         * tests/test-round1.c (main): Remove signbit tests.
28219         * modules/round-tests (Depends-on): Remove 'signbit'.
28220         * doc/posix-functions/round.texi: Mention the new module.
28221
28222 2010-12-21  Bruno Haible  <bruno@clisp.org>
28223
28224         New module 'trunc-ieee'.
28225         * modules/trunc-ieee: New file.
28226         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28227         whether trunc works according to ISO C 99 with IEC 60559.
28228         * m4/trunc-ieee.m4: New file.
28229         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28231         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28232         * modules/trunc-ieee-tests: New file.
28233         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28234         * tests/test-trunc1.c (main): Remove signbit tests.
28235         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28236         * doc/posix-functions/trunc.texi: Mention the new module.
28237
28238 2010-12-21  Bruno Haible  <bruno@clisp.org>
28239
28240         New module 'ceil-ieee'.
28241         * modules/ceil-ieee: New file.
28242         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28243         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28244         ISO C 99 with IEC 60559.
28245         * m4/ceil-ieee.m4: New file.
28246         * modules/ceil (Files): Add lib/ceil.c.
28247         (Depends-on): Add 'float'.
28248         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28249         * lib/math.in.h (ceil): New declaration.
28250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28251         REPLACE_CEIL.
28252         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28253         * modules/ceil-ieee-tests: New file.
28254         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28255         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28256         * doc/posix-functions/ceil.texi: Mention the new module.
28257
28258 2010-12-21  Bruno Haible  <bruno@clisp.org>
28259
28260         New module 'floor-ieee'.
28261         * modules/floor-ieee: New file.
28262         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28263         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28264         ISO C 99 with IEC 60559.
28265         * m4/floor-ieee.m4: New file.
28266         * modules/floor (Files): Add lib/floor.c.
28267         (Depends-on): Add 'float'.
28268         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28269         * lib/math.in.h (floor): New declaration.
28270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28271         REPLACE_FLOOR.
28272         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28273         * modules/floor-ieee-tests: New file.
28274         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28275         * tests/test-math-c++.cc: Check the signature of 'floor'.
28276         * doc/posix-functions/floor.texi: Mention the new module.
28277
28278 2010-12-21  Bruno Haible  <bruno@clisp.org>
28279
28280         New module 'roundf-ieee'.
28281         * modules/roundf-ieee: New file.
28282         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28283         test whether roundf works according to ISO C 99 with IEC 60559.
28284         * m4/roundf-ieee.m4: New file.
28285         * modules/roundf-ieee-tests: New file.
28286         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28287         * tests/test-roundf1.c (main): Remove signbit tests.
28288         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28289         * doc/posix-functions/roundf.texi: Mention the new module.
28290
28291 2010-12-21  Bruno Haible  <bruno@clisp.org>
28292
28293         New module 'truncf-ieee'.
28294         * modules/truncf-ieee: New file.
28295         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28296         test whether truncf works according to ISO C 99 with IEC 60559.
28297         * m4/truncf-ieee.m4: New file.
28298         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28300         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28301         * modules/truncf-ieee-tests: New file.
28302         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28303         * tests/test-truncf1.c (main): Remove signbit tests.
28304         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28305         * doc/posix-functions/truncf.texi: Mention the new module.
28306
28307 2010-12-21  Bruno Haible  <bruno@clisp.org>
28308
28309         New module 'ceilf-ieee'.
28310         * modules/ceilf-ieee: New file.
28311         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28312         test whether ceilf works according to ISO C 99 with IEC 60559.
28313         * m4/ceilf-ieee.m4: New file.
28314         * modules/ceilf-ieee-tests: New file.
28315         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28316         * tests/test-ceilf1.c (main): Remove signbit tests.
28317         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28318         * doc/posix-functions/ceilf.texi: Mention the new module.
28319
28320 2010-12-21  Bruno Haible  <bruno@clisp.org>
28321
28322         New module 'floorf-ieee'.
28323         * modules/floorf-ieee: New file.
28324         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28325         test whether floorf works according to ISO C 99 with IEC 60559.
28326         * m4/floorf-ieee.m4: New file.
28327         * modules/floorf-ieee-tests: New file.
28328         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28329         * tests/test-floorf1.c (main): Remove signbit tests.
28330         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28331         * doc/posix-functions/floorf.texi: Mention the new module.
28332
28333 2010-12-21  Bruno Haible  <bruno@clisp.org>
28334
28335         Support for minus zero in autoconf macros.
28336         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28337         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28338         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28339         * tests/minus-zero.h: Update comments.
28340
28341 2010-12-21  Bruno Haible  <bruno@clisp.org>
28342
28343         Tests for module 'ceil'.
28344         * modules/ceil-tests: New file.
28345         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28346         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28347
28348 2010-12-21  Bruno Haible  <bruno@clisp.org>
28349
28350         Tests for module 'floor'.
28351         * modules/floor-tests: New file.
28352         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28353         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28354
28355 2010-12-21  Bruno Haible  <bruno@clisp.org>
28356
28357         math: Fix indentation.
28358         * lib/math.in.h (floorf): Fix indentation.
28359
28360 2010-12-21  Bruno Haible  <bruno@clisp.org>
28361
28362         Fix cross-compilation guesses on Solaris.
28363         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28364         not match "solaris2.10".
28365         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28366         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28367         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28368
28369 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28370
28371         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28372         This fixes a problem observed with the latest coreutils snapshot
28373         that caused a test to fail on Solaris 8.  src/csplit.c's call
28374         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28375         earlier, instead of returning the number of bytes that would have
28376         been generated; this causes csplit to incorrectly report memory
28377         exhaustion.
28378         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28379         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28380         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28381         comments to match.
28382         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28383         Fix typo in matching older versions of Solaris: "solaris2.10"
28384         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28385         only for guessing while cross-compiling.
28386         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28387
28388 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28389
28390         ftoastr: fix comment again
28391         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28392         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28393         Also, simplify example a bit by using flags = 0.
28394
28395 2010-12-20  Bruno Haible  <bruno@clisp.org>
28396
28397         round*, trunc*: Update documentation regarding glibc.
28398         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28399         * doc/posix-functions/round.texi: Likewise.
28400         * doc/posix-functions/roundl.texi: Likewise.
28401         * doc/posix-functions/truncf.texi: Likewise.
28402         * doc/posix-functions/trunc.texi: Likewise.
28403         * doc/posix-functions/truncl.texi: Likewise.
28404
28405 2010-12-20  Bruno Haible  <bruno@clisp.org>
28406
28407         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28408         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28409         * doc/posix-functions/round.texi: Likewise.
28410         * doc/posix-functions/roundl.texi: Likewise.
28411
28412 2010-12-20  Bruno Haible  <bruno@clisp.org>
28413
28414         ttyname_r: Add missing declaration on HP-UX 11.
28415         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28416         HAVE_TTYNAME_R.
28417         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28418         declared. Set HAVE_TTYNAME_R always.
28419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28420         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28421         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28422         HAVE_TTYNAME_R.
28423         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28424
28425 2010-12-20  Bruno Haible  <bruno@clisp.org>
28426
28427         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28428         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28429         * doc/posix-functions/getlogin_r.texi: Likewise.
28430         * tests/test-getlogin.c: Include <errno.h>.
28431         (main): Avoid test failure on HP-UX 11.11.
28432         * tests/test-getlogin_r.c (main): Likewise.
28433
28434 2010-12-20  Bruno Haible  <bruno@clisp.org>
28435
28436         getlogin_r: Add missing declaration on HP-UX 11.
28437         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28438         declared also when it exists as a function.
28439         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28440
28441 2010-12-20  Bruno Haible  <bruno@clisp.org>
28442
28443         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28444         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28445         through wcrtomb.
28446
28447 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28448
28449         ftoastr: fix comment
28450         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28451         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28452
28453 2010-12-19  Bruno Haible  <bruno@clisp.org>
28454
28455         isnan: Ensure it is a macro.
28456         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28457         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28458         Solaris.
28459
28460 2010-12-19  Bruno Haible  <bruno@clisp.org>
28461
28462         ldexpl test: Fix link error on OSF/1 5.1.
28463         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28464
28465 2010-12-19  Bruno Haible  <bruno@clisp.org>
28466
28467         wctype: Make it work in C++ mode on OSF/1 5.1.
28468         * lib/wctype.in.h (iswblank): Declare but not define here.
28469         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28470         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28471         * modules/wctype (Files): Add lib/iswblank.c.
28472
28473 2010-12-19  Bruno Haible  <bruno@clisp.org>
28474
28475         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28476         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28477         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28478
28479 2010-12-19  Bruno Haible  <bruno@clisp.org>
28480
28481         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28482         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28483         _POSIX_PII_SOCKET.
28484         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28485         * doc/posix-functions/recvfrom.texi: Likewise.
28486         * doc/posix-functions/send.texi: Likewise.
28487         * doc/posix-functions/sendto.texi: Likewise.
28488
28489 2010-12-19  Bruno Haible  <bruno@clisp.org>
28490
28491         tcgetsid: Add missing declaration on OSF/1 5.1.
28492         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28493         HAVE_TCGETSID.
28494         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28495         Don't set HAVE_TCGETSID.
28496         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28497         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28498         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28499         HAVE_TCGETSID.
28500         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28501
28502 2010-12-19  Bruno Haible  <bruno@clisp.org>
28503
28504         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28505         * lib/stdio.in.h: During the include_next statement, let recursive
28506         includes of this file include only the system header file.
28507
28508 2010-12-19  Bruno Haible  <bruno@clisp.org>
28509
28510         iconv_open: Fix regression from 2010-12-04.
28511         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28512         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28513
28514 2010-12-19  Bruno Haible  <bruno@clisp.org>
28515
28516         stdbool test: Avoid a gcc warning.
28517         * tests/test-stdbool.c (main): Fail if e1 is false.
28518         Reported by Jim Meyering.
28519
28520 2010-12-19  Jim Meyering  <meyering@redhat.com>
28521
28522         setenv: restore to working order
28523         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28524         mistakenly removed.
28525         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28526         HAVE_SETENV.
28527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28528         HAVE_SETENV.
28529
28530 2010-12-19  Bruno Haible  <bruno@clisp.org>
28531
28532         Document some different function declarations on OSF/1 5.1.
28533         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28534         * doc/posix-functions/inet_ntop.texi: Likewise.
28535         * doc/posix-functions/gethostname.texi: Likewise.
28536         * lib/unistd.in.h (gethostname): Update comment.
28537
28538 2010-12-19  Bruno Haible  <bruno@clisp.org>
28539
28540         doc: Mention vasprintf-posix module.
28541         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28542         the 'vasprintf-posix' module.
28543         * doc/glibc-functions/vasprintf.texi: Likewise.
28544
28545 2010-12-19  Bruno Haible  <bruno@clisp.org>
28546
28547         unsetenv: Add missing declaration on OSF/1 5.1.
28548         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28549         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28550         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28552         not HAVE_UNSETENV.
28553         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28554         HAVE_UNSETENV.
28555         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28556
28557 2010-12-19  Bruno Haible  <bruno@clisp.org>
28558
28559         setenv: Add missing declaration on OSF/1 5.1.
28560         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28561         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28562         declared. Don't set HAVE_SETENV.
28563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28564         not HAVE_SETENV.
28565         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28566         HAVE_SETENV.
28567         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28568
28569 2010-12-19  Bruno Haible  <bruno@clisp.org>
28570
28571         nl_langinfo tests: Avoid gcc warning.
28572         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28573
28574 2010-12-19  Bruno Haible  <bruno@clisp.org>
28575
28576         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28577         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28578         _GL_CXXALIAS_SYS.
28579
28580 2010-12-19  Bruno Haible  <bruno@clisp.org>
28581
28582         stdbool: Relax test.
28583         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28584         address to 'bool' work in static initializer, for compilers other than
28585         GCC.
28586
28587 2010-12-19  Bruno Haible  <bruno@clisp.org>
28588
28589         ftello: Add missing declaration on OSF/1 5.1.
28590         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28591         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28593         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28594         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28595
28596 2010-12-19  Bruno Haible  <bruno@clisp.org>
28597
28598         fseeko: Add missing declaration on OSF/1 5.1.
28599         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28600         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28602         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28603         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28604
28605 2010-12-19  Bruno Haible  <bruno@clisp.org>
28606
28607         fchdir: Add missing declaration on OSF/1 5.1.
28608         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28609         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28611         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28612         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28613
28614 2010-12-19  Bruno Haible  <bruno@clisp.org>
28615
28616         relocatable-prog-wrapper: Separate from relocatable-prog.
28617         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28618         uninstall-relocwrapper rule here.
28619         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28620         Reported by Ian Beckwith <ianb@erislabs.net>.
28621
28622 2010-12-19  Bruno Haible  <bruno@clisp.org>
28623
28624         unistr/u8-mbsnlen: Add missing dependency.
28625         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28626         Reported by Ian Beckwith <ianb@erislabs.net>.
28627
28628 2010-12-19  Bruno Haible  <bruno@clisp.org>
28629
28630         iconv: Make it possible again to use this module without 'iconv-h'.
28631         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28632         if it is not defined.
28633         Reported by Ian Beckwith <ianb@erislabs.net>.
28634
28635 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28636
28637         acl: port to Solaris 8 when copying from tmpfs to ufs
28638         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28639         error number.  Problem observed on Solaris 8 with latest
28640         coreutils, with "mv A B", where A is on a tmpfs file system and B
28641         is on a ufs file system.  This caused coreutils' mv/part-symlink
28642         test to fail.
28643
28644         tests: set fail=0 at start
28645         * tests/init.sh (setup_): Move fail=0 initialization here ...
28646         (mktempd_): ... from here, so that tests can rely on fail being
28647         set to 0 initially.  This fixes a problem in coreutils; see:
28648         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28649
28650 2010-12-18  Bruno Haible  <bruno@clisp.org>
28651
28652         memmem-simple: Stylistic changes.
28653         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28654         Fix preprocessor directive indentation.
28655
28656 2010-12-15  Pádraig Brady <P@draigBrady.com>
28657
28658         memmem, memmem-simple: reorganize and expand empty needle check
28659         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28660         functional checks to memmem-simple so that one has a fully functional
28661         memmem by using just this module.
28662         Restrict the performance only check to the memmem module.
28663         Also expand the empty needle check to ensure the correct
28664         pointer is returned, not just a non NULL pointer.
28665         * doc/glibc-functions/memmem.texi: Rearrange the portability
28666         documentation to correlate with the rearranged checks.
28667         Clarify exactly how the memmem and memmem-simple modules
28668         relate to each other.
28669
28670 2010-12-15  Pádraig Brady <P@draigBrady.com>
28671             Bruno Haible  <bruno@clisp.org>
28672
28673         Improve cross-compilation guesses for uClibc.
28674         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28675         that uClibc does not have the glibc bug.
28676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28677         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28678
28679 2010-12-14  Eric Blake  <eblake@redhat.com>
28680
28681         configmake: provide fallbacks for oldest supported autotools
28682         * m4/configmake.m4: New file.
28683         * modules/configmake (Files): Ship it.
28684         (configure.ac): Use it to guarantee fallbacks.
28685
28686 2010-12-13  Pádraig Brady <P@draigBrady.com>
28687
28688         read-file: Improve handling of large files
28689         * lib/read-file.c (fread_file): Minimize realloc()s
28690         for regular files, and better manage sizes around SIZE_MAX.
28691
28692 2010-12-13  Eric Blake  <eblake@redhat.com>
28693
28694         cloexec, fcntl: relax license
28695         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28696         consent from all contributors.
28697         * modules/fcntl (License): Likewise.
28698
28699 2010-12-10  Bruno Haible  <bruno@clisp.org>
28700
28701         Tests for module 'pipe-posix'.
28702         * modules/pipe-posix-tests: New file.
28703         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28704
28705 2010-12-10  Bruno Haible  <bruno@clisp.org>
28706
28707         pipe-posix: Make it work in C++ mode.
28708         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28709         (pipe): Use common idiom, not a macro definition.
28710         * lib/pipe.c: New file.
28711         * m4/pipe.m4: New file.
28712         * modules/pipe-posix (Description): Enhance.
28713         (Files): Add lib/pipe.c, m4/pipe.m4.
28714         (configure.ac): Invoke gl_FUNC_PIPE.
28715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28716         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28717         * tests/test-unistd-c++.cc: Check the signature of pipe.
28718
28719 2010-12-10  Bruno Haible  <bruno@clisp.org>
28720
28721         Rename module 'pipe' to 'spawn-pipe'.
28722         * modules/spawn-pipe: New file, renamed from modules/pipe.
28723         (Files, configure.ac, Makefile.am): Update.
28724         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28725         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28726         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28727         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28728         "spawn-pipe.h" instead of "pipe.h".
28729         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28730         to gl_SPAWN_PIPE.
28731         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28732         (Files, Makefile.am): Update.
28733         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28734         Update.
28735         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28736         Include "spawn-pipe.h" instead of "pipe.h".
28737         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28738         * lib/javacomp.c: Likewise.
28739         * lib/javaversion.c: Likewise.
28740         * lib/pipe-filter-gi.c: Likewise.
28741         * lib/pipe-filter-ii.c: Likewise.
28742         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28743         * modules/javacomp (Depends-on): Likewise.
28744         * modules/javaversion (Depends-on): Likewise.
28745         * modules/pipe-filter-gi (Depends-on): Likewise.
28746         * modules/pipe-filter-ii (Depends-on): Likewise.
28747         * MODULES.html.sh (Executing programs): Update.
28748         * NEWS: Mention the change.
28749
28750 2010-12-10  Eric Blake  <eblake@redhat.com>
28751
28752         pipe-posix: new module
28753         * modules/pipe-posix: New file.
28754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28755         (gl_UNISTD_H): Check for declaration.
28756         * modules/unistd (Makefile.am): Substitute it.
28757         * lib/unistd.in.h (pipe): Provide it for mingw.
28758         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28759         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28760
28761 2010-12-07  Bruno Haible  <bruno@clisp.org>
28762
28763         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28764         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28765         u8_strcmp_gnu.
28766         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28767
28768 2010-12-06  Bruno Haible  <bruno@clisp.org>
28769
28770         Update internal documentation.
28771         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28772
28773 2010-12-04  Bruno Haible  <bruno@clisp.org>
28774
28775         Put more information about failed tests into the test return codes.
28776         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28777         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28778         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28779         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28780         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28781         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28782         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28783         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28784         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28785         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28786         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28787         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28788         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28789         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28790         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28791         returns a bit mask.
28792         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28793         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28794         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28795         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28796         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28797         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28798         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28799         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28800         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28801         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28802         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28803         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28804         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28805         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28806         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28807         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28808         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28809         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28810         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28811         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28812         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28813         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28814         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28815         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28816         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28817         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28818         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28819         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28820         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28821         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28822         gl_PRINTF_PRECISION): Likewise.
28823         * m4/regex.m4 (gl_REGEX): Likewise.
28824         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28825         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28826         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28827         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28828         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28829         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28830         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28831         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28832         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28833         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28834         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28835         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28836         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28837         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28838         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28839         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28840         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28841         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28843         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28844         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28845         enumerated value.
28846         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28847
28848 2010-12-04  Bruno Haible  <bruno@clisp.org>
28849
28850         Update for Solaris 11 2010-11.
28851         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28852         Express, released in November 2010.
28853
28854 2010-12-04  Bruno Haible  <bruno@clisp.org>
28855
28856         nproc: Relax license.
28857         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28858         and Paul Eggert.
28859         Requested by Ludovic Courtès <ludo@gnu.org>.
28860
28861 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28862
28863         utimecmp: fine-grained src to nearby coarse-grained dest
28864
28865         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
28866         and the source is on a file system with higher-resolution time
28867         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
28868         not work, and the time stamps are close together, the algorithm to
28869         determine the exact resolution from the read-back mtime was buggy:
28870         it had a "!=" where it should have had an "==".  This bug has been
28871         in the code ever since it was introduced to gnulib.
28872         Problem reported by Dan Jacobson in
28873         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
28874
28875 2010-11-30  Bruno Haible  <bruno@clisp.org>
28876
28877         strerror_r-posix: Fix autoconf test.
28878         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
28879
28880 2010-11-28  Bruno Haible  <bruno@clisp.org>
28881             Paul Eggert  <eggert@cs.ucla.edu>
28882
28883         Tests for module 'getdomainname'.
28884         * modules/getdomainname-tests: New file.
28885         * tests/test-getdomainname.c: New file, based on
28886         tests/test-gethostname.c.
28887
28888 2010-11-28  Bruno Haible  <bruno@clisp.org>
28889             Paul Eggert  <eggert@cs.ucla.edu>
28890
28891         getdomainname: Use the system function when possible.
28892         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
28893         (getdomainname): Replace if needed. Provide the declaration if it is
28894         missing. Don't use _GL_CXXALIAS_SYS_CAST.
28895         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
28896         (getdomainname): When the system has getdomainname, call the system
28897         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
28898         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28899         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
28900         found in libnsl. Look for the declaration also in <netdb.h>. Replace
28901         the function if its second argument is of type 'int' or if it is found
28902         in libnsl.
28903         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
28904         <sys/systeminfo.h> and sysinfo().
28905         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
28906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28907         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
28908         HAVE_GETDOMAINNAME.
28909         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
28910         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28911         * doc/glibc-functions/getdomainname.texi: Document the problems with
28912         the getdomainname declaration.
28913
28914 2010-11-28  Bruno Haible  <bruno@clisp.org>
28915
28916         sys_socket: Ensure ss_family field on AIX.
28917         * lib/sys_socket.in.h (ss_family): New macro definition.
28918         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28919         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28920         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28921         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28922         * modules/sys_socket (Makefile.am): Substitute
28923         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28924         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28925
28926 2010-11-27  Bruno Haible  <bruno@clisp.org>
28927
28928         readline: Improve configure output.
28929         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28930         "checking for readline..." result understandable.
28931
28932 2010-11-27  Bruno Haible  <bruno@clisp.org>
28933
28934         *printf-posix: Detect a bug on Solaris 10/x86.
28935         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28936         for floating-point output.
28937         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28938         directive.
28939         * tests/test-snprintf-posix.h (test_function): Likewise.
28940         * tests/test-sprintf-posix.h (test_function): Likewise.
28941         * tests/test-vasprintf-posix.c (test_function): Likewise.
28942         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28943         * doc/posix-functions/printf.texi: Likewise.
28944         * doc/posix-functions/snprintf.texi: Likewise.
28945         * doc/posix-functions/sprintf.texi: Likewise.
28946         * doc/posix-functions/vfprintf.texi: Likewise.
28947         * doc/posix-functions/vprintf.texi: Likewise.
28948         * doc/posix-functions/vsnprintf.texi: Likewise.
28949         * doc/posix-functions/vsprintf.texi: Likewise.
28950         * doc/glibc-functions/obstack_printf.texi: Likewise.
28951         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28952
28953 2010-11-27  Bruno Haible  <bruno@clisp.org>
28954
28955         Fix link error when module libunistring-optional is in use.
28956         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28957         * modules/striconveha-tests (Makefile.am): Likewise.
28958
28959 2010-11-27  Bruno Haible  <bruno@clisp.org>
28960
28961         regex: Mention link dependencies.
28962         * modules/regex (Link): New section.
28963         * modules/rpmatch (Link): Likewise.
28964         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28965
28966 2010-11-27  Bruno Haible  <bruno@clisp.org>
28967
28968         ftoastr: Fix compilation error on Solaris.
28969         * lib/ftoastr.c: Include <config.h>.
28970
28971 2010-11-27  Bruno Haible  <bruno@clisp.org>
28972
28973         getloadavg: Update documentation.
28974         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28975
28976 2010-11-27  Bruno Haible  <bruno@clisp.org>
28977
28978         sys_socket: Fix test whether the functions are declared.
28979         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28980         not <sys/select.h>.
28981
28982 2010-11-27  Bruno Haible  <bruno@clisp.org>
28983
28984         getpass: Make sure to get system declaration on some platforms.
28985         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28986         gl_USE_SYSTEM_EXTENSIONS.
28987         * modules/getpass (Depends-on): Add extensions.
28988
28989 2010-11-26  Bruno Haible  <bruno@clisp.org>
28990
28991         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28992         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28993         'iconv' module is present.
28994         (ICONV_CONST): New macro.
28995         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28996         ICONV_CONST.
28997         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28998         set ICONV_CONST.
28999         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29000         here.
29001         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29002         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29003         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29004         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29005         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29006         present.
29007
29008 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29009
29010         ftoastr: comment fix
29011         * lib/ftoastr.c: "little" -> "little or no" in comment
29012
29013 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29014
29015         stdint: port to GCC 4.3 + OSX + Octave
29016         On this platform, stdint.h is buggy and defines int64_t to long
29017         long int.  The replacement defined it to long int, causing
29018         problems with C++ style name mangling.  Instead, trust the system
29019         definition if INT64_MAX is defined, and likewise for the unsigned
29020         variant.   Problem reported by Jarno Rajahalme in
29021         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29022         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29023         and don't mess with int64_t and INT64_MAX in this case.
29024         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29025
29026 2010-11-24  Bruno Haible  <bruno@clisp.org>
29027
29028         doc: Corrections regarding MacOS X 10.4 and 10.5.
29029         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29030         MacOS X.
29031         Reported by Simon Josefsson.
29032
29033 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29034
29035         Uninstall ".bin" files installed by relocwrapper.
29036         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29037         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29038         unless it is already there.
29039
29040 2010-11-21  Bruno Haible  <bruno@clisp.org>
29041
29042         Update for NetBSD 5.0.
29043         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29044         NetBSD; the test fails on NetBSD 5.0.
29045         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29046         about NetBSD.
29047
29048 2010-11-21  Bruno Haible  <bruno@clisp.org>
29049
29050         Update for HP-UX 11.23 and HP-UX 11.31.
29051         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29052         HP-UX.
29053
29054 2010-11-21  Bruno Haible  <bruno@clisp.org>
29055
29056         Update for MacOS X 10.5.
29057         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29058         MacOS X; the test fails on MacOS X 10.5.8.
29059         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29060         about MacOS X.
29061
29062 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29063
29064         bootstrap: add bootstrap_sync option.
29065         See discussion at
29066         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29067         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29068         * build-aux/bootstrap: Accept --bootstrap-sync to update
29069         bootstrap if it is not identical to the local gnulib's
29070         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29071         enable this by default.  Accept --no-bootstrap-sync to disable
29072         it.
29073
29074 2010-11-20  Bruno Haible  <bruno@clisp.org>
29075
29076         Ensure that <features.h> is included before __GLIBC__ is tested.
29077         * lib/printf-parse.h: Include <features.h>.
29078         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29079         Reported by Mike Frysinger <vapier@gentoo.org>.
29080
29081         Ensure that <features.h> is included before __GLIBC__ is tested.
29082         * lib/wchar.in.h: Include <features.h>.
29083         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29084         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29085         Reported by Mike Frysinger <vapier@gentoo.org>.
29086
29087         Ensure that <features.h> is included before __GLIBC__ is tested.
29088         * lib/arpa_inet.in.h: Include <features.h>.
29089         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29090         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29091         Reported by Mike Frysinger <vapier@gentoo.org>.
29092
29093         Ensure that <features.h> is included before __GLIBC__ is tested.
29094         * build-aux/link-warning.h: Include <features.h>.
29095         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29096         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29097         Reported by Mike Frysinger <vapier@gentoo.org>.
29098
29099         Ensure that <features.h> is included before __GLIBC__ is tested.
29100         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29101         Reported by Mike Frysinger <vapier@gentoo.org>.
29102
29103 2010-11-20  Bruno Haible  <bruno@clisp.org>
29104
29105         memmem: Fix autoconf test.
29106         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29107
29108 2010-11-20  Bruno Haible  <bruno@clisp.org>
29109
29110         Port to uClibc.
29111         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29112         * lib/fcntl.in.h: Likewise.
29113         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29114         * lib/mbrtowc.c (mbrtowc): Likewise.
29115         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29116         * lib/strerror_r.c: Likewise.
29117         * lib/unistr/u8-strnlen.c: Likewise.
29118         * lib/vasnprintf.c (decimal_point_char): Likewise.
29119         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29120         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29121         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29122         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29123         * tests/test-sigaction.c (handler, main): Likewise.
29124         * lib/freading.h: Treat uClibc like a non-glibc platform.
29125         * lib/freading.c: Likewise.
29126         * lib/gettext.h: Likewise.
29127         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29128         Likewise.
29129         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29130         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29131         * lib/propername.c (proper_name_utf8): Likewise.
29132         * lib/spawn.in.h: Likewise.
29133         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29134         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29135         mem_cd_iconveh_internal): Likewise.
29136         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29137         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29138         strstr, strcasestr): Likewise.
29139         * lib/unicodeio.c (unicode_to_mb): Likewise.
29140         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29141         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29142         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29143         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29144         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29145         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29146         * lib/unistr/u8-stpncpy.c: Likewise.
29147         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29148         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29149         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29150         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29151         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29152         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29153         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29154         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29155         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29156         Likewise.
29157         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29158         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29159         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29160         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29161         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29162         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29163         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29164         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29165         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29166         * tests/test-striconveha.c (main): Likewise.
29167         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29168         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29169         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29170         * doc/posix-functions/getline.texi: Likewise.
29171         Reported by Mike Frysinger <vapier@gentoo.org>.
29172
29173 2010-11-20  Bruno Haible  <bruno@clisp.org>
29174
29175         nproc: Fix condition.
29176         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29177         HAVE_PTHREAD_AFFINITY_NP.
29178
29179 2010-11-20  Bruno Haible  <bruno@clisp.org>
29180
29181         Fix a comment.
29182         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29183
29184 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29185
29186         ftoastr: don't assume snprintf
29187         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29188         Implement a subset of snprintf here, by using sprintf safely.
29189         * modules/ftoastr (Depends-on): Remove snprintf.
29190
29191 2010-11-19  Jim Meyering  <meyering@redhat.com>
29192
29193         test-rename.h: fix compilation failure
29194         * tests/test-rename.h (test_rename): Add omitted "}".
29195
29196 2010-11-17  Jim Meyering  <meyering@redhat.com>
29197
29198         maint.mk: add a URL discussing the no-@acronym policy
29199         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29200
29201 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29202
29203         ftoastr: depend on snprintf, improve comments
29204         * lib/ftoastr.c: Also mention Loitsch's draft.
29205         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29206         needed in the current implementation, but it might simplify
29207         speeding up the code later.
29208         * modules/ftoastr: Depend on snprintf; this improves portability.
29209         Suggested by Bruno Haible in the same email.
29210
29211         ftoastr: port to hosts lacking strtof and strtold
29212         Problem reported by Bruno Haible in
29213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29214         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29215         environment and strtold (and presumably strtof) are not available.
29216         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29217         (configure.ac): Require gl_C99_STRTOLD.
29218
29219 2010-11-18  Bruno Haible  <bruno@clisp.org>
29220
29221         c-strtold: Avoid link error on AIX 7.
29222         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29223         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29224         (gl_C_STRTOLD): Test whether strtold_l exists.
29225         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29226
29227 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29228
29229         intprops: new macro INT_BITS_STRLEN_BOUND
29230         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29231         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29232         not exposed.  Also, it uses a slightly tighter bound than before;
29233         though this makes no practical difference, we might as well be as
29234         tight as we easily can.
29235
29236         ftoastr: new module, for lossless conversion of floats to short strings
29237         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29238         * modules/ftoastr: New files.
29239
29240 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29241
29242         bootstrap: port to Solaris sed
29243         * build-aux/bootstrap (get_version): Port to Solaris sed.
29244         See Ralf Wildenhues's note in
29245         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29246
29247 2010-11-14  Jim Meyering  <meyering@redhat.com>
29248
29249         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29250         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29251         and move definition closer to sole use.
29252
29253 2010-11-13  Jim Meyering  <meyering@redhat.com>
29254
29255         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29256         Now we require at least autoconf-2.59, which means the work-around
29257         is no longer needed.
29258         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29259         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29260         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29261         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29262         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29263
29264 2010-11-13  Bruno Haible  <bruno@clisp.org>
29265
29266         rename, renameat: Avoid test failures at NFS mounted locations.
29267         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29268         functions.
29269         (test_rename): Use assert_nonexistent.
29270         * tests/test-rename.c: Include <dirent.h>.
29271         * tests/test-renameat.c: Likewise.
29272         Reported by Gary V. Vaughan <gary@gnu.org>.
29273
29274         rename, renameat: Document Linux bug with NFS
29275         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29276         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29277         * doc/posix-functions/renameat.texi: Likewise.
29278         Suggested by Eric Blake.
29279
29280 2010-11-13  Bruno Haible  <bruno@clisp.org>
29281
29282         rename test: Add comments.
29283         * tests/test-rename.h (test_rename): Add structure and comments.
29284
29285 2010-11-13  Eric Blake  <eblake@redhat.com>
29286
29287         maintainer-makefile: cover a few more files
29288         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29289         scripts generated within C files, for libvirt.
29290
29291 2010-11-13  Bruno Haible  <bruno@clisp.org>
29292
29293         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29294         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29295         character, return the number of bytes that belong together, not always
29296         1.
29297         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29298         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29299         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29300         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29301         number of bytes of an invalid character.
29302         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29303         (main): Invoke it.
29304         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29305         results.
29306         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29307         malformed byte sequences.
29308         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29309         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29310         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29311         Reported by Ben Pfaff and Paolo Bonzini.
29312
29313 2010-11-13  Bruno Haible  <bruno@clisp.org>
29314
29315         openat: Work around glibc bug with fchownat() and empty file names.
29316         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29317         (gl_FUNC_FCHOWNAT): Invoke it.
29318         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29319         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29320         Reported by Gary V. Vaughan <gary@gnu.org>.
29321
29322 2010-11-13  Bruno Haible  <bruno@clisp.org>
29323
29324         openat: Ensure autoconf macro ordering.
29325         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29326         gl_USE_SYSTEM_EXTENSIONS.
29327         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29328
29329 2010-11-13  Bruno Haible  <bruno@clisp.org>
29330
29331         Update comments.
29332         * lib/unistr/u8-check.c: Update file name in comments.
29333         * lib/unistr/u8-mblen.c: Likewise.
29334         * lib/unistr/u8-prev.c: Likewise.
29335         * lib/unistr/u8-strmblen.c: Likewise.
29336         * lib/unistr/u8-strmbtouc.c: Likewise.
29337
29338 2010-11-13  Jim Meyering  <meyering@redhat.com>
29339
29340         tests: avoid test failure on Solaris 10 due to lack of PATH export
29341         * tests/test-update-copyright.sh: Don't forget to export PATH.
29342
29343         init.sh: ensure that IFS is defined, just in case...
29344         * tests/init.sh (setup_): Ensure that IFS is defined,
29345         so that saving and restoring it works as expected.  This
29346         appears to be useful at least for an old version of dash
29347         from a long time ago (RH 6).  See here for details:
29348         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29349
29350         maint.mk: tighten "test a == b" check
29351         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29352         test to files that contain something like #!/bin/sh.
29353         Without this, coreutils would get two false positives in
29354         the comments of C source files.
29355
29356 2010-11-12  Eric Blake  <eblake@redhat.com>
29357
29358         bootstrap: fix typo in previous attempt
29359         * build-aux/bootstrap (buildreq): Correct the grouping.
29360         Reported by Paul Eggert.
29361
29362         maintainer-makefile: prohibit test x == x
29363         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29364         Based on a report by Matthias Bolte.
29365
29366         bootstrap: allow FreeBSD gzip
29367         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29368         which has no '.' and goes to stderr.
29369         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29370         Reported by Matthias Bolte.
29371
29372         maintainer-makefile: check for i18n setup
29373         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29374         will likely work.
29375
29376 2010-11-12  Bruno Haible  <bruno@clisp.org>
29377
29378         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29379         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29380         * lib/nanosleep.c (nanosleep): Likewise.
29381
29382 2010-11-11  Bruno Haible  <bruno@clisp.org>
29383
29384         fcntl-h: Fix for use of C++ on glibc systems.
29385         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29386         also on glibc systems in C++ mode.
29387         Reported by Gary V. Vaughan <gary@gnu.org>.
29388
29389 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29390
29391         mknod: avoid false failure with dash
29392         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29393
29394 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29395
29396         unlink: Fix "is it should" typo in diagnostic.
29397         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29399
29400 2010-11-11  Bruno Haible  <bruno@clisp.org>
29401
29402         Tests for module 'strerror_r-posix'.
29403         * modules/strerror_r-posix-tests: New file.
29404         * tests/test-strerror_r.c: New file.
29405         * tests/test-string-c++.cc: Check the signature of strerror_r.
29406
29407         New module 'strerror_r-posix'.
29408         * lib/string.in.h (strerror_r): New declaration.
29409         * lib/strerror_r.c: New file.
29410         * m4/strerror_r.m4: New file.
29411         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29412         of strerror_r.
29413         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29414         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29415         * modules/strerror_r-posix: New file.
29416         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29417         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29418         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29419         portability problems.
29420
29421 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29422
29423         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29424         line is also considered for output. Quoted function name in shell
29425         command, so temporary files for functions like MyClass::operator()
29426         are removed correctly without errors.
29427
29428 2010-11-09  Bruno Haible  <bruno@clisp.org>
29429
29430         * doc/posix-functions/strerror.texi: List more failing platforms.
29431
29432         * doc/posix-functions/strerror.texi: Add a comment.
29433
29434 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29435
29436         fdopendir: fix bug on MacOS X when low on file descriptors
29437
29438         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29439         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29440         All callers changed.
29441         (fdopendir): Invoke save_cwd at the top level, not after using
29442         multiple dup() calls to use up file descriptors.  Then retry
29443         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29444         less than the maximum number of open file descriptors, because
29445         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29446         on Mac OS X 10.6.4 for tar 1.24
29447         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29448         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29449         and for tar 1.25
29450         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29451
29452 2010-11-07  Bruno Haible  <bruno@clisp.org>
29453
29454         vasnprintf: Support I flag on glibc systems.
29455         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29456         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29457         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29458         snprintf function.
29459         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29460         glibc systems.
29461         * tests/test-vasnprintf-posix3.c: New file.
29462         * modules/vasnprintf-posix-tests (Files): Add it.
29463         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29464
29465 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29466
29467         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29468         * MODULES.html.sh: For compiler warnings, use name
29469         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29470
29471 2010-11-05  Eric Blake  <eblake@redhat.com>
29472
29473         ceil, floor: avoid spurious failure with icc
29474         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29475         [denormals-as-zero] when optimizing without -mieee-fp option.
29476         * tests/test-floorf2.c (floorf_reference): Likewise.
29477         * tests/test-ceilf1.c (dummy): New function.
29478         (main): Use it to outsmart icc's optimization.
29479         * tests/test-floorf1.c (dummy, main): Likewise.
29480
29481         tests: require working signbit
29482         * modules/ceilf-tests (Depends-on): Add signbit.
29483         * modules/ceill-tests (Depends-on): Likewise.
29484         * modules/floorf-tests (Depends-on): Likewise.
29485         * modules/floorl-tests (Depends-on): Likewise.
29486         * modules/round-tests (Depends-on): Likewise.
29487         * modules/roundf-tests (Depends-on): Likewise.
29488         * modules/roundl-tests (Depends-on): Likewise.
29489         * modules/trunc-tests (Depends-on): Likewise.
29490         * modules/truncf-tests (Depends-on): Likewise.
29491         * modules/truncl-tests (Depends-on): Likewise.
29492
29493         strtod: work around icc bug
29494         * lib/strtod.c (minus_zero): Define to working value.
29495         (strtod): Use it to avoid icc bug.
29496
29497         copysign: enhance tests
29498         * modules/copysign-tests (Files): Add minus-zero.h.
29499         * tests/test-copysign.c (main): Also test zeros.
29500
29501 2010-11-04  Eric Blake  <eblake@redhat.com>
29502
29503         ceil, floor, round, trunc: enhance tests of -0
29504         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29505         * tests/test-ceill.c (main): Likewise.
29506         * tests/test-floorf1.c (main): Likewise.
29507         * tests/test-floorl.c (main): Likewise.
29508         * tests/test-round1.c (main): Likewise.
29509         * tests/test-roundf1.c (main): Likewise.
29510         * tests/test-roundl.c (main): Likewise.
29511         * tests/test-trunc1.c (main): Likewise.
29512         * tests/test-truncf1.c (main): Likewise.
29513         * tests/test-truncl.c (main): Likewise.
29514
29515 2010-11-04  Eric Blake  <eblake@redhat.com>
29516
29517         frexp, tests: work around ICC bug with -zero
29518         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29519         works with more compilers.
29520         * tests/minus-zero.h: New file.
29521         * modules/ceilf-tests (Files): Include it.
29522         * modules/ceill-tests (Files): Likewise.
29523         * modules/floorf-tests (Files): Likewise.
29524         * modules/floorl-tests (Files): Likewise.
29525         * modules/frexp-nolibm-tests (Files): Likewise.
29526         * modules/frexp-tests (Files): Likewise.
29527         * modules/frexpl-nolibm-tests (Files): Likewise.
29528         * modules/frexpl-tests (Files): Likewise.
29529         * modules/isnan-tests (Files): Likewise.
29530         * modules/isnand-nolibm-tests (Files): Likewise.
29531         * modules/isnand-tests (Files): Likewise.
29532         * modules/isnanf-nolibm-tests (Files): Likewise.
29533         * modules/isnanf-tests (Files): Likewise.
29534         * modules/isnanl-nolibm-tests (Files): Likewise.
29535         * modules/isnanl-tests (Files): Likewise.
29536         * modules/round-tests (Files): Likewise.
29537         * modules/roundf-tests (Files): Likewise.
29538         * modules/roundl-tests (Files): Likewise.
29539         * modules/ldexpl-tests (Files): Likewise.
29540         * modules/signbit-tests (Files): Likewise.
29541         * modules/snprintf-posix-tests (Files): Likewise.
29542         * modules/sprintf-posix-tests (Files): Likewise.
29543         * modules/strtod-tests (Files): Likewise.
29544         * modules/trunc-tests (Files): Likewise.
29545         * modules/truncf-tests (Files): Likewise.
29546         * modules/truncl-tests (Files): Likewise.
29547         * modules/vsnprintf-posix-tests (Files): Likewise.
29548         * modules/vsprintf-posix-tests (Files): Likewise.
29549         * modules/vasnprintf-posix-tests (Files): Likewise.
29550         * modules/vasprintf-posix-tests (Files): Likewise.
29551         * tests/test-ceilf1.c (main): Use it.
29552         * tests/test-ceill.c (main): Likewise.
29553         * tests/test-floorf1.c (main): Likewise.
29554         * tests/test-floorl.c (main): Likewise.
29555         * tests/test-frexp.c (main): Likewise.
29556         * tests/test-frexpl.c (main): Likewise.
29557         * tests/test-isnan.c (main): Likewise.
29558         * tests/test-isnand.h (main): Likewise.
29559         * tests/test-isnanf.h (main): Likewise.
29560         * tests/test-isnanl.h (main): Likewise.
29561         * tests/test-ldexpl.c (main): Likewise.
29562         * tests/test-round.c (main): Likewise.
29563         * tests/test-roundf.c (main): Likewise.
29564         * tests/test-roundl.c (main): Likewise.
29565         * tests/test-signbit.c (test_signbitf, test_signbitd)
29566         (test_signbitl): Likewise.
29567         * tests/test-snprintf-posix.h (test_function): Likewise.
29568         * tests/test-sprintf-posix.h (test_function): Likewise.
29569         * tests/test-strtod.c (main): Likewise.
29570         * tests/test-trunc1.c (main): Likewise.
29571         * tests/test-truncf1.c (main): Likewise.
29572         * tests/test-truncl.c (main): Likewise.
29573
29574         isnanl: work around icc bug
29575         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29576
29577 2010-11-03  Eric Blake  <eblake@redhat.com>
29578
29579         tests: fix compiler warnings
29580         * tests/test-getopt.h (test_getopt): Fix condition.
29581         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29582         * tests/test-pipe2.c (main): Likewise.
29583         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29584
29585         utimens: fix broken m4 test
29586         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29587
29588 2010-10-28  Bruno Haible  <bruno@clisp.org>
29589
29590         posix_spawn*, getdtablesize: Relax license.
29591         * modules/posix_spawn (License): Change to LGPLv2+.
29592         * modules/posix_spawnp (License): Likewise.
29593         * modules/posix_spawn-internal (License): Likewise.
29594         * modules/posix_spawnattr_init (License): Likewise.
29595         * modules/posix_spawnattr_getflags (License): Likewise.
29596         * modules/posix_spawnattr_setflags (License): Likewise.
29597         * modules/posix_spawnattr_getpgroup (License): Likewise.
29598         * modules/posix_spawnattr_setpgroup (License): Likewise.
29599         * modules/posix_spawnattr_getschedparam (License): Likewise.
29600         * modules/posix_spawnattr_setschedparam (License): Likewise.
29601         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29602         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29603         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29604         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29605         * modules/posix_spawnattr_getsigmask (License): Likewise.
29606         * modules/posix_spawnattr_setsigmask (License): Likewise.
29607         * modules/posix_spawnattr_destroy (License): Likewise.
29608         * modules/posix_spawn_file_actions_init (License): Likewise.
29609         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29610         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29611         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29612         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29613         * modules/getdtablesize (License): Likewise.
29614         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29615
29616 2010-10-26  Bruno Haible  <bruno@clisp.org>
29617
29618         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29619         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29620         Cygwin and mingw.
29621         Suggested by Eric Blake.
29622
29623 2010-10-26  Bruno Haible  <bruno@clisp.org>
29624
29625         stdio: Work around compilation error due to renameat() on Solaris 10.
29626         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29627         * lib/renameat.c: Don't include <unistd.h> here.
29628         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29629         Reported by Paul Eggert and Eric Blake.
29630
29631 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29632
29633         renameat: port to Solaris 10, which declares renameat in unistd.h
29634
29635         * lib/renameat.c: Include unistd.h before stdio.h, because
29636         Solaris 10 declares renameat in unistd.h.  Problem encountered
29637         when building GNU tar 1.24 on Solaris 10.
29638
29639 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29640
29641         fdopendir: fix C89 compilation
29642         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29643         compilers.
29644
29645 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29646
29647         inttostr: simplify by removing unnecessary redundancy
29648         * lib/anytostr.c: Don't include verify.h.
29649         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29650         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29651         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29652         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29653         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29654         Likewise.
29655         * modules/inttostr (Depends-on): Remove 'verify'.
29656
29657 2010-10-23  Bruno Haible  <bruno@clisp.org>
29658
29659         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29660         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29661         Reported by Eric Blake.
29662
29663 2010-10-23  Bruno Haible  <bruno@clisp.org>
29664
29665         Tests: Fix LOCALE_JA on MirBSD 10.
29666         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29667         to an UTF-8 locale.
29668         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29669         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29670         Reported by Eric Blake.
29671
29672 2010-10-21  Bruno Haible  <bruno@clisp.org>
29673
29674         nl_langinfo test: Avoid test failure on NetBSD 5.
29675         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29676         Reported by Eric Blake.
29677
29678 2010-10-21  Eric Blake  <eblake@redhat.com>
29679
29680         c-stack: work around libsigsegv 2.8 bug
29681         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29682         overflow on at least PowerPC64.
29683
29684 2010-10-17  Bruno Haible  <bruno@clisp.org>
29685
29686         userspec: Drop redundant file.
29687         * modules/userspec (Files): Remove lib/inttostr.h.
29688
29689 2010-10-17  Bruno Haible  <bruno@clisp.org>
29690
29691         nl_langinfo tests: Silence some warnings.
29692         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29693         Reported by Jim Meyering.
29694
29695 2010-10-17  Bruno Haible  <bruno@clisp.org>
29696
29697         Make use of GCC's attribute __alloc_size__.
29698         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29699         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29700         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29701         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29702         __alloc_size__.
29703         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29704         Suggested by Jim Meyering.
29705
29706 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29707
29708         bootstrap: anchor .gitignore entries.
29709         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29710         with...
29711         (insert_vc_ignore): ... this new function, which prepends `/' to
29712         all .gitignore entries before passing them to
29713         insert_sorted_if_absent.
29714
29715 2010-10-16  Bruno Haible  <bruno@clisp.org>
29716
29717         nextafter: Fix configure check.
29718         * modules/nextafter (configure.ac): Correct expected prototype.
29719
29720 2010-10-16  Bruno Haible  <bruno@clisp.org>
29721
29722         termios: Update documentation.
29723         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29724
29725 2010-10-16  Bruno Haible  <bruno@clisp.org>
29726
29727         tests: Make them compile with TinyCC.
29728         * tests/test-strstr.c (main): Remove parentheses around array
29729         initializer.
29730
29731 2010-10-15  Eric Blake  <eblake@redhat.com>
29732
29733         ignore-value: make header idempotent
29734         * lib/ignore-value.h: Add double-inclusion guards.
29735         Reported by Stefan Berger.
29736
29737 2010-10-15  Jim Meyering  <meyering@redhat.com>
29738
29739         GNUmakefile: handle "stable" target, not "major"
29740         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29741         lists in maint.mk and announce-gen.  Without this, "make stable"
29742         would fail to ensure that $(VERSION) is up to date.
29743
29744 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29745
29746         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29747         & co.
29748
29749 2010-10-14  Bruno Haible  <bruno@clisp.org>
29750
29751         vasnprintf: Don't set errno to 0.
29752         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29753         block that sets it to 0.
29754         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29755
29756 2010-10-14  Bruno Haible  <bruno@clisp.org>
29757
29758         socketlib: Fix.
29759         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29760         gl_PREREQ_SYS_H_WINSOCK2.
29761         Reported by Ian Beckwith <ianb@erislabs.net>.
29762
29763 2010-10-13  Jim Meyering  <meyering@redhat.com>
29764
29765         test-select-stdin.c: avoid warn_unused_result warnings
29766         * tests/test-select-stdin.c: Include "macros.h".
29767         ASSERT that read and fflush succeed.
29768
29769 2010-10-13  Jim Meyering  <meyering@redhat.com>
29770
29771         git-version-gen: do require git-VC'd files in cwd
29772         * build-aux/git-version-gen: Reject a git version string
29773         if there are no commits associated with the current directory.
29774         This avoids an unlikely false-positive (unrelated dir whose parent
29775         repository also contains a tag matching v*), as pointed out
29776         by Giuseppe Scrivano in
29777         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29778
29779 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29780
29781         argv-iter: omit nonconforming declaration
29782         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29783         enum arg_iter_err declaration, which doesn't conform to C99.
29784         Solaris 10 cc warns about this.
29785
29786 2010-10-13  Eric Blake  <eblake@redhat.com>
29787
29788         termios: fix compilation on mingw
29789         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29790         (gl_TERMIOS_H): Adjust it on mingw.
29791         * modules/termios (Makefile.am): Substitute new key.
29792         * lib/termios.in.h (includes): Make include_next conditional.
29793         * doc/posix-headers/termios.texi (termios.h): Update
29794         documentation.
29795         Reported by Daniel P. Berrange.
29796
29797 2010-10-13  Jim Meyering  <meyering@redhat.com>
29798
29799         git-version-gen: don't require that .git/ be in the current dir
29800         * build-aux/git-version-gen: Adjust this script so that it works
29801         when run from any working directory beneath the top-level .git/-
29802         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29803         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29804
29805         test-select: avoid warn_unused_result warnings
29806         * tests/test-select.c: Include "macros.h".
29807         ASSERT that each call to read, write, and pipe succeeds.
29808         While not technically required, also check each "close".
29809         * modules/select-tests (Files): Add tests/macros.h.
29810
29811         test-symlinkat: remove declaration of unused local
29812         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29813
29814         test-inttostr: avoid shadowing warnings
29815         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29816         and use malloc rather than the stack for the same reason as
29817         mentioned in the comment justifying the other allocation.
29818
29819 2010-10-11  Bruno Haible  <bruno@clisp.org>
29820
29821         stdlib: Allow multiple gnulib generated replacements to coexist.
29822         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29823         Reported by Sam Steingold <sds@gnu.org>.
29824
29825 2010-10-11  Jim Meyering  <meyering@redhat.com>
29826
29827         fix a documentation typo
29828         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29829
29830 2010-10-11  Eric Blake  <eblake@redhat.com>
29831
29832         futimens: work around Solaris 11 bug
29833         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29834         * tests/test-futimens.h (test_futimens): Enhance, rather than
29835         weaken test.
29836         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29837
29838 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29839
29840         Indentation.
29841         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29842         higher-level operators more to the left.
29843
29844 2010-10-11  Jim Meyering  <meyering@redhat.com>
29845
29846         test-futimens: avoid unwarranted test failure on Solaris 5.11
29847         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29848         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29849         because it tries to dereference the NULL name argument.
29850
29851 2010-10-11  Bruno Haible  <bruno@clisp.org>
29852
29853         Indentation.
29854         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29855         indentation.
29856
29857 2010-10-11  Jim Meyering  <meyering@redhat.com>
29858
29859         spawn.in.h: make indentation consistent with parentheses
29860         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29861         Make indentation consistent with parentheses.
29862
29863 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
29864
29865         Fix mismatched parens in previous commit
29866         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
29867         parens.
29868
29869 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29870
29871         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
29872
29873         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
29874         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
29875         * lib/malloca.c: Include "verify.h".
29876         (verify1): Remove, replacing with a verify call.
29877         * lib/relocwrapper.c (verify1): Likewise.
29878         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
29879         Likewise.
29880         * modules/malloca (Depends-on): Add 'verify'.
29881         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
29882         * modules/vasnprintf (Depends-on): Add 'verify'.
29883         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29884         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29885         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29886         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29887         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29888         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29889         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29890
29891         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
29892
29893         Formerly the style was sometimes 2*X - 1, because the C standard
29894         was wrongly thought to disallow ?: in integral constant expressions.
29895         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
29896         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
29897         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
29898         * lib/stdint.in.h (_verify_intmax_size): Likewise.
29899         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
29900         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
29901         verify that time_t cannot be floating.
29902
29903 2010-10-08  Eric Blake  <eblake@redhat.com>
29904
29905         time: enforce recent POSIX ruling that time_t is integral
29906         * lib/time.in.h (__time_t_must_be_integral): Detect any
29907         problematic systems, allowing the rest of gnulib to assume POSIX.
29908
29909 2010-10-08  Jim Meyering  <meyering@redhat.com>
29910
29911         fdopendir: fix a bug on systems lacking openat and /proc support
29912         OpenBSD 4.7 is one such system.  The most noticeable effect was
29913         failure of any application making nontrivial use of fts: rm, du,
29914         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29915           ./rm: traversal failed: `a': Bad file descriptor
29916         Debugging that, you see that even though FD 6 was closed just
29917         prior to the opendir call in fd_clone_opendir, its resulting
29918         dir->dd_fd was 8, rather than the expected value of 6:
29919
29920         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29921         93                close (fd);
29922         (gdb) n
29923         94                dir = fd_clone_opendir (dupfd);
29924         (gdb) n
29925         95                saved_errno = errno;
29926         (gdb) p dir->dd_fd
29927         $11 = 8
29928
29929         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29930         The problem is that on OpenBSD, fd_clone_opendir has to resort
29931         to using the old-style save/restore CWD mechanism, due to its
29932         lack of openat/proc support, and *that* would steal the FD (6)
29933         that opendir was supposed to use.
29934
29935         The fix is to squirrel away the desired FD so that save_cwd uses a
29936         different one, and then free the dest FD right before calling opendir.
29937         That guarantees opendir will use the required file descriptor.
29938
29939         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29940
29941 2010-10-08  Bruno Haible  <bruno@clisp.org>
29942
29943         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29944         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29945
29946 2010-10-08  Bruno Haible  <bruno@clisp.org>
29947
29948         nanosleep: Make replacement POSIX compliant.
29949         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29950         is out of range.
29951         Reported by Jim Meyering.
29952
29953 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29954
29955         bootstrap: add hook for altering gnulib.mk, for Bison
29956         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29957         the Bison bootstrapping process can rewrite file names and variables
29958         in this file before later parts of 'bootstrap' use the file.
29959         Bison wants to include lib/gnulib.mk from the top-level makefile,
29960         so it needs the file names in this file to be relative to the top
29961         level, not relative to lib; plus it needs variable names to be
29962         rewritten.
29963         (slurp): Use the new function.
29964
29965         bootstrap: reformat for readability
29966         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29967
29968 2010-10-08  Eric Blake  <eblake@redhat.com>
29969
29970         docs: update cygwin progress
29971         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29972         1.7.7.
29973         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29974         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29975         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29976         * doc/posix-functions/carg.texi (carg): Likewise.
29977         * doc/posix-functions/cargf.texi (cargf): Likewise.
29978         * doc/posix-functions/casin.texi (casin): Likewise.
29979         * doc/posix-functions/casinf.texi (casinf): Likewise.
29980         * doc/posix-functions/casinh.texi (casinh): Likewise.
29981         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29982         * doc/posix-functions/catan.texi (catan): Likewise.
29983         * doc/posix-functions/catanf.texi (catanf): Likewise.
29984         * doc/posix-functions/catanh.texi (catanh): Likewise.
29985         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29986         * doc/posix-functions/ccos.texi (ccos): Likewise.
29987         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29988         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29989         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29990         * doc/posix-functions/cexp.texi (cexp): Likewise.
29991         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29992         * doc/posix-functions/cimag.texi (cimag): Likewise.
29993         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29994         * doc/posix-functions/clog.texi (clog): Likewise.
29995         * doc/posix-functions/clogf.texi (clogf): Likewise.
29996         * doc/posix-functions/conj.texi (conj): Likewise.
29997         * doc/posix-functions/conjf.texi (conjf): Likewise.
29998         * doc/posix-functions/cpow.texi (cpow): Likewise.
29999         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30000         * doc/posix-functions/cproj.texi (cproj): Likewise.
30001         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30002         * doc/posix-functions/creal.texi (creal): Likewise.
30003         * doc/posix-functions/crealf.texi (crealf): Likewise.
30004         * doc/posix-functions/csin.texi (csin): Likewise.
30005         * doc/posix-functions/csinf.texi (csinf): Likewise.
30006         * doc/posix-functions/csinh.texi (csinh): Likewise.
30007         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30008         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30009         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30010         * doc/posix-functions/ctan.texi (ctan): Likewise.
30011         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30012         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30013         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30014         * doc/posix-headers/complex.texi (complex.h): Likewise.
30015
30016 2010-10-07  Jim Meyering  <meyering@redhat.com>
30017
30018         parse-datetime: avoid compilation failure on OpenBSD 4.7
30019         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30020         This works around a compilation failure on OpenBSD 4.7:
30021         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30022
30023 2010-10-07  Eric Blake  <eblake@redhat.com>
30024
30025         docs: update cygwin progress
30026         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30027         1.7.6.
30028         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30029         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30030         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30031         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30032         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30033         Likewise.
30034         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30035         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30036         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30037         Likewise.
30038         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30039         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30040         Likewise.
30041         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30042         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30043         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30044         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30045         Likewise.
30046         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30047         Likewise.
30048         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30049
30050         docs: update parse-datetime history
30051         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30052         documentation of this function's history and alternatives.
30053
30054         cygwin: use more robust version check
30055         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30056         exclude an eventual cygwin 1.9.1.
30057         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30058         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30059         (gl_FUNC_STRCASESTR): Likewise.
30060         Reported by Bruno Haible.
30061
30062 2010-10-06  Bruno Haible  <bruno@clisp.org>
30063
30064         string, sys_select: Avoid #including large headers unless necessary.
30065         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30066         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30067         OSF/1, BeOS, Haiku.
30068         Reported by Jim Meyering.
30069
30070 2010-10-05  Eric Blake  <eblake@redhat.com>
30071
30072         memmem, strstr, strcasestr: fix bug with long periodic needle
30073         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30074         periodic needle having false positive.
30075         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30076         and cygwin 1.7.7.
30077         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30079         (gl_FUNC_STRCASESTR): Likewise.
30080         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30081         * tests/test-memmem.c (main): Expose the bug.
30082         * tests/test-strcasestr.c (main): Likewise.
30083         * tests/test-strstr.c (main): Likewise.
30084         * tests/test-c-strcasestr.c (main): Likewise.
30085         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30086         * doc/posix-functions/strstr.texi (strstr): Likewise.
30087         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30088         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30089
30090 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30091
30092         parse-datetime: do some more renaming
30093         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30094         parse_datetime, not get_date.  Mention the renaming.
30095         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30096         in comments.
30097         * m4/bison.m4: Likewise.
30098
30099 2010-10-05  Eric Blake  <eblake@redhat.com>
30100
30101         parse-datetime: better name than get_date
30102         * NEWS: Reword the deprecation notice.
30103         * modules/get_date: Rename to modules/parse-datetime.
30104         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30105         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30106         * lib/get_date.y: Rename to lib/parse-datetime.y.
30107         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30108         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30109         * doc/getdate.texi: Provide fallback wrapper.
30110         * lib/getdate.h: Move guts, and wrap...
30111         * lib/parse-datetime.h: ...new file.
30112         * lib/parse-datetime.y (get_date): Rename...
30113         (parse_datetime): ...to this.
30114         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30115         (gl_PARSE_DATETIME): ...to this.
30116         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30117         documentation.
30118         * modules/getdate (Files): Provide fallback docs and header.
30119         (Notice, Depends-on): Update references.
30120         * tests/test-parse-datetime.c: Likewise.
30121         * DEPENDENCIES: Likewise.
30122         * MODULES.html.sh (Date and time <time.h>): Likewise.
30123         * doc/parse-datetime.texi (Date input formats)
30124         (Authors of parse_datetime): Likewise.
30125         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30126         (Include): Likewise.
30127         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30128         * gnulib-tool: Likewise.
30129         * m4/bison.m4 (gl_BISON): Likewise.
30130         Suggested by Bruno Haible.
30131
30132 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30133
30134         more ports to Solaris tr, which needs [] around ranges
30135         * gnulib-tool: Solaris tr needs [] around ranges.
30136         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30137         * tests/test-pipe-filter-gi1.c (main): Likewise.
30138         * tests/test-pipe-filter-ii1.c (main): Likewise.
30139
30140 2010-10-05  Eric Blake  <eblake@redhat.com>
30141
30142         bootstrap: fix Solaris regression
30143         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30144         around ranges.
30145         Reported by Pádraig Brady.
30146
30147         bootstrap: work with pkg-config
30148         * build-aux/bootstrap (check_versions): Also transliterate - in
30149         prerequisite name.
30150         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30151         prerequisites that were already found, to avoid confusion.
30152         Reported by Justin Clift.
30153
30154         faccessat: remove unused wrappers
30155         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30156         presence of these wrappers dragged in -lgen on Solaris.
30157         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30158
30159 2010-10-05  Jim Meyering  <meyering@redhat.com>
30160
30161         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30162         * Makefile (sc_pragma_columns): New syntax-check rule.
30163
30164 2010-10-04  Bruno Haible  <bruno@clisp.org>
30165
30166         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30167         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30168         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30169         Reported by Bruce Korb and Eric Blake.
30170
30171 2010-10-04  Bruno Haible  <bruno@clisp.org>
30172
30173         threadlib: Make option --with-libpth-prefix work.
30174         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30175         use $LIBPTH, not just -lpth.
30176
30177 2010-10-04  Bruno Haible  <bruno@clisp.org>
30178
30179         Avoid line length limitation from HP NonStop system header files.
30180         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30181         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30182         * lib/ctype.in.h: Likewise.
30183         * lib/dirent.in.h: Likewise.
30184         * lib/errno.in.h: Likewise.
30185         * lib/fcntl.in.h: Likewise.
30186         * lib/float.in.h: Likewise.
30187         * lib/getopt.in.h: Likewise.
30188         * lib/iconv.in.h: Likewise.
30189         * lib/inttypes.in.h: Likewise.
30190         * lib/langinfo.in.h: Likewise.
30191         * lib/locale.in.h: Likewise.
30192         * lib/math.in.h: Likewise.
30193         * lib/netdb.in.h: Likewise.
30194         * lib/netinet_in.in.h: Likewise.
30195         * lib/poll.in.h: Likewise.
30196         * lib/pthread.in.h: Likewise.
30197         * lib/pty.in.h: Likewise.
30198         * lib/sched.in.h: Likewise.
30199         * lib/se-selinux.in.h: Likewise.
30200         * lib/search.in.h: Likewise.
30201         * lib/signal.in.h: Likewise.
30202         * lib/spawn.in.h: Likewise.
30203         * lib/stdarg.in.h: Likewise.
30204         * lib/stddef.in.h: Likewise.
30205         * lib/stdint.in.h: Likewise.
30206         * lib/stdio.in.h: Likewise.
30207         * lib/stdlib.in.h: Likewise.
30208         * lib/string.in.h: Likewise.
30209         * lib/strings.in.h: Likewise.
30210         * lib/sys_file.in.h: Likewise.
30211         * lib/sys_ioctl.in.h: Likewise.
30212         * lib/sys_select.in.h: Likewise.
30213         * lib/sys_socket.in.h: Likewise.
30214         * lib/sys_stat.in.h: Likewise.
30215         * lib/sys_time.in.h: Likewise.
30216         * lib/sys_times.in.h: Likewise.
30217         * lib/sys_utsname.in.h: Likewise.
30218         * lib/sys_wait.in.h: Likewise.
30219         * lib/sysexits.in.h: Likewise.
30220         * lib/termios.in.h: Likewise.
30221         * lib/time.in.h: Likewise.
30222         * lib/unistd.in.h: Likewise.
30223         * lib/wchar.in.h: Likewise.
30224         * lib/wctype.in.h: Likewise.
30225         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30226         * modules/ctype (Makefile.am): Likewise.
30227         * modules/dirent (Makefile.am): Likewise.
30228         * modules/errno (Makefile.am): Likewise.
30229         * modules/fcntl-h (Makefile.am): Likewise.
30230         * modules/float (Makefile.am): Likewise.
30231         * modules/getopt-posix (Makefile.am): Likewise.
30232         * modules/iconv-h (Makefile.am): Likewise.
30233         * modules/inttypes (Makefile.am): Likewise.
30234         * modules/langinfo (Makefile.am): Likewise.
30235         * modules/locale (Makefile.am): Likewise.
30236         * modules/math (Makefile.am): Likewise.
30237         * modules/netdb (Makefile.am): Likewise.
30238         * modules/netinet_in (Makefile.am): Likewise.
30239         * modules/poll-h (Makefile.am): Likewise.
30240         * modules/pthread (Makefile.am): Likewise.
30241         * modules/pty (Makefile.am): Likewise.
30242         * modules/sched (Makefile.am): Likewise.
30243         * modules/search (Makefile.am): Likewise.
30244         * modules/selinux-h (Makefile.am): Likewise.
30245         * modules/signal (Makefile.am): Likewise.
30246         * modules/spawn (Makefile.am): Likewise.
30247         * modules/stdarg (Makefile.am): Likewise.
30248         * modules/stddef (Makefile.am): Likewise.
30249         * modules/stdint (Makefile.am): Likewise.
30250         * modules/stdio (Makefile.am): Likewise.
30251         * modules/stdlib (Makefile.am): Likewise.
30252         * modules/string (Makefile.am): Likewise.
30253         * modules/strings (Makefile.am): Likewise.
30254         * modules/sys_file (Makefile.am): Likewise.
30255         * modules/sys_ioctl (Makefile.am): Likewise.
30256         * modules/sys_select (Makefile.am): Likewise.
30257         * modules/sys_socket (Makefile.am): Likewise.
30258         * modules/sys_stat (Makefile.am): Likewise.
30259         * modules/sys_time (Makefile.am): Likewise.
30260         * modules/sys_times (Makefile.am): Likewise.
30261         * modules/sys_utsname (Makefile.am): Likewise.
30262         * modules/sys_wait (Makefile.am): Likewise.
30263         * modules/sysexits (Makefile.am): Likewise.
30264         * modules/termios (Makefile.am): Likewise.
30265         * modules/time (Makefile.am): Likewise.
30266         * modules/unistd (Makefile.am): Likewise.
30267         * modules/wchar (Makefile.am): Likewise.
30268         * modules/wctype (Makefile.am): Likewise.
30269
30270 2010-10-04  Bruno Haible  <bruno@clisp.org>
30271
30272         read-file tests: Avoid a test failure on NonStop Kernel.
30273         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30274         a regular file.
30275         Reported by Joachim Schmitz <schmitz@hp.com>.
30276
30277 2010-10-03  Bruno Haible  <bruno@clisp.org>
30278
30279         gnulib-tool: Fixes for --create-testdir with --libtool.
30280         * gnulib-tool (func_get_automake_snippet): Don't augment
30281         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30282         an executable.
30283         (func_create_testdir): Handle module 'alloca' like func_import.
30284         Reported by Bruce Korb <bruce.korb@gmail.com>.
30285
30286 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30287
30288         Avoid some lines longer than 80 characters.
30289         * lib/stdint.in.h: Break long comment lines.
30290         * lib/math.in.h: Likewise.
30291         (_GL_NUM_UINT_WORDS): New macro, for readability.
30292         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30293         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30294         * lib/stdlib.in.h: Likewise.
30295         * lib/spawn.in.h: Likewise.
30296         * lib/sys_socket.in.h: Update an URL.
30297         * lib/sys_stat.in.h: Break long line.
30298
30299 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30300
30301         Improve pmccabe2html.
30302         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30303         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30304         when the sources change. Remove the line in the HTML about "Used
30305         ranges" (which implied that there might be other unused ranges),
30306         rename "Resume" to "Summary" (easier to understand for more users).
30307         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30308         styles, and some unnecessary blank lines.
30309
30310 2010-10-03  Bruno Haible  <bruno@clisp.org>
30311             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30312
30313         acl: Add support for ACLs on NonStop Kernel.
30314         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30315         Check whether the function aclsort() exists.
30316         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30317         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30318         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30319         (acl_nontrivial [HAVE_ACLSORT]: New function.
30320         (file_has_acl): Implement for NonStop Kernel.
30321         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30322         (qset_acl): Implement for NonStop Kernel.
30323         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30324         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30325         (main): Implement for NonStop Kernel.
30326         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30327         Kernel. Handle this flavor.
30328         * tests/test-set-mode-acl.sh: Likewise.
30329         * tests/test-copy-acl.sh: Likewise.
30330         * tests/test-copy-file.sh: Likewise.
30331
30332 2010-10-03  Bruno Haible  <bruno@clisp.org>
30333
30334         Info about ACLs on NonStop Kernel.
30335         * doc/acl-resources.txt: Add info about NonStop Kernel.
30336         References by Joachim Schmitz <schmitz@hp.com>.
30337
30338 2010-10-02  Bruno Haible  <bruno@clisp.org>
30339
30340         Define missing EDQUOT on NonStop Kernel.
30341         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30342         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30343         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30344         missing.
30345         * doc/posix-headers/errno.texi: Mention the NSK bug.
30346         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30347         Reported by Joachim Schmitz <schmitz@hp.com>.
30348
30349 2010-10-02  Bruno Haible  <bruno@clisp.org>
30350
30351         Update doc for POSIX:2008.
30352         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30353         Update URL of POSIX specification.
30354
30355 2010-10-02  Bruno Haible  <bruno@clisp.org>
30356
30357         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30358         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30359         from gnulib, not from Automake.
30360
30361 2010-10-02  Bruno Haible  <bruno@clisp.org>
30362
30363         New module 'system-posix'.
30364         * modules/system-posix: New file.
30365         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30366         module is present.
30367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30368         GNULIB_SYSTEM_POSIX.
30369         * modules/stdlib (Depends-on): Remove sys_wait.
30370         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30371         * doc/posix-functions/system.texi: Mention the new module.
30372         * doc/posix-headers/stdlib.texi: Likewise.
30373         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30374         define test_sys_wait_macros to a no-op.
30375         Reported by Sam Steingold <sds@gnu.org>.
30376
30377 2010-09-30  Bruno Haible  <bruno@clisp.org>
30378
30379         More renaming from 'getdate' to 'get_date'.
30380         * doc/get_date.texi: Renamed from doc/getdate.texi.
30381         * modules/get_date (Files): Update.
30382         * MODULES.html.sh (Date and time <time.h>): Update.
30383         * DEPENDENCIES: Update.
30384         * gnulib-tool: Update comment.
30385         * m4/bison.m4 (gl_BISON): Likewise.
30386         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30387
30388 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30389
30390         bootstrap: support ACLOCAL_FLAGS during aclocal
30391         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30392         can add additional -I dir for third-party .m4 files.
30393
30394 2010-09-30  Eric Blake  <eblake@redhat.com>
30395
30396         bootstrap: use glibtoolize on MacOS
30397         * build-aux/bootstrap (check_versions): Convert libtool into
30398         libtoolize.
30399         (tool search): Move libtool check earlier, and look for
30400         glibtoolize for MacOS.
30401         (gnulib_tool_options): Auto-add --libtool when appropriate.
30402         Reported by Justin Clift.
30403
30404         poll: fix typo that broke test on MacOS
30405         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30406         Reported by Justin Clift.
30407
30408         getdate: rename to get_date
30409         Note: getdate.h is not renamed, to minimize client impact.
30410         * modules/getdate: Mark obsolete.  Move old contents...
30411         * modules/get_date: ...to new module name.
30412         * modules/getdate-tests: Move...
30413         * modules/get_date-tests: ...here.
30414         * m4/getdate.m4: Move...
30415         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30416         * lib/getdate.y: Move...
30417         * lib/get_date.y: ...here.
30418         * tests/test-getdate.c: Move...
30419         * tests/test-get_date.c: ...here.
30420         * doc/posix-functions/getdate.texi (getdate): Update name.
30421         * NEWS: Mention the change.
30422
30423 2010-09-29  Bruno Haible  <bruno@clisp.org>
30424
30425         Separate the module 'waitpid' from the module 'sys_wait'.
30426         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30427         present.
30428         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30429         gl_MODULE_INDICATOR_FOR_TESTS.
30430         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30431         * modules/sys_wait (Depends-on): Remove waitpid.
30432         (Makefile.am): Substitute GNULIB_WAITPID.
30433         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30434         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30435         signature only if the 'waitpid' module is present.
30436         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30437         * NEWS: Mention the change.
30438         * modules/grantpt (Depends-on): Add waitpid.
30439         * modules/wait-process (Depends-on): Likewise.
30440
30441 2010-09-29  Bruno Haible  <bruno@clisp.org>
30442
30443         More tests for module 'sys_wait'.
30444         * modules/sys_wait-c++-tests: New file.
30445         * tests/test-sys_wait-c++.cc: New file.
30446         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30447         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30448
30449 2010-09-29  Bruno Haible  <bruno@clisp.org>
30450
30451         New module 'waitpid'.
30452         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30453         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30454         Don't include <process.h>.
30455         (waitpid): Declare only, using modern idiom.
30456         * m4/waitpid.m4: New file.
30457         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30458         * modules/waitpid: New file.
30459         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30460         (Makefile.am): Update.
30461         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30462
30463 2010-09-28  Bruno Haible  <bruno@clisp.org>
30464
30465         poll: Assume ANSI C.
30466         * lib/poll.c (poll): Use an ANSI C declaration.
30467
30468 2010-09-28  Bruno Haible  <bruno@clisp.org>
30469
30470         poll-h: Create poll.h on all platforms.
30471         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30472         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30473         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30474         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30475         (gl_REPLACE_POLL_H): Don't set POLL_H.
30476         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30477         * modules/poll-h (Depends-on): Add include_next.
30478         (Makefile.am): Create poll.h unconditionally. Substitute also
30479         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30480
30481 2010-09-28  Bruno Haible  <bruno@clisp.org>
30482
30483         Tests for module 'poll-h'.
30484         * modules/poll-h-c++-tests: New file.
30485         * tests/test-poll-h-c++.cc: New file.
30486
30487         Tests for module 'poll-h'.
30488         * modules/poll-h-tests: New file.
30489         * tests/test-poll-h.c: New file.
30490
30491 2010-09-28  Bruno Haible  <bruno@clisp.org>
30492
30493         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30494         * modules/poll-h (Depends-on): Add 'extensions'.
30495
30496 2010-09-28  Bruno Haible  <bruno@clisp.org>
30497
30498         New module 'poll-h'.
30499         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30500         (poll): Use modern idiom.
30501         * modules/poll-h: New file.
30502         * modules/poll (Files): Remove lib/poll.in.h.
30503         (Depends-on): Add poll-h.
30504         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30505         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30506         * m4/poll_h.m4: New file.
30507         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30508         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30509         and invoke gl_REPLACE_POLL_H.
30510         * lib/poll.c: Use common idiom.
30511         * tests/test-poll.c: Likewise.
30512         * doc/posix-headers/poll.texi: Mention the poll-h module.
30513         Suggested by Eric Blake.
30514
30515 2010-09-26  Bruno Haible  <bruno@clisp.org>
30516
30517         sys_wait: Implement WSTOPSIG.
30518         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30519         Reported by Simon Josefsson.
30520
30521 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30522
30523         stdlib, sys_wait: Avoid compilation error on mingw.
30524         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30525
30526 2010-09-26  Bruno Haible  <bruno@clisp.org>
30527
30528         stdlib tests: Avoid code duplication.
30529         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30530         * modules/sys_wait-tests (Files): Likewise.
30531         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30532         * tests/test-stdlib.c: Include test-sys_wait.h.
30533         (main): Invoke test_sys_wait_macros.
30534         * tests/test-sys_wait.c: Include test-sys_wait.h.
30535         (main): Invoke test_sys_wait_macros.
30536
30537 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30538
30539         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30540         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30541         sure Windows sockets are working before calling getaddrinfo.
30542         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30543         * doc/gnulib.texi (Windows sockets): Fix typo.
30544
30545 2010-09-25  Bruno Haible  <bruno@clisp.org>
30546
30547         Tests for module 'regex-quote'.
30548         * modules/regex-quote-tests: New file.
30549         * tests/test-regex-quote.c: New file.
30550
30551         New module 'regex-quote'.
30552         * lib/regex-quote.h: New file.
30553         * lib/regex-quote.c: New file.
30554         * modules/regex-quote: New file.
30555         Suggested by Reuben Thomas <rrt@sc3d.org>.
30556
30557 2010-09-24  Bruno Haible  <bruno@clisp.org>
30558
30559         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30560         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30561
30562 2010-09-23  Bruno Haible  <bruno@clisp.org>
30563
30564         setenv: Relax license.
30565         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30566         Blake.
30567         Requested by Eric Blake.
30568
30569 2010-09-22  Bruno Haible  <bruno@clisp.org>
30570
30571         termios: Relax license.
30572         * modules/termios (License): Change to LGPLv2+.
30573         Requested by Eric Blake.
30574
30575 2010-09-22  Bruno Haible  <bruno@clisp.org>
30576
30577         threadlib: Allow the package to change the default to 'no'.
30578         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30579         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30580         Reported by Paul Eggert.
30581
30582 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30583             Bruno Haible  <bruno@clisp.org>
30584
30585         Fix endless loop in mbmemcasecoll.
30586         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30587         byte.
30588         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30589
30590 2010-09-22  Bruno Haible  <bruno@clisp.org>
30591
30592         Tests for module 'memcoll'.
30593         * modules/memcoll-tests: New file.
30594         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30595
30596         memcoll, xmemcoll: Clarify size vs. length.
30597         * modules/memcoll.c (memcoll0): Clarify specification.
30598         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30599         passed to collate_error.
30600
30601 2010-09-22  Bruno Haible  <bruno@clisp.org>
30602
30603         Tests for module 'memcasecmp'.
30604         * modules/memcasecmp-tests: New file.
30605         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30606
30607 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30608
30609         * lib/pthread.in.h: Add split double-inclusion guard, and include
30610         system <pthread.h> if there is one.  Use @@-style as in other
30611         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30612         pthread.h doesn't.
30613         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30614         (pthread_mutexattr_settype, pthread_mutex_trylock):
30615         New static inline functions, if there's no system <pthread.h>.
30616         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30617         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30618         Approximate with mutexes if the system lacks spinlocks, as in
30619         MacOS.
30620         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30621         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30622         @@-style.  Check for spinlocks separately.
30623         (gl_PTHREAD_DEFAULTS): New macro.
30624         * modules/pthread: Redo to use a more typical style for in.h files.
30625
30626 2010-09-21  Eric Blake  <eblake@redhat.com>
30627
30628         net_if: enhance tests
30629         * tests/test-net_if.c (main): Move signature checks earlier.
30630         Print failures to stderr.
30631         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30632         Document the bug that we do not yet fix.
30633
30634 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30635
30636         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30637         about gnulib, not GSS.
30638
30639 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30640
30641         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30642         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30643         for Emacs.
30644         * build-aux/pmccabe2html: Make Makefile.am example code more
30645         cut-and-paste friendly.
30646
30647 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30648
30649         * tests/test-net_if.c: New file.
30650         * modules/net_if-tests: New file.
30651
30652 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30653
30654         pthread: add pthread_spin_destroy
30655         * lib/pthread.in.h (pthread_spin_destroy): New function.
30656
30657 2010-09-19  Bruno Haible  <bruno@clisp.org>
30658
30659         gnulib-tool: Fix --help output.
30660         * gnulib-tool (func_usage): Fix help message.
30661         Reported by Reuben Thomas <rrt@sc3d.org>.
30662
30663 2010-09-18  Jim Meyering  <meyering@redhat.com>
30664
30665         maint.mk: avoid unexpanded \n in two diagnostics
30666         * top/maint.mk (sc_prohibit_always_true_header_tests):
30667         Don't use a literal \n in a halt=... assignment.  It would not be
30668         expanded, and the two \n bytes would appear in the diagnostic output
30669         rather than the desired newline.  Use halt=$$(printf ... instead.
30670         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30671
30672 2010-09-18  Bruno Haible  <bruno@clisp.org>
30673
30674         netinet_in: Doc tweak.
30675         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30676         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30677
30678 2010-09-18  Jim Meyering  <meyering@redhat.com>
30679
30680         init.sh: correct an outdated comment
30681         * tests/init.sh (create_exe_shims_):  s/function/alias/
30682
30683         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30684         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30685         a file named "*.exe" is removed between the glob expansion and the
30686         processing of that oddly named file.
30687
30688 2010-09-17  Eric Blake  <eblake@redhat.com>
30689
30690         mirbsd: add some more support
30691         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30692         in BSD family.
30693         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30694         devices as OpenBSD.
30695         * m4/host-os.m4 (mirbsd): Add MirBSD.
30696
30697         tests: fix unportable assumption on sys/wait.h
30698         * tests/test-sys_wait.c (main): Relax test.
30699         * tests/test-stdlib.c (main): Likewise.
30700
30701         init.sh: accommodate directory with no .exes
30702         * tests/init.sh: Accomodate directory containing only scripts.
30703
30704         tests: avoid compiler warning
30705         * tests/test-stdlib.c (main): Use the variable.
30706
30707         fdutimens, fdutimensat: update signature, again
30708         * lib/utimens.h (gl_futimens): Delete, and move signature...
30709         (fdutimens): ...here.
30710         (fdutimensat): Rearrange signature.
30711         (lutimensat): Rename variable for clarity.
30712         * lib/fdutimensat.c (fdutimensat): Update signature.
30713         * lib/utimens.c (fdutimens): Likewise.
30714         (gl_futimens): Delete.
30715         (utimens, lutimens): Update callers.
30716         * lib/futimens.c (futimens): Likewise.
30717         * tests/test-fdutimensat.c: Likewise.
30718         * tests/test-utimens.c: Likewise.
30719         * tests/test-futimens.h: Update comment.
30720         * NEWS: Mention this.
30721         Suggested by Paul Eggert.
30722
30723 2010-09-17  Bruno Haible  <bruno@clisp.org>
30724
30725         Take over the maintenance of some older macros from Autoconf.
30726         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30727         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30728         GNU Autoconf.
30729         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30730         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30731
30732 2010-09-17  Eric Blake  <eblake@redhat.com>
30733
30734         fdutimensat: drop atflag validation
30735         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30736         with valid fd, to close a race scenario where futimens is
30737         unsupported and FILE was replaced by a symlink.
30738         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30739         accordingly.
30740         Suggested by Paul Eggert.
30741
30742 2010-09-16  Bruno Haible  <bruno@clisp.org>
30743
30744         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30745         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30746
30747 2010-09-16  Bruno Haible  <bruno@clisp.org>
30748
30749         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30750         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30751         login_tty exists.
30752         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30753
30754 2010-09-16  Bruno Haible  <bruno@clisp.org>
30755
30756         login_tty: Make the replacement code work on BSD systems.
30757         * lib/login_tty.c: Include <sys/ioctl.h>.
30758         (login_tty): Use ioctl TIOCSCTTY when available.
30759         * modules/login_tty (Depends-on): Add sys_ioctl.
30760         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30761
30762 2010-09-16  Bruno Haible  <bruno@clisp.org>
30763
30764         login_tty: Stricter unit test.
30765         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30766         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30767         and tcgetsid() after login_tty.
30768         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30769
30770 2010-09-16  Bruno Haible  <bruno@clisp.org>
30771
30772         New module 'tcgetsid'.
30773         * lib/tcgetsid.c: New file.
30774         * m4/tcgetsid.m4: New file.
30775         * modules/tcgetsid: New file.
30776         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30777         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30778         GNULIB_TCGETSID, HAVE_TCGETSID.
30779         * lib/termios.in.h: Include <sys/types.h>.
30780         (tcgetsid): New declaration.
30781         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30782         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30783         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30784         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30785
30786 2010-09-16  Bruno Haible  <bruno@clisp.org>
30787
30788         Tests for module 'termios'.
30789         * modules/termios-c++-tests: New file.
30790         * modules/termios-tests: New file.
30791         * tests/test-termios-c++.cc: New file.
30792         * tests/test-termios.c: New file.
30793
30794         New module 'termios'.
30795         * modules/termios: New file.
30796         * lib/termios.in.h: New file.
30797         * m4/termios_h.m4: New file.
30798         * doc/posix-headers/termios.texi: Mention the new module.
30799
30800 2010-09-16  Eric Blake  <eblake@redhat.com>
30801
30802         fdutimensat: add an atflag parameter
30803         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30804         * lib/utimens.h (fdutimensat): Update prototype.
30805         * tests/test-fdutimensat.c: Adjust test to match.
30806         * NEWS: Document the change.
30807         Suggested by Paul Eggert.
30808
30809 2010-09-16  Bruno Haible  <bruno@clisp.org>
30810
30811         Fix typos in comments.
30812         * lib/striconveh.h: Fix typo in comment.
30813         * lib/login_tty.c (login_tty): Likewise.
30814
30815 2010-09-15  Bruno Haible  <bruno@clisp.org>
30816
30817         stdlib: clarify MirBSD WEXITSTATUS bug
30818         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30819         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30820
30821 2010-09-15  Eric Blake  <eblake@redhat.com>
30822
30823         stdlib: work around MirBSD WEXITSTATUS bug
30824         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30825         * modules/stdlib (Depends-on): Add sys_wait.
30826         * tests/test-sys_wait.c (main): Enhance test.
30827         * tests/test-stdlib.c (main): Likewise.
30828         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30829
30830         docs: mention MacOS issue with WEXITSTATUS(constant)
30831         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30832         issue.
30833         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30834
30835         strnlen: add tests
30836         * modules/strnlen-tests: New file.
30837         * tests/test-strnlen.c: Likewise.
30838
30839 2010-09-14  Bruno Haible  <bruno@clisp.org>
30840
30841         unistr/base: Avoid link errors when module 'libunistring' is also used.
30842         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30843         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30844         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30845         Declare also when HAVE_LIBUNISTRING is set.
30846         Reported by Pádraig Brady <P@draigbrady.com>.
30847
30848 2010-09-14  Eric Blake  <eblake@redhat.com>
30849
30850         test-rawmemchr: make more robust
30851         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30852         (Depends-on, configure.ac): Add needed prerequisites to use it.
30853         * modules/memchr-tests (Files, Depends-on, configure.ac):
30854         Likewise, to avoid implicit reliance on memchr module prereqs.
30855         * tests/test-memchr.c (main): Ensure proper masking.
30856         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30857         reads.
30858
30859         memchr: detect glibc Alpha bug
30860         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30861         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30862         Alpha.
30863         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
30864         * tests/test-memchr.c (main): Enhance test.
30865         Reported by Nelson H. F. Beebe.
30866
30867 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30868
30869         fts, getcwd, glob: audit for dirfd returning -1
30870         * lib/fts.c (opendir): Remove #define; no longer used.
30871         (opendirat): New arg PDIR_FD.  All callers changed.
30872         (fts_build, _opendir2): Use new opendirat to avoid the need for
30873         dirfd, or for checking whether dirfd returns a negative value.
30874         Don't use opendir; always use openat followed by fdopendir.
30875         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
30876         it.
30877         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
30878         returns -1 here.
30879         * modules/fts (Depends-on): Remove dirfd.
30880         * modules/getcwd (Depends-on): Likewise.
30881
30882 2010-09-13  Eric Blake  <eblake@redhat.com>
30883
30884         float: fix broken MirBSD header
30885         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
30886         * doc/posix-headers/float.texi (float.h): Document it.
30887
30888 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30889
30890         fts: use O_NOFOLLOW to avoid race condition when opening a directory
30891         * lib/fts.c (opendirat): New arg extra_flags.
30892         (__opendir2): Use it to avoid following symlinks when opening
30893         a directory, if symlinks are not supposed to be followed.  See
30894         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
30895
30896         fdopendir: preserve argument fd before returning
30897         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
30898         (fdopendir_with_dup, fd_clone_opendir): New static functions.
30899         (fdopendir): Use them, arranging for FD to be open to the same
30900         directory that it was when it started.  (It might be temporarily
30901         closed while fdopendir is running, so this not thread- or
30902         signal-safe.)  Be careful to do the right thing even when file
30903         descriptors are scarce and dup fails with errno == EMFILE.  See
30904         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
30905
30906 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
30907
30908         regex: Pass the system regex if its only problem is 32-bit regoff_t.
30909         * NEWS: Document change.
30910         * m4/regex.m4: Disable test for regoff_t size.
30911
30912 2010-09-13  Jim Meyering  <meyering@redhat.com>
30913
30914         fts: don't operate on an invalid file descriptor after failed dup
30915         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30916         negative file descriptor.
30917
30918 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30919
30920         savedir: add streamsavedir, deprecate fdsavedir
30921         * NEWS: Mention deprecation of fdsavedir.
30922         * lib/savedir.c (streamsavedir): New extern function, whose name
30923         ends in "savedir" to be consistent with the others.  This differs
30924         from savedirstream in that it doesn't close its argument.  The
30925         next version of GNU tar will use this instead of fdsavedir, to
30926         avoid some race conditions and conserve file descriptors.
30927         (savedirstream): Reimplement as a wrapper around streamsavedir.
30928         (fdsavedir): Add a comment deprecating this function.  As far as
30929         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30930         * lib/savedir.h (streamsavedir): New decl.
30931         (fdsavedir): Add a comment deprecating this.
30932
30933 2010-09-10  Bruno Haible  <bruno@clisp.org>
30934
30935         langinfo: Fix last commit.
30936         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30937         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30939
30940 2010-09-10  Bruno Haible  <bruno@clisp.org>
30941
30942         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30943         * lib/progreloc.c (O_EXEC): Define fallback.
30944
30945 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30946
30947         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30948         * NEWS: Document recent changes to fcntl-h.
30949         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30950         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30951         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30952         Similarly for O_SEARCH; this last was already true, but not documented.
30953         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30954         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30955         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30956         Likewise.
30957         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30958         is zero, not whether it is defined.
30959         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30960         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30961         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30962
30963 2010-09-10  Bruno Haible  <bruno@clisp.org>
30964
30965         langinfo, nl_langinfo: Fix for IRIX 5.3.
30966         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30967         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30968         HAVE_LANGINFO_YESEXPR.
30969         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30970         HAVE_LANGINFO_YESEXPR.
30971         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30972         HAVE_LANGINFO_T_FMT_AMPM is 0.
30973         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30974         HAVE_LANGINFO_YESEXPR is 0.
30975         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30976         NOEXPR.
30977         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30978         * doc/posix-functions/nl_langinfo.texi: Likewise.
30979         Reported by Eric Blake.
30980
30981 2010-09-10  Bruno Haible  <bruno@clisp.org>
30982
30983         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30984         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30985         on FreeBSD 8.0 and OpenBSD 4.6.
30986         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30987         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30988         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30989         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30990         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30991         ac_includes_default.
30992         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30993
30994 2010-09-09  Eric Blake  <eblake@redhat.com>
30995
30996         strsignal: work around NetBSD bug
30997         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30998         * lib/string.in.h (includes): Likewise.
30999         * doc/posix-functions/strsignal.texi (strsignal): Document the
31000         bug.
31001         Reported by Nelson H. F. Beebe.
31002
31003         gnulib-tool: work with NetBSD /bin/sh
31004         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31005         (func_get_description, func_get_comment, func_get_status)
31006         (func_get_notice, func_get_applicability, func_get_filelist)
31007         (func_get_dependencies, func_get_autoconf_early_snippet)
31008         (func_get_autoconf_snippet, func_get_automake_snippet)
31009         (func_get_include_directive, func_get_link_directive)
31010         (func_get_license, func_get_maintainer, func_import): Avoid
31011         shell syntax errors from parsing syntax extensions.
31012
31013 2010-09-09  Bruno Haible  <bruno@clisp.org>
31014
31015         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31016         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31017         a reliable way to determine whether the 'alias' command works.
31018
31019 2010-09-08  Jim Meyering  <meyering@redhat.com>
31020
31021         init.sh: penalize a set-x-impaired shell; don't disqualify it
31022         * tests/init.sh: Too many shells corrupt application stderr when
31023         you set -x, so we can't afford to disqualify them, since at least
31024         on Irix-6.5, that would disqualify all bourne shells.
31025         Instead, use a two-pass approach.
31026         On the first pass, try to find a shell that meets the stricter
31027         condition that set -x does not corrupt stderr.
31028         If no shell meets the stricter condition, retest each candidate
31029         shell, but without that extra condition.  Finally, when
31030         VERBOSE=yes is requested and set -x might cause trouble, simply
31031         issue a warning and refrain from enabling debug output.
31032
31033 2010-09-08  Eric Blake  <eblake@redhat.com>
31034
31035         unsetenv: fix OpenBSD bug
31036         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31037         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31038         documentation.
31039         Reported by Jim Meyering.
31040
31041         strtod: work around IRIX 6.5 bug
31042         * lib/strtod.c (strtod): Reparse number on shorter string if
31043         exponent parse was invalid.
31044         * tests/test-strtod.c (main): Add check for "0x1p 2".
31045         Reported by Tom G. Christensen.
31046
31047         getopt: optimize previous patch
31048         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31049         empty variable.  Speed up awk script.
31050         Reported by Paolo Bonzini.
31051
31052 2010-09-08  Jim Meyering  <meyering@redhat.com>
31053
31054         test.sh: disqualify shells for which set -x corrupts stderr
31055         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31056         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31057         appear in stderr output.  For example, this command:
31058             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31059         prints "P=1" on those two systems:
31060
31061 2010-09-08  Bruno Haible  <bruno@clisp.org>
31062
31063         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31064         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31065         commands, because some shells ignore redirections when there is an
31066         error in the command lookup.
31067         Reported by Eric Blake.
31068
31069 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31070
31071         * lib/regex.h: Fix a mention of `regex_compile' (should be
31072         `re_compile_pattern').
31073         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31074         (re_set_registers): Correct name of parameter in comment.
31075
31076         * doc/regex.texi: Add documentation for missing syntax flags.
31077         Remove commented-out documentation of defunct syntax option
31078         RE_NO_EMPTY_ALTS.
31079         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31080         Add documentation of re_set_registers.
31081         Document trick to re-use a pattern buffer by setting fastmap manually.
31082         Update documentation of struct re_pattern_buffer per public members.
31083         Uncomment documentation of equivalence class operators and
31084         collating symbol operators, since they are now implemented,
31085         Explain leftmost-longest matching in relation to alternatives.
31086         Tidy documentation of substring matching.
31087         Remove POSIX documentation, which is done better in
31088         glibc, and refer the reader there. Keep BSD API documentation, as
31089         that is not readily available elsewhere.
31090
31091 2010-09-07  Eric Blake  <eblake@redhat.com>
31092
31093         getopt: handle POSIXLY_CORRECT set but not exported
31094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31095         export state of POSIXLY_CORRECT, due to bash set -o posix.
31096         Reported by Dustin J. Mitchell.
31097
31098 2010-09-05  Bruno Haible  <bruno@clisp.org>
31099
31100         gnulib-tool: Highlight the changed options.
31101         * gnulib-tool (func_usage): Display the --import, --add-import,
31102         --remove-import explanations in bold font.
31103
31104 2010-09-06  Karl Berry  <karl@gnu.org>
31105
31106         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31107
31108 2010-09-05  Bruno Haible  <bruno@clisp.org>
31109
31110         uniwidth/width: Update comment.
31111         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31112         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31113
31114 2010-09-05  Bruno Haible  <bruno@clisp.org>
31115
31116         isinf, isnan: Relax license.
31117         * modules/isinf (License): Change from GPL to LGPL, with consent from
31118         Ben Pfaff.
31119         * modules/isnan (License): Likewise.
31120         Requested by Ludovic Courtès.
31121
31122 2010-09-04  Bruno Haible  <bruno@clisp.org>
31123
31124         gnulib-tool: Help migration from --import to --add-import or --update.
31125         * gnulib-tool: Emit a verbose error message when --import is used
31126         without any module name.
31127
31128 2010-09-04  Bruno Haible  <bruno@clisp.org>
31129
31130         Update doc about gnulib-tool.
31131         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31132         'gnulib-tool --update' in more detail.
31133         Reported by Eric Blake.
31134
31135 2010-09-04  Bruno Haible  <bruno@clisp.org>
31136
31137         gnulib-tool: Change --import. New options --add/remove-import.
31138         * gnulib-tool: New options --add-import, --remove-import.
31139         (func_usage): Document them.
31140         (have_associative): Define always.
31141         (func_import): In import mode, don't merge the specified settings with
31142         the cached settings. Implement remove-import mode.
31143         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31144         Explain when to use them versus --import.
31145         (Simple update): Use --add-import instead of --import.
31146         * NEWS: Mention the change.
31147
31148 2010-09-04  Bruno Haible  <bruno@clisp.org>
31149
31150         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31151         separate gnulib.mk.
31152
31153 2010-09-04  Bruno Haible  <bruno@clisp.org>
31154
31155         gnulib-tool: Don't talk about CVS any more.
31156         * gnulib-tool (func_usage, func_import): Write "version control"
31157         instead of CVS.
31158
31159 2010-09-04  Jim Meyering  <meyering@redhat.com>
31160
31161         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31162         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31163         false positives (whose names may be ill-chosen) when searching
31164         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31165         would cause a false-positive.
31166
31167         avoid coreutils "make distcheck" failure
31168         Coreutils tests with an absolute build directory name that contains
31169         a space.  Not quoting this directory name caused a failure.
31170         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31171         * tests/test-vc-list-files-cvs.sh: Likewise.
31172
31173 2010-09-04  Bruno Haible  <bruno@clisp.org>
31174
31175         gnulib-tool: Avoid error when run in a package without Makefile.am.
31176         * gnulib-tool: When collecting the m4dirs in a package that does not
31177         have a Makefile.am, eliminate those directories that contain no
31178         gnulib-cache.m4. Fix expression that counts these directories.
31179
31180 2010-09-04  Bruno Haible  <bruno@clisp.org>
31181
31182         update-copyright test: Improve output when perl is missing or too old.
31183         * tests/test-update-copyright.sh: Move test of Perl version down after
31184         the test whether Perl exists. Provide an explanation relating Perl's
31185         error message to Automake's SKIP: message.
31186
31187 2010-09-04  Bruno Haible  <bruno@clisp.org>
31188
31189         Don't augment PATH in TESTS_ENVIRONMENT.
31190         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31191         set abs_aux_dir instead of augmenting PATH.
31192         * modules/vc-list-files-tests (Makefile.am): Likewise.
31193         * tests/test-update-copyright.sh: Augment PATH here.
31194         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31195         path_prepend_.
31196         * tests/test-vc-list-files-git.sh: Likewise.
31197
31198 2010-09-04  Jim Meyering  <meyering@redhat.com>
31199
31200         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31201         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31202
31203 2010-09-04  Bruno Haible  <bruno@clisp.org>
31204
31205         strdup: Fix compilation error in C++ mode.
31206         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31207         the macro.
31208
31209 2010-09-04  Bruno Haible  <bruno@clisp.org>
31210
31211         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31212         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31213         macro into a function.
31214         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31215
31216 2010-09-04  Bruno Haible  <bruno@clisp.org>
31217
31218         Set PATH_SEPARATOR the same way autoconf does.
31219         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31220         the value of PATH_SEPARATOR the same way autoconf-generated configure
31221         scripts do.
31222         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31223         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31224
31225 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31226
31227         Set PATH_SEPARATOR the same way autoconf does.
31228         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31229         the same way autoconf-generated configure scripts do.
31230         * posix-modules: Likewise.
31231
31232 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31233
31234         hash: fix safe_hasher const typo
31235         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31236         const; otherwise, there is a type error later.
31237
31238 2010-09-02  Jim Meyering  <meyering@redhat.com>
31239
31240         test-update-copyright.sh: require perl 5.8.0
31241         * tests/test-update-copyright.sh: Require 5.8.0,
31242         which Tom G. Christensen has confirmed is adequate,
31243         while 5.6.1 is not.
31244
31245 2010-09-02  Eric Blake  <eblake@redhat.com>
31246
31247         tests: init.sh improvements for re-exec'ing with zsh
31248         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31249         -vx through shell re-exec.
31250         Reported by Tom G. Christensen.
31251
31252         wctype: fix typo in previous commit
31253         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31254         Reported by Ludovic Courtès.
31255
31256 2010-09-02  Jim Meyering  <meyering@redhat.com>
31257
31258         test-update-copyright.sh: skip test if Perl is too old
31259         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31260         Reported by Tom G. Christensen.
31261
31262 2010-09-02  Bruno Haible  <bruno@clisp.org>
31263
31264         wctype: Avoid compilation error on IRIX 6.5.30.
31265         * lib/wctype.in.h (iswblank): Declare with a replacement if
31266         REPLACE_ISWBLANK is set.
31267         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31268         declared. Set REPLACE_ISWBLANK.
31269         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31270         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31271         * doc/posix-headers/wctype.texi: Likewise.
31272         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31273
31274 2010-09-01  Bruno Haible  <bruno@clisp.org>
31275
31276         New module 'socketlib'.
31277         * modules/socketlib: New file.
31278         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31279         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31280         * modules/sockets (Depends-on): Add socketlib.
31281         Suggested by Sam Steingold <sds@gnu.org>.
31282
31283 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31284
31285         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31286
31287         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31288         when one needs search access to a directory but not read access.
31289         On systems where it is available, it works in some cases where
31290         O_RDONLY does not, namely on directories that are searchable but
31291         not readable, and which need only to be searchable.  If O_SEARCH
31292         is not available, fall back to the traditional method of using
31293         O_RDONLY.
31294
31295         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31296         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31297         when opening a directory that needs only to be searchable.
31298         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31299         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31300         * lib/openat-proc.c (openat_proc_name): Likewise.
31301         * lib/openat.c (openat_needs_fchdir): Likewise.
31302         * lib/save-cwd.c (save_cwd): Likewise.
31303         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31304
31305 2010-08-28  Bruno Haible  <bruno@clisp.org>
31306
31307         New module 'host-cpu-c-abi'.
31308         * modules/host-cpu-c-abi: New file.
31309         * m4/host-cpu-c-abi.m4: New file, based on part of
31310         clisp/src/m4/general.m4.
31311         Requested by Sam Steingold <sds@gnu.org>.
31312
31313 2010-08-31  Eric Blake  <eblake@redhat.com>
31314         and Jim Meyering  <meyering@redhat.com>
31315
31316         hash: factor, and guard against misbehaving hasher function
31317         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31318         of table->hasher's return value.  Also protect against a hash value
31319         so large that adding it to table->bucket results in a NULL pointer.
31320         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31321         Use it in place of open-coded check-and-abort.
31322
31323 2010-08-30  Bruno Haible  <bruno@clisp.org>
31324
31325         hash: silence spurious clang warning
31326         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31327         Reported by Eric Blake.
31328
31329 2010-08-30  Eric Blake  <eblake@redhat.com>
31330
31331         strstr, memmem, strcasestr: avoid leaked shell message
31332         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31333         FreeBSD.
31334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31335         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31336
31337         tests: silence clang warning
31338         * tests/test-malloca.c (do_allocation): Avoid dead store.
31339
31340 2010-08-29  Bruno Haible  <bruno@clisp.org>
31341
31342         gettext: Fix recent mistake.
31343         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31344
31345 2010-08-29  Bruno Haible  <bruno@clisp.org>
31346
31347         selinux-h: Offer a --without-selinux option.
31348         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31349         --without-selinux was specified, skip all tests and define
31350         HAVE_SELINUX_SELINUX_H to 0.
31351         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31352         set LIB_SELINUX to empty.
31353         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31354         gl_LIBSELINUX. If --without-selinux was specified, replace
31355         selinux/context.h.
31356         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31357
31358 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31359             Bruno Haible  <bruno@clisp.org>
31360
31361         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31362         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31363         of HAVE_REALLOC.
31364         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31365         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31366         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31367         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31368
31369 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31370             Bruno Haible  <bruno@clisp.org>
31371
31372         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31373         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31374         HAVE_CALLOC.
31375         * lib/xmalloc.c: Update accordingly.
31376         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31377         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31378         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31379
31380 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31381             Bruno Haible  <bruno@clisp.org>
31382
31383         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31384         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31385         HAVE_MALLOC.
31386         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31387         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31388         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31389
31390 2010-08-29  Bruno Haible  <bruno@clisp.org>
31391
31392         Update modules list.
31393         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31394         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31395         (String handling <string.h>): Add astrxfrm.
31396         (File system functions): Add readlinkat.
31397
31398 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31399
31400         Tests for module 'realloc-gnu'.
31401         * modules/realloc-gnu-tests: New file.
31402         * tests/test-realloc-gnu.c: New file.
31403
31404         Tests for module 'calloc-gnu'.
31405         * modules/calloc-gnu-tests: New file.
31406         * tests/test-calloc-gnu.c: New file.
31407
31408         Tests for module 'malloc-gnu'.
31409         * modules/malloc-gnu-tests: New file.
31410         * tests/test-malloc-gnu.c: New file.
31411
31412 2010-08-28  Bruno Haible  <bruno@clisp.org>
31413
31414         Rename module 'realloc' -> 'realloc-gnu'.
31415         * modules/realloc-gnu: New file, copied from modules/realloc.
31416         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31417         obsolete.
31418         * modules/mgetgroups (Depends-on): Update.
31419         * doc/posix-functions/realloc.texi: Update.
31420         * NEWS: Mention the change.
31421
31422         Rename module 'calloc' -> 'calloc-gnu'.
31423         * modules/calloc-gnu: New file, copied from modules/calloc.
31424         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31425         obsolete.
31426         * doc/posix-functions/calloc.texi: Update.
31427         * NEWS: Mention the change.
31428
31429         Rename module 'malloc' -> 'malloc-gnu'.
31430         * modules/malloc-gnu: New file, copied from modules/malloc.
31431         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31432         obsolete.
31433         * modules/argp (Depends-on): Update.
31434         * modules/regex (Depends-on): Update.
31435         * doc/posix-functions/malloc.texi: Update.
31436         * NEWS: Mention the change.
31437
31438 2010-08-28  Eric Blake  <eblake@redhat.com>
31439
31440         pread, pwrite: add missing dependency
31441         * modules/pread (Depends-on): Add extensions.
31442         * modules/pwrite (Depends-on): Likewise.
31443
31444 2010-08-28  Bruno Haible  <bruno@clisp.org>
31445
31446         unistr/u*-strchr: Fix tests dependencies.
31447         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31448         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31449         Reported by Ian Beckwith <ianb@erislabs.net>.
31450
31451 2010-08-28  Bruno Haible  <bruno@clisp.org>
31452
31453         read-file: Don't occupy too much unused memory.
31454         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31455
31456 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31457             Eric Blake  <eblake@redhat.com>
31458             Bruno Haible  <bruno@clisp.org>
31459
31460         read-file: Avoid memory reallocations with regular files.
31461         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31462         (fread_file): With regular files, use the remaining length as the
31463         initial buffer size.  Check against overflow.
31464         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31465         sys_stat.
31466
31467 2010-08-28  Bruno Haible  <bruno@clisp.org>
31468
31469         ftello: Relax license.
31470         * modules/ftello (License): Relax to LGPLv2+.
31471         Reported by Eric Blake.
31472
31473 2010-08-28  Bruno Haible  <bruno@clisp.org>
31474
31475         Avoid relocwrapper link errors due to gnulib replacement functions.
31476         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31477         function.
31478         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31479
31480 2010-08-28  Bruno Haible  <bruno@clisp.org>
31481
31482         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31483         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31484         defined.
31485         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31486         Suggested by Eric Blake.
31487
31488 2010-08-28  Bruno Haible  <bruno@clisp.org>
31489
31490         sys_socket, netdb: Ensure socklen_t gets defined.
31491         * modules/sys_socket (Depends-on): Add socklen.
31492         * modules/netdb (Depends-on): Likewise.
31493         * modules/getaddrinfo (Depends-on): Remove socklen.
31494         * modules/getsockopt (Depends-on): Likewise.
31495         * modules/setsockopt (Depends-on): Likewise.
31496         * tests/test-sys_socket.c: Check that socklen_t is defined.
31497         * tests/test-netdb.c: Likewise.
31498         * m4/socklen.m4: Update comments.
31499         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31500
31501 2010-08-27  Eric Blake  <eblake@redhat.com>
31502
31503         login_tty: add missing dependency
31504         * modules/login_tty (Depends-on): Add pty.
31505
31506 2010-08-26  Eric Blake  <eblake@redhat.com>
31507
31508         lib-symbol-versions: fix m4 quoting
31509         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31510         format for AC_LINK_IFELSE.
31511
31512         glob: fix compile test
31513         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31514
31515         btowc: fix missing file
31516         * modules/btowc (Files): Also ship locale-fr.m4.
31517
31518         lseek: fix link test
31519         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31520         AC_LINK_IFELSE.
31521
31522         include_next: silence autoconf 2.68 warning
31523         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31524         AC_COMPILE_IFELSE as special.
31525         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31526         autoconf < 2.68.
31527
31528         acl: fix compilation test
31529         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31530         AC_COMPILE_IFELSE.
31531
31532 2010-08-26  Bruno Haible  <bruno@clisp.org>
31533
31534         Modernize AC_TRY_RUN invocations.
31535         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31536         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31537         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31538         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31539         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31540         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31541         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31542         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31543         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31544         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31545         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31546         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31547         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31548         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31549         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31550         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31551         gl_MBRLEN_NUL_RETVAL): Likewise.
31552         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31553         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31554         Likewise.
31555         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31556         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31557         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31558         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31559         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31560         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31561         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31562         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31563         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31564         Likewise.
31565         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31566         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31567         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31568         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31569         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31570         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31571         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31572         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31573         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31574         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31575
31576 2010-08-26  Bruno Haible  <bruno@clisp.org>
31577
31578         Modernize AC_TRY_LINK invocations.
31579         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31580         AC_TRY_LINK.
31581         * m4/argp.m4 (gl_ARGP): Likewise.
31582         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31583         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31584         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31585         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31586         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31587         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31588         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31589         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31590         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31591         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31592         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31593         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31594         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31595         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31596         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31597         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31598         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31599         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31600         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31601         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31602         Likewise.
31603         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31604         Likewise.
31605         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31606         Likewise.
31607         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31608         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31609         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31610         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31611         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31612         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31613         * m4/servent.m4 (gl_SERVENT): Likewise.
31614         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31615         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31616         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31617         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31618         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31619         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31620         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31621         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31622         * modules/tsearch-tests (configure.ac): Likewise.
31623
31624 2010-08-26  Bruno Haible  <bruno@clisp.org>
31625
31626         Modernize AC_TRY_COMPILE invocations.
31627         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31628         AC_TRY_COMPILE.
31629         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31630         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31631         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31632         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31633         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31634         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31635         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31636         * m4/lock.m4 (gl_LOCK): Likewise.
31637         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31638         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31639         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31640         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31641         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31642         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31643         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31644         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31645         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31646         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31647         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31648         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31649         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31650         extraneous semicolon.
31651
31652 2010-08-26  Jim Meyering  <meyering@redhat.com>
31653
31654         stat-time: relax license LGPL
31655         * modules/stat-time (License): Change from GPL to LGPL,
31656         with consent from all contributors, for use in libguile.
31657         Requested by Ludovic Courtès.
31658
31659 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31660
31661         poll: return immediately on POLLHUP.
31662         * lib/poll.c (poll): Always set timeout before wait_timeout is
31663         computed.
31664
31665 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31666
31667         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31668         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31669         rmdir ("dir/.//"), unlinkat.
31670
31671 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31672
31673         stdbool: avoid spurious failure with modern xlc
31674         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31675
31676 2010-08-24  Bruno Haible  <bruno@clisp.org>
31677
31678         getloadavg: simplify code
31679         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31680         gl_have_func. Update comments.
31681
31682 2010-08-24  Eric Blake  <eblake@redhat.com>
31683
31684         getloadavg: don't define SVR4 on cygwin
31685         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31686         only define SVR4 when -lkvm is required.
31687         Reported by Yaakov Selkowitz.
31688
31689 2010-08-24  Bruno Haible  <bruno@clisp.org>
31690
31691         priv-set: fix comment
31692         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31693
31694 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31695
31696         priv-set: fix comments
31697         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31698         to match code, as suggested by David Bartley in:
31699         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31700
31701 2010-08-23  Eric Blake  <eblake@redhat.com>
31702
31703         stdbool: avoid rejecting clang
31704         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31705         * tests/test-stdbool.c: Enable more tests if using the system
31706         <stdbool.h> instead of the gnulib replacement.
31707         (main): Move xlc bug test to a runtime test for all compilers.
31708         Reported by Anders Kaseorg.
31709
31710         argz: fix shell quoting issue
31711         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31712         Reported by Charles Wilson.
31713
31714 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31715             Erik Faye-Lund <kusmabite@gmail.com>
31716
31717         poll, select: handle ERROR_BROKEN_PIPE.
31718         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31719         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31720         * lib/select.c (win32_compute_revents): Do not mark a pipe
31721         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31722
31723 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31724
31725         fts: allow compilation with C++
31726         * lib/fts_.h: Specify extern "C" linkage with C++.
31727
31728 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31729
31730         Fix gnulib-tool sed script de-commentation for AIX sed.
31731         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31732         sed.
31733
31734 2010-08-17  Eric Blake  <eblake@redhat.com>
31735
31736         test-stddef: test for (some) offsetof bugs
31737         * tests/test-stddef.c: Enhance test to ensure correct type of
31738         offsetof.
31739         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31740         that we are not fixing at this time.
31741
31742 2010-08-15  Bruno Haible  <bruno@clisp.org>
31743
31744         stpncpy: Allow stpncpy to be defined as a macro.
31745         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31746         if it's already correctly declared.
31747         * lib/string.in.h (stpncpy): Undefine before redefining.
31748         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31749
31750 2010-08-14  Bruno Haible  <bruno@clisp.org>
31751
31752         Rename module 'memxfrm' to 'amemxfrm'.
31753         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31754         (amemxfrm): Renamed from memxfrm.
31755         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31756         (amemxfrm): Renamed from memxfrm.
31757         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31758         * NEWS: Mention the change.
31759         * MODULES.html.sh (String handling <string.h>): Update.
31760         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31761         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31762         * lib/unicase/u16-casexfrm.c: Likewise.
31763         * lib/unicase/u32-casexfrm.c: Likewise.
31764         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31765         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31766         * lib/uninorm/u16-normxfrm.c: Likewise.
31767         * lib/uninorm/u32-normxfrm.c: Likewise.
31768         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31769         memxfrm.
31770         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31771         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31772         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31773         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31774         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31775         Suggested by Paul Eggert.
31776
31777 2010-08-14  Bruno Haible  <bruno@clisp.org>
31778
31779         Tests for module 'astrxfrm'.
31780         * modules/astrxfrm-tests: New file.
31781         * tests/test-astrxfrm.c: New file.
31782
31783         New module 'astrxfrm'.
31784         * lib/astrxfrm.h: New file.
31785         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31786         * modules/astrxfrm: New file.
31787
31788 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31789
31790         regex: Tweak doc.
31791         * doc/regex.texi (Overview): Don't mention regex.c.
31792         (GNU Regular Expression Compiling): Likewise.
31793         (Match-end-of-line Operator): Mention 'not_eol'.
31794
31795 2010-08-14  Brian Gough  <bjg@gnu.org>
31796             Bruno Haible  <bruno@clisp.org>
31797
31798         git-merge-changelog: add doc relating to use with bzr and hg.
31799         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31800
31801 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31802
31803         pthread: fix pthread.h creation for srcdir != builddir
31804         * modules/pthread (Makefile.am): Fix the rule to work also in a
31805         non-srcdir build.
31806
31807 2010-08-13  Karl Berry  <karl@gnu.org>
31808
31809         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31810         * doc/posix-*/*: force line break before @url of POSIX
31811         specifications.
31812         Suggested by Werner Lemberg.
31813
31814 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31815
31816         strtod: fix const diagnostic
31817         * lib/strtod.c (strtod): Don't assign const char * to char *,
31818         as this elicits a warning from GCC when warnings are enabled.
31819
31820 2010-08-10  Pádraig Brady <P@draigbrady.com>
31821         and Eric Blake  <eblake@redhat.com>
31822
31823         copy-acl: ignore ENOTSUP on HP-UX
31824         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31825         so that it is available for HP-UX.
31826         * lib/copy-acl.c (qcopy_acl): Use it.
31827         Reported by Patrick M. Callahan.
31828
31829 2010-08-10  Eric Blake  <eblake@redhat.com>
31830
31831         open, chown: relax license
31832         * modules/open (License): Change to LGPLv2+, with consent by all
31833         authors, for use in augeas.
31834         * modules/chown (License): Likewise.
31835         * modules/lchown (Likewise): Likewise.
31836         Requested by Adam Stokes.
31837
31838 2010-08-09  Karl Berry  <karl@gnu.org>
31839
31840         * build-aux/ar-lib: new file, import from Automake.
31841         * config/srclist.txt: autocheck for updates.
31842
31843 2010-08-09  Eric Blake  <eblake@redhat.com>
31844
31845         readlinkat: adjust client modules
31846         * modules/areadlinkat (Depends-on): Use readlinkat, not
31847         symlinkat.
31848         * modules/areadlinkat-with-size (Depends-on): Likewise.
31849
31850         mknod: be more vocal about danger of running tests as root
31851         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31852         root, since that is just asking for problems.
31853         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31854
31855         readlinkat: split into its own module
31856         * modules/symlinkat: Split readlinkat...
31857         * modules/readlinkat: ...into separate module.
31858         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31859         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31860         * lib/symlinkat.c (readlinkat): Move...
31861         * lib/readlinkat.c: ...into new file.
31862         * modules/symlinkat-tests: Split readlinkat test...
31863         * modules/readlinkat-tests: ...into separate module.
31864         * tests/test-symlinkat.c: Split...
31865         * tests/test-readlinkat.c: ...into new file.
31866         * NEWS: Document the split.
31867         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31868         * lib/unistd.in.h (readlinkat): Likewise.
31869         Suggested by Bruno Haible.
31870
31871 2010-08-08  Bruno Haible  <bruno@clisp.org>
31872
31873         memxfrm: Speed up.
31874         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
31875         that usually only one call to strxfrm is necessary for each string
31876         part.
31877         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31878
31879 2010-08-07  Karl Berry  <karl@gnu.org>
31880
31881         * doc/posix-headers/limits.texi,
31882         * doc/posix-functions/malloc.texi,
31883         * doc/posix-functions/strsignal.texi: missing @item.
31884         * doc/ld-version-script.texi: spurious leading i.
31885         * doc/regex.texi (Interval Operators): no commas inside @var.
31886
31887 2010-08-01  Bruno Haible  <bruno@clisp.org>
31888
31889         Integrate the regex documentation.
31890         * doc/gnulib.texi: Define 'cn' index.
31891         (Regular expressions): New a chapter that includes regex.texi and
31892         regexprops-generic.texi.
31893         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
31894         syntax.
31895
31896         Whitespace cleanup.
31897         * doc/regex.texi: Remove trailing spaces.
31898
31899         Add regex documentation.
31900         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
31901         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
31902         Written by Kathy A. Hargreaves and Karl Berry.
31903
31904 2010-08-01  Bruno Haible  <bruno@clisp.org>
31905
31906         link: Update documentation.
31907         * doc/posix-functions/link.texi: Update regarding Solaris.
31908
31909 2010-07-31  Bruno Haible  <bruno@clisp.org>
31910
31911         Update modules list.
31912         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31913         (String handling <string.h>): Add memcmp2, memxfrm.
31914         (Container data structures): Add xlist, xsublist, xoset.
31915         (Core language properties): Add alignof, unused-parameter.
31916         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31917         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31918         (Unibyte characters <ctype.h>): New section.
31919         (String handling <string.h>): New section.
31920         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31921         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31922         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31923         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31924         tan, tanh, tanl, y0, y1, yn.
31925         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31926         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31927         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31928         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31929         unlockpt, vdprintf, vdprintf-posix.
31930         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31931         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31932         xconcat-filename.
31933         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31934         getdtablesize, pipe2, pipe2-safer.
31935         (Security): New section.
31936         (Networking functions): Add accept4.
31937         (Signal handling): Add sigpipe.
31938         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31939         mbmemcasecoll.
31940         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31941         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31942         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31943         pipe-filter-ii.
31944         (Misc): Add argp-version-etc, login_tty, parse-duration.
31945
31946 2010-07-31  Bruno Haible  <bruno@clisp.org>
31947
31948         Improve doc in MODULES.html.
31949         * modules/linkat (Description): Add the word "function".
31950         * modules/mkfifo (Description): Likewise.
31951         * modules/mknod (Description): Likewise.
31952         * modules/remove (Description): Likewise.
31953         * modules/renameat (Description): Likewise.
31954         * modules/stat (Description): Likewise.
31955         * modules/symlink (Description): Likewise.
31956         * modules/unlink (Description): Likewise.
31957
31958 2010-07-31  Bruno Haible  <bruno@clisp.org>
31959
31960         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31961         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31962         option --enable/disable-c++ instead of --enable/disable-cxx.
31963         * NEWS: Mention the change.
31964
31965 2010-07-31  Bruno Haible  <bruno@clisp.org>
31966
31967         readlink, areadlink: Relax test a bit.
31968         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31969         alternative to ENOTDIR.
31970         * tests/test-areadlink.h (test_areadlink): Likewise.
31971         Reported by Rainer Tammer.
31972
31973 2010-07-31  Bruno Haible  <bruno@clisp.org>
31974
31975         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31976         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31977         character, perform the search using U_STRCHR.
31978         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31979         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31980         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31981         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31982         Suggested by Paolo Bonzini.
31983
31984 2010-07-31  Bruno Haible  <bruno@clisp.org>
31985
31986         unistr/u*-strstr: Fix dependencies.
31987         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31988         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31989         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31990
31991 2010-07-31  Bruno Haible  <bruno@clisp.org>
31992
31993         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31994         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31995         the beginning of the loop.
31996         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31997         cases in 'switch' statement.
31998
31999         unistr/u8-strchr: Fix several bugs.
32000         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32001         the string. When not found, return NULL, not a pointer near the end.
32002
32003         More tests for unistr/u8-strchr.
32004         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32005         that the function does not read past the first occurrence of the byte
32006         being searched.
32007         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32008         * tests/unistr/test-u16-strchr.c (main): New function.
32009         * tests/unistr/test-u32-strchr.c (main): New function.
32010
32011 2010-07-31  Bruno Haible  <bruno@clisp.org>
32012
32013         posix-modules: Ignore backup files of documentation files.
32014         * posix-modules: grep only through files named *.texi.
32015
32016 2010-07-31  Bruno Haible  <bruno@clisp.org>
32017
32018         symlinkat: Fix documentation.
32019         * doc/posix-functions/readlinkat.texi: Fix module name.
32020
32021 2010-07-31  Bruno Haible  <bruno@clisp.org>
32022
32023         fchownat: Replace also when chown has the trailing slash bug.
32024         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32025         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32026         introduced on 2010-04-10.
32027         Reported by Rainer Tammer.
32028
32029 2010-07-31  Bruno Haible  <bruno@clisp.org>
32030
32031         linkat: Work around AIX 7.1 bug.
32032         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32033         whether linkat handles trailing slash correctly. If not, replace linkat
32034         and define LINKAT_TRAILING_SLASH_BUG.
32035         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32036         check whether (fd1,file1) points to a directory if file1 or file2 ends
32037         in a slash. Code taken from lib/link.c.
32038         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32039         Reported by Rainer Tammer.
32040
32041 2010-07-31  Bruno Haible  <bruno@clisp.org>
32042
32043         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32044         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32045         This disables an xlc optimization that was causing wrong test results.
32046         Reported by Rainer Tammer.
32047
32048 2010-07-31  Bruno Haible  <bruno@clisp.org>
32049
32050         iconv: Work around AIX 6.1..7.1 bug.
32051         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32052         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32053         cross-compiling, guess no on all versions of AIX.
32054         Reported by Rainer Tammer.
32055
32056 2010-07-31  Bruno Haible  <bruno@clisp.org>
32057
32058         readlink: Relax test a bit.
32059         * tests/test-readlink.h (test_readlink): Allow different errno value
32060         when readlink is called with a file name that ends in / and refers to
32061         a file.
32062         Suggested by Eric Blake.
32063         Reported by Rainer Tammer.
32064
32065 2010-07-31  Bruno Haible  <bruno@clisp.org>
32066
32067         copysign: Does not require -lm on glibc systems.
32068         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32069         gl_COMMON_DOUBLE_MATHFUNC.
32070         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32071
32072 2010-07-31  Bruno Haible  <bruno@clisp.org>
32073
32074         duplocale: Work around AIX 7.1 bug.
32075         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32076         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32077         * lib/duplocale.c (rpl_duplocale): Update comment.
32078         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32079         Reported by Rainer Tammer.
32080
32081 2010-07-30  Bruno Haible  <bruno@clisp.org>
32082
32083         dirfd: Avoid link error on AIX 7.1.
32084         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32085         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32086         exist, set REPLACE_DIRFD.
32087         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32088         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32089         * doc/posix-functions/dirfd.texi: Update.
32090         Reported by Rainer Tammer.
32091
32092 2010-07-30  Eric Blake  <eblake@redhat.com>
32093
32094         strtod: next round of AIX fixes
32095         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32096         exponent.
32097         * tests/test-strtod.c (main): Enhance tests.
32098         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32099         Reported by Rainer Tammer.
32100
32101         futimens: fix configure check
32102         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32103         Reported by Bruno Haible.
32104
32105 2010-07-30  Bruno Haible  <bruno@clisp.org>
32106
32107         getline: Update regarding AIX.
32108         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32109         Reported by Rainer Tammer.
32110
32111 2010-07-30  Bruno Haible  <bruno@clisp.org>
32112
32113         wcwidth: Drop replacement on AIX 7.
32114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32115         AIX 7.
32116         Reported by Rainer Tammer.
32117
32118 2010-07-30  Bruno Haible  <bruno@clisp.org>
32119
32120         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32121         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32122         a 'char *'.
32123         Reported by Rainer Tammer.
32124
32125 2010-07-30  Bruno Haible  <bruno@clisp.org>
32126
32127         unlink: Update regarding AIX.
32128         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32129         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32130         Reported by Rainer Tammer.
32131
32132 2010-07-30  Bruno Haible  <bruno@clisp.org>
32133
32134         symlink: Update regarding AIX.
32135         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32136         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32137         Reported by Rainer Tammer.
32138
32139 2010-07-30  Bruno Haible  <bruno@clisp.org>
32140
32141         strndup: Update regarding AIX.
32142         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32143         AIX 7.
32144         Reported by Rainer Tammer.
32145
32146 2010-07-30  Bruno Haible  <bruno@clisp.org>
32147
32148         stat: Update regarding AIX.
32149         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32150         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32151         Reported by Rainer Tammer.
32152
32153 2010-07-30  Bruno Haible  <bruno@clisp.org>
32154
32155         truncl: Fix autoconf test.
32156         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32157         whether truncl works.
32158         Reported by Rainer Tammer.
32159
32160 2010-07-30  Bruno Haible  <bruno@clisp.org>
32161
32162         round: Update regarding AIX.
32163         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32164         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32165         Reported by Rainer Tammer.
32166
32167 2010-07-30  Bruno Haible  <bruno@clisp.org>
32168
32169         rename: Update regarding AIX.
32170         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32171         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32172         Reported by Rainer Tammer.
32173
32174 2010-07-30  Bruno Haible  <bruno@clisp.org>
32175
32176         printf.m4: Update regarding AIX.
32177         * m4/printf.m4: Update comments regarding AIX.
32178         Reported by Rainer Tammer.
32179
32180 2010-07-30  Bruno Haible  <bruno@clisp.org>
32181
32182         iconv: Update regarding AIX.
32183         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32184         AIX 7.
32185         Reported by Rainer Tammer.
32186
32187 2010-07-30  Bruno Haible  <bruno@clisp.org>
32188
32189         getopt: Update regarding AIX.
32190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32191         no on AIX.
32192         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32193         Reported by Rainer Tammer.
32194
32195 2010-07-30  Bruno Haible  <bruno@clisp.org>
32196
32197         ldexpl; Update regarding AIX.
32198         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32199         on AIX 7.
32200         Reported by Rainer Tammer.
32201
32202 2010-07-30  Bruno Haible  <bruno@clisp.org>
32203
32204         frexpl: Update regarding AIX.
32205         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32206         on AIX 7.
32207         Reported by Rainer Tammer.
32208
32209 2010-07-30  Bruno Haible  <bruno@clisp.org>
32210
32211         open, fopen: Update regarding AIX.
32212         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32213         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32214         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32215         * doc/posix-functions/fopen.texi: Likewise.
32216         Reported by Rainer Tammer.
32217
32218 2010-07-30  Bruno Haible  <bruno@clisp.org>
32219
32220         chown: Update doc regarding AIX.
32221         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32222         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32223         Reported by Rainer Tammer.
32224
32225 2010-07-30  Eric Blake  <eblake@redhat.com>
32226
32227         strtod: fix bug in replacement function on AIX
32228         * lib/strtod.c (strtod): Special case broken "0x" parse in
32229         underlying strtod.
32230         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32231         * doc/posix-functions/strtod.texi (strtod): Likewise.
32232         Reported by Rainer Tammer.
32233
32234 2010-07-30  Bruno Haible  <bruno@clisp.org>
32235
32236         mbrlen: Fix cross-compilation guess for AIX.
32237         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32238         guess. Leftover from 2008-12-22.
32239
32240 2010-07-30  Bruno Haible  <bruno@clisp.org>
32241
32242         mbrtowc: Fix cross-compilation guess for AIX.
32243         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32244         guess. Leftover from 2008-12-21.
32245
32246 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32247
32248         init.sh: work around trap limitation of some shells
32249         * tests/init.sh (setup_): Move exit trap outside of shell function.
32250
32251 2010-07-29  Eric Blake  <eblake@redhat.com>
32252
32253         strtod: aid debugging
32254         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32255         understanding why strtod is rejected.
32256
32257 2010-07-28  Bruno Haible  <bruno@clisp.org>
32258
32259         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32260         * lib/unistr/u8-chr.c: Include <string.h>.
32261         * tests/unistr/test-u8-chr.c: Likewise.
32262         * tests/unistr/test-u16-chr.c: Likewise.
32263         * tests/unistr/test-u32-chr.c: Likewise.
32264         * tests/unistr/test-u8-strchr.c: Likewise.
32265         * tests/unistr/test-u16-strchr.c: Likewise.
32266         * tests/unistr/test-u32-strchr.c: Likewise.
32267         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32268         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32269         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32270         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32271
32272 2010-07-28  Bruno Haible  <bruno@clisp.org>
32273
32274         Use spaces for indentation, not tabs.
32275         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32276
32277 2010-07-27  Bruno Haible  <bruno@clisp.org>
32278
32279         mbspcasecmp: Fix function specification.
32280         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32281         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32282         Reported by Eric Blake <eblake@redhat.com>.
32283
32284 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32285
32286         timespec: use cast and not conditional, as truncation isn't possible
32287         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32288         instead of a conditional.  Comment about the situation in more detail.
32289         This undoes most of the 2009-10-29 patch.
32290
32291 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32292
32293         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32294         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32295         * lib/unistr/u8-strchr.c: Likewise.
32296         * modules/unistr/u8-chr: Depend on memchr.
32297
32298         unistr/u*-strchr: add tests
32299         * modules/unistr/u8-strchr-tests: New file.
32300         * modules/unistr/u16-strchr-tests: New file.
32301         * modules/unistr/u32-strchr-tests: New file.
32302         * tests/unistr/test-strchr.h: New file.
32303         * tests/unistr/test-u8-strchr.c: New file.
32304         * tests/unistr/test-u16-strchr.c: New file.
32305         * tests/unistr/test-u32-strchr.c: New file.
32306
32307         unistr/u*-chr: test multibyte sequences more
32308         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32309         test vector.
32310         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32311         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32312         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32313
32314         unistr/u*-chr: test multibyte sequences
32315         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32316
32317         unistr/u*-chr: prepare for multibyte tests
32318         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32319         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32320         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32321         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32322         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32323         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32324
32325 2010-07-18  Bruno Haible  <bruno@clisp.org>
32326
32327         unistr/u8-strchr: Optimize non-ASCII argument case.
32328         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32329         because the first byte often matches anyway.
32330         Reported by Pádraig Brady <P@draigbrady.com>.
32331
32332 2010-07-15  Karl Berry  <karl@gnu.org>
32333
32334         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32335
32336 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32337
32338         getcwd: on Solaris, work better if ancestors are inaccessible
32339         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32340         buffer and size, try again with a large buffer.  This works better
32341         on Solaris, since its getcwd succeeds even if the path to the root
32342         is inaccessible, and this is helpful in common cases such as .zfs
32343         hidden directories.  Problem reported by J Chapman Flack in
32344         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32345         Use system getcwd if it's declared, not merely if it's partly
32346         working; use the partly-working test only to avoid needless effort
32347         if the system getcwd fails.
32348         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32349         comment that was already obsolete and is now even more obsolete.
32350         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32351         now might call strdup.
32352
32353 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32354
32355         pthread: Add enough so that coreutils/src/sort.c compiles.
32356         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32357         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32358         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32359         Include <sys/types.h>, in case it defines pthread_t.
32360         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32361         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32362         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32363         (pthread_rwlockattr_t, pthread_spinlock_t):
32364         New typedefs, if HAVE_PTHREAD_T is not defined.
32365         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32366         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32367         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32368         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32369         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32370         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32371         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32372         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32373         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32374         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32375         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32376         New macros.
32377         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32378         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32379         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32380         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32381         (pthread_spin_unlock): New dummy functions.
32382         (pthread_create): Return EAGAIN; don't set errno.
32383         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32384         require AC_C_INLINE.
32385         * modules/pthread (Depends-on): Add sched, time.
32386         (pthread.h): Use AM_V_GEN.
32387
32388 2010-07-13  Bruno Haible  <bruno@clisp.org>
32389
32390         striconveh: Don't malloc memory if the result buffer is sufficient.
32391         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32392         buffer if its size is sufficient.
32393         Reported by Ludovic Courtès <ludo@gnu.org>.
32394
32395 2010-07-13  Bruno Haible  <bruno@clisp.org>
32396
32397         strtod: Add safety check.
32398         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32399
32400 2010-07-12  Bruno Haible  <bruno@clisp.org>
32401
32402         Unify tests that set gl_cv_func_ldexpl_no_libm.
32403         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32404         gl_FUNC_LDEXPL.
32405         (gl_FUNC_LDEXPL): Invoke it.
32406         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32407
32408 2010-07-12  Bruno Haible  <bruno@clisp.org>
32409
32410         Unify tests that set gl_cv_func_ldexp_no_libm.
32411         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32412         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32413         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32414         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32415         * modules/strtod (Files): Add m4/ldexp.m4.
32416
32417 2010-07-12  Bruno Haible  <bruno@clisp.org>
32418
32419         Unify tests that set gl_cv_func_frexpl_no_libm.
32420         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32421         gl_FUNC_FREXPL_NO_LIBM.
32422         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32423         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32424
32425 2010-07-12  Bruno Haible  <bruno@clisp.org>
32426
32427         Unify tests that set gl_cv_func_frexp_no_libm.
32428         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32429         gl_FUNC_FREXP_NO_LIBM.
32430         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32431         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32432
32433 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32434
32435         memcoll: clarify sizes versus lengths, document better, and tweak perf
32436         * lib/memcoll.c (strcoll_loop, memcoll0):
32437         Improve quality of descriptive comments.  Name variables
32438         consistently as to whether they are lengths (which do not include
32439         terminating null) versus sizes (which do).
32440         * lib/xmemcoll.c (xmemcoll0): Likewise.
32441         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32442         returned when s1size == 0; this is easier to compile and saves
32443         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32444
32445 2010-07-12  Bruno Haible  <bruno@clisp.org>
32446
32447         Tests for module '_Exit'.
32448         * modules/_Exit-tests: New file.
32449         * tests/test-_Exit.sh: New file.
32450         * tests/test-_Exit.c: New file.
32451
32452         New module '_Exit'.
32453         * lib/stdlib.in.h (__attribute__): New macro.
32454         (_Exit): New declaration.
32455         * lib/_Exit.c: New file.
32456         * m4/_Exit.m4: New file.
32457         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32458         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32459         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32460         * modules/_Exit: New file.
32461         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32462         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32463
32464 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32465
32466         strtod: make it more-accurate typically, and don't require libm
32467         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32468         Include limits.h.  Don't include string.h.
32469         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32470         (locale_isspace): New function, so that no casts are needed to
32471         check whether *s is a space.
32472         (ldexp): Provide an unused dummy if not available.
32473         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32474         (strtod): Use them.  This implementation prefers to use the
32475         underlying strtod if available, falling back on our own code
32476         only to fix known bugs.  This is more likely to produce an
32477         accurate result.  Also, it avoids the use of libm functions.
32478         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32479         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32480         was absent, but it caused a test failure with coreutils.
32481         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32482         with libm.
32483         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32484         * modules/strtod-tests (Makefile.am): Likewise.
32485
32486 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32487             Bruno Haible  <bruno@clisp.org>
32488
32489         unistr/u8-strchr: Optimize ASCII argument case.
32490         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32491
32492 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32493
32494         (x)memcoll: minor tweaks
32495         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32496         is after the type that it qualifies.
32497         (memcoll0): Likewise.
32498         * lib/memcoll.h (memcoll0): Likewise.
32499         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32500         * lib/xmemcoll.h (xmemcoll0): Likewise.
32501         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32502         differs from memcoll in that the NUL byte is part of the argument.
32503         Omit the abort-checks, as performance is a real issue here.  Plus,
32504         the checks were wrong anyway (an off-by-one error).  Omit local
32505         variable 'diff', as it's a bit clearer that way.
32506         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32507         no longer needed.
32508
32509 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32510
32511         (x)memcoll: speedup when input is known to be NUL delimited
32512         * lib/memcoll.c: Include stdlib.
32513         (memcoll0): New function.
32514         (strcoll_loop): New function, refactored for use in both memcoll
32515         and memcoll0.
32516         * lib/memcoll.h (memcoll0): Add prototype.
32517         * lib/xmemcoll.c (xmemcoll0): New function.
32518         (collate_error): New function, refactored for use in both xmemcoll
32519         and xmemcoll0.
32520         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32521         * m4/memcoll.m4: add inline invocation.
32522
32523 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32524
32525         * build-aux/bootstrap: Remove any local translations
32526         from the translation project synchronization directory,
32527         so that local only translations are not distributed.
32528
32529 2010-07-04  Bruno Haible  <bruno@clisp.org>
32530
32531         fsusage: Clarify which code applies to which platforms.
32532         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32533         platform.
32534         * lib/fsusage.c (get_fs_usage): Likewise.
32535
32536 2010-07-04  Bruno Haible  <bruno@clisp.org>
32537
32538         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32539         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32540         Reported by Martin Lambers <marlam@marlam.de>.
32541
32542 2010-07-04  Jim Meyering  <meyering@redhat.com>
32543
32544         hash: once again explicitly disallow insertion of NULL
32545         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32546         inserting a NULL pointer cannot work with these functions.
32547         Add a comment with details.
32548         This reverts part of the 2010-07-01 commit, 5bef1a35
32549         "hash: extend module to deal with non-pointer keys".
32550
32551 2010-07-01  Bruno Haible  <bruno@clisp.org>
32552
32553         stdbool: Update doc.
32554         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32555         Info from Christian Weisgerber <naddy@mips.inka.de>.
32556
32557 2010-07-01  Jim Meyering  <meyering@redhat.com>
32558
32559         hash: extend module to deal with non-pointer keys
32560         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32561         but that allows insertion of non-pointer entries.
32562         Do not disallow an ENTRY value of NULL.
32563         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32564         * lib/hash.h (hash_insert0): Declare.
32565
32566 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32567
32568         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32569         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32570         not present (i.e. with autoconf 2.59 and when using gettextize, not
32571         gnulib), require AC_GNU_SOURCE instead.
32572
32573 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32574
32575         idpriv-drop: Fix tests.
32576         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32577         not to the test-idpriv-droptemp program.
32578
32579 2010-06-29  Bruno Haible  <bruno@clisp.org>
32580
32581         string: Fix syntax error with g++ 2.96.
32582         * lib/string.in.h (__pure__): Remove definition.
32583         (_GL_ATTRIBUTE_PURE): New macro.
32584         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32585         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32586         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32587
32588 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32589
32590         unitypes: Fix bug introduced on 2010-05-18.
32591         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32592
32593 2010-06-22  Eric Blake  <eblake@redhat.com>
32594
32595         memmem: slight optimization
32596         * lib/str-two-way.h (critical_factorization): Update comments.
32597         Reduce work during factorization phase.
32598         Reported by Carlos Bueno <carlos@bueno.org>.
32599
32600 2010-06-21  Bruno Haible  <bruno@clisp.org>
32601
32602         Fix HAVE_CALLOC_POSIX misnomer.
32603         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32604         !HAVE_CALLOC_POSIX.
32605         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32606         HAVE_CALLOC_POSIX.
32607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32608         instead of HAVE_CALLOC_POSIX.
32609         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32610         HAVE_CALLOC_POSIX.
32611
32612         Use modern idiom for calloc() replacement.
32613         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32614         AC_FUNC_CALLOC.
32615         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32616         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32617         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32618         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32619         (gl_REPLACE_CALLOC): New macro.
32620
32621 2010-06-21  Bruno Haible  <bruno@clisp.org>
32622
32623         Fix HAVE_REALLOC_POSIX misnomer.
32624         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32625         !HAVE_REALLOC_POSIX.
32626         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32627         HAVE_REALLOC_POSIX.
32628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32629         instead of HAVE_REALLOC_POSIX.
32630         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32631         HAVE_REALLOC_POSIX.
32632
32633         Use modern idiom for realloc() replacement.
32634         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32635         AC_FUNC_REALLOC.
32636         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32637         Autoconf's AC_FUNC_REALLOC.
32638         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32639         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32640         (gl_REPLACE_REALLOC): New macro.
32641         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32642
32643 2010-06-21  Bruno Haible  <bruno@clisp.org>
32644
32645         Fix HAVE_MALLOC_POSIX misnomer.
32646         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32647         !HAVE_MALLOC_POSIX.
32648         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32649         HAVE_MALLOC_POSIX.
32650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32651         instead of HAVE_MALLOC_POSIX.
32652         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32653         HAVE_MALLOC_POSIX.
32654
32655         Use modern idiom for malloc() replacement.
32656         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32657         AC_FUNC_MALLOC.
32658         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32659         Autoconf's AC_FUNC_MALLOC.
32660         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32661         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32662         (gl_REPLACE_MALLOC): New macro.
32663         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32664
32665 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32666
32667         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32668         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32669         This macro takes 3 arguments, not 4.
32670
32671 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32672
32673         ipv6: fix detection under mingw
32674         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32675         in6_addr.
32676
32677 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32678
32679         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32680         that strtod() works when cross-compiling to a glibc version known
32681         to work.
32682
32683 2010-06-15  Bruno Haible  <bruno@clisp.org>
32684
32685         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32686
32687 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32688
32689         select: Correct timeout.
32690         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32691
32692 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32693
32694         git-version-gen: init shell var to avoid env var influence
32695         * build-aux/git-version-gen (v): Init shell var to empty.
32696
32697 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32698
32699         priv-set: Don't assume that priv.h exists merely because getppriv does.
32700         See Jan Andersen's bug report about AIX 5L in
32701         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32702         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32703         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32704         * lib/priv-set.h: Likewise.
32705         * tests/test-priv-set.c: Likewise.
32706
32707 2010-06-13  Bruno Haible  <bruno@clisp.org>
32708
32709         relocatable: Make it easier to test whether to install wrappers.
32710         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32711         RELOCATABLE_VIA_WRAPPER.
32712
32713 2010-06-13  Bruno Haible  <bruno@clisp.org>
32714
32715         gnulib-tool: Display specified modules and dependencies differently.
32716         * gnulib-tool (func_show_module_list): New function.
32717         (func_import, func_create_testdir): Invoke it.
32718         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32719
32720 2010-06-13  Bruno Haible  <bruno@clisp.org>
32721
32722         gnulib-tool: Align code of func_import and func_create_testdir.
32723         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32724         specified_modules.
32725
32726 2010-06-12  Jim Meyering  <meyering@redhat.com>
32727
32728         test-inttostr: avoid spurious failure on Solaris 9
32729         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32730         to accept "%ju".  Reported by Bruno Haible.
32731
32732 2010-06-11  Jim Meyering  <meyering@redhat.com>
32733
32734         test-sys_socket: mark variables as used more readably
32735         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32736         as "used" explicitly via (void) statement casts.  This is more
32737         readable than using them in an artificial return expression.
32738         Suggestion from Bruno Haible.
32739
32740 2010-06-11  Bruno Haible  <bruno@clisp.org>
32741
32742         Avoid some more warnings from "gcc -Wwrite-strings".
32743         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32744         to 'const char *'.
32745         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32746         * tests/test-c-strcasestr.c (main): Likewise.
32747         * tests/test-mbscasestr1.c (main): Likewise.
32748         * tests/test-mbscasestr2.c (main): Likewise.
32749         * tests/test-memmem.c (main): Likewise.
32750         * tests/test-strstr.c (main): Likewise.
32751         * tests/test-strcasestr.c (main): Likewise.
32752
32753 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32754
32755         init.sh: change framework_failure_ to fail with status 99, not 1
32756         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32757         automake's parallel-tests rule that this is an unexpected failure,
32758         even if the test is listed in XFAIL_TESTS.
32759
32760 2010-06-11  Jim Meyering  <meyering@redhat.com>
32761
32762         test-inttostr: avoid warnings about 4-6KB literal strings
32763         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32764         Include "macros.h", for its definition of ASSERT.
32765         (CK): s/assert/ASSERT/
32766         * modules/inttostr-tests (Files): Add macros.h.
32767
32768         init.sh: don't use $ME_ or skip_ before they are defined
32769         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32770         their first uses.  Also hoist their companions: warn_, fail_,
32771         framework_failure_, $stderr_fileno.  Prompted by a patch from
32772         Stefano Lattarini.
32773
32774         test-sys_socket: avoid set-but-not-used warnings from gcc
32775         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32776         avoid warning about set-but-not-used variables.
32777
32778         test-xvasprintf: avoid 'const' discard warnings
32779         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32780         "const" when assigning from literal strings.
32781         (test_xasprintf): Add "void" in function argument list to placate
32782         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32783
32784         tests: avoid compilation warnings in argmatch and exclude tests...
32785         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32786         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32787         Since it always exits, declare with the "noreturn" attribute.
32788         * tests/test-argmatch.c: Likewise.
32789
32790         tests: avoid 'const' discard warnings in mbsstr tests
32791         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32792         * tests/test-mbsstr2.c (main): Likewise.
32793
32794         test-verify: avoid warning from gcc's -Wmissing-declarations
32795         * tests/test-verify.c (function): Declare to be static.
32796
32797         test-inttostr.c: include <string.h> for use of strcmp
32798         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32799
32800         test-linkat: avoid failed assertion on "other" architectures
32801         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32802         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32803         sparc: https://bugs.launchpad.net/bugs/591968
32804
32805 2010-06-11  Jim Meyering  <meyering@redhat.com>
32806
32807         printf.m4: avoid autoconf's "Expanded Before Required" warning
32808         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32809         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32810         autoconf warning.
32811
32812 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32813
32814         Replacement header templates are now named with ".in", not "_".
32815         * doc/gnulib-intro.texi: Correct.
32816
32817 2010-06-10  Jim Meyering  <meyering@redhat.com>
32818
32819         inttostr-tests: depend on snprintf, not snprintf-posix
32820         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32821         snprintf-posix, to avoid this aclocal failure:
32822           missing file gnulib-tests/vasnprintf.c
32823           configure.ac:45: error: expected source file, required through \
32824           AC_LIBSOURCES, not found
32825
32826 2010-06-10  Jim Meyering  <meyering@redhat.com>
32827
32828         inttostr: add a new function, inttostr, and tests
32829         The namesake function was not available.  The existence of the
32830         template file, inttostr.c makes its addition nontrivial.
32831         * lib/anytostr.c: Rename from inttostr.c.
32832         (anytostr): Rename from inttostr.
32833         * lib/inttostr.c: New file.
32834         * modules/inttostr (Files): Add anytostr.c.
32835         (Makefile.am): Set lib_SOURCES instead of ...
32836         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32837         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32838         * lib/offtostr.c: Likewise.
32839         * lib/uinttostr.c: Likewise.
32840         * lib/umaxtostr.c: Likewise.
32841         * modules/inttostr-tests: New file.
32842         * tests/test-inttostr.c: New file.  Test these functions.
32843
32844 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32845             Bruno Haible  <bruno@clisp.org>
32846
32847         Add "Extending Gnulib" chapter to manual.
32848         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32849         chapter.
32850         (Extending Gnulib): New chapter.
32851         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32852         chapter.
32853
32854 2010-06-09  Bruno Haible  <bruno@clisp.org>
32855
32856         Avoid relocwrapper link errors due to gnulib replacement functions.
32857         * lib/areadlink.c: Use the system's malloc, realloc functions.
32858         (areadlink): Set errno to ENOMEM explicitly.
32859         * modules/areadlink (Depends-on): Remove malloc-posix.
32860         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32861
32862 2010-06-09  Bruno Haible  <bruno@clisp.org>
32863
32864         Avoid relocwrapper link errors due to gnulib replacement functions.
32865         * lib/canonicalize-lgpl.c: Use the system's malloc function.
32866         * lib/malloca.c: Likewise.
32867         * lib/relocatable.c: Likewise.
32868         * lib/progreloc.c: Use the system's malloc, sprintf functions.
32869         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
32870         * lib/setenv.c: Use the system's malloc, realloc functions.
32871         * lib/strerror.c: Use the system's sprintf function.
32872         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32873
32874 2010-06-04  Bruno Haible  <bruno@clisp.org>
32875
32876         Prefer documented low-level autoconf macro names.
32877         * m4/lib-link.m4: Use m4_translit instead of translit.
32878         * m4/environ.m4: Likewise.
32879         * m4/mathfunc.m4: Likewise.
32880         * m4/onceonly.m4: Likewise.
32881         * m4/stdint.m4: Likewise.
32882         Suggested by Eric Blake.
32883
32884 2010-06-04  Martin Lambers  <marlam@marlam.de>
32885             Bruno Haible  <bruno@clisp.org>
32886
32887         havelib: Allow library names with '+' characters.
32888         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32889         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
32890
32891 2010-06-09  Bruno Haible  <bruno@clisp.org>
32892
32893         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
32894         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
32895         realloc failed.
32896
32897 2010-06-08  Peter Simons  <simons@cryp.to>
32898
32899         maint.mk: make the news-check rule more configurable
32900         * top/maint.mk (news-check-lines-spec): New variable.
32901         (news-check): Use "sed -n 1,10p" in place of "head".
32902
32903 2010-06-07  Jim Meyering  <meyering@redhat.com>
32904
32905         do-release-commit-and-tag: fix typo in --help
32906         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
32907
32908         regex: avoid new dead-code warning with gcc-4.6.0
32909         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
32910         if-block containing a while-loop.  It's been unused for at least
32911         5 years.
32912
32913 2010-06-05  Bruno Haible  <bruno@clisp.org>
32914
32915         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32916         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32917
32918 2010-06-04  Bruno Haible  <bruno@clisp.org>
32919
32920         Update to GNU gettext 0.18.1.
32921         * modules/gettext (configure.ac): Require gettext infrastructure from
32922         version 0.18.1.
32923
32924 2010-06-03  Bruno Haible  <bruno@clisp.org>
32925
32926         Don't use AC_LIBOBJ with file names in subdirectories.
32927         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32928         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32929         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32930         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32931         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32932         gl_LIBUNISTRING_LIBSOURCE.
32933         (Makefile.am): Augment lib_SOURCES here, conditionally.
32934         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32935
32936 2010-06-03  Bruno Haible  <bruno@clisp.org>
32937
32938         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32939         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32940         expansion does not end with a newline.
32941         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32942         unnecessary newline.
32943
32944 2010-06-03  Bruno Haible  <bruno@clisp.org>
32945
32946         Reduce dependencies.
32947         * tests/test-quotearg.h: New file, extracted from
32948         tests/test-quotearg.c.
32949         * tests/test-quotearg-simple.c: New file, extracted from
32950         tests/test-quotearg.c.
32951         * tests/test-quotearg.c: Don't include <ctype.h>.
32952         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32953         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32954         use_quote_double_quotes, use_quotearg_colon): Moved to
32955         tests/test-quotearg.h.
32956         (results_g, flag_results, custom_quotes, custom_results): Moved
32957         to tests/test-quotearg-simple.c.
32958         (main): Moved the part that does not depend on gettext to
32959         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32960         performed.
32961         * modules/quotearg-simple: New file.
32962         * modules/quotearg-simple-tests: New file.
32963         * modules/quotearg (Depends-on): Add quotearg-simple.
32964         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32965         (Files): Add tests/test-quotearg.h.
32966         Reported by Paolo Bonzini.
32967
32968 2010-06-03  Bruno Haible  <bruno@clisp.org>
32969
32970         Reduce dependencies.
32971         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32972
32973 2010-06-03  Bruno Haible  <bruno@clisp.org>
32974
32975         time: Undefine more broken macros.
32976         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32977         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32978         Reported by Eric Blake.
32979
32980 2010-06-03  Bruno Haible  <bruno@clisp.org>
32981
32982         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32983         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32984         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32985         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32986         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32987         Reported by Ludovic Courtès <ludo@gnu.org>.
32988
32989 2010-06-02  Eric Blake  <eblake@redhat.com>
32990
32991         time: work with mingw + pthreads-win32 library
32992         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32993         if timespec is defined only in pthread.h.
32994         * modules/time (Makefile.am): Substitute it.
32995         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32996         <pthread.h>, when needed.
32997         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32998         from the library.
32999
33000 2010-05-31  Bruno Haible  <bruno@clisp.org>
33001
33002         Avoid expanding two macros in the wrong order.
33003         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33004         gl_LIBUNISTRING if it is defined.
33005         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33006         autoconf >= 2.64.
33007         Reported by Ludovic Courtès <ludo@gnu.org>.
33008
33009 2010-05-27  Jim Meyering  <meyering@redhat.com>
33010
33011         maint.mk: also prohibit "#undef" of always-defined symbols
33012         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33013         Allow more than one space before the symbol name.
33014         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33015         the regexp uses alternation.
33016
33017 2010-05-26  Eric Blake  <eblake@redhat.com>
33018
33019         maint.mk: avoid echo -e
33020         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33021         Convert all uses of echo -* to printf.
33022         Reported by Matthias Bolte.
33023
33024 2010-05-25  Bruno Haible  <bruno@clisp.org>
33025
33026         Update to GNU gettext 0.18, part 2.
33027         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33028         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33029
33030 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33031
33032         Add missing include in test-pwrite.c.
33033         * tests/test-pwrite.c: Include string.h, for strcmp.
33034
33035 2010-05-24  Bruno Haible  <bruno@clisp.org>
33036
33037         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33038
33039 2010-05-24  Bruno Haible  <bruno@clisp.org>
33040
33041         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33042         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33043         iconveh_error argument.
33044         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33045         U_STRCONV_TO_LOCALE.
33046         * lib/unistr/u16-strcoll.c: Likewise.
33047         * lib/unistr/u32-strcoll.c: Likewise.
33048         * modules/unistr/u8-strcoll (Depends-on): Add
33049         uniconv/u8-strconv-to-enc, localcharset. Remove
33050         uniconv/u8-strconv-to-locale.
33051         (configure.ac): Bump version number.
33052         * modules/unistr/u16-strcoll (Depends-on): Add
33053         uniconv/u16-strconv-to-enc, localcharset. Remove
33054         uniconv/u16-strconv-to-locale.
33055         (configure.ac): Bump version number.
33056         * modules/unistr/u32-strcoll (Depends-on): Add
33057         uniconv/u32-strconv-to-enc, localcharset. Remove
33058         uniconv/u32-strconv-to-locale.
33059         (configure.ac): Bump version number.
33060
33061 2010-05-24  Bruno Haible  <bruno@clisp.org>
33062
33063         Avoid a test failure on NetBSD 5.0.
33064         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33065         an iconv() bug.
33066
33067 2010-05-24  Bruno Haible  <bruno@clisp.org>
33068
33069         Adjust #include directive style.
33070         * modules/regex (Includes): Recommend to write <regex.h>.
33071
33072 2010-05-24  Bruno Haible  <bruno@clisp.org>
33073
33074         regex: Don't require alloca.
33075         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33076         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33077         only inside if (0).
33078
33079 2010-05-23  Jim Meyering  <meyering@redhat.com>
33080
33081         test-renameat.c: include <sys/stat.h>
33082         * tests/test-renameat.c: Include <sys/stat.h>; required for
33083         definition of S_IS* macros.
33084
33085 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33086
33087         Update maintainer documentation for 'relocatable-prog' module.
33088         * doc/relocatable-maint.texi: Update.
33089         Comments by Bruno Haible.
33090
33091 2010-05-23  Bruno Haible  <bruno@clisp.org>
33092
33093         git-merge-changelog: Enable --split-merged-entry by default.
33094         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33095         (usage): Don't mention this option any more.
33096         Reported by Ralf Wildenhues.
33097
33098 2010-05-23  Jim Meyering  <meyering@redhat.com>
33099
33100         test-pwrite: do not leave behind a test file named "out"
33101         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33102         The trivial-looking use of init.sh is really necessary.
33103         It ensures that the temporary file, "out", is created in
33104         a temporary directory, and removed upon termination.
33105         * tests/test-pwrite.sh: Re-add file.
33106         * modules/pwrite-tests: Reference it.
33107
33108 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33109
33110         Fix output redirection buglet in init.sh.
33111         * tests/init.sh: Fix redirection of stderr.
33112
33113 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33114
33115         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33116
33117 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33118
33119         * modules/valgrind-tests: New file.
33120         * m4/valgrind-tests.m4: New file.
33121         * doc/valgrind-tests.texi: New file.
33122         * doc/gnulib.texi (Running self-tests under valgrind): New
33123         section.
33124
33125 2010-05-19  Bruno Haible  <bruno@clisp.org>
33126
33127         Clean up dead code in recent commit.
33128         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33129         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33130         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33131         Suggested by Paolo Bonzini.
33132
33133 2010-05-19  Bruno Haible  <bruno@clisp.org>
33134
33135         Avoid valgrind error reports from libunistring.
33136         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33137         * modules/libunistring (Files): Add it.
33138         * modules/libunistring-optional (Files): Likewise.
33139
33140 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33141             Bruno Haible  <bruno@clisp.org>
33142
33143         New module 'libunistring-optional'.
33144         * modules/libunistring-optional: New file.
33145         * m4/libunistring-base.m4: New file.
33146         * m4/libunistring-optional.m4: New file.
33147         * lib/unicase.in.h: Renamed from lib/unicase.h.
33148         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33149         * lib/unictype.in.h: Renamed from lib/unictype.h.
33150         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33151         * lib/uniname.in.h: Renamed from lib/uniname.h.
33152         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33153         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33154         * lib/unistr.in.h: Renamed from lib/unistr.h.
33155         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33156         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33157         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33158         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33159         gl_LIBUNISTRING. If the library was found, determine the installed
33160         version and set LIBUNISTRING_VERSION.
33161         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33162         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33163         handle a configuration option --with-included-libunistring.
33164         * modules/libunistring (Files): Add m4/absolute-header.m4.
33165         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33166         Add m4/libunistring-base.m4.
33167         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33168         (Makefile.am): Build unicase.h from unicase.in.h.
33169         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33170         Add m4/libunistring-base.m4.
33171         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33172         (Makefile.am): Build uniconv.h from uniconv.in.h.
33173         * modules/unictype/base (Files): Use unictype.in.h instead of
33174         unictype.h. Add m4/libunistring-base.m4.
33175         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33176         (Makefile.am): Build unictype.h from unictype.in.h.
33177         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33178         Add m4/libunistring-base.m4.
33179         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33180         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33181         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33182         Add m4/libunistring-base.m4.
33183         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33184         (Makefile.am): Build uniname.h from uniname.in.h.
33185         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33186         Add m4/libunistring-base.m4.
33187         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33188         (Makefile.am): Build uninorm.h from uninorm.in.h.
33189         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33190         unistdio.h. Add m4/libunistring-base.m4.
33191         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33192         (Makefile.am): Build unistdio.h from unistdio.in.h.
33193         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33194         Add m4/libunistring-base.m4.
33195         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33196         (Makefile.am): Build unistr.h from unistr.in.h.
33197         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33198         Add m4/libunistring-base.m4.
33199         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33200         (Makefile.am): Build unitypes.h from unitypes.in.h.
33201         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33202         Add m4/libunistring-base.m4.
33203         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33204         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33205         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33206         uniwidth.h. Add m4/libunistring-base.m4.
33207         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33208         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33209         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33210         instead of augmenting lib_SOURCES.
33211         * modules/unicase/empty-suffix-context: Likewise.
33212         * modules/unicase/locale-language: Likewise.
33213         * modules/unicase/tolower: Likewise.
33214         * modules/unicase/totitle: Likewise.
33215         * modules/unicase/toupper: Likewise.
33216         * modules/unicase/u8-casecmp: Likewise.
33217         * modules/unicase/u8-casecoll: Likewise.
33218         * modules/unicase/u8-casefold: Likewise.
33219         * modules/unicase/u8-casexfrm: Likewise.
33220         * modules/unicase/u8-ct-casefold: Likewise.
33221         * modules/unicase/u8-ct-tolower: Likewise.
33222         * modules/unicase/u8-ct-totitle: Likewise.
33223         * modules/unicase/u8-ct-toupper: Likewise.
33224         * modules/unicase/u8-is-cased: Likewise.
33225         * modules/unicase/u8-is-casefolded: Likewise.
33226         * modules/unicase/u8-is-lowercase: Likewise.
33227         * modules/unicase/u8-is-titlecase: Likewise.
33228         * modules/unicase/u8-is-uppercase: Likewise.
33229         * modules/unicase/u8-prefix-context: Likewise.
33230         * modules/unicase/u8-suffix-context: Likewise.
33231         * modules/unicase/u8-tolower: Likewise.
33232         * modules/unicase/u8-totitle: Likewise.
33233         * modules/unicase/u8-toupper: Likewise.
33234         * modules/unicase/u16-casecmp: Likewise.
33235         * modules/unicase/u16-casecoll: Likewise.
33236         * modules/unicase/u16-casefold: Likewise.
33237         * modules/unicase/u16-casexfrm: Likewise.
33238         * modules/unicase/u16-ct-casefold: Likewise.
33239         * modules/unicase/u16-ct-tolower: Likewise.
33240         * modules/unicase/u16-ct-totitle: Likewise.
33241         * modules/unicase/u16-ct-toupper: Likewise.
33242         * modules/unicase/u16-is-cased: Likewise.
33243         * modules/unicase/u16-is-casefolded: Likewise.
33244         * modules/unicase/u16-is-lowercase: Likewise.
33245         * modules/unicase/u16-is-titlecase: Likewise.
33246         * modules/unicase/u16-is-uppercase: Likewise.
33247         * modules/unicase/u16-prefix-context: Likewise.
33248         * modules/unicase/u16-suffix-context: Likewise.
33249         * modules/unicase/u16-tolower: Likewise.
33250         * modules/unicase/u16-totitle: Likewise.
33251         * modules/unicase/u16-toupper: Likewise.
33252         * modules/unicase/u32-casecmp: Likewise.
33253         * modules/unicase/u32-casecoll: Likewise.
33254         * modules/unicase/u32-casefold: Likewise.
33255         * modules/unicase/u32-casexfrm: Likewise.
33256         * modules/unicase/u32-ct-casefold: Likewise.
33257         * modules/unicase/u32-ct-tolower: Likewise.
33258         * modules/unicase/u32-ct-totitle: Likewise.
33259         * modules/unicase/u32-ct-toupper: Likewise.
33260         * modules/unicase/u32-is-cased: Likewise.
33261         * modules/unicase/u32-is-casefolded: Likewise.
33262         * modules/unicase/u32-is-lowercase: Likewise.
33263         * modules/unicase/u32-is-titlecase: Likewise.
33264         * modules/unicase/u32-is-uppercase: Likewise.
33265         * modules/unicase/u32-prefix-context: Likewise.
33266         * modules/unicase/u32-suffix-context: Likewise.
33267         * modules/unicase/u32-tolower: Likewise.
33268         * modules/unicase/u32-totitle: Likewise.
33269         * modules/unicase/u32-toupper: Likewise.
33270         * modules/unicase/ulc-casecmp: Likewise.
33271         * modules/unicase/ulc-casecoll: Likewise.
33272         * modules/unicase/ulc-casexfrm: Likewise.
33273         * modules/uniconv/u8-conv-from-enc: Likewise.
33274         * modules/uniconv/u8-conv-to-enc: Likewise.
33275         * modules/uniconv/u8-strconv-from-enc: Likewise.
33276         * modules/uniconv/u8-strconv-from-locale: Likewise.
33277         * modules/uniconv/u8-strconv-to-enc: Likewise.
33278         * modules/uniconv/u8-strconv-to-locale: Likewise.
33279         * modules/uniconv/u16-conv-from-enc: Likewise.
33280         * modules/uniconv/u16-conv-to-enc: Likewise.
33281         * modules/uniconv/u16-strconv-from-enc: Likewise.
33282         * modules/uniconv/u16-strconv-from-locale: Likewise.
33283         * modules/uniconv/u16-strconv-to-enc: Likewise.
33284         * modules/uniconv/u16-strconv-to-locale: Likewise.
33285         * modules/uniconv/u32-conv-from-enc: Likewise.
33286         * modules/uniconv/u32-conv-to-enc: Likewise.
33287         * modules/uniconv/u32-strconv-from-enc: Likewise.
33288         * modules/uniconv/u32-strconv-from-locale: Likewise.
33289         * modules/uniconv/u32-strconv-to-enc: Likewise.
33290         * modules/uniconv/u32-strconv-to-locale: Likewise.
33291         * modules/unictype/bidicategory-byname: Likewise.
33292         * modules/unictype/bidicategory-name: Likewise.
33293         * modules/unictype/bidicategory-of: Likewise.
33294         * modules/unictype/bidicategory-test: Likewise.
33295         * modules/unictype/block-list: Likewise.
33296         * modules/unictype/block-test: Likewise.
33297         * modules/unictype/category-C: Likewise.
33298         * modules/unictype/category-Cc: Likewise.
33299         * modules/unictype/category-Cf: Likewise.
33300         * modules/unictype/category-Cn: Likewise.
33301         * modules/unictype/category-Co: Likewise.
33302         * modules/unictype/category-Cs: Likewise.
33303         * modules/unictype/category-L: Likewise.
33304         * modules/unictype/category-Ll: Likewise.
33305         * modules/unictype/category-Lm: Likewise.
33306         * modules/unictype/category-Lo: Likewise.
33307         * modules/unictype/category-Lt: Likewise.
33308         * modules/unictype/category-Lu: Likewise.
33309         * modules/unictype/category-M: Likewise.
33310         * modules/unictype/category-Mc: Likewise.
33311         * modules/unictype/category-Me: Likewise.
33312         * modules/unictype/category-Mn: Likewise.
33313         * modules/unictype/category-N: Likewise.
33314         * modules/unictype/category-Nd: Likewise.
33315         * modules/unictype/category-Nl: Likewise.
33316         * modules/unictype/category-No: Likewise.
33317         * modules/unictype/category-P: Likewise.
33318         * modules/unictype/category-Pc: Likewise.
33319         * modules/unictype/category-Pd: Likewise.
33320         * modules/unictype/category-Pe: Likewise.
33321         * modules/unictype/category-Pf: Likewise.
33322         * modules/unictype/category-Pi: Likewise.
33323         * modules/unictype/category-Po: Likewise.
33324         * modules/unictype/category-Ps: Likewise.
33325         * modules/unictype/category-S: Likewise.
33326         * modules/unictype/category-Sc: Likewise.
33327         * modules/unictype/category-Sk: Likewise.
33328         * modules/unictype/category-Sm: Likewise.
33329         * modules/unictype/category-So: Likewise.
33330         * modules/unictype/category-Z: Likewise.
33331         * modules/unictype/category-Zl: Likewise.
33332         * modules/unictype/category-Zp: Likewise.
33333         * modules/unictype/category-Zs: Likewise.
33334         * modules/unictype/category-and: Likewise.
33335         * modules/unictype/category-and-not: Likewise.
33336         * modules/unictype/category-byname: Likewise.
33337         * modules/unictype/category-name: Likewise.
33338         * modules/unictype/category-none: Likewise.
33339         * modules/unictype/category-of: Likewise.
33340         * modules/unictype/category-or: Likewise.
33341         * modules/unictype/category-test: Likewise.
33342         * modules/unictype/combining-class: Likewise.
33343         * modules/unictype/ctype-alnum: Likewise.
33344         * modules/unictype/ctype-alpha: Likewise.
33345         * modules/unictype/ctype-blank: Likewise.
33346         * modules/unictype/ctype-cntrl: Likewise.
33347         * modules/unictype/ctype-digit: Likewise.
33348         * modules/unictype/ctype-graph: Likewise.
33349         * modules/unictype/ctype-lower: Likewise.
33350         * modules/unictype/ctype-print: Likewise.
33351         * modules/unictype/ctype-punct: Likewise.
33352         * modules/unictype/ctype-space: Likewise.
33353         * modules/unictype/ctype-upper: Likewise.
33354         * modules/unictype/ctype-xdigit: Likewise.
33355         * modules/unictype/decimal-digit: Likewise.
33356         * modules/unictype/digit: Likewise.
33357         * modules/unictype/mirror: Likewise.
33358         * modules/unictype/numeric: Likewise.
33359         * modules/unictype/property-alphabetic: Likewise.
33360         * modules/unictype/property-ascii-hex-digit: Likewise.
33361         * modules/unictype/property-bidi-arabic-digit: Likewise.
33362         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33363         * modules/unictype/property-bidi-block-separator: Likewise.
33364         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33365         * modules/unictype/property-bidi-common-separator: Likewise.
33366         * modules/unictype/property-bidi-control: Likewise.
33367         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33368         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33369         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33370         * modules/unictype/property-bidi-european-digit: Likewise.
33371         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33372         * modules/unictype/property-bidi-left-to-right: Likewise.
33373         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33374         * modules/unictype/property-bidi-other-neutral: Likewise.
33375         * modules/unictype/property-bidi-pdf: Likewise.
33376         * modules/unictype/property-bidi-segment-separator: Likewise.
33377         * modules/unictype/property-bidi-whitespace: Likewise.
33378         * modules/unictype/property-byname: Likewise.
33379         * modules/unictype/property-combining: Likewise.
33380         * modules/unictype/property-composite: Likewise.
33381         * modules/unictype/property-currency-symbol: Likewise.
33382         * modules/unictype/property-dash: Likewise.
33383         * modules/unictype/property-decimal-digit: Likewise.
33384         * modules/unictype/property-default-ignorable-code-point: Likewise.
33385         * modules/unictype/property-deprecated: Likewise.
33386         * modules/unictype/property-diacritic: Likewise.
33387         * modules/unictype/property-extender: Likewise.
33388         * modules/unictype/property-format-control: Likewise.
33389         * modules/unictype/property-grapheme-base: Likewise.
33390         * modules/unictype/property-grapheme-extend: Likewise.
33391         * modules/unictype/property-grapheme-link: Likewise.
33392         * modules/unictype/property-hex-digit: Likewise.
33393         * modules/unictype/property-hyphen: Likewise.
33394         * modules/unictype/property-id-continue: Likewise.
33395         * modules/unictype/property-id-start: Likewise.
33396         * modules/unictype/property-ideographic: Likewise.
33397         * modules/unictype/property-ids-binary-operator: Likewise.
33398         * modules/unictype/property-ids-trinary-operator: Likewise.
33399         * modules/unictype/property-ignorable-control: Likewise.
33400         * modules/unictype/property-iso-control: Likewise.
33401         * modules/unictype/property-join-control: Likewise.
33402         * modules/unictype/property-left-of-pair: Likewise.
33403         * modules/unictype/property-line-separator: Likewise.
33404         * modules/unictype/property-logical-order-exception: Likewise.
33405         * modules/unictype/property-lowercase: Likewise.
33406         * modules/unictype/property-math: Likewise.
33407         * modules/unictype/property-non-break: Likewise.
33408         * modules/unictype/property-not-a-character: Likewise.
33409         * modules/unictype/property-numeric: Likewise.
33410         * modules/unictype/property-other-alphabetic: Likewise.
33411         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33412         * modules/unictype/property-other-grapheme-extend: Likewise.
33413         * modules/unictype/property-other-id-continue: Likewise.
33414         * modules/unictype/property-other-id-start: Likewise.
33415         * modules/unictype/property-other-lowercase: Likewise.
33416         * modules/unictype/property-other-math: Likewise.
33417         * modules/unictype/property-other-uppercase: Likewise.
33418         * modules/unictype/property-paired-punctuation: Likewise.
33419         * modules/unictype/property-paragraph-separator: Likewise.
33420         * modules/unictype/property-pattern-syntax: Likewise.
33421         * modules/unictype/property-pattern-white-space: Likewise.
33422         * modules/unictype/property-private-use: Likewise.
33423         * modules/unictype/property-punctuation: Likewise.
33424         * modules/unictype/property-quotation-mark: Likewise.
33425         * modules/unictype/property-radical: Likewise.
33426         * modules/unictype/property-sentence-terminal: Likewise.
33427         * modules/unictype/property-soft-dotted: Likewise.
33428         * modules/unictype/property-space: Likewise.
33429         * modules/unictype/property-terminal-punctuation: Likewise.
33430         * modules/unictype/property-test: Likewise.
33431         * modules/unictype/property-titlecase: Likewise.
33432         * modules/unictype/property-unassigned-code-value: Likewise.
33433         * modules/unictype/property-unified-ideograph: Likewise.
33434         * modules/unictype/property-uppercase: Likewise.
33435         * modules/unictype/property-variation-selector: Likewise.
33436         * modules/unictype/property-white-space: Likewise.
33437         * modules/unictype/property-xid-continue: Likewise.
33438         * modules/unictype/property-xid-start: Likewise.
33439         * modules/unictype/property-zero-width: Likewise.
33440         * modules/unictype/scripts: Likewise.
33441         * modules/unictype/syntax-c-ident: Likewise.
33442         * modules/unictype/syntax-c-whitespace: Likewise.
33443         * modules/unictype/syntax-java-ident: Likewise.
33444         * modules/unictype/syntax-java-whitespace: Likewise.
33445         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33446         * modules/unilbrk/u8-width-linebreaks: Likewise.
33447         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33448         * modules/unilbrk/u16-width-linebreaks: Likewise.
33449         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33450         * modules/unilbrk/u32-width-linebreaks: Likewise.
33451         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33452         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33453         * modules/uniname/uniname: Likewise.
33454         * modules/uninorm/canonical-decomposition: Likewise.
33455         * modules/uninorm/composition: Likewise.
33456         * modules/uninorm/decomposing-form: Likewise.
33457         * modules/uninorm/decomposition: Likewise.
33458         * modules/uninorm/filter: Likewise.
33459         * modules/uninorm/nfc: Likewise.
33460         * modules/uninorm/nfd: Likewise.
33461         * modules/uninorm/nfkc: Likewise.
33462         * modules/uninorm/nfkd: Likewise.
33463         * modules/uninorm/u8-normalize: Likewise.
33464         * modules/uninorm/u8-normcmp: Likewise.
33465         * modules/uninorm/u8-normcoll: Likewise.
33466         * modules/uninorm/u8-normxfrm: Likewise.
33467         * modules/uninorm/u16-normalize: Likewise.
33468         * modules/uninorm/u16-normcmp: Likewise.
33469         * modules/uninorm/u16-normcoll: Likewise.
33470         * modules/uninorm/u16-normxfrm: Likewise.
33471         * modules/uninorm/u32-normalize: Likewise.
33472         * modules/uninorm/u32-normcmp: Likewise.
33473         * modules/uninorm/u32-normcoll: Likewise.
33474         * modules/uninorm/u32-normxfrm: Likewise.
33475         * modules/unistdio/u8-asnprintf: Likewise.
33476         * modules/unistdio/u8-asprintf: Likewise.
33477         * modules/unistdio/u8-snprintf: Likewise.
33478         * modules/unistdio/u8-sprintf: Likewise.
33479         * modules/unistdio/u8-u8-asnprintf: Likewise.
33480         * modules/unistdio/u8-u8-asprintf: Likewise.
33481         * modules/unistdio/u8-u8-snprintf: Likewise.
33482         * modules/unistdio/u8-u8-sprintf: Likewise.
33483         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33484         * modules/unistdio/u8-u8-vasprintf: Likewise.
33485         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33486         * modules/unistdio/u8-u8-vsprintf: Likewise.
33487         * modules/unistdio/u8-vasnprintf: Likewise.
33488         * modules/unistdio/u8-vasprintf: Likewise.
33489         * modules/unistdio/u8-vsnprintf: Likewise.
33490         * modules/unistdio/u8-vsprintf: Likewise.
33491         * modules/unistdio/u16-asnprintf: Likewise.
33492         * modules/unistdio/u16-asprintf: Likewise.
33493         * modules/unistdio/u16-snprintf: Likewise.
33494         * modules/unistdio/u16-sprintf: Likewise.
33495         * modules/unistdio/u16-u16-asnprintf: Likewise.
33496         * modules/unistdio/u16-u16-asprintf: Likewise.
33497         * modules/unistdio/u16-u16-snprintf: Likewise.
33498         * modules/unistdio/u16-u16-sprintf: Likewise.
33499         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33500         * modules/unistdio/u16-u16-vasprintf: Likewise.
33501         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33502         * modules/unistdio/u16-u16-vsprintf: Likewise.
33503         * modules/unistdio/u16-vasnprintf: Likewise.
33504         * modules/unistdio/u16-vasprintf: Likewise.
33505         * modules/unistdio/u16-vsnprintf: Likewise.
33506         * modules/unistdio/u16-vsprintf: Likewise.
33507         * modules/unistdio/u32-asnprintf: Likewise.
33508         * modules/unistdio/u32-asprintf: Likewise.
33509         * modules/unistdio/u32-snprintf: Likewise.
33510         * modules/unistdio/u32-sprintf: Likewise.
33511         * modules/unistdio/u32-u32-asnprintf: Likewise.
33512         * modules/unistdio/u32-u32-asprintf: Likewise.
33513         * modules/unistdio/u32-u32-snprintf: Likewise.
33514         * modules/unistdio/u32-u32-sprintf: Likewise.
33515         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33516         * modules/unistdio/u32-u32-vasprintf: Likewise.
33517         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33518         * modules/unistdio/u32-u32-vsprintf: Likewise.
33519         * modules/unistdio/u32-vasnprintf: Likewise.
33520         * modules/unistdio/u32-vasprintf: Likewise.
33521         * modules/unistdio/u32-vsnprintf: Likewise.
33522         * modules/unistdio/u32-vsprintf: Likewise.
33523         * modules/unistdio/ulc-asnprintf: Likewise.
33524         * modules/unistdio/ulc-asprintf: Likewise.
33525         * modules/unistdio/ulc-fprintf: Likewise.
33526         * modules/unistdio/ulc-snprintf: Likewise.
33527         * modules/unistdio/ulc-sprintf: Likewise.
33528         * modules/unistdio/ulc-vasnprintf: Likewise.
33529         * modules/unistdio/ulc-vasprintf: Likewise.
33530         * modules/unistdio/ulc-vfprintf: Likewise.
33531         * modules/unistdio/ulc-vsnprintf: Likewise.
33532         * modules/unistdio/ulc-vsprintf: Likewise.
33533         * modules/unistr/u8-check: Likewise.
33534         * modules/unistr/u8-chr: Likewise.
33535         * modules/unistr/u8-cmp: Likewise.
33536         * modules/unistr/u8-cmp2: Likewise.
33537         * modules/unistr/u8-cpy: Likewise.
33538         * modules/unistr/u8-cpy-alloc: Likewise.
33539         * modules/unistr/u8-endswith: Likewise.
33540         * modules/unistr/u8-mblen: Likewise.
33541         * modules/unistr/u8-mbsnlen: Likewise.
33542         * modules/unistr/u8-mbtouc: Likewise.
33543         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33544         * modules/unistr/u8-mbtoucr: Likewise.
33545         * modules/unistr/u8-move: Likewise.
33546         * modules/unistr/u8-next: Likewise.
33547         * modules/unistr/u8-prev: Likewise.
33548         * modules/unistr/u8-set: Likewise.
33549         * modules/unistr/u8-startswith: Likewise.
33550         * modules/unistr/u8-stpcpy: Likewise.
33551         * modules/unistr/u8-stpncpy: Likewise.
33552         * modules/unistr/u8-strcat: Likewise.
33553         * modules/unistr/u8-strchr: Likewise.
33554         * modules/unistr/u8-strcmp: Likewise.
33555         * modules/unistr/u8-strcoll: Likewise.
33556         * modules/unistr/u8-strcpy: Likewise.
33557         * modules/unistr/u8-strcspn: Likewise.
33558         * modules/unistr/u8-strdup: Likewise.
33559         * modules/unistr/u8-strlen: Likewise.
33560         * modules/unistr/u8-strmblen: Likewise.
33561         * modules/unistr/u8-strmbtouc: Likewise.
33562         * modules/unistr/u8-strncat: Likewise.
33563         * modules/unistr/u8-strncmp: Likewise.
33564         * modules/unistr/u8-strncpy: Likewise.
33565         * modules/unistr/u8-strnlen: Likewise.
33566         * modules/unistr/u8-strpbrk: Likewise.
33567         * modules/unistr/u8-strrchr: Likewise.
33568         * modules/unistr/u8-strspn: Likewise.
33569         * modules/unistr/u8-strstr: Likewise.
33570         * modules/unistr/u8-strtok: Likewise.
33571         * modules/unistr/u8-to-u16: Likewise.
33572         * modules/unistr/u8-to-u32: Likewise.
33573         * modules/unistr/u8-uctomb: Likewise.
33574         * modules/unistr/u16-check: Likewise.
33575         * modules/unistr/u16-chr: Likewise.
33576         * modules/unistr/u16-cmp: Likewise.
33577         * modules/unistr/u16-cmp2: Likewise.
33578         * modules/unistr/u16-cpy: Likewise.
33579         * modules/unistr/u16-cpy-alloc: Likewise.
33580         * modules/unistr/u16-endswith: Likewise.
33581         * modules/unistr/u16-mblen: Likewise.
33582         * modules/unistr/u16-mbsnlen: Likewise.
33583         * modules/unistr/u16-mbtouc: Likewise.
33584         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33585         * modules/unistr/u16-mbtoucr: Likewise.
33586         * modules/unistr/u16-move: Likewise.
33587         * modules/unistr/u16-next: Likewise.
33588         * modules/unistr/u16-prev: Likewise.
33589         * modules/unistr/u16-set: Likewise.
33590         * modules/unistr/u16-startswith: Likewise.
33591         * modules/unistr/u16-stpcpy: Likewise.
33592         * modules/unistr/u16-stpncpy: Likewise.
33593         * modules/unistr/u16-strcat: Likewise.
33594         * modules/unistr/u16-strchr: Likewise.
33595         * modules/unistr/u16-strcmp: Likewise.
33596         * modules/unistr/u16-strcoll: Likewise.
33597         * modules/unistr/u16-strcpy: Likewise.
33598         * modules/unistr/u16-strcspn: Likewise.
33599         * modules/unistr/u16-strdup: Likewise.
33600         * modules/unistr/u16-strlen: Likewise.
33601         * modules/unistr/u16-strmblen: Likewise.
33602         * modules/unistr/u16-strmbtouc: Likewise.
33603         * modules/unistr/u16-strncat: Likewise.
33604         * modules/unistr/u16-strncmp: Likewise.
33605         * modules/unistr/u16-strncpy: Likewise.
33606         * modules/unistr/u16-strnlen: Likewise.
33607         * modules/unistr/u16-strpbrk: Likewise.
33608         * modules/unistr/u16-strrchr: Likewise.
33609         * modules/unistr/u16-strspn: Likewise.
33610         * modules/unistr/u16-strstr: Likewise.
33611         * modules/unistr/u16-strtok: Likewise.
33612         * modules/unistr/u16-to-u32: Likewise.
33613         * modules/unistr/u16-to-u8: Likewise.
33614         * modules/unistr/u16-uctomb: Likewise.
33615         * modules/unistr/u32-check: Likewise.
33616         * modules/unistr/u32-chr: Likewise.
33617         * modules/unistr/u32-cmp: Likewise.
33618         * modules/unistr/u32-cmp2: Likewise.
33619         * modules/unistr/u32-cpy: Likewise.
33620         * modules/unistr/u32-cpy-alloc: Likewise.
33621         * modules/unistr/u32-endswith: Likewise.
33622         * modules/unistr/u32-mblen: Likewise.
33623         * modules/unistr/u32-mbsnlen: Likewise.
33624         * modules/unistr/u32-mbtouc: Likewise.
33625         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33626         * modules/unistr/u32-mbtoucr: Likewise.
33627         * modules/unistr/u32-move: Likewise.
33628         * modules/unistr/u32-next: Likewise.
33629         * modules/unistr/u32-prev: Likewise.
33630         * modules/unistr/u32-set: Likewise.
33631         * modules/unistr/u32-startswith: Likewise.
33632         * modules/unistr/u32-stpcpy: Likewise.
33633         * modules/unistr/u32-stpncpy: Likewise.
33634         * modules/unistr/u32-strcat: Likewise.
33635         * modules/unistr/u32-strchr: Likewise.
33636         * modules/unistr/u32-strcmp: Likewise.
33637         * modules/unistr/u32-strcoll: Likewise.
33638         * modules/unistr/u32-strcpy: Likewise.
33639         * modules/unistr/u32-strcspn: Likewise.
33640         * modules/unistr/u32-strdup: Likewise.
33641         * modules/unistr/u32-strlen: Likewise.
33642         * modules/unistr/u32-strmblen: Likewise.
33643         * modules/unistr/u32-strmbtouc: Likewise.
33644         * modules/unistr/u32-strncat: Likewise.
33645         * modules/unistr/u32-strncmp: Likewise.
33646         * modules/unistr/u32-strncpy: Likewise.
33647         * modules/unistr/u32-strnlen: Likewise.
33648         * modules/unistr/u32-strpbrk: Likewise.
33649         * modules/unistr/u32-strrchr: Likewise.
33650         * modules/unistr/u32-strspn: Likewise.
33651         * modules/unistr/u32-strstr: Likewise.
33652         * modules/unistr/u32-strtok: Likewise.
33653         * modules/unistr/u32-to-u16: Likewise.
33654         * modules/unistr/u32-to-u8: Likewise.
33655         * modules/unistr/u32-uctomb: Likewise.
33656         * modules/uniwbrk/u8-wordbreaks: Likewise.
33657         * modules/uniwbrk/u16-wordbreaks: Likewise.
33658         * modules/uniwbrk/u32-wordbreaks: Likewise.
33659         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33660         * modules/uniwbrk/wordbreak-property: Likewise.
33661         * modules/uniwidth/u8-strwidth: Likewise.
33662         * modules/uniwidth/u8-width: Likewise.
33663         * modules/uniwidth/u16-strwidth: Likewise.
33664         * modules/uniwidth/u16-width: Likewise.
33665         * modules/uniwidth/u32-strwidth: Likewise.
33666         * modules/uniwidth/u32-width: Likewise.
33667         * modules/uniwidth/width: Likewise.
33668         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33669         with $(LIBUNISTRING).
33670         * modules/unicase/ignorable-tests: Likewise.
33671         * modules/unicase/locale-language-tests: Likewise.
33672         * modules/unicase/tolower-tests: Likewise.
33673         * modules/unicase/totitle-tests: Likewise.
33674         * modules/unicase/toupper-tests: Likewise.
33675         * modules/unicase/u8-casecmp-tests: Likewise.
33676         * modules/unicase/u8-casecoll-tests: Likewise.
33677         * modules/unicase/u8-casefold-tests: Likewise.
33678         * modules/unicase/u8-is-cased-tests: Likewise.
33679         * modules/unicase/u8-is-casefolded-tests: Likewise.
33680         * modules/unicase/u8-is-lowercase-tests: Likewise.
33681         * modules/unicase/u8-is-titlecase-tests: Likewise.
33682         * modules/unicase/u8-is-uppercase-tests: Likewise.
33683         * modules/unicase/u8-tolower-tests: Likewise.
33684         * modules/unicase/u8-totitle-tests: Likewise.
33685         * modules/unicase/u8-toupper-tests: Likewise.
33686         * modules/unicase/u16-casecmp-tests: Likewise.
33687         * modules/unicase/u16-casecoll-tests: Likewise.
33688         * modules/unicase/u16-casefold-tests: Likewise.
33689         * modules/unicase/u16-is-cased-tests: Likewise.
33690         * modules/unicase/u16-is-casefolded-tests: Likewise.
33691         * modules/unicase/u16-is-lowercase-tests: Likewise.
33692         * modules/unicase/u16-is-titlecase-tests: Likewise.
33693         * modules/unicase/u16-is-uppercase-tests: Likewise.
33694         * modules/unicase/u16-tolower-tests: Likewise.
33695         * modules/unicase/u16-totitle-tests: Likewise.
33696         * modules/unicase/u16-toupper-tests: Likewise.
33697         * modules/unicase/u32-casecmp-tests: Likewise.
33698         * modules/unicase/u32-casecoll-tests: Likewise.
33699         * modules/unicase/u32-casefold-tests: Likewise.
33700         * modules/unicase/u32-is-cased-tests: Likewise.
33701         * modules/unicase/u32-is-casefolded-tests: Likewise.
33702         * modules/unicase/u32-is-lowercase-tests: Likewise.
33703         * modules/unicase/u32-is-titlecase-tests: Likewise.
33704         * modules/unicase/u32-is-uppercase-tests: Likewise.
33705         * modules/unicase/u32-tolower-tests: Likewise.
33706         * modules/unicase/u32-totitle-tests: Likewise.
33707         * modules/unicase/u32-toupper-tests: Likewise.
33708         * modules/unicase/ulc-casecmp-tests: Likewise.
33709         * modules/unicase/ulc-casecoll-tests: Likewise.
33710         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33711         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33712         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33713         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33714         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33715         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33716         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33717         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33718         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33719         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33720         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33721         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33722         * modules/unictype/bidicategory-byname-tests: Likewise.
33723         * modules/unictype/bidicategory-name-tests: Likewise.
33724         * modules/unictype/bidicategory-of-tests: Likewise.
33725         * modules/unictype/bidicategory-test-tests: Likewise.
33726         * modules/unictype/block-list-tests: Likewise.
33727         * modules/unictype/block-of-tests: Likewise.
33728         * modules/unictype/block-test-tests: Likewise.
33729         * modules/unictype/category-C-tests: Likewise.
33730         * modules/unictype/category-Cc-tests: Likewise.
33731         * modules/unictype/category-Cf-tests: Likewise.
33732         * modules/unictype/category-Cn-tests: Likewise.
33733         * modules/unictype/category-Co-tests: Likewise.
33734         * modules/unictype/category-Cs-tests: Likewise.
33735         * modules/unictype/category-L-tests: Likewise.
33736         * modules/unictype/category-Ll-tests: Likewise.
33737         * modules/unictype/category-Lm-tests: Likewise.
33738         * modules/unictype/category-Lo-tests: Likewise.
33739         * modules/unictype/category-Lt-tests: Likewise.
33740         * modules/unictype/category-Lu-tests: Likewise.
33741         * modules/unictype/category-M-tests: Likewise.
33742         * modules/unictype/category-Mc-tests: Likewise.
33743         * modules/unictype/category-Me-tests: Likewise.
33744         * modules/unictype/category-Mn-tests: Likewise.
33745         * modules/unictype/category-N-tests: Likewise.
33746         * modules/unictype/category-Nd-tests: Likewise.
33747         * modules/unictype/category-Nl-tests: Likewise.
33748         * modules/unictype/category-No-tests: Likewise.
33749         * modules/unictype/category-P-tests: Likewise.
33750         * modules/unictype/category-Pc-tests: Likewise.
33751         * modules/unictype/category-Pd-tests: Likewise.
33752         * modules/unictype/category-Pe-tests: Likewise.
33753         * modules/unictype/category-Pf-tests: Likewise.
33754         * modules/unictype/category-Pi-tests: Likewise.
33755         * modules/unictype/category-Po-tests: Likewise.
33756         * modules/unictype/category-Ps-tests: Likewise.
33757         * modules/unictype/category-S-tests: Likewise.
33758         * modules/unictype/category-Sc-tests: Likewise.
33759         * modules/unictype/category-Sk-tests: Likewise.
33760         * modules/unictype/category-Sm-tests: Likewise.
33761         * modules/unictype/category-So-tests: Likewise.
33762         * modules/unictype/category-Z-tests: Likewise.
33763         * modules/unictype/category-Zl-tests: Likewise.
33764         * modules/unictype/category-Zp-tests: Likewise.
33765         * modules/unictype/category-Zs-tests: Likewise.
33766         * modules/unictype/category-and-not-tests: Likewise.
33767         * modules/unictype/category-and-tests: Likewise.
33768         * modules/unictype/category-byname-tests: Likewise.
33769         * modules/unictype/category-name-tests: Likewise.
33770         * modules/unictype/category-none-tests: Likewise.
33771         * modules/unictype/category-of-tests: Likewise.
33772         * modules/unictype/category-or-tests: Likewise.
33773         * modules/unictype/category-test-withtable-tests: Likewise.
33774         * modules/unictype/combining-class-tests: Likewise.
33775         * modules/unictype/ctype-alnum-tests: Likewise.
33776         * modules/unictype/ctype-alpha-tests: Likewise.
33777         * modules/unictype/ctype-blank-tests: Likewise.
33778         * modules/unictype/ctype-cntrl-tests: Likewise.
33779         * modules/unictype/ctype-digit-tests: Likewise.
33780         * modules/unictype/ctype-graph-tests: Likewise.
33781         * modules/unictype/ctype-lower-tests: Likewise.
33782         * modules/unictype/ctype-print-tests: Likewise.
33783         * modules/unictype/ctype-punct-tests: Likewise.
33784         * modules/unictype/ctype-space-tests: Likewise.
33785         * modules/unictype/ctype-upper-tests: Likewise.
33786         * modules/unictype/ctype-xdigit-tests: Likewise.
33787         * modules/unictype/decimal-digit-tests: Likewise.
33788         * modules/unictype/digit-tests: Likewise.
33789         * modules/unictype/mirror-tests: Likewise.
33790         * modules/unictype/numeric-tests: Likewise.
33791         * modules/unictype/property-alphabetic-tests: Likewise.
33792         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33793         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33794         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33795         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33796         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33797         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33798         * modules/unictype/property-bidi-control-tests: Likewise.
33799         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33800         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33801         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33802         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33803         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33804         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33805         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33806         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33807         * modules/unictype/property-bidi-pdf-tests: Likewise.
33808         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33809         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33810         * modules/unictype/property-byname-tests: Likewise.
33811         * modules/unictype/property-combining-tests: Likewise.
33812         * modules/unictype/property-composite-tests: Likewise.
33813         * modules/unictype/property-currency-symbol-tests: Likewise.
33814         * modules/unictype/property-dash-tests: Likewise.
33815         * modules/unictype/property-decimal-digit-tests: Likewise.
33816         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33817         * modules/unictype/property-deprecated-tests: Likewise.
33818         * modules/unictype/property-diacritic-tests: Likewise.
33819         * modules/unictype/property-extender-tests: Likewise.
33820         * modules/unictype/property-format-control-tests: Likewise.
33821         * modules/unictype/property-grapheme-base-tests: Likewise.
33822         * modules/unictype/property-grapheme-extend-tests: Likewise.
33823         * modules/unictype/property-grapheme-link-tests: Likewise.
33824         * modules/unictype/property-hex-digit-tests: Likewise.
33825         * modules/unictype/property-hyphen-tests: Likewise.
33826         * modules/unictype/property-id-continue-tests: Likewise.
33827         * modules/unictype/property-id-start-tests: Likewise.
33828         * modules/unictype/property-ideographic-tests: Likewise.
33829         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33830         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33831         * modules/unictype/property-ignorable-control-tests: Likewise.
33832         * modules/unictype/property-iso-control-tests: Likewise.
33833         * modules/unictype/property-join-control-tests: Likewise.
33834         * modules/unictype/property-left-of-pair-tests: Likewise.
33835         * modules/unictype/property-line-separator-tests: Likewise.
33836         * modules/unictype/property-logical-order-exception-tests: Likewise.
33837         * modules/unictype/property-lowercase-tests: Likewise.
33838         * modules/unictype/property-math-tests: Likewise.
33839         * modules/unictype/property-non-break-tests: Likewise.
33840         * modules/unictype/property-not-a-character-tests: Likewise.
33841         * modules/unictype/property-numeric-tests: Likewise.
33842         * modules/unictype/property-other-alphabetic-tests: Likewise.
33843         * modules/unictype/property-other-default-ignorable-code-point-tests:
33844         Likewise.
33845         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33846         * modules/unictype/property-other-id-continue-tests: Likewise.
33847         * modules/unictype/property-other-id-start-tests: Likewise.
33848         * modules/unictype/property-other-lowercase-tests: Likewise.
33849         * modules/unictype/property-other-math-tests: Likewise.
33850         * modules/unictype/property-other-uppercase-tests: Likewise.
33851         * modules/unictype/property-paired-punctuation-tests: Likewise.
33852         * modules/unictype/property-paragraph-separator-tests: Likewise.
33853         * modules/unictype/property-pattern-syntax-tests: Likewise.
33854         * modules/unictype/property-pattern-white-space-tests: Likewise.
33855         * modules/unictype/property-private-use-tests: Likewise.
33856         * modules/unictype/property-punctuation-tests: Likewise.
33857         * modules/unictype/property-quotation-mark-tests: Likewise.
33858         * modules/unictype/property-radical-tests: Likewise.
33859         * modules/unictype/property-sentence-terminal-tests: Likewise.
33860         * modules/unictype/property-soft-dotted-tests: Likewise.
33861         * modules/unictype/property-space-tests: Likewise.
33862         * modules/unictype/property-terminal-punctuation-tests: Likewise.
33863         * modules/unictype/property-test-tests: Likewise.
33864         * modules/unictype/property-titlecase-tests: Likewise.
33865         * modules/unictype/property-unassigned-code-value-tests: Likewise.
33866         * modules/unictype/property-unified-ideograph-tests: Likewise.
33867         * modules/unictype/property-uppercase-tests: Likewise.
33868         * modules/unictype/property-variation-selector-tests: Likewise.
33869         * modules/unictype/property-white-space-tests: Likewise.
33870         * modules/unictype/property-xid-continue-tests: Likewise.
33871         * modules/unictype/property-xid-start-tests: Likewise.
33872         * modules/unictype/property-zero-width-tests: Likewise.
33873         * modules/unictype/scripts-tests: Likewise.
33874         * modules/unictype/syntax-c-ident-tests: Likewise.
33875         * modules/unictype/syntax-c-whitespace-tests: Likewise.
33876         * modules/unictype/syntax-java-ident-tests: Likewise.
33877         * modules/unictype/syntax-java-whitespace-tests: Likewise.
33878         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
33879         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
33880         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
33881         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
33882         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
33883         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
33884         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
33885         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
33886         * modules/uniname/uniname-tests: Likewise.
33887         * modules/uninorm/canonical-decomposition-tests: Likewise.
33888         * modules/uninorm/compat-decomposition-tests: Likewise.
33889         * modules/uninorm/composition-tests: Likewise.
33890         * modules/uninorm/decomposing-form-tests: Likewise.
33891         * modules/uninorm/decomposition-tests: Likewise.
33892         * modules/uninorm/filter-tests: Likewise.
33893         * modules/uninorm/nfc-tests: Likewise.
33894         * modules/uninorm/nfd-tests: Likewise.
33895         * modules/uninorm/nfkc-tests: Likewise.
33896         * modules/uninorm/nfkd-tests: Likewise.
33897         * modules/uninorm/u8-normcmp-tests: Likewise.
33898         * modules/uninorm/u8-normcoll-tests: Likewise.
33899         * modules/uninorm/u16-normcmp-tests: Likewise.
33900         * modules/uninorm/u16-normcoll-tests: Likewise.
33901         * modules/uninorm/u32-normcmp-tests: Likewise.
33902         * modules/uninorm/u32-normcoll-tests: Likewise.
33903         * modules/unistdio/u8-asnprintf-tests: Likewise.
33904         * modules/unistdio/u8-vasnprintf-tests: Likewise.
33905         * modules/unistdio/u8-vasprintf-tests: Likewise.
33906         * modules/unistdio/u8-vsnprintf-tests: Likewise.
33907         * modules/unistdio/u8-vsprintf-tests: Likewise.
33908         * modules/unistdio/u16-asnprintf-tests: Likewise.
33909         * modules/unistdio/u16-vasnprintf-tests: Likewise.
33910         * modules/unistdio/u16-vasprintf-tests: Likewise.
33911         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33912         * modules/unistdio/u16-vsprintf-tests: Likewise.
33913         * modules/unistdio/u32-asnprintf-tests: Likewise.
33914         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33915         * modules/unistdio/u32-vasprintf-tests: Likewise.
33916         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33917         * modules/unistdio/u32-vsprintf-tests: Likewise.
33918         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33919         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33920         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33921         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33922         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33923         * modules/unistr/u8-check-tests: Likewise.
33924         * modules/unistr/u8-chr-tests: Likewise.
33925         * modules/unistr/u8-cmp-tests: Likewise.
33926         * modules/unistr/u8-cmp2-tests: Likewise.
33927         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33928         * modules/unistr/u8-cpy-tests: Likewise.
33929         * modules/unistr/u8-mblen-tests: Likewise.
33930         * modules/unistr/u8-mbsnlen-tests: Likewise.
33931         * modules/unistr/u8-mbtouc-tests: Likewise.
33932         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33933         * modules/unistr/u8-mbtoucr-tests: Likewise.
33934         * modules/unistr/u8-move-tests: Likewise.
33935         * modules/unistr/u8-next-tests: Likewise.
33936         * modules/unistr/u8-prev-tests: Likewise.
33937         * modules/unistr/u8-set-tests: Likewise.
33938         * modules/unistr/u8-stpcpy-tests: Likewise.
33939         * modules/unistr/u8-stpncpy-tests: Likewise.
33940         * modules/unistr/u8-strcat-tests: Likewise.
33941         * modules/unistr/u8-strcmp-tests: Likewise.
33942         * modules/unistr/u8-strcoll-tests: Likewise.
33943         * modules/unistr/u8-strcpy-tests: Likewise.
33944         * modules/unistr/u8-strdup-tests: Likewise.
33945         * modules/unistr/u8-strlen-tests: Likewise.
33946         * modules/unistr/u8-strmblen-tests: Likewise.
33947         * modules/unistr/u8-strmbtouc-tests: Likewise.
33948         * modules/unistr/u8-strncat-tests: Likewise.
33949         * modules/unistr/u8-strncmp-tests: Likewise.
33950         * modules/unistr/u8-strncpy-tests: Likewise.
33951         * modules/unistr/u8-strnlen-tests: Likewise.
33952         * modules/unistr/u8-to-u16-tests: Likewise.
33953         * modules/unistr/u8-to-u32-tests: Likewise.
33954         * modules/unistr/u8-uctomb-tests: Likewise.
33955         * modules/unistr/u16-check-tests: Likewise.
33956         * modules/unistr/u16-chr-tests: Likewise.
33957         * modules/unistr/u16-cmp-tests: Likewise.
33958         * modules/unistr/u16-cmp2-tests: Likewise.
33959         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33960         * modules/unistr/u16-cpy-tests: Likewise.
33961         * modules/unistr/u16-mblen-tests: Likewise.
33962         * modules/unistr/u16-mbsnlen-tests: Likewise.
33963         * modules/unistr/u16-mbtouc-tests: Likewise.
33964         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33965         * modules/unistr/u16-mbtoucr-tests: Likewise.
33966         * modules/unistr/u16-move-tests: Likewise.
33967         * modules/unistr/u16-next-tests: Likewise.
33968         * modules/unistr/u16-prev-tests: Likewise.
33969         * modules/unistr/u16-set-tests: Likewise.
33970         * modules/unistr/u16-stpcpy-tests: Likewise.
33971         * modules/unistr/u16-stpncpy-tests: Likewise.
33972         * modules/unistr/u16-strcat-tests: Likewise.
33973         * modules/unistr/u16-strcmp-tests: Likewise.
33974         * modules/unistr/u16-strcoll-tests: Likewise.
33975         * modules/unistr/u16-strcpy-tests: Likewise.
33976         * modules/unistr/u16-strdup-tests: Likewise.
33977         * modules/unistr/u16-strlen-tests: Likewise.
33978         * modules/unistr/u16-strmblen-tests: Likewise.
33979         * modules/unistr/u16-strmbtouc-tests: Likewise.
33980         * modules/unistr/u16-strncat-tests: Likewise.
33981         * modules/unistr/u16-strncmp-tests: Likewise.
33982         * modules/unistr/u16-strncpy-tests: Likewise.
33983         * modules/unistr/u16-strnlen-tests: Likewise.
33984         * modules/unistr/u16-to-u32-tests: Likewise.
33985         * modules/unistr/u16-to-u8-tests: Likewise.
33986         * modules/unistr/u16-uctomb-tests: Likewise.
33987         * modules/unistr/u32-check-tests: Likewise.
33988         * modules/unistr/u32-chr-tests: Likewise.
33989         * modules/unistr/u32-cmp-tests: Likewise.
33990         * modules/unistr/u32-cmp2-tests: Likewise.
33991         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33992         * modules/unistr/u32-cpy-tests: Likewise.
33993         * modules/unistr/u32-mblen-tests: Likewise.
33994         * modules/unistr/u32-mbsnlen-tests: Likewise.
33995         * modules/unistr/u32-mbtouc-tests: Likewise.
33996         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33997         * modules/unistr/u32-mbtoucr-tests: Likewise.
33998         * modules/unistr/u32-move-tests: Likewise.
33999         * modules/unistr/u32-next-tests: Likewise.
34000         * modules/unistr/u32-prev-tests: Likewise.
34001         * modules/unistr/u32-set-tests: Likewise.
34002         * modules/unistr/u32-stpcpy-tests: Likewise.
34003         * modules/unistr/u32-stpncpy-tests: Likewise.
34004         * modules/unistr/u32-strcat-tests: Likewise.
34005         * modules/unistr/u32-strcmp-tests: Likewise.
34006         * modules/unistr/u32-strcoll-tests: Likewise.
34007         * modules/unistr/u32-strcpy-tests: Likewise.
34008         * modules/unistr/u32-strdup-tests: Likewise.
34009         * modules/unistr/u32-strlen-tests: Likewise.
34010         * modules/unistr/u32-strmblen-tests: Likewise.
34011         * modules/unistr/u32-strmbtouc-tests: Likewise.
34012         * modules/unistr/u32-strncat-tests: Likewise.
34013         * modules/unistr/u32-strncmp-tests: Likewise.
34014         * modules/unistr/u32-strncpy-tests: Likewise.
34015         * modules/unistr/u32-strnlen-tests: Likewise.
34016         * modules/unistr/u32-to-u16-tests: Likewise.
34017         * modules/unistr/u32-to-u8-tests: Likewise.
34018         * modules/unistr/u32-uctomb-tests: Likewise.
34019         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34020         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34021         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34022         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34023         * modules/uniwidth/u8-strwidth-tests: Likewise.
34024         * modules/uniwidth/u8-width-tests: Likewise.
34025         * modules/uniwidth/u16-strwidth-tests: Likewise.
34026         * modules/uniwidth/u16-width-tests: Likewise.
34027         * modules/uniwidth/u32-strwidth-tests: Likewise.
34028         * modules/uniwidth/u32-width-tests: Likewise.
34029         * modules/uniwidth/width-tests: Likewise.
34030
34031 2010-05-18  Richard Jones  <rjones@redhat.com>
34032
34033         doc: users.txt: list hivex
34034         * users.txt: Add hivex.
34035
34036 2010-05-18  Richard Jones  <rjones@redhat.com>
34037
34038         doc: users.txt: list febootstrap
34039         * users.txt: Add febootstrap.
34040
34041 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34042
34043         bootstrap: fix an error when gnulib is not used as a git submodule
34044         * build-aux/bootstrap (gnulib_path): If its length is zero then
34045         assign "gnulib" to it.
34046         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34047
34048 2010-05-16  Bruno Haible  <bruno@clisp.org>
34049
34050         Avoid autoconf warnings about AM_ICONV.
34051         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34052         2.64.
34053
34054 2010-05-16  Bruno Haible  <bruno@clisp.org>
34055
34056         absolute-header: Make the macro usable in more situations.
34057         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34058         from gl_ABSOLUTE_HEADER.
34059         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34060
34061 2010-05-16  James Youngman  <jay@gnu.org>
34062
34063         doc: update users.txt
34064         * users.txt: Add CSSC.
34065
34066 2010-05-16  Jim Meyering  <meyering@redhat.com>
34067
34068         init.sh: fix an error in the previous change; add more comments
34069         * tests/init.sh: Compare exit code in loop against 9, not 2.
34070         Patch by Bruno Haible.
34071         Make the two tests more similar by adding an empty "then" clause.
34072         Add comments.
34073
34074         init.sh: avoid unnecessary shell re-exec
34075         * tests/init.sh: Improve the re-exec-required check to first test the
34076         current shell.  If it passes the test, do not search for a shell that
34077         does pass, and do not re-exec.  This test is particularly contorted to
34078         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34079         of $(...) evokes a syntax error and causes immediate shell exit with
34080         status 2.  Bruno Haible reported that the re-exec made it impossible
34081         to single-step through any init.sh-using script.
34082
34083 2010-05-16  Bruno Haible  <bruno@clisp.org>
34084
34085         Fix collision between gnulib's and libintl's printf replacements.
34086         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34087         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34088         (printf): When using GNU C, map the __printf__ function to rpl_printf
34089         via __asm__. When not using GNU C, define rpl_printf instead of
34090         __printf__.
34091         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34092         commit.
34093         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34094         commit.
34095         * m4/asm-underscore.m4: New file.
34096         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34097         * modules/stdio (Files): Add m4/asm-underscore.m4.
34098         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34099         Reported by Ben Pfaff.
34100
34101 2010-05-16  Bruno Haible  <bruno@clisp.org>
34102
34103         verify: Avoid skipping the test on openSUSE 11.0.
34104         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34105
34106 2010-05-13  Bruno Haible  <bruno@clisp.org>
34107
34108         Avoid useless warnings from G++.
34109         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34110         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34111         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34112
34113 2010-05-11  Jim Meyering  <meyering@redhat.com>
34114
34115         maint.mk: tweak preceding change
34116         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34117         regexps tighter by anchoring at EOL, and make the new group "shy"
34118         for slightly decreased overhead.
34119
34120 2010-05-11  Eric Blake  <eblake@redhat.com>
34121
34122         maint.mk: gnulib doesn't guarantee NSIG
34123         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34124
34125 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34126
34127         test-pwrite.c: Remove unused variable declaration.
34128         * tests/test-pwrite.c (main): Remove read_buf declaration.
34129
34130         Remove useless test-pwrite.sh file.
34131         * tests/test-pwrite.sh: Delete file.
34132         * modules/pwrite-tests: Remove references.
34133         Reported by Bruno Haible.
34134
34135 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34136
34137         init.sh: fix a typo
34138         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34139
34140 2010-05-10  Jim Meyering  <meyering@redhat.com>
34141
34142         maint.mk: avoid using a temporary file in the always-defined-macros check
34143         * top/maint.mk (.re-defmac): Remove rule.
34144         (gl_trap_): Remove definition.
34145         (sc_prohibit_always-defined_macros): Rewrite not to create and
34146         depend on a temporary file.  Instead, depend on GNU grep's ability
34147         to read a list of regular expressions from stdin when given "-f -".
34148
34149 2010-05-09  Bruno Haible  <bruno@clisp.org>
34150
34151         Update to GNU gettext 0.18, part 1.
34152         * m4/gettext.m4: Update to GNU gettext 0.18.
34153         * m4/intl.m4: Likewise.
34154         * m4/po.m4: Likewise.
34155         * modules/gettext (Files): Add m4/fcntl-o.m4.
34156         (configure.ac): Require gettext infrastructure from version 0.18.
34157
34158 2010-05-09  Jim Meyering  <meyering@redhat.com>
34159
34160         init.sh: enable MALLOC_PERTURB_
34161         * tests/init.sh: Enable glibc's malloc-perturbing option.
34162
34163         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34164         With my recent change in init.sh from the two-line form:
34165             -#   : ${srcdir=.}
34166             -#   . "$srcdir/init.sh"; path_prepend_ .
34167             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34168         I noticed that using the one-line form would cause this test
34169         to fail with a false-positive, or to stop working altogether,
34170         depending on whether help-version changed or all the tests did.
34171         * top/maint.mk (_hv_regex): Remove this definition.
34172         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34173         (_hv_regex_strong): Use a stronger regex to check for conformance.
34174         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34175         Give a separate diagnostic for lack of conforming use.
34176
34177         maint.mk: prohibit definition of symbols defined by gnulib
34178         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34179         definition of symbols defined by gnulib.
34180
34181 2010-05-09  Bruno Haible  <bruno@clisp.org>
34182
34183         acl: Avoid test failure on Cygwin-hosted mingw.
34184         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34185
34186 2010-05-09  Bruno Haible  <bruno@clisp.org>
34187
34188         error: Use system's fcntl function.
34189         * lib/error.c (fcntl): Undefine.
34190
34191 2010-05-09  Jim Meyering  <meyering@redhat.com>
34192
34193         verify: adjust formatting to be more consistent
34194         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34195         argument-list '('s, and after one comma.
34196
34197 2010-05-09  Bruno Haible  <bruno@clisp.org>
34198
34199         error: More reliable output on mingw.
34200         * lib/error.c: Include <windows.h>.
34201         (is_open): New function.
34202         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34203         defined.
34204
34205 2010-05-09  Bruno Haible  <bruno@clisp.org>
34206
34207         vasnprintf: Fix syntax errors in libintl build on mingw.
34208         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34209         pad_ourselves and prec_ourselves after use.
34210
34211 2010-05-08  Bruno Haible  <bruno@clisp.org>
34212
34213         * lib/config.charset: Update comments for Cygwin 1.7.
34214         * lib/localcharset.c: Likewise.
34215
34216 2010-05-07  Jim Meyering  <meyering@redhat.com>
34217
34218         init.sh: improve comments
34219         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34220         . "${srcdir=.}/init.sh"; path_prepend_ .
34221         Add a note about path_prepend_ and the alternative of using
34222         TESTS_ENVIRONMENT.
34223
34224 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34225
34226         exclude: Unescape hashed patterns in wildcard mode.
34227         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34228         to the hash list.
34229         * tests/test-exclude8.sh: New test case.
34230         * modules/exclude-tests: Add new test.
34231
34232 2010-05-05  Eric Blake  <eblake@redhat.com>
34233
34234         verify: automate tests
34235         * modules/verify-tests: New module.
34236         * tests/test-verify.sh: New file.
34237         * tests/test-verify.c: Guard each negative test with a unique id.
34238         Also avoid warning about unused left hand of comma expressions.
34239
34240 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34241
34242         Further improvements to verify.h, suggested by Eric Blake.
34243         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34244         the GL_* versions, to avoid collision with OpenGL.
34245         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34246         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34247         than testing merely whether it's defined.
34248
34249         Modify verify.h to pacify gcc -Wredundant_decls.
34250         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34251         These use the prefix "GL_" since they're likely to be useful elsewhere.
34252         We may need to break them out into a different .h file.
34253         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34254         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34255         of verify_function__.
34256
34257 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34258
34259         Tests for module pwrite.
34260         * modules/pwrite-tests: New file.
34261         * tests/test-pwrite.sh: New file.
34262         * tests/test-pwrite.c: New file.
34263
34264         New module pwrite.
34265         * lib/unistd.in.h (pwrite): New declaration.
34266         * lib/pwrite.c: New file, from glibc with modifications.
34267         * m4/pwrite.m4: New file.
34268         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34269         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34270         REPLACE_PWRITE.
34271         * modules/pwrite: New file.
34272         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34273         REPLACE_PWRITE.
34274         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34275         * doc/posix-functions/pwrite.texi: Mention the new module.
34276
34277 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34278
34279         pread: Update documentation.
34280         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34281
34282 2010-05-04  Eric Blake  <eblake@redhat.com>
34283
34284         docs: update cygwin progress
34285         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34286         this bug.
34287         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34288         Added in cygwin 1.7.2.
34289         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34290         Likewise.
34291         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34292         Likewise.
34293         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34294         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34295         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34296         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34297         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34298         Mention nproc module.
34299         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34300         bug in cygwin 1.7.5 addition.
34301         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34302         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34303         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34304         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34305         1.7.5.
34306         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34307         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34308         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34309         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34310         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34311         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34312         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34313         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34314         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34315         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34316         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34317         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34318         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34319         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34320         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34321         Likewise.
34322         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34323         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34324         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34325         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34326         Likewise.
34327         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34328         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34329         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34330         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34331         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34332         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34333         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34334         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34335         Likewise.
34336         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34337         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34338         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34339         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34340         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34341         Likewise.
34342         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34343         Likewise.
34344         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34345         Likewise.
34346         * doc/glibc-functions/xdrrec_endofrecord.texi
34347         (xdrrec_endofrecord): Likewise.
34348         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34349         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34350         Likewise.
34351         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34352         Likewise.
34353
34354 2010-05-04  Jim Meyering  <meyering@redhat.com>
34355
34356         gendocs.sh: make its "-s FILE" option more useful
34357         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34358         $PACKAGE to reflect the probably-different basename of "FILE".
34359
34360 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34361
34362         bootstrap: don't ignore download_po_files failure
34363         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34364         failure.
34365
34366 2010-05-03  Jim Meyering  <meyering@redhat.com>
34367
34368         maint.mk: allow to pass options to gendocs.sh
34369         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34370         (gendocs_options_): New overridable variable.
34371
34372         gnu-web-doc-update: don't ignore configure or build failure
34373         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34374
34375         announce-gen: backslash-escape '@'s in --help output
34376         * build-aux/announce-gen: Fix syntax errors.
34377
34378         maint.mk, announce-gen: allow project-specific announcement mail headers
34379         * top/maint.mk (translation_project_): Define default.
34380         (announcement_Cc_, announcement_mail_headers_): Likewise.
34381         (announcement): Invoke announce-gen with new --mail-headers option.
34382         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34383
34384         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34385         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34386         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34387         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34388         line in the "err2" output file when running "make check" in verbose
34389         mode (i.e., with set -x enabled).
34390
34391 2010-05-03  Bruno Haible  <bruno@clisp.org>
34392
34393         wctob: Fix for weird platforms.
34394         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34395         argument value.
34396
34397 2010-05-03  Jim Meyering  <meyering@redhat.com>
34398
34399         maint.mk: prohibit unwarranted use of <strings.h>
34400         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34401         strings.h in a file that does not also use strcasecmp, strncasecmp,
34402         ffs or ffsll.
34403
34404         maint.mk: remove obsolete comments
34405         * top/maint.mk: Remove stale, commented-out rules.
34406
34407 2010-05-02  Bruno Haible  <bruno@clisp.org>
34408
34409         wcwidth: Declare also when it's aliased.
34410         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34411         macro.
34412
34413 2010-05-02  Bruno Haible  <bruno@clisp.org>
34414
34415         Fix regression from 2010-04-25.
34416         * gnulib-tool (func_modules_transitive_closure): Check the status of
34417         all modules, not only of the tests that are of the form foo-tests where
34418         foo is a module.
34419
34420 2010-05-02  Bruno Haible  <bruno@clisp.org>
34421
34422         wctob: Work around nasty Cygwin 1.7.2 bug.
34423         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34424         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34425
34426 2010-05-01  Bruno Haible  <bruno@clisp.org>
34427
34428         fpurge: Sharper test.
34429         * tests/test-fpurge.c (main): Add one more ftell check.
34430         * modules/fpurge-tests (Depends-on): Add ftell.
34431         Suggested by Eric Blake.
34432
34433 2010-05-01  Bruno Haible  <bruno@clisp.org>
34434
34435         ftello: Another test.
34436         * tests/test-ftello3.c: New file.
34437         * modules/ftello-tests (Files): Add it.
34438         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34439         MOSTLYCLEANFILES.
34440
34441         ftell: Another test.
34442         * tests/test-ftell3.c: New file.
34443         * modules/ftell-tests (Files): Add it.
34444         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34445         MOSTLYCLEANFILES.
34446
34447 2010-05-01  Bruno Haible  <bruno@clisp.org>
34448
34449         ftell, ftello: Work around Solaris bug.
34450         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34451         * lib/ftello.c: Include stdio-impl.h.
34452         (ftello): On Solaris, when _IOWRT is set, compute the result without
34453         looking at _IOREAD.
34454         * modules/ftello (Files): Add lib/stdio-impl.h.
34455         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34456         * doc/posix-functions/ftello.texi: Likewise.
34457         Reported by Eric Blake.
34458
34459 2010-05-01  Bruno Haible  <bruno@clisp.org>
34460
34461         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34462         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34463         the _IOWRT flag is also set.
34464
34465 2010-05-01  Bruno Haible  <bruno@clisp.org>
34466
34467         Fix doc about a HP-UX stdio bug.
34468         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34469         * doc/posix-functions/ftello.texi: Likewise.
34470
34471 2010-05-01  Bruno Haible  <bruno@clisp.org>
34472
34473         lseek test: Fix failure on Solaris.
34474         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34475         output.
34476
34477 2010-04-30  Jim Meyering  <meyering@redhat.com>
34478
34479         bootstrap: don't ignore failure to generate po*/Makevars
34480         * build-aux/bootstrap (with_gettext): Don't ignore failure
34481         to create po/Makevars or runtime-po/Makevars.
34482
34483 2010-04-29  Eric Blake  <eblake@redhat.com>
34484
34485         headers: relax license to LGPLv2+
34486         * modules/fcntl-h (License): Relax license.
34487         * modules/getopt-posix (License): Likewise.
34488         * modules/locale (License): Likewise.
34489         * modules/math (License): Likewise.
34490         * modules/pty (License): Likewise.
34491         * modules/sched (License): Likewise.
34492         * modules/search (License): Likewise.
34493         * modules/spawn (License): Likewise.
34494         * modules/stdarg (License): Likewise.
34495         * modules/sysexits (License): Likewise.
34496
34497 2010-04-29  Jim Meyering  <meyering@redhat.com>
34498
34499         inttypes: relax license to LGPLv2+
34500         * modules/inttypes (License): Relax license.
34501
34502 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34503
34504         * top/maint.mk (indent): Run twice to produce idempotent results.
34505
34506 2010-04-28  Bruno Haible  <bruno@clisp.org>
34507
34508         getdate: Generate getdate.c in the source directory.
34509         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34510         MOSTLYCLEANFILES.
34511         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34512
34513 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34514
34515         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34516         is not declared as a const *; avoid warnings in that case.
34517
34518 2010-04-28  Eric Blake  <eblake@redhat.com>
34519
34520         canonicalize-lgpl: avoid compiler warning
34521         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34522         declaration' / 'extraneous semicolon' warning with some compilers.
34523         Reported by Andreas Gruenbacher.
34524
34525 2010-04-28  Jim Meyering  <meyering@redhat.com>
34526
34527         init.sh: ensure a more reliable exit status when exiting via trap
34528         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34529         Inspired by patches from Dmitry V. Levin.
34530         Also trap on signal 3 (SIGQUIT).
34531
34532 2010-04-27  Bruno Haible  <bruno@clisp.org>
34533
34534         Update doc about utimes().
34535         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34536         'utimens' module.
34537         Reported by Andreas Gruenbacher <agruen@suse.de>.
34538
34539 2010-04-27  Eric Blake  <eblake@redhat.com>
34540
34541         full-read, full-write: relax license
34542         * modules/full-read (License): Drop to LGPLv2+.
34543         * modules/full-write (License): Likewise.
34544         * modules/safe-read (License): Likewise.
34545         * modules/safe-write (License): Likewise.
34546
34547         pthread: mention library for linking
34548         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34549
34550 2010-04-27  Jim Meyering  <meyering@redhat.com>
34551
34552         maint.mk: fix a bug introduced in last change
34553         * top/maint.mk (gl_assured_headers_): Now that all names are on
34554         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34555         is not anchored to end of word, it should be adequate.
34556
34557         maint.mk: avoid side-effect in latest syntax-check
34558         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34559         to run commands via $(shell...), and hence to incur cost only when
34560         the new rule is actually run.
34561
34562         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34563         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34564         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34565         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34566         (gl_assured_headers_, az_, AZ_): Define.
34567         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34568
34569 2010-04-26  Jim Meyering  <jim@meyering.net>
34570             Bruno Haible  <bruno@clisp.org>
34571
34572         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34573         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34574         Prompted by an exchange with Gilles Espinasse.
34575
34576 2010-04-26  Jim Meyering  <meyering@redhat.com>
34577
34578         git-version-gen: aesthetic tweak
34579         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34580         so that the command remains on a single line.
34581
34582 2010-04-26  Eric Blake  <eblake@redhat.com>
34583
34584         git-version-gen: allow use on EBCDIC hosts
34585         * build-aux/git-version-gen (dirty): Use literal rather than tying
34586         ourselves to ascii.
34587         Reported by Steve Goetze.
34588
34589 2010-04-25  Bruno Haible  <bruno@clisp.org>
34590
34591         netdb: Add support for GNULIB_POSIXCHECK.
34592         * lib/netdb.in.h: Include warn-on-use.h.
34593         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34594         functions are used when GNULIB_POSIXCHECK is defined and the
34595         getaddrinfo module is not in use.
34596         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34597         freeaddrinfo, gai_strerror, getnameinfo are declared.
34598         * modules/netdb (Depends-on): Add warn-on-use.
34599         (Makefile.am): Include warn-on-use.h in netdb.h.
34600
34601 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34602
34603         build: avoid "make check" failure without .git/ directory
34604         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34605         there is no .git/ directory.
34606
34607 2010-04-25  Bruno Haible  <bruno@clisp.org>
34608
34609         ptsname: Fix misuse of ttyname_r.
34610         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34611         of errno.
34612
34613 2010-04-25  Bruno Haible  <bruno@clisp.org>
34614
34615         ttyname_r: Make it work on Solaris 10.
34616         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34617         if the system function has the POSIX declaration. Test whether the
34618         function fails if the buffer is less than 128 bytes large.
34619         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34620         system's ttyname_r function. Provide a reasonably large buffer.
34621         * modules/ttyname_r (Depends-on): Add extensions.
34622         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34623
34624 2010-04-25  Bruno Haible  <bruno@clisp.org>
34625
34626         Use the 'extensions' module for some more functions on Solaris.
34627         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34628         module.
34629         * doc/posix-functions/ctime_r.texi: Likewise.
34630         * doc/posix-functions/getgrgid_r.texi: Likewise.
34631         * doc/posix-functions/getgrnam_r.texi: Likewise.
34632         * doc/posix-functions/getpwnam_r.texi: Likewise.
34633         * doc/posix-functions/getpwuid_r.texi: Likewise.
34634         * doc/posix-functions/readdir_r.texi: Likewise.
34635         * doc/posix-functions/sigwait.texi: Likewise.
34636         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34637         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34638
34639 2010-04-25  Bruno Haible  <bruno@clisp.org>
34640
34641         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34642         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34643         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34644         * lib/ttyname_r.c: Include <limits.h>.
34645         (ttyname_r): Define using the system's ttyname_r function, if it exists
34646         and not on Solaris.
34647         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34648         set.
34649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34650         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34651         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34652         Reported by Simon Josefsson.
34653
34654 2010-04-25  Bruno Haible  <bruno@clisp.org>
34655
34656         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34657         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34658         * doc/posix-functions/ctime_r.texi: Likewise.
34659         * doc/posix-functions/getgrgid_r.texi: Likewise.
34660         * doc/posix-functions/getgrnam_r.texi: Likewise.
34661         * doc/posix-functions/getlogin_r.texi: Likewise.
34662         * doc/posix-functions/getpwnam_r.texi: Likewise.
34663         * doc/posix-functions/getpwuid_r.texi: Likewise.
34664         * doc/posix-functions/readdir_r.texi: Likewise.
34665         * doc/posix-functions/sigwait.texi: Likewise.
34666         * doc/posix-functions/ttyname_r.texi: Likewise.
34667         Reported by Simon Josefsson.
34668
34669 2010-04-25  Bruno Haible  <bruno@clisp.org>
34670
34671         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34672         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34673         also to --create-testdir.
34674         (func_acceptable): Don't consider the status of *-tests modules here.
34675         (func_modules_transitive_closure): Consider it here, before including a
34676         test module.
34677         (func_import, func_create_testdir): Set inc_all_direct_tests,
34678         inc_all_indirect_tests.
34679         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34680         --create-testdir and --create-megatestdir.
34681
34682 2010-04-25  Bruno Haible  <bruno@clisp.org>
34683
34684         gnulib-tool: Add --without-*-tests options.
34685         * gnulib-tool (func_usage): Document the --without-*-tests options.
34686         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34687         excl_unportable_tests): New variables.
34688         Fail if they are specified with --import or --update.
34689         (func_acceptable): Respect the excl_*_tests variables.
34690         (func_import): Set the excl_*_tests variables to empty.
34691
34692 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34693             Bruno Haible  <bruno@clisp.org>
34694
34695         Work around a MacOS X 10.4 bug with openpty.
34696         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34697         * tests/test-openpty.c (main): Close the master side explicitly.
34698
34699 2010-04-25  Bruno Haible  <bruno@clisp.org>
34700
34701         strnlen: Fix a C++ test error on MacOS X and Solaris.
34702         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34703         the function is not declared.
34704         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34705         Simon Josefsson.
34706
34707 2010-04-24  Bruno Haible  <bruno@clisp.org>
34708
34709         Avoid a gcc warning.
34710         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34711         of correct type for %08lx directive.
34712         Reported by Eric Blake.
34713
34714 2010-04-24  Bruno Haible  <bruno@clisp.org>
34715
34716         vasnprintf: Correct errno value in case of out-of-memory.
34717         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34718         or sprintf. Use the errno value from SNPRINTF or sprintf.
34719         Reported by Ian Beckwith <ianb@erislabs.net>.
34720
34721 2010-04-24  Bruno Haible  <bruno@clisp.org>
34722
34723         ansi-c++-opt: Find correct compiler when cross-compiling.
34724         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34725         AC_CHECK_PROGS.
34726         Reported by Simon Josefsson.
34727
34728 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34729
34730         vc-list-files: Add support for subversion
34731         * build-aux/vc-list-files: Use "svn list" to generate the list of
34732         files controlled by subversion.
34733
34734 2010-04-23  Jim Meyering  <meyering@redhat.com>
34735
34736         vc-list-files tests: convert to use init.sh
34737         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34738         path_prepend_.
34739         Use Exit, not exit.
34740         Use skip_ rather than open coding it.
34741         Remove trap set-up and compare definitions.
34742         * tests/test-vc-list-files-git.sh: Likewise.
34743         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34744
34745 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34746
34747         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34748         backup files.
34749
34750 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34751
34752         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34753
34754 2010-04-20  Eric Blake  <eblake@redhat.com>
34755
34756         tests: be robust to ignored SIGPIPE
34757         * tests/test-select-in.sh: Consume all output.
34758         * tests/test-lseek.sh: Check correct exit status, while avoiding
34759         EPIPE.
34760
34761 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34762             Bruno Haible  <bruno@clisp.org>
34763
34764         visibility: Don't use -fvisibility if it leads to a warning.
34765         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34766         yes, don't pretend that visibility works if it leads to a warning.
34767         Reported by Mike Gran <spk121@yahoo.com>.
34768
34769 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34770
34771         * build-aux/bootstrap: Use "git -h" for testing for supported options
34772         instead of "git --help".  The short-form option only shows a summary,
34773         and doesn't layout the full man page.  Grep for the full option name
34774         in the summary, too.
34775
34776 2010-04-19  Bruno Haible  <bruno@clisp.org>
34777
34778         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34779         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34780         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34781         mention of RELOCATABLE_STRIP.
34782         Reported by Sylvain Beucler <beuc@beuc.net>.
34783
34784 2010-04-19  Bruno Haible  <bruno@clisp.org>
34785
34786         * lib/diffseq.h: Fix typo in comment.
34787         Reported by Eric Blake.
34788
34789 2010-04-19  Bruno Haible  <bruno@clisp.org>
34790
34791         ioctl: Move autoconf macro to a .m4 file.
34792         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34793         * modules/ioctl (Files): Add it.
34794         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34795         Reported by Ian Beckwith <ianb@erislabs.net>.
34796
34797 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34798             Bruno Haible  <bruno@clisp.org>
34799
34800         diffseq: Accommodate use-case with abstract arrays.
34801         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34802         is not defined.
34803         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34804         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34805
34806 2010-04-18  Bruno Haible  <bruno@clisp.org>
34807
34808         * doc/posix-headers/stdbool.texi: More precise wording.
34809
34810 2010-04-17  Jim Meyering  <meyering@redhat.com>
34811
34812         maint.mk: use gnu-style indentation in an embedded perl script
34813         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34814         Rename variable: s/two/last_two_bytes/
34815
34816 2010-04-16  Eric Blake  <eblake@redhat.com>
34817
34818         test-stdbool: skip test that fails with Solaris CC
34819         * tests/test-stdbool.c (f): Skip test that causes compilation
34820         error under buggy C++ compiler.
34821         * lib/stdbool.in.h: Document the limitation.
34822         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34823
34824         setenv: allow compilation with C++
34825         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34826         register keyword.
34827
34828         stdint: allow test to pass with C++
34829         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34830
34831         getopt: allow compilation with C++
34832         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34833         struct.
34834         * lib/getopt.c (_getopt_internal_r): Use correct type.
34835         Reported by Dagobert Michelson, via Joel E. Denny.
34836
34837 2010-04-16  Bruno Haible  <bruno@clisp.org>
34838
34839         Override netdb.h always.
34840         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34841         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34842         Reported by Ludovic Courtès <ludo@gnu.org>.
34843
34844 2010-04-15  Bruno Haible  <bruno@clisp.org>
34845
34846         openpty: Fix mistake from 2010-03-21.
34847         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34848         Reported by Simon Josefsson.
34849
34850 2010-04-15  Eric Blake  <eblake@redhat.com>
34851
34852         test-forkpty: fix expected signature
34853         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34854         Reported by Simon Josefsson.
34855
34856 2010-04-15  Jim Meyering  <meyering@redhat.com>
34857
34858         maint.mk: texinfo_suffix_re_: correct the default regexp
34859         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34860
34861         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34862         make it configurable via texinfo_suffix_re_.
34863
34864 2010-04-14  Eric Blake  <eblake@redhat.com>
34865
34866         strtok_r: relax license to LGPLv2+
34867         * modules/strtok_r (License): Relax license.
34868         Reported by Matthias Bolte.
34869
34870 2010-04-14  Simon Josefsson  <simon@josefsson.org>
34871
34872         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
34873         version 1.4.4 by default instead of requiring the libgcrypt
34874         version used during build.  This makes it possible to use the
34875         application with older but still binary compatible libgcrypt
34876         versions.
34877
34878 2010-04-13  Eric Blake  <eblake@redhat.com>
34879
34880         getopt-gnu: match recent glibc fixes and posix ruling
34881         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
34882         '+' handling, when requesting extensions.
34883         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
34884         'W;' handling.
34885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
34886         * doc/posix-functions/getopt.texi (getopt): Document this.
34887         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34888         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34889         Likewise.
34890
34891         getopt: merge bug fixes from glibc
34892         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
34893         diagnostics.  Honor '+:' correctly.  Reject ';'.
34894
34895         getopt-posix: detect MacOS bug
34896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
34897         optind when missing a required argument.
34898         * doc/posix-functions/getopt.texi (getopt): Document the bug.
34899         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34900         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34901         Likewise.
34902
34903         getopt-posix: avoid spurious failure on Solaris
34904         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
34905         an indicator that setting optind=1 is sufficient for reset.
34906
34907         getopt-posix: avoid spurious failure on FreeBSD
34908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
34909         in POSIX mode, since the m4 test uses it.
34910
34911         gnulib-tool: silence warning on BSD sh
34912         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34913
34914 2010-04-13  Jim Meyering  <meyering@redhat.com>
34915
34916         doc: users.txt: GNU patch now uses gnulib
34917         * users.txt: Add patch.
34918
34919 2010-04-12  Jim Meyering  <meyering@redhat.com>
34920
34921         maint.mk: generate more concise timing data for syntax-check rules
34922         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34923         " done" from each line that reports a syntax-check test duration.
34924
34925 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34926
34927         git-version-gen: use "git update-index..." rather than "git status"
34928         * build-aux/git-version-gen: Use git update-index --refresh, not
34929         "git status".  With some versions of git, "git status" would fail
34930         to update the index and result in an unwarranted "-dirty" suffix.
34931
34932 2010-04-11  Jim Meyering  <meyering@redhat.com>
34933
34934         openat: correct formatting (no semantic change)
34935         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34936         Suggested by Bruno Haible.
34937
34938 2010-04-11  Bruno Haible  <bruno@clisp.org>
34939
34940         Stricter declaration checking in testdirs.
34941         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34942         If for_tests is true, augment AM_CPPFLAGS to define
34943         GNULIB_STRICT_CHECKING.
34944         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34945         GNULIB_STRICT_CHECKING is defined, verify that the function is
34946         declared.
34947
34948 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34949             Bruno Haible  <bruno@clisp.org>
34950
34951         libunistring: Improve configure output.
34952         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34953         Don't say "consider installing GNU libunistring" when checking again
34954         with libiconv.
34955
34956 2010-04-11  Bruno Haible  <bruno@clisp.org>
34957
34958         libunistring: Correct value of $LTLIBUNISTRING.
34959         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34960         correct the value of $LTLIBUNISTRING.
34961
34962 2010-04-11  Bruno Haible  <bruno@clisp.org>
34963
34964         havelib: Add static libraries to LIBS in the right order.
34965         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34966         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34967
34968 2010-04-11  Bruno Haible  <bruno@clisp.org>
34969
34970         libunistring: Detect libunistring also when it depends on libiconv.
34971         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34972         the second AC_LIB_HAVE_LINKFLAGS invocation.
34973
34974 2010-04-11  James Youngman  <jay@gnu.org>
34975
34976         close-stream: declare local scalars to be "const"
34977         * lib/close-stream.c (close_stream): Make boolean variables const
34978         to document the fact that we set but do not change them.
34979
34980 2010-04-11  Bruno Haible  <bruno@clisp.org>
34981
34982         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34983
34984 2010-04-11  Jim Meyering  <meyering@redhat.com>
34985
34986         maint.mk: don't include dist-check.mk
34987         * top/maint.mk: Remove bogus include directive.
34988
34989         maint.mk: improve empty-line-at-EOF check
34990         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34991         solution, rather than tail+Perl-based one.  The latter would read
34992         a few kilobytes from the end of each file, and did not handle empty
34993         files properly.
34994
34995         maint.mk: print the elapsed time for each syntax-check rule
34996         * top/maint.mk (sc_m_rules_): Save start time in a file.
34997         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34998         (local-check): Interpose the .z rules
34999
35000 2010-04-11  Jim Meyering  <meyering@redhat.com>
35001
35002         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35003         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35004         empty file with one that ends in an empty line.
35005
35006 2010-04-10  Bruno Haible  <bruno@clisp.org>
35007
35008         mkdir: Make it work on mingw64.
35009         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35010         * lib/mkdir.c: Update comment.
35011         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
35012
35013 2010-04-10  Bruno Haible  <bruno@clisp.org>
35014
35015         Don't override improved macro from newer autoconf.
35016         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35017         autoconf >= 2.62.
35018         Reported by Joel E. Denny <jdenny@clemson.edu>.
35019
35020 2010-04-10  Jim Meyering  <meyering@redhat.com>
35021
35022         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35023         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35024
35025         maint.mk: correct a diagnostic
35026         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35027         in diagnostic; now use $prohibit.
35028
35029 2010-04-10  Bruno Haible  <address@hidden>
35030
35031         fchownat: Fix a C++ test error on Solaris 8.
35032         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35033         the function does not exist.
35034
35035 2010-04-10  Bruno Haible  <bruno@clisp.org>
35036
35037         vasnprintf: Add more tests.
35038         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35039         (test_function): Test converting an invalid wide string.
35040
35041         vasnprintf: Correct handling of unconvertible wide string arguments.
35042         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35043         VASNPRINTF.
35044         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35045         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35046         smaller than the expected maximum need for the directive. Set errno to
35047         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35048         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35049         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35050         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35051         * modules/vasnprintf (Files): Add m4/printf.m4.
35052         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35053
35054 2010-04-10  Bruno Haible  <bruno@clisp.org>
35055
35056         vasnprintf: Fix crash in %ls directive.
35057         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35058         string is passed as argument to %ls, with no precision and no width.
35059         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35060
35061 2010-04-10  Bruno Haible  <bruno@clisp.org>
35062
35063         vasnprintf: Fix multiple test failures on mingw.
35064         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35065         _snprintf, or snwprintf, not _snwprintf.
35066
35067 2010-04-10  Bruno Haible  <bruno@clisp.org>
35068
35069         write: Fix a C++ test error on mingw.
35070         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35071
35072 2010-04-10  Bruno Haible  <bruno@clisp.org>
35073
35074         vasnprintf test: Reduce code duplication.
35075         * tests/test-vasnprintf.c (test_function): New function, extracted from
35076         test_vasnprintf.
35077         (test_vasnprintf, test_asnprintf): Invoke it.
35078
35079 2010-04-10  Bruno Haible  <bruno@clisp.org>
35080
35081         strnlen: Fix warning in C++ mode on MacOS X.
35082         * lib/string.in.h (strnlen): Use the modern idiom.
35083         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35084         defining strnlen as a macro already in <config.h>.
35085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35086         REPLACE_STRNLEN.
35087         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35088         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35089
35090 2010-04-08  James Youngman  <jay@gnu.org>
35091
35092         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35093         the example.
35094
35095 2010-04-09  Jim Meyering  <meyering@redhat.com>
35096
35097         maint.mk: print better diagnostic when there is no $(_hv_file)
35098         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35099         announce that when $(_hv_file) (aka help-version) does not exist.
35100
35101         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35102         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35103         not try to interpret its random input bytes.  Jarno Rajahalme reported
35104         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35105         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35106         (mktempd_): Likewise, just in case.
35107
35108         ftruncate: add two years to projected module removal date: 2012
35109         * m4/ftruncate.m4: Adjust comments.
35110
35111         ftruncate: mark module as obsolete; even MinGW provides it, now
35112         * modules/ftruncate (Status): Obsolete.
35113         (Notice): Say that.
35114         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35115         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35116
35117 2010-04-08  Bruno Haible  <bruno@clisp.org>
35118
35119         Fix side effects from tests-related modules.
35120         * modules/dprintf-posix (Comment): New section.
35121         * modules/fprintf-posix (Comment): Likewise.
35122         * modules/obstack-printf-posix (Comment): Likewise.
35123         * modules/printf-posix (Comment): Likewise.
35124         * modules/snprintf-posix (Comment): Likewise.
35125         * modules/sprintf-posix (Comment): Likewise.
35126         * modules/vasnprintf-posix (Comment): Likewise.
35127         * modules/vasprintf-posix (Comment): Likewise.
35128         * modules/vdprintf-posix (Comment): Likewise.
35129         * modules/vfprintf-posix (Comment): Likewise.
35130         * modules/vprintf-posix (Comment): Likewise.
35131         * modules/vsnprintf-posix (Comment): Likewise.
35132         * modules/vsprintf-posix (Comment): Likewise.
35133         * modules/xprintf-posix (Comment): Likewise.
35134         * modules/xvasprintf-posix (Comment): Likewise.
35135         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35136         * modules/floorf-tests (Depends-on): Likewise.
35137         * modules/round-tests (Depends-on): Likewise.
35138         * modules/roundf-tests (Depends-on): Likewise.
35139         * modules/trunc-tests (Depends-on): Likewise.
35140         * modules/truncf-tests (Depends-on): Likewise.
35141         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35142         'fprintf-posix' module is not present.
35143         * tests/test-floorf2.c (check): Likewise.
35144         * tests/test-trunc2.c (check): Likewise.
35145         * tests/test-truncf2.c (check): Likewise.
35146         * tests/test-round2.c (equal): Likewise.
35147         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35148
35149 2010-04-07  Karl Berry  <karl@gnu.org>
35150
35151         * config/srclist.txt,
35152         * config/srclistvars.sh,
35153         * config/srclist-update: doc fixes.
35154
35155 2010-04-07  Jim Meyering  <meyering@redhat.com>
35156
35157         maint.mk: add a PATH crosschecking syntax-check rule
35158         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35159         Useful if you use a test like the one in help-version (coreutils,
35160         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35161         printed by prog --version.
35162
35163 2010-04-06  Bruno Haible  <bruno@clisp.org>
35164
35165         Fix link error on mingw.
35166         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35167         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35168
35169 2010-04-06  Bruno Haible  <bruno@clisp.org>
35170
35171         Assume rmdir exists.
35172         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35173
35174 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35175
35176         doc: update users.txt
35177         * users.txt: Add gcal.
35178
35179 2010-04-06  Jim Meyering  <meyering@redhat.com>
35180
35181         init.sh: simply unset TMPDIR rather than risking env -i
35182         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35183         although it probably works fine on all Unix-based systems, some
35184         systems (Cygwin?) cannot tolerate a totally cleared environment.
35185         Suggestion from Eric Blake.
35186
35187 2010-04-06  Jim Meyering  <meyering@redhat.com>
35188
35189         init.sh: portability fix: use env's POSIX-specified -i option not -u
35190         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35191         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35192
35193 2010-04-05  Bruno Haible  <bruno@clisp.org>
35194
35195         btowc: Work around Cygwin 1.7.2 bug.
35196         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35197         does not map NUL to 0.
35198         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35199
35200 2010-04-05  Bruno Haible  <bruno@clisp.org>
35201
35202         Make the multithread modules work on Cygwin 1.7.2.
35203         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35204         imported symbols can be declared weak, so that it returns "no" on
35205         Cygwin 1.7.2.
35206
35207 2010-04-05  Bruno Haible  <bruno@clisp.org>
35208
35209         Use the module 'strncat'.
35210         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35211
35212         Tests for module 'strncat'.
35213         * modules/strncat-tests: New file.
35214         * tests/test-strncat.c: New file.
35215
35216         New module 'strncat'.
35217         * lib/string.in.h (strncat): New declaration.
35218         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35219         * m4/strncat.m4: New file, based on m4/memchr.m4.
35220         * modules/strncat: New file.
35221         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35222         is declared.
35223         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35224         REPLACE_STRNCAT.
35225         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35226         REPLACE_STRNCAT.
35227         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35228         module.
35229         * tests/test-string-c++.cc: Check signature of strncat.
35230
35231 2010-04-05  Jim Meyering  <meyering@redhat.com>
35232
35233         xstrtoumax-tests: convert to use init.sh
35234         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35235         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35236         Use Exit, not exit.
35237         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35238
35239         xstrtoimax-tests: convert to use init.sh
35240         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35241         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35242         Use Exit, not exit.
35243         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35244
35245 2010-04-05  Bruno Haible  <bruno@clisp.org>
35246
35247         sys_socket: Avoid #define replacements in C++ mode.
35248         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35249         warning to the function if possible, rather than #defining the symbol
35250         to a dysfunctional alias.
35251
35252 2010-04-05  Bruno Haible  <bruno@clisp.org>
35253
35254         fseeko: Fix C++ test error on mingw.
35255         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35256         gl_FUNC_FSEEKO.
35257         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35258         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35259         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35260         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35261
35262 2010-04-05  Bruno Haible  <bruno@clisp.org>
35263
35264         duplocale: Improve test output.
35265         * tests/test-duplocale.c (main): Print reason for skipped test.
35266
35267 2010-04-05  Bruno Haible  <bruno@clisp.org>
35268
35269         Assume rmdir exists.
35270         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35271         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35272
35273 2010-04-05  Bruno Haible  <bruno@clisp.org>
35274
35275         Fix link error on Solaris 8 with cc.
35276         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35277
35278 2010-04-05  Bruno Haible  <bruno@clisp.org>
35279
35280         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35281         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35282
35283 2010-04-05  Bruno Haible  <bruno@clisp.org>
35284
35285         vasprintf: Update documentation.
35286         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35287
35288 2010-04-05  Bruno Haible  <bruno@clisp.org>
35289
35290         ptsname: Improve test.
35291         * tests/test-ptsname.c (main): Also try the various master names of BSD
35292         systems.
35293
35294 2010-04-05  Bruno Haible  <bruno@clisp.org>
35295
35296         memchr: Avoid a possible C++ test error.
35297         * lib/string.in.h (memchr): Provide declaration if function is missing.
35298         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35299         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35301         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35302
35303 2010-04-05  Bruno Haible  <bruno@clisp.org>
35304
35305         strtok_r: Improve idiom.
35306         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35307         AC_LIBOBJ is used.
35308
35309 2010-04-05  Bruno Haible  <bruno@clisp.org>
35310
35311         strdup: Improve idiom.
35312         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35313         AC_LIBOBJ is used.
35314         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35315         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35316         when AC_LIBOBJ is used.
35317
35318 2010-04-05  Bruno Haible  <bruno@clisp.org>
35319
35320         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35321         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35322         don't set REPLACE_MBSINIT to 1.
35323         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35324         don't set REPLACE_MBRTOWC to 1.
35325         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35326         exist, don't set REPLACE_MBSRTOWCS to 1.
35327         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35328         exist, don't set REPLACE_MBSNRTOWCS to 1.
35329         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35330         don't set REPLACE_WCRTOMB to 1.
35331         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35332         exist, don't set REPLACE_WCSRTOMBS to 1.
35333         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35334         exist, don't set REPLACE_WCSNRTOMBS to 1.
35335
35336 2010-04-05  Bruno Haible  <bruno@clisp.org>
35337
35338         ldexpl: Improve idiom.
35339         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35340         make sure to set HAVE_DECL_LDEXPL to 0.
35341
35342 2010-04-05  Jim Meyering  <meyering@redhat.com>
35343
35344         xstrtol-tests: convert to use init.sh
35345         * modules/xstrtol-tests (Files): Add tests/init.sh.
35346         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35347         Use Exit, not exit.
35348         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35349
35350         atexit-tests: convert to use init.sh
35351         * modules/atexit-tests (Files): Add tests/init.sh.
35352         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35353         Use Exit, not exit.
35354         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35355
35356         init.sh: fix typo
35357         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35358
35359         init.sh: make it easier for a test script to write to the tty, ...
35360         when using automake's parallel-tests mode.
35361         * tests/init.sh (stderr_fileno_): Define overridable variable.
35362         (warn_): New function, to use it.
35363         (fail_, skip_, framework_failure_): Use warn_.
35364
35365 2010-04-04  Bruno Haible  <bruno@clisp.org>
35366
35367         btowc: Avoid warning.
35368         * lib/btowc.c: Include <stdlib.h>.
35369         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35370
35371 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35372             Bruno Haible  <bruno@clisp.org>
35373
35374         wchar: Port to NetBSD 1.5.
35375         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35376         * lib/wctype.in.h (WEOF): Likewise.
35377
35378 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35379             Bruno Haible  <bruno@clisp.org>
35380
35381         Port extended stdio to NetBSD 1.5.
35382         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35383         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35384         older.
35385
35386 2010-04-04  Bruno Haible  <bruno@clisp.org>
35387
35388         string: Remove unused substitution.
35389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35390         HAVE_DECL_STRERROR.
35391         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35392
35393 2010-04-04  Bruno Haible  <bruno@clisp.org>
35394
35395         strtod: Avoid a possible C++ test error.
35396         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35397         set REPLACE_STRTOD.
35398
35399 2010-04-04  Bruno Haible  <bruno@clisp.org>
35400
35401         strerror: Update documentation.
35402         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35403
35404 2010-04-04  Bruno Haible  <bruno@clisp.org>
35405
35406         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35407         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35408         _GL_CXXALIAS_SYS_CAST.
35409
35410 2010-04-04  Bruno Haible  <bruno@clisp.org>
35411
35412         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35413         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35414         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35415         REPLACE_FREXPL to 1.
35416         * doc/posix-functions/frexpl.texi: Update documentation.
35417
35418 2010-04-04  Bruno Haible  <bruno@clisp.org>
35419
35420         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35421         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35422
35423 2010-04-04  Bruno Haible  <bruno@clisp.org>
35424
35425         Implement nanosleep for native Windows.
35426         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35427
35428 2010-04-04  Bruno Haible  <bruno@clisp.org>
35429
35430         math: Fix some C++ test errors on Solaris 8.
35431         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35432
35433 2010-04-04  Bruno Haible  <bruno@clisp.org>
35434
35435         math: Fix some C++ test errors on Cygwin.
35436         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35437         truncl): Provide declaration if the system does not have it.
35438         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35439         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35440         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35441         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35442         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35443         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35444         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35445         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35446         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35447         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35448         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35449         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35450         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35451         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35452         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35453         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35455         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35456         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35457         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35458         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35459         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35460
35461 2010-04-04  Bruno Haible  <bruno@clisp.org>
35462
35463         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35464         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35465         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35466         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35467         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35468         * m4/isinf.m4 (gl_ISINF): Likewise.
35469         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35470
35471 2010-04-04  Bruno Haible  <bruno@clisp.org>
35472
35473         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35474         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35475
35476 2010-04-04  Bruno Haible  <bruno@clisp.org>
35477
35478         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35479         * modules/tmpfile (configure.ac): Update.
35480
35481         tmpfile: Fix C++ test error on mingw.
35482         * lib/stdio.in.h (tmpfile): New declaration.
35483         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35484         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35485         * modules/tmpfile (Depends-on): Add stdio.
35486         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35487         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35488         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35489         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35490         REPLACE_TMPFILE.
35491         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35492
35493 2010-04-04  Bruno Haible  <bruno@clisp.org>
35494
35495         ioctl: Fix C++ test error on mingw.
35496         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35497         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35498         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35499
35500 2010-04-03  Bruno Haible  <bruno@clisp.org>
35501
35502         wcwidth: Fix C++ test error on mingw.
35503         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35504         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35505         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35506
35507 2010-04-03  Bruno Haible  <bruno@clisp.org>
35508
35509         nanosleep: Fix C++ test error on mingw.
35510         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35511         * lib/time.in.h (nanosleep): Use modern idiom.
35512         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35513         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35514         REPLACE_NANOSLEEP to 1.
35515         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35516         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35517
35518 2010-04-03  Bruno Haible  <bruno@clisp.org>
35519
35520         strptime: Fix C++ test error on mingw.
35521         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35522         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35523         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35524         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35525         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35526         not REPLACE_STRPTIME.
35527         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35528         REPLACE_STRPTIME.
35529
35530 2010-04-03  Bruno Haible  <bruno@clisp.org>
35531
35532         timegm: Fix C++ test error on mingw.
35533         * lib/time.in.h (timegm): Use modern idiom.
35534         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35535         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35536         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35537         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35538
35539 2010-04-03  Bruno Haible  <bruno@clisp.org>
35540
35541         timegm: Assume declaration if function exists.
35542         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35543         if it exists. Don't clobber ac_cv_func_timegm.
35544
35545 2010-04-03  Bruno Haible  <bruno@clisp.org>
35546
35547         time_r: Fix C++ test error on mingw.
35548         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35549         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35550         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35551         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35552         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35553
35554 2010-04-03  Bruno Haible  <bruno@clisp.org>
35555
35556         time_r: Minor updates.
35557         * modules/time_r (Description): Mention the provided functions.
35558         * lib/time_r.c: Don't include <string.h>.
35559         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35560         * doc/posix-functions/localtime_r.texi: Likewise.
35561
35562 2010-04-03  Bruno Haible  <bruno@clisp.org>
35563
35564         time: Fix regression introduced on 2010-03-08.
35565         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35566         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35567
35568 2010-04-03  Jim Meyering  <meyering@redhat.com>
35569
35570         maint.mk: don't silently disable project-specific syntax-check rules
35571         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35572         that they need to convert their project-specific syntax-check rules
35573         to use the new _sc_search_regexp.
35574
35575 2010-04-03  Bruno Haible  <bruno@clisp.org>
35576
35577         fchdir: Fix regression introduced on 2010-03-08.
35578         * lib/unistd.in.h (fchdir): Fix declaration.
35579         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35581         REPLACE_FCHDIR.
35582         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35583         REPLACE_FCHDIR.
35584
35585 2010-04-03  Bruno Haible  <bruno@clisp.org>
35586
35587         getpagesize: Fix C++ test error on mingw.
35588         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35589         system does not declare the function.
35590         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35591         declared.
35592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35593         HAVE_DECL_GETPAGESIZE.
35594         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35595
35596 2010-04-03  Bruno Haible  <bruno@clisp.org>
35597
35598         stdio: Make C++ tests work on mingw.
35599         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35600         does not declare the function.
35601
35602 2010-04-03  Bruno Haible  <bruno@clisp.org>
35603
35604         ftello: Fix C++ test error on mingw.
35605         * lib/stdio.in.h (ftello): Use modern idiom.
35606         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35607         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35608         is missing and that it needs to be replaced.
35609         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35611         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35612
35613 2010-04-03  Bruno Haible  <bruno@clisp.org>
35614
35615         fseeko: Fix C++ test error on mingw.
35616         * lib/stdio.in.h (fseeko): Use modern idiom.
35617         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35618         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35619         is missing and that it needs to be replaced.
35620         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35622         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35623
35624 2010-04-03  Bruno Haible  <bruno@clisp.org>
35625
35626         mkstemp: Fix C++ test error on mingw.
35627         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35628         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35629         function is missing and that it needs to be replaced.
35630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35631         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35632
35633 2010-04-03  Bruno Haible  <bruno@clisp.org>
35634
35635         stpncpy: Fix C++ test error on mingw.
35636         * lib/string.in.h (stpncpy): Use modern idiom.
35637         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35638         function is missing and that it needs to be replaced.
35639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35640         REPLACE_STPNCPY.
35641         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35642
35643 2010-04-03  Bruno Haible  <bruno@clisp.org>
35644
35645         sys_stat: Fix C++ test error on mingw.
35646         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35647         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35648
35649 2010-04-03  Bruno Haible  <bruno@clisp.org>
35650
35651         pty: Update doc.
35652         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35653
35654 2010-04-03  Bruno Haible  <bruno@clisp.org>
35655
35656         unistd: Fix C++ test error on mingw.
35657         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35658
35659 2010-04-03  Bruno Haible  <bruno@clisp.org>
35660
35661         Update doc regarding mingw.
35662         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35663         * doc/glibc-functions/login_tty.texi: Likewise.
35664         * doc/glibc-functions/forkpty.texi: Likewise.
35665
35666 2010-04-03  Bruno Haible  <bruno@clisp.org>
35667
35668         stdlib: Avoid compilation failure of c-strtold on mingw.
35669         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35670
35671 2010-04-03  Bruno Haible  <bruno@clisp.org>
35672
35673         locale: Make C++ tests work on Cygwin and mingw.
35674         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35675         cannot provide the function.
35676         Reported by Simon Josefsson.
35677
35678 2010-04-03  Bruno Haible  <bruno@clisp.org>
35679
35680         localename: Port to MacOS X 10.6.
35681         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35682         memory layout of the locales in MacOS X 10.6 as well.
35683         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35684
35685 2010-04-02  Bruno Haible  <bruno@clisp.org>
35686
35687         gnulib-tool: Ensure that long-running tests are executed last.
35688         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35689         running tests after the one for the other tests.
35690
35691 2010-04-02  Bruno Haible  <bruno@clisp.org>
35692
35693         gnulib-tool: Ensure the tests in the main directory are executed first.
35694         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35695         start with the current directory.
35696
35697 2010-04-02  Bruno Haible  <bruno@clisp.org>
35698
35699         Tests for module 'havelib', moved here from GNU gettext.
35700         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35701         modifications.
35702         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35703         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35704         with modifications.
35705         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35706         modifications.
35707         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35708         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35709         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35710         with modifications.
35711         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35712         with modifications.
35713         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35714         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35715         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35716         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35717         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35718         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35719         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35720         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35721         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35722         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35723         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35724         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35725         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35726         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35727         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35728         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35729         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35730         with modifications.
35731         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35732         with modifications.
35733         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35734         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35735         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35736         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35737         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35738         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35739         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35740         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35741         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35742         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35743         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35744         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35745         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35746         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35747         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35748         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35749         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35750         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35751         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35752         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35753         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35754         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35755         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35756         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35757         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35758         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35759         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35760         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35761         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35762         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35763         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35764         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35765         * tests/havelib/rpathx/rpathx.c: New file, from
35766         gettext/autoconf-lib-link.
35767         * tests/havelib/rpathx/Makefile.am: New file, from
35768         gettext/autoconf-lib-link.
35769         * tests/havelib/rpathx/configure.ac: New file, from
35770         gettext/autoconf-lib-link with modifications.
35771         * tests/havelib/rpathy/rpathy.c: New file, from
35772         gettext/autoconf-lib-link.
35773         * tests/havelib/rpathy/Makefile.am: New file, from
35774         gettext/autoconf-lib-link.
35775         * tests/havelib/rpathy/configure.ac: New file, from
35776         gettext/autoconf-lib-link with modifications.
35777         * tests/havelib/rpathz/rpathz.c: New file, from
35778         gettext/autoconf-lib-link.
35779         * tests/havelib/rpathz/Makefile.am: New file, from
35780         gettext/autoconf-lib-link.
35781         * tests/havelib/rpathz/configure.ac: New file, from
35782         gettext/autoconf-lib-link with modifications.
35783         * tests/havelib/rpathlx/usex.c: New file, from
35784         gettext/autoconf-lib-link.
35785         * tests/havelib/rpathlx/Makefile.am: New file, from
35786         gettext/autoconf-lib-link.
35787         * tests/havelib/rpathlx/configure.ac: New file, from
35788         gettext/autoconf-lib-link with modifications.
35789         * tests/havelib/rpathly/usey.c: New file, from
35790         gettext/autoconf-lib-link.
35791         * tests/havelib/rpathly/Makefile.am: New file, from
35792         gettext/autoconf-lib-link.
35793         * tests/havelib/rpathly/configure.ac: New file, from
35794         gettext/autoconf-lib-link with modifications.
35795         * tests/havelib/rpathlz/usez.c: New file, from
35796         gettext/autoconf-lib-link.
35797         * tests/havelib/rpathlz/Makefile.am: New file, from
35798         gettext/autoconf-lib-link.
35799         * tests/havelib/rpathlz/configure.ac: New file, from
35800         gettext/autoconf-lib-link with modifications.
35801         * tests/havelib/rpathlyx/usey.c: New file, from
35802         gettext/autoconf-lib-link.
35803         * tests/havelib/rpathlyx/Makefile.am: New file, from
35804         gettext/autoconf-lib-link.
35805         * tests/havelib/rpathlyx/configure.ac: New file, from
35806         gettext/autoconf-lib-link with modifications.
35807         * tests/havelib/rpathlzyx/usez.c: New file, from
35808         gettext/autoconf-lib-link.
35809         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35810         gettext/autoconf-lib-link.
35811         * tests/havelib/rpathlzyx/configure.ac: New file, from
35812         gettext/autoconf-lib-link with modifications.
35813         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35814         with modifications.
35815
35816 2010-04-02  Bruno Haible  <bruno@clisp.org>
35817
35818         gnulib-tool: Create distributed built sources also for the tests.
35819         * gnulib-tool (func_create_testdir): Also generate distributed built
35820         sources in the tests directory.
35821
35822 2010-04-02  Bruno Haible  <bruno@clisp.org>
35823
35824         gnulib-tool: Obey user's environment variables.
35825         * gnulib-tool (func_create_testdir): When creating built sources,
35826         respect the environment variables for autoconf, automake, etc. given by
35827         the user.
35828
35829 2010-04-02  Bruno Haible  <bruno@clisp.org>
35830
35831         gnulib-tool: Provide the value of --m4-base to modules.
35832         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35833         of gl_m4_base.
35834
35835 2010-04-02  Eric Blake  <eblake@redhat.com>
35836
35837         maint.mk: fix some fallout
35838         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35839         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35840
35841 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35842
35843         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35844         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35845         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35846         (sc_cast_of_x_alloc_return_value): Likewise.
35847         (sc_cast_of_alloca_return_value): Likewise.
35848         (sc_space_tab): Likewise.
35849         (sc_prohibit_atoi_atof): Likewise.
35850         (sc_prohibit_magic_number_exit): Likewise.
35851         (sc_error_exit_success): Likewise.
35852         (sc_file_system): Likewise.
35853         (sc_prohibit_have_config_h): Likewise.
35854         (sc_require_config_h): Likewise.
35855         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35856         (sc_obsolete_symbols): Likewise.
35857         (sc_changelog): Likewise.
35858         (sc_program_name): Likewise.
35859         (sc_the_the): Likewise.
35860         (sc_trailing_blank): Likewise.
35861         (sc_two_space_separator_in_usage): Likewise.
35862         (sc_useless_cpp_parens): Likewise.
35863         (sc_GPL_version): Likewise.
35864         (sc_GFDL_version): Likewise.
35865         (sc_texinfo_acronym): Likewise.
35866         (sc_prohibit_cvs_keyword): Likewise.
35867         (sc_prohibit_stat_st_blocks): Likewise.
35868         (sc_prohibit_S_IS_definition): Likewise.
35869         (sc_redundant_const): Likewise.
35870         (sc_makefile_TAB_only_indentation): Likewise.
35871         (sc_m4_quote_check): Likewise.
35872         (sc_makefile_path_separator_check): Likewise.
35873         (sc_copyright_check): Likewise.
35874         (sc_Wundef_boolean): Likewise.
35875         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
35876
35877         maint.mk: match 0 or more whitespace-before-function-call '('
35878         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
35879         that have zero or two-and-more spaces between the function name
35880         and the open parenthesis.
35881         (sc_error_message_warn_fatal): Likewise.
35882         (sc_error_message_uppercase): Likewise.
35883         (sc_error_message_period): Likewise.
35884
35885 2010-03-31  Eric Blake  <eblake@redhat.com>
35886
35887         maint.mk: check for [ as well as test
35888         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
35889         Based on a libvirt report by Matthias Bolte.
35890
35891         gnumakefile: don't squelch _version output
35892         * top/GNUmakefile (_version): Create one-shot dependency rather
35893         than using $(shell) when version must be regenerated.
35894         (_autoreconf): Run verbosely, by default.
35895
35896         sys_time: avoid compiler warnings
35897         * lib/sys_time.in.h (includes): Ensure gcc pragma is
35898         unconditional, fixing regression from 2010-03-29.
35899         Reported by Simon Josefsson.
35900
35901 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35902
35903         maint.mk: s/_header_without_use/_sc_header_without_use/
35904         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
35905         (sc_prohibit_assert_without_use): Use the new name.
35906         (sc_prohibit_close_stream_without_use): Likewise.
35907         (sc_prohibit_getopt_without_use): Likewise.
35908         (sc_prohibit_quotearg_without_use): Likewise.
35909         (sc_prohibit_quote_without_use): Likewise.
35910         (sc_prohibit_long_options_without_use): Likewise.
35911         (sc_prohibit_inttostr_without_use): Likewise.
35912         (sc_prohibit_ignore_value_without_use): Likewise.
35913         (sc_prohibit_error_without_use): Likewise.
35914         (sc_prohibit_xalloc_without_use): Likewise.
35915         (sc_prohibit_hash_without_use): Likewise.
35916         (sc_prohibit_hash_pjw_without_use): Likewise.
35917         (sc_prohibit_safe_read_without_use): Likewise.
35918         (sc_prohibit_argmatch_without_use): Likewise.
35919         (sc_prohibit_canonicalize_without_use): Likewise.
35920         (sc_prohibit_root_dev_ino_without_use): Likewise.
35921         (sc_prohibit_openat_without_use): Likewise.
35922         (sc_prohibit_c_ctype_without_use): Likewise.
35923         (sc_prohibit_signal_without_use): Likewise.
35924         (sc_prohibit_intprops_without_use): Likewise.
35925
35926 2010-03-30  Eric Blake  <eblake@redhat.com>
35927
35928         maint: improve module indicators
35929         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35930         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35931         columns, and avoid extra macro expansion.
35932
35933         fdopendir: work around FreeBSD bug
35934         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35935         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35936         * modules/dirent (Makefile.am): Substitute it.
35937         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35938         declaration.
35939         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35940         fix.
35941         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35942
35943 2010-03-29  Bruno Haible  <bruno@clisp.org>
35944
35945         Emit #pragma system_header after the inclusion guard, not before.
35946         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35947         guard that spans the entire file, not before. This enables an
35948         optimization in GCC's preprocessor.
35949         * lib/ctype.in.h: Likewise.
35950         * lib/dirent.in.h: Likewise.
35951         * lib/errno.in.h: Likewise.
35952         * lib/float.in.h: Likewise.
35953         * lib/getopt.in.h: Likewise.
35954         * lib/iconv.in.h: Likewise.
35955         * lib/langinfo.in.h: Likewise.
35956         * lib/locale.in.h: Likewise.
35957         * lib/math.in.h: Likewise.
35958         * lib/netdb.in.h: Likewise.
35959         * lib/netinet_in.in.h: Likewise.
35960         * lib/pty.in.h: Likewise.
35961         * lib/sched.in.h: Likewise.
35962         * lib/se-selinux.in.h: Likewise.
35963         * lib/search.in.h: Likewise.
35964         * lib/spawn.in.h: Likewise.
35965         * lib/stdarg.in.h: Likewise.
35966         * lib/stdint.in.h: Likewise.
35967         * lib/string.in.h: Likewise.
35968         * lib/strings.in.h: Likewise.
35969         * lib/sys_file.in.h: Likewise.
35970         * lib/sys_ioctl.in.h: Likewise.
35971         * lib/sys_time.in.h: Likewise.
35972         * lib/sys_times.in.h: Likewise.
35973         * lib/sys_utsname.in.h: Likewise.
35974         * lib/sys_wait.in.h: Likewise.
35975         * lib/sysexits.in.h: Likewise.
35976         * lib/wctype.in.h: Likewise.
35977
35978 2010-03-28  James Youngman  <jay@gnu.org>
35979
35980         save-cwd: don't leak a file descriptor when the caller execs.
35981         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35982         saved file descriptor.
35983         * modules/save-cwd (Depends-on): Depend on cloexec.
35984
35985 2010-03-29  Bruno Haible  <bruno@clisp.org>
35986
35987         Remove vestiges of fts-lgpl module.
35988         * lib/fts_.h: Assume GNULIB_FTS is 1.
35989         * lib/fts.c: Likewise.
35990         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35991
35992 2010-03-28  Bruno Haible  <bruno@clisp.org>
35993
35994         Fix definition of tests witness macro.
35995         * gnulib-tool (func_import): Fix definition of witness macro.
35996
35997 2010-03-28  Bruno Haible  <bruno@clisp.org>
35998
35999         Fix ioctl's protoype on glibc systems.
36000         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36001         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36002         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36003         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36004         signature. If not, arrange to replace the ioctl function.
36005         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36006         REPLACE_IOCTL.
36007         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36008         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36009         Reported by Ludovic Courtès <ludo@gnu.org>.
36010
36011 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36012
36013         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36014         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36015         made it so grep -r --include=GLOB* ... did not work.
36016
36017 2010-03-26  Jim Meyering  <meyering@redhat.com>
36018             Eric Blake  <eblake@redhat.com>
36019
36020         maint.mk: prohibit use of test's -o and -a operators
36021         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36022
36023 2010-03-28  Bruno Haible  <bruno@clisp.org>
36024
36025         Remove unused GNULIB_XYZ macro definitions.
36026         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36027         invocation.
36028
36029 2010-03-28  Bruno Haible  <bruno@clisp.org>
36030
36031         Mark privileged tests modules.
36032         * modules/idpriv-drop-tests (Status): New section.
36033         * modules/idpriv-droptemp-tests (Status): New section.
36034
36035 2010-03-28  Bruno Haible  <bruno@clisp.org>
36036
36037         Split C++ tests into separate tests modules.
36038         * modules/dirent-c++-tests: New file, extracted from
36039         modules/dirent-tests.
36040         * modules/dirent-tests: Depend on it.
36041         * modules/fcntl-h-c++-tests: New file, extracted from
36042         modules/fcntl-h-tests.
36043         * modules/fcntl-h-tests: Depend on it.
36044         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36045         * modules/glob-tests: Depend on it.
36046         * modules/iconv-h-c++-tests: New file, extracted from
36047         modules/iconv-h-tests.
36048         * modules/iconv-h-tests: Depend on it.
36049         * modules/langinfo-c++-tests: New file, extracted from
36050         modules/langinfo-tests.
36051         * modules/langinfo-tests: Depend on it.
36052         * modules/locale-c++-tests: New file, extracted from
36053         modules/locale-tests.
36054         * modules/locale-tests: Depend on it.
36055         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36056         * modules/math-tests: Depend on it.
36057         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36058         * modules/pty-tests: Depend on it.
36059         * modules/search-c++-tests: New file, extracted from
36060         modules/search-tests.
36061         * modules/search-tests: Depend on it.
36062         * modules/signal-c++-tests: New file, extracted from
36063         modules/signal-tests.
36064         * modules/signal-tests: Depend on it.
36065         * modules/spawn-c++-tests: New file, extracted from
36066         modules/spawn-tests.
36067         * modules/spawn-tests: Depend on it.
36068         * modules/stdio-c++-tests: New file, extracted from
36069         modules/stdio-tests.
36070         * modules/stdio-tests: Depend on it.
36071         * modules/stdlib-c++-tests: New file, extracted from
36072         modules/stdlib-tests.
36073         * modules/stdlib-tests: Depend on it.
36074         * modules/string-c++-tests: New file, extracted from
36075         modules/string-tests.
36076         * modules/string-tests: Depend on it.
36077         * modules/sys_ioctl-c++-tests: New file, extracted from
36078         modules/sys_ioctl-tests.
36079         * modules/sys_ioctl-tests: Depend on it.
36080         * modules/sys_select-c++-tests: New file, extracted from
36081         modules/sys_select-tests.
36082         * modules/sys_select-tests: Depend on it.
36083         * modules/sys_socket-c++-tests: New file, extracted from
36084         modules/sys_socket-tests.
36085         * modules/sys_socket-tests: Depend on it.
36086         * modules/sys_stat-c++-tests: New file, extracted from
36087         modules/sys_stat-tests.
36088         * modules/sys_stat-tests: Depend on it.
36089         * modules/sys_time-c++-tests: New file, extracted from
36090         modules/sys_time-tests.
36091         * modules/sys_time-tests: Depend on it.
36092         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36093         * modules/time-tests: Depend on it.
36094         * modules/unistd-c++-tests: New file, extracted from
36095         modules/unistd-tests.
36096         * modules/unistd-tests: Depend on it.
36097         * modules/wchar-c++-tests: New file, extracted from
36098         modules/wchar-tests.
36099         * modules/wchar-tests: Depend on it.
36100         * modules/wctype-c++-tests: New file, extracted from
36101         modules/wctype-tests.
36102         * modules/wctype-tests: Depend on it.
36103         Reported by Simon Josefsson.
36104
36105 2010-03-28  Bruno Haible  <bruno@clisp.org>
36106
36107         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36108         * gnulib-tool (func_exists_module): New function, extracted from
36109         func_verify_module.
36110         (func_verify_module): Use it.
36111         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36112         'foo' only if 'foo' exists.
36113         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36114         module.
36115
36116 2010-03-28  Bruno Haible  <bruno@clisp.org>
36117
36118         gnulib-tool: Add support for special categories of tests.
36119         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36120         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36121         (func_usage): Document them.
36122         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36123         inc_unportable_tests, inc_all_tests): New variables.
36124         (func_acceptable): Consider these variables.
36125         (func_modules_transitive_closure): Make it work when the 'Status' field
36126         consists of multiple words.
36127         (func_import): Store and restore the values of inc_cxx_tests,
36128         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36129         inc_all_tests in gnulib-comp.m4.
36130         (func_create_testdir): Set inc_all_tests to true.
36131         * doc/gnulib.texi (Extra tests modules): New section.
36132         Suggested by Jim Meyering.
36133
36134 2010-03-28  Bruno Haible  <bruno@clisp.org>
36135
36136         ansi-c++-opt: Allow turning off the C++ build by default.
36137         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36138         gl_CXX_CHOICE_DEFAULT_NO is defined.
36139         Requested by Eric Blake.
36140
36141 2010-03-28  Bruno Haible  <bruno@clisp.org>
36142
36143         unistd: Avoid #define replacements in C++ mode.
36144         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36145         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36146         setsockopt, shutdown, select): In C++, attach a warning to the function
36147         if possible, rather than #defining the symbol to a dysfunctional alias.
36148         Reported by John W. Eaton <jwe@gnu.org>.
36149
36150 2010-03-28  Bruno Haible  <bruno@clisp.org>
36151
36152         Fix link errors on mingw.
36153         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36154         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36155         $(LIBSOCKET).
36156         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36157         $(LIBSOCKET).
36158
36159 2010-03-28  Bruno Haible  <bruno@clisp.org>
36160             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36161
36162         lib-ignore: Determine different options for different compilers.
36163         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36164         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36165         Add comments.
36166         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36167         * NEWS: Mention the change.
36168
36169 2010-03-27  Bruno Haible  <bruno@clisp.org>
36170
36171         Remove unused GNULIB_XYZ macro definitions.
36172         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36173         * modules/fseek (configure.ac): Likewise.
36174         * modules/ioctl (configure.ac): Likewise.
36175         * modules/open (configure.ac): Likewise.
36176         * modules/stdlib-safer (configure.ac): Likewise.
36177
36178 2010-03-27  Bruno Haible  <bruno@clisp.org>
36179
36180         Add a remark about certain modules.
36181         * modules/malloc (Comment): New section.
36182         * modules/realloc (Comment): Likewise.
36183         * modules/sigpipe (Comment): Likewise.
36184
36185 2010-03-27  Bruno Haible  <bruno@clisp.org>
36186
36187         Resolve conflict between the two kinds of module indicators.
36188         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36189         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36190         * modules/canonicalize (configure.ac): Invoke
36191         gl_MODULE_INDICATOR_FOR_TESTS.
36192         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36193         GNULIB_XYZ.
36194         * tests/test-dirent-c++.cc: Likewise.
36195         * tests/test-dirent-safer.c: Likewise.
36196         * tests/test-dup2.c: Likewise.
36197         * tests/test-fchdir.c: Likewise.
36198         * tests/test-fcntl-h-c++.cc: Likewise.
36199         * tests/test-getopt.c: Likewise.
36200         * tests/test-getopt.h: Likewise.
36201         * tests/test-langinfo-c++.cc: Likewise.
36202         * tests/test-locale-c++.cc: Likewise.
36203         * tests/test-math-c++.cc: Likewise.
36204         * tests/test-pty-c++.cc: Likewise.
36205         * tests/test-search-c++.cc: Likewise.
36206         * tests/test-signal-c++.cc: Likewise.
36207         * tests/test-spawn-c++.cc: Likewise.
36208         * tests/test-stdio-c++.cc: Likewise.
36209         * tests/test-stdlib-c++.cc: Likewise.
36210         * tests/test-string-c++.cc: Likewise.
36211         * tests/test-sys_ioctl-c++.cc: Likewise.
36212         * tests/test-sys_select-c++.cc: Likewise.
36213         * tests/test-sys_socket-c++.cc: Likewise.
36214         * tests/test-sys_stat-c++.cc: Likewise.
36215         * tests/test-sys_time-c++.cc: Likewise.
36216         * tests/test-time-c++.cc: Likewise.
36217         * tests/test-unistd-c++.cc: Likewise.
36218         * tests/test-wchar-c++.cc: Likewise.
36219         * tests/uninorm/test-u8-nfc.c: Likewise.
36220         * tests/uninorm/test-u8-nfd.c: Likewise.
36221         * tests/uninorm/test-u8-nfkc.c: Likewise.
36222         * tests/uninorm/test-u8-nfkd.c: Likewise.
36223         * tests/uninorm/test-u16-nfc.c: Likewise.
36224         * tests/uninorm/test-u16-nfd.c: Likewise.
36225         * tests/uninorm/test-u16-nfkc.c: Likewise.
36226         * tests/uninorm/test-u16-nfkd.c: Likewise.
36227         * tests/uninorm/test-u32-nfc.c: Likewise.
36228         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36229         * tests/uninorm/test-u32-nfd.c: Likewise.
36230         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36231         * tests/uninorm/test-u32-nfkc.c: Likewise.
36232         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36233         * tests/uninorm/test-u32-nfkd.c: Likewise.
36234         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36235         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36236
36237 2010-03-27  Bruno Haible  <bruno@clisp.org>
36238
36239         Distinguish two kinds of module indicators.
36240         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36241         gl_MODULE_INDICATOR.
36242         (gl_MODULE_INDICATOR): New macro.
36243         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36244         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36245         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36246         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36247         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36248         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36249         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36250         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36251         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36252         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36253         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36254         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36256         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36257         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36258         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36259         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36260         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36261         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36262         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36263         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36264         * modules/cloexec (configure.ac): Likewise.
36265         * modules/getopt-gnu (configure.ac): Likewise.
36266         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36267         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36268         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36269         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36270
36271 2010-03-27  Bruno Haible  <bruno@clisp.org>
36272
36273         New module description field 'Comment'.
36274         * gnulib-tool: New option --extract-comment.
36275         (func_usage): Document it.
36276         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36277         (func_get_comment): New function.
36278         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36279
36280 2010-03-27  Bruno Haible  <bruno@clisp.org>
36281
36282         Addendum to 2010-02-07 commit.
36283         * gnulib-tool (func_usage): Document --extract-applicability option.
36284
36285 2010-03-27  Bruno Haible  <bruno@clisp.org>
36286
36287         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36288         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36289         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36290         rather than link errors.
36291
36292 2010-03-27  Bruno Haible  <bruno@clisp.org>
36293
36294         Avoid side effects from tests-related modules on the compilation of lib.
36295         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36296         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36297         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36298         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36299         macro.
36300         (func_import): Define a witness macro. Assign it a value that depends
36301         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36302         tests-related modules.
36303         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36304         Reported by Jim Meyering.
36305
36306 2010-03-27  Bruno Haible  <bruno@clisp.org>
36307
36308         Factorize common .m4 code.
36309         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36310         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36311         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36312         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36313         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36314         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36315         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36316         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36317         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36318         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36319         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36320         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36321         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36322         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36323         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36324         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36325         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36326         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36328         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36329         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36330         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36331         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36332         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36333         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36334         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36335         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36336         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36337         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36338         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36339         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36340         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36341
36342 2010-03-27  Bruno Haible  <bruno@clisp.org>
36343
36344         Fix a compilation error on Cygwin with g++ >= 4.3.
36345         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36346         if it is undefined or if we alias it to chmod.
36347         (lstat): Don't warn about the use of this function if it is undefined
36348         or if we alias it to stat.
36349         Reported by Simon Josefsson.
36350
36351 2010-03-27  Bruno Haible  <bruno@clisp.org>
36352
36353         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36354         * modules/getlogin (configure.ac): Update.
36355
36356         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36357         * modules/getlogin_r (configure.ac): Update.
36358
36359         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36360         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36361         * modules/inet_ntop (configure.ac): Update.
36362
36363         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36364         * modules/inet_pton (configure.ac): Update.
36365
36366         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36367         * modules/mbslen (configure.ac): Update.
36368
36369         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36370         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36371         * modules/forkpty (configure.ac): Update.
36372         * modules/openpty (configure.ac): Update.
36373
36374 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36375
36376         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36377         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36378
36379 2010-03-25  Eric Blake  <eblake@redhat.com>
36380
36381         maint: use pragma consistently across replacement headers
36382         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36383         * lib/dirent.in.h (system_header): Likewise.
36384         * lib/errno.in.h (system_header): Likewise.
36385         * lib/float.in.h (system_header): Likewise.
36386         * lib/getopt.in.h (system_header): Likewise.
36387         * lib/iconv.in.h (system_header): Likewise.
36388         * lib/inttypes.in.h (system_header): Likewise.
36389         * lib/langinfo.in.h (system_header): Likewise.
36390         * lib/locale.in.h (system_header): Likewise.
36391         * lib/math.in.h (system_header): Likewise.
36392         * lib/netdb.in.h (system_header): Likewise.
36393         * lib/netinet_in.in.h (system_header): Likewise.
36394         * lib/pty.in.h (system_header): Likewise.
36395         * lib/sched.in.h (system_header): Likewise.
36396         * lib/se-selinux.in.h (system_header): Likewise.
36397         * lib/search.in.h (system_header): Likewise.
36398         * lib/spawn.in.h (system_header): Likewise.
36399         * lib/stdarg.in.h (system_header): Likewise.
36400         * lib/stdint.in.h (system_header): Likewise.
36401         * lib/string.in.h (system_header): Likewise.
36402         * lib/strings.in.h (system_header): Likewise.
36403         * lib/sys_file.in.h (system_header): Likewise.
36404         * lib/sys_ioctl.in.h (system_header): Likewise.
36405         * lib/sys_socket.in.h (system_header): Likewise.
36406         * lib/sys_times.in.h (system_header): Likewise.
36407         * lib/sys_utsname.in.h (system_header): Likewise.
36408         * lib/sys_wait.in.h (system_header): Likewise.
36409         * lib/sysexits.in.h (system_header): Likewise.
36410         * lib/unistd.in.h (system_header): Likewise.
36411         * lib/wctype.in.h (system_header): Likewise.
36412
36413         arpa/inet: fix mingw compilation warning
36414         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36415         Reported by Matthew Bolte.
36416
36417 2010-03-25  Bruno Haible  <bruno@clisp.org>
36418
36419         Avoid collision between gnulib wrapper and libintl wrapper.
36420         * lib/printf.c (printf): Don't define if a printf wrapper is already
36421         defined in intl/printf.c.
36422         Reported by Michel Boaventura <michel@michelboaventura.com>.
36423
36424 2010-03-25  Bruno Haible  <bruno@clisp.org>
36425
36426         Use ANSI C.
36427         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36428
36429 2010-03-25  Bruno Haible  <bruno@clisp.org>
36430
36431         Minor formatting changes.
36432         * lib/acosl.c: Insert space before function argument list.
36433         * lib/argz.c: Likewise.
36434         * lib/asinl.c: Likewise.
36435         * lib/expl.c: Likewise.
36436         * lib/gen-uni-tables.c: Likewise.
36437         * lib/gettext.h: Likewise.
36438         * lib/glthread/lock.h: Likewise.
36439         * lib/tanl.c: Likewise.
36440         * lib/uniname/uniname.c: Likewise.
36441         * tests/test-idpriv-drop.c: Likewise.
36442         * tests/test-idpriv-droptemp.c: Likewise.
36443         * tests/test-lock.c: Likewise.
36444         * tests/test-tls.c: Likewise.
36445         * lib/argp-help.c: Insert space before function-like macro argument
36446         list.
36447         * lib/memcmp.c: Likewise.
36448         * tests/test-base64.c: Likewise.
36449         * lib/localename.c: Insert space before sizeof's argument list.
36450         * lib/safe-alloc.h: Likewise.
36451         * lib/file-set.h: Insert space before macro argument list.
36452         * tests/test-argp.c: Likewise.
36453         * lib/argp-namefrob.h: Insert space before function parameter list.
36454         * lib/getaddrinfo.c: Likewise.
36455         * lib/netdb.in.h: Likewise.
36456         * lib/parse-duration.h: Likewise.
36457         * lib/parse-duration.c: Likewise.
36458         * lib/poll.c: Likewise.
36459         * lib/select.c: Likewise.
36460         * lib/trim.h: Likewise.
36461         * tests/test-usleep.c: Likewise.
36462         * lib/ldexpl.c: Insert space before function parameter list and before
36463         function argument list.
36464         * lib/logl.c: Likewise.
36465         * lib/sqrtl.c: Likewise.
36466         * lib/trim.c: Likewise.
36467         * lib/cosl.c: Use GNU style indentation. Insert space before function
36468         argument list.
36469         * lib/sinl.c: Likewise.
36470         * lib/tsearch.c: Insert space after 'for'.
36471         Reported by Jim Meyering.
36472
36473 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36474
36475         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36476         config header before grepping, as it's not present before
36477         autoreconf/configure are run.  Reported by Simon Josefsson.
36478
36479 2010-03-23  Bruno Haible  <bruno@clisp.org>
36480
36481         pt_chown: Make it work with automake < 1.11.
36482         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36483         Reported by Simon Josefsson.
36484
36485 2010-03-23  Bruno Haible  <bruno@clisp.org>
36486
36487         pt_chown: Don't depend on GPLed modules.
36488         * lib/pt_chown.c: Don't include idpriv.h.
36489         (main): Don't drop privileges.
36490         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36491         Reported by Simon Josefsson.
36492
36493 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36494
36495         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36496         suggestions from karl@freefriends.org (Karl Berry).
36497
36498 2010-03-22  Eric Blake  <eblake@redhat.com>
36499
36500         gethostname: further tweaks
36501         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36502         are overriding gethostname.
36503         Suggested by Bruno Haible.
36504
36505 2010-03-21  Bruno Haible  <bruno@clisp.org>
36506
36507         Fix comments.
36508         * lib/forkpty.c (rpl_forkpty): Fix comment.
36509         * lib/openpty.c (rpl_openpty): Likewise.
36510         Reported by Eric Blake.
36511
36512 2010-03-22  Eric Blake  <eblake@redhat.com>
36513
36514         gethostname: fix build on mingw
36515         * lib/unistd.in.h (includes): Work around fact that mingw
36516         <winsock2.h> re-includes <unistd.h>, by avoiding any
36517         redeclarations if we are being included by <winsock2.h>.
36518         Reported by Matthias Bolte.
36519
36520 2010-03-21  Bruno Haible  <bruno@clisp.org>
36521
36522         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36523         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36524         modifications.
36525         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36526         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36527         provide the replacement.
36528         * modules/forkpty (Depends-on): Add openpty, login_tty.
36529         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36530         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36531         * doc/glibc-functions/forkpty.texi: More supported platforms.
36532         * config/srclist.txt: Add forkpty.c (commented).
36533
36534 2010-03-21  Bruno Haible  <bruno@clisp.org>
36535
36536         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36537         (Makefile.am): Verify that PTY_LIB is defined.
36538
36539         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36540
36541 2010-03-21  Bruno Haible  <bruno@clisp.org>
36542
36543         Tests for module 'login_tty'.
36544         * modules/login_tty-tests: New file.
36545         * tests/test-login_tty.c: New file.
36546
36547         New module 'login_tty'.
36548         * lib/login_tty.c: New file.
36549         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36550         * modules/login_tty: New file.
36551         * doc/glibc-functions/login_tty.texi: Mention the new module.
36552
36553 2010-03-21  Bruno Haible  <bruno@clisp.org>
36554
36555         login_tty: Documentation.
36556         * doc/glibc-functions/login_tty.texi: New file.
36557         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36558
36559 2010-03-21  Bruno Haible  <bruno@clisp.org>
36560
36561         pty: Consistent macro naming.
36562         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36563         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36564         * modules/pty (configure.ac): Update.
36565
36566 2010-03-21  Bruno Haible  <bruno@clisp.org>
36567
36568         Tests for openpty: Make stricter.
36569         * tests/test-openpty.c (main): Add test of canonical processing and
36570         erase.
36571         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36572
36573         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36574         * lib/openpty.c (openpty): New replacement function.
36575         * lib/pty.in.h: Include <termios.h>.
36576         (openpty): Update declaration. Add comments.
36577         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36578         is not declared, arrange to provide the replacement. Check for _getpty
36579         and posix_openpt.
36580         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36581         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36582         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36583         * modules/pty-tests (test_pty_c___LDADD): New variable.
36584         * doc/glibc-functions/openpty.texi: More supported platforms.
36585
36586 2010-03-21  Bruno Haible  <bruno@clisp.org>
36587
36588         setenv: Tweaks.
36589         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36590         the test program.
36591         * doc/posix-functions/setenv.texi: Update platforms list.
36592
36593 2010-03-21  Bruno Haible  <bruno@clisp.org>
36594
36595         New module 'unlockpt'.
36596         * lib/unlockpt.c: New file, from glibc with modifications.
36597         * m4/unlockpt.m4: New file.
36598         * modules/unlockpt: New file.
36599         * lib/stdlib.in.h (unlockpt): New declaration.
36600         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36601         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36602         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36603         HAVE_UNLOCKPT.
36604         * doc/posix-functions/unlockpt.texi: Mention the new module.
36605         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36606         * config/srclist.txt: Add unlockpt.c (commented).
36607
36608 2010-03-21  Jim Meyering  <meyering@redhat.com>
36609
36610         maint.mk: prohibit inclusion of "intprops.h" without use
36611         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36612
36613 2010-03-21  Bruno Haible  <bruno@clisp.org>
36614
36615         New module 'grantpt'.
36616         * lib/grantpt.c: New file, from glibc with modifications.
36617         * m4/grantpt.m4: New file.
36618         * modules/grantpt: New file.
36619         * lib/stdlib.in.h (grantpt): New declaration.
36620         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36621         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36622         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36623         HAVE_GRANTPT.
36624         * doc/posix-functions/grantpt.texi: Mention the new module.
36625         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36626         * config/srclist.txt: Add grantpt.c (commented).
36627
36628 2010-03-21  Bruno Haible  <bruno@clisp.org>
36629
36630         New module 'pt_chown'.
36631         * lib/pt_chown.c: New file, from glibc with modifications.
36632         * lib/pty-private.h: New file, from glibc with modifications.
36633         * modules/pt_chown: New file.
36634         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36635
36636 2010-03-21  Bruno Haible  <bruno@clisp.org>
36637
36638         Tests for module 'ptsname'.
36639         * modules/ptsname-tests: New file.
36640         * tests/test-ptsname.c: New file.
36641
36642         New module 'ptsname'.
36643         * lib/ptsname.c: New file, from glibc with modifications.
36644         * m4/ptsname.m4: New file.
36645         * modules/ptsname: New file.
36646         * lib/stdlib.in.h (ptsname): New declaration.
36647         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36648         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36649         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36650         HAVE_PTSNAME.
36651         * doc/posix-functions/ptsname.texi: Mention the new module.
36652         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36653         * config/srclist.txt: Add ptsname.c (commented).
36654
36655 2010-03-21  Bruno Haible  <bruno@clisp.org>
36656
36657         Tests for module 'ttyname_r'.
36658         * modules/ttyname_r-tests: New file.
36659         * tests/test-ttyname_r.c: New file.
36660
36661         New module 'ttyname_r'.
36662         * lib/ttyname_r.c: New file.
36663         * m4/ttyname_r.m4: New file.
36664         * modules/ttyname_r: New file.
36665         * lib/unistd.in.h (ttyname_r): New declaration.
36666         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36667         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36668         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36669         HAVE_TTYNAME_R.
36670         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36671         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36672
36673 2010-03-20  Bruno Haible  <bruno@clisp.org>
36674
36675         signal: Undefine macro definitions in C++ mode.
36676         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36677         sigfillset): Undefine macro definitions from the system header in C++
36678         mode.
36679         Reported by John W. Eaton <jwe@gnu.org>.
36680
36681 2010-03-20  Bruno Haible  <bruno@clisp.org>
36682
36683         Ensure no #include statements inside extern "C" { ... }.
36684         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36685         contain #include statements.
36686         * lib/time.in.h: Likewise.
36687
36688 2010-03-20  Bruno Haible  <bruno@clisp.org>
36689
36690         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36691         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36692         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36693         Reported by John W. Eaton <jwe@gnu.org>.
36694
36695 2010-03-20  Bruno Haible  <bruno@clisp.org>
36696
36697         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36698         Reported by Jim Meyering.
36699
36700 2010-03-20  Bruno Haible  <bruno@clisp.org>
36701
36702         pipe: Set errno upon failure.
36703         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36704         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36705         errno value in error message.
36706
36707 2010-03-20  Bruno Haible  <bruno@clisp.org>
36708             Jim Meyering  <meyering@redhat.com>
36709
36710         lchown: Avoid "unused variable" warning.
36711         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36712
36713 2010-03-20  Bruno Haible  <bruno@clisp.org>
36714
36715         Work around unlink() bug on MacOS X 10.5.6.
36716         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36717         attempting to unlink a parent directory.
36718         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36719         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36720         activate for the replacement function.
36721         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36722
36723 2010-03-20  Bruno Haible  <bruno@clisp.org>
36724
36725         Fix link errors on Solaris 8.
36726         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36727         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36728
36729 2010-03-19  Jim Meyering  <meyering@redhat.com>
36730
36731         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36732         The _LIBC implementation of build_range_exp correctly honors the
36733         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36734         However, the non-_LIBC implementation would ignore that syntax-bit
36735         flag and return REG_ERANGE unconditionally.
36736         This change makes it honor that flag.
36737         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36738         Make two pointer parameters "const".
36739         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36740         (parse_bracket_exp): Update caller.
36741
36742         regex.m4: correct the reversed range endpoint ([b-a]) test
36743         * m4/regex.m4: When requiring that [b-a] evoke failure,
36744         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36745         test pass once again for x86-based systems.
36746
36747 2010-03-19  Bruno Haible  <bruno@clisp.org>
36748
36749         scandir: Fix link error on Solaris 8.
36750         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36751         macros.
36752
36753 2010-03-19  Bruno Haible  <bruno@clisp.org>
36754
36755         getusershell: Fix documentation.
36756         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36757         module.
36758         * doc/glibc-functions/setusershell.texi: Likewise.
36759
36760         getusershell: Provide declaration, missing on Solaris 9.
36761         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36762         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36763         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36764         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36766         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36767         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36768         HAVE_GETUSERSHELL.
36769         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36770
36771 2010-03-19  Bruno Haible  <bruno@clisp.org>
36772
36773         wctype: Provide iswblank function.
36774         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36775         exists and is fine.
36776         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36777         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36778         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36779         * doc/posix-functions/iswblank.texi: Update.
36780
36781 2010-03-19  Bruno Haible  <bruno@clisp.org>
36782
36783         Tests of module 'pty' in C++ mode.
36784         * modules/pty-tests: New file.
36785         * tests/test-pty-c++.cc: New file.
36786         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36787
36788 2010-03-19  Eric Blake  <eblake@redhat.com>
36789
36790         logb: fix documentation
36791         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36792         1.5 declaration bug.
36793
36794         forkpty, openpty: prefer glibc's const-safe prototype
36795         * lib/forkpty.c (rpl_forkpty): New file.
36796         * lib/openpty.c (rpl_openpty): Likewise.
36797         * modules/forkpty (Files): Distribute it.
36798         * modules/openpty (Files): Likewise.
36799         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36800         check...
36801         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36802         replacement for for non-const BSD signature.
36803         * modules/pty (Makefile.am): Substitute witnesses.
36804         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36805         * tests/test-forkpty.c: Update signature check.
36806         * tests/test-openpty.c: Likewise.
36807         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36808         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36809
36810         forkpty, openpty: split functions into new modules
36811         * modules/pty (Makefile.am): Substitute new witnesses.
36812         (Libraries): Move library detection...
36813         * modules/forkpty: ...into new module.
36814         * modules/openpty: Another new module.
36815         * modules/pty-tests: Rename and split...
36816         * modules/forkpty-tests: ...to this...
36817         * modules/openpty-tests: ...and this.
36818         * tests/test-pty.c: Rename and split...
36819         * tests/test-forkpty.c: ...to this...
36820         * tests/test-openpty.c: ...and this.
36821         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36822         (gl_PTY): Split library searching...
36823         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36824         (gl_FORKPTY, gl_OPENPTY): New macros.
36825         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36826         * NEWS: Mention the split.
36827         * MODULES.html.sh (Misc): Document the modules.
36828         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36829         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36830
36831         pty: improve replacement header
36832         * lib/pty.in.h: New file.
36833         * modules/pty (Files): Ship it.
36834         (Makefile.am): Always build replacement.
36835         * m4/pty.m4: Rename...
36836         * m4/pty_h.m4: ...to this.
36837         (gl_PTY): Modernize setting of witness macros; update check of
36838         forkpty to take proper advantage of cache.
36839         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36840
36841         getopt: avoid compiler warning
36842         * lib/getopt.c (attribute_hidden): Remove unused macro.
36843
36844 2010-03-18  Bruno Haible  <bruno@clisp.org>
36845
36846         Fix link errors on Solaris 8.
36847         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36848         * modules/search-tests (test_search_c___LDADD): Likewise.
36849         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36850         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36851         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36852         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36853         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36854         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36855         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36856
36857 2010-03-18  Bruno Haible  <bruno@clisp.org>
36858
36859         Fix bug introduced on 2010-03-14.
36860         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36861         (gl_SPAWN_H): Require it.
36862         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
36863         Reported by Simon Josefsson.
36864
36865 2010-03-18  Bruno Haible  <bruno@clisp.org>
36866
36867         Fix typo introduced on 2009-12-31.
36868         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
36869         posix_spawn_file_actions_adddup2.
36870
36871 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
36872         and Eric Blake  <eblake@redhat.com>
36873
36874         test-vc-list-files-git: make more robust
36875         * tests/test-vc-list-files-git.sh: Unset problematic environment
36876         variables.  Chain commands together.
36877
36878 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
36879
36880         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
36881         `AC_CHECK_DECL' invocation.
36882
36883 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
36884
36885         * lib/inttostr.c (inttostr): Make sure the invocation of verify
36886         appears before executable statements. Suggested by Petr Sumbera
36887         <Petr.Sumbera@Sun.COM>.
36888
36889 2010-03-14  Bruno Haible  <bruno@clisp.org>
36890
36891         * tests/test-flock.c (test_exclusive): Comment out a test that causes
36892         portability problems. Instead use a simpler test.
36893         (main): Check that invalid arguments are rejected only on Linux.
36894
36895 2010-03-14  Bruno Haible  <bruno@clisp.org>
36896
36897         Fix bug introduced on 2009-12-31.
36898         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36899         gl_PREREQ_SYS_H_WINSOCK2 always.
36900         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
36901         SYS_SOCKET_H variable.
36902         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
36903         Update comments.
36904         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
36905         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36906         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36907         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36908         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
36909
36910 2010-03-14  Bruno Haible  <bruno@clisp.org>
36911
36912         Fix values returned by sinl, cosl.
36913         * lib/trigl.h: Add specification comments.
36914         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36915         that combines the values from the precomputed table with the values of
36916         the Chebyshev polynomials.
36917
36918 2010-03-14  Bruno Haible  <bruno@clisp.org>
36919
36920         Fix compilation error when modules 'posix_spawn[p]' are not used.
36921         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36922         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36923
36924 2010-03-14  Bruno Haible  <bruno@clisp.org>
36925
36926         Fix compilation error on mingw when module 'time_r' is not used.
36927         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36928         is 1.
36929         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36930         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36931         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36932         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36933
36934 2010-03-14  Bruno Haible  <bruno@clisp.org>
36935
36936         Fix compilation error with Sun C.
36937         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36938         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36939         instead of GCC specific ULONG_LONG_MAX.
36940         * lib/xstrtoll.c: Likewise.
36941         * lib/xstrtoull.c: Likewise.
36942
36943 2010-03-13  Bruno Haible  <bruno@clisp.org>
36944
36945         Allow the user to disable C++ code and tests.
36946         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36947         (gl_PROG_ANSI_CXX): Require it.
36948
36949 2010-03-13  Bruno Haible  <bruno@clisp.org>
36950
36951         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36952         cases.
36953
36954 2010-03-13  Bruno Haible  <bruno@clisp.org>
36955
36956         Test that gnulib does not break the standard C++ headers.
36957         * tests/test-locale-c++2.cc: New file.
36958         * modules/locale-tests (Files): Add it.
36959         (Makefile.am): Compile it for test-locale-c++.
36960         * tests/test-math-c++2.cc: New file.
36961         * modules/math-tests (Files): Add it.
36962         (Makefile.am): Compile it for test-math-c++.
36963         * tests/test-signal-c++2.cc: New file.
36964         * modules/signal-tests (Files): Add it.
36965         (Makefile.am): Compile it for test-signal-c++.
36966         * tests/test-stdio-c++2.cc: New file.
36967         * modules/stdio-tests (Files): Add it.
36968         (Makefile.am): Compile it for test-stdio-c++.
36969         * tests/test-stdlib-c++2.cc: New file.
36970         * modules/stdlib-tests (Files): Add it.
36971         (Makefile.am): Compile it for test-stdlib-c++.
36972         * tests/test-string-c++2.cc: New file.
36973         * modules/string-tests (Files): Add it.
36974         (Makefile.am): Compile it for test-string-c++.
36975         * tests/test-time-c++2.cc: New file.
36976         * modules/time-tests (Files): Add it.
36977         (Makefile.am): Compile it for test-time-c++.
36978         Reported by John W. Eaton <jwe@gnu.org>.
36979
36980 2010-03-13  Bruno Haible  <bruno@clisp.org>
36981
36982         * gnulib-tool (func_usage): Clarify which options are available for
36983         --create-testdir and --create-megatestdir.
36984
36985 2010-03-13  Bruno Haible  <bruno@clisp.org>
36986
36987         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36988         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36989         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36990         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36991         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36992         when appropriate.
36993         Reported by Jim Meyering.
36994
36995 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36996
36997         * gnulib-tool (func_import): Explain origin of code.
36998
36999 2010-03-12  Bruno Haible  <bruno@clisp.org>
37000
37001         Fix problem with automake's definition of CXXLINK.
37002         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37003         Reported by Simon Josefsson and Ludovic Courtès.
37004
37005 2010-03-12  Bruno Haible  <bruno@clisp.org>
37006
37007         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37008         stable releases.
37009
37010 2010-03-11  Bruno Haible  <bruno@clisp.org>
37011
37012         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37013         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37014         whether the system provides one variant or multiple variants of the
37015         function.
37016         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37017         C++ compilers.
37018         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37019         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37020         Reported by Jim Meyering.
37021
37022 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37023
37024         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37025
37026 2010-03-08  Bruno Haible  <bruno@clisp.org>
37027
37028         gnulib-tool: Add support for --libtool in --create-testdir.
37029         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37030         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37031
37032 2010-03-08  Eric Blake  <eblake@redhat.com>
37033
37034         gnulib-tool.texi: mention possibility of git submodule
37035         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37036         submodules.
37037         * doc/.gitignore: Ignore another generated file.
37038
37039 2010-03-08  Karl Berry  <karl@gnu.org>
37040
37041         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37042         of committing gnulib files while skipping others.
37043
37044 2010-03-07  Bruno Haible  <bruno@clisp.org>
37045
37046         Tests of module 'wctype' in C++ mode.
37047         * tests/test-wctype-c++.cc: New file.
37048         * modules/wctype-tests (Files): Add it and tests/signature.h.
37049         (Depends-on): Add ansi-c++-opt.
37050         (Makefile.am): Arrange to compile and run test-wctype-c++.
37051
37052         Tests of module 'wchar' in C++ mode.
37053         * tests/test-wchar-c++.cc: New file.
37054         * modules/wchar-tests (Files): Add it and tests/signature.h.
37055         (Depends-on): Add ansi-c++-opt.
37056         (Makefile.am): Arrange to compile and run test-wchar-c++.
37057         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37058         gl_MODULE_INDICATOR.
37059
37060         Tests of module 'unistd' in C++ mode.
37061         * tests/test-unistd-c++.cc: New file.
37062         * modules/unistd-tests (Files): Add it and tests/signature.h.
37063         (Depends-on): Add ansi-c++-opt.
37064         (Makefile.am): Arrange to compile and run test-unistd-c++.
37065         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37066         gl_MODULE_INDICATOR.
37067
37068         Tests of module 'time' in C++ mode.
37069         * tests/test-time-c++.cc: New file.
37070         * modules/time-tests (Files): Add it and tests/signature.h.
37071         (Depends-on): Add ansi-c++-opt.
37072         (Makefile.am): Arrange to compile and run test-time-c++.
37073         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37074
37075         Tests of module 'sys_time' in C++ mode.
37076         * tests/test-sys_time-c++.cc: New file.
37077         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37078         (Depends-on): Add ansi-c++-opt.
37079         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37080         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37081         gl_MODULE_INDICATOR.
37082
37083         Tests of module 'sys_stat' in C++ mode.
37084         * tests/test-sys_stat-c++.cc: New file.
37085         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37086         (Depends-on): Add ansi-c++-opt.
37087         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37088         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37089         gl_MODULE_INDICATOR.
37090
37091         Tests of module 'sys_socket' in C++ mode.
37092         * tests/test-sys_socket-c++.cc: New file.
37093         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37094         (Depends-on): Add ansi-c++-opt.
37095         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37096         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37097         gl_MODULE_INDICATOR.
37098
37099         Tests of module 'sys_select' in C++ mode.
37100         * tests/test-sys_select-c++.cc: New file.
37101         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37102         (Depends-on): Add ansi-c++-opt.
37103         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37104         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37105         gl_MODULE_INDICATOR.
37106
37107         Tests of module 'sys_ioctl' in C++ mode.
37108         * tests/test-sys_ioctl-c++.cc: New file.
37109         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37110         (Depends-on): Add ansi-c++-opt.
37111         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37112         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37113         gl_MODULE_INDICATOR.
37114
37115         Tests of module 'string' in C++ mode.
37116         * tests/test-string-c++.cc: New file.
37117         * modules/string-tests (Files): Add it and tests/signature.h.
37118         (Depends-on): Add ansi-c++-opt.
37119         (Makefile.am): Arrange to compile and run test-string-c++.
37120         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37121         gl_MODULE_INDICATOR.
37122
37123         Tests of module 'stdlib' in C++ mode.
37124         * tests/test-stdlib-c++.cc: New file.
37125         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37126         (Depends-on): Add ansi-c++-opt.
37127         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37128         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37129         gl_MODULE_INDICATOR.
37130
37131         Tests of module 'stdio' in C++ mode.
37132         * tests/test-stdio-c++.cc: New file.
37133         * modules/stdio-tests (Files): Add it and tests/signature.h.
37134         (Depends-on): Add ansi-c++-opt.
37135         (Makefile.am): Arrange to compile and run test-stdio-c++.
37136         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37137         gl_MODULE_INDICATOR.
37138
37139         Tests of module 'spawn' in C++ mode.
37140         * tests/test-spawn-c++.cc: New file.
37141         * modules/spawn-tests (Files): Add it and tests/signature.h.
37142         (Depends-on): Add ansi-c++-opt.
37143         (Makefile.am): Arrange to compile and run test-spawn-c++.
37144         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37145         gl_MODULE_INDICATOR.
37146
37147         Tests of module 'signal' in C++ mode.
37148         * tests/test-signal-c++.cc: New file.
37149         * modules/signal-tests (Files): Add it and tests/signature.h.
37150         (Depends-on): Add ansi-c++-opt.
37151         (Makefile.am): Arrange to compile and run test-signal-c++.
37152         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37153         gl_MODULE_INDICATOR.
37154
37155         Tests of module 'search' in C++ mode.
37156         * tests/test-search-c++.cc: New file.
37157         * modules/search-tests (Files): Add it and tests/signature.h.
37158         (Depends-on): Add ansi-c++-opt.
37159         (Makefile.am): Arrange to compile and run test-search-c++.
37160         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37161         gl_MODULE_INDICATOR.
37162
37163         Tests of module 'math' in C++ mode.
37164         * tests/test-math-c++.cc: New file.
37165         * modules/math-tests (Files): Add it and tests/signature.h.
37166         (Depends-on): Add ansi-c++-opt.
37167         (Makefile.am): Arrange to compile and run test-math-c++.
37168         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37169
37170         Tests of module 'locale' in C++ mode.
37171         * tests/test-locale-c++.cc: New file.
37172         * modules/locale-tests (Files): Add it and tests/signature.h.
37173         (Depends-on): Add ansi-c++-opt.
37174         (Makefile.am): Arrange to compile and run test-locale-c++.
37175         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37176         gl_MODULE_INDICATOR.
37177
37178         Tests of module 'langinfo' in C++ mode.
37179         * tests/test-langinfo-c++.cc: New file.
37180         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37181         (Depends-on): Add ansi-c++-opt.
37182         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37183         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37184         gl_MODULE_INDICATOR.
37185
37186         Tests of module 'iconv-h' in C++ mode.
37187         * tests/test-iconv-h-c++.cc: New file.
37188         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37189         (Depends-on): Add ansi-c++-opt.
37190         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37191
37192         Tests of module 'glob' in C++ mode.
37193         * tests/test-glob-c++.cc: New file.
37194         * modules/glob-tests (Files): Add it.
37195         (Depends-on): Add ansi-c++-opt.
37196         (Makefile.am): Arrange to compile and run test-glob-c++.
37197
37198         Tests of module 'fcntl-h' in C++ mode.
37199         * tests/test-fcntl-h-c++.cc: New file.
37200         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37201         (Depends-on): Add ansi-c++-opt.
37202         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37203         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37204         gl_MODULE_INDICATOR.
37205
37206         Tests of module 'dirent' in C++ mode.
37207         * tests/test-dirent-c++.cc: New file.
37208         * modules/dirent-tests (Files): Add it and tests/signature.h.
37209         (Depends-on): Add ansi-c++-opt.
37210         (Makefile.am): Arrange to compile and run test-dirent-c++.
37211         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37212         gl_MODULE_INDICATOR.
37213
37214         New module 'ansi-c++-opt'.
37215         * modules/ansi-c++-opt: New file.
37216         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37217
37218         Document C++ namespace mode.
37219         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37220
37221         wctype: Avoid #define replacements in C++ mode.
37222         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37223         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37224         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37225         In C++, define a namespaced alias symbol.
37226         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37227         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37228         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37229         rule.
37230
37231         wchar: Avoid #define replacements in C++ mode.
37232         * lib/wchar.in.h: Include c++defs.h.
37233         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37234         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37235         symbol.
37236         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37237         * modules/wchar (Depends-on): Add c++defs.
37238         (Makefile.am): Update wchar.h rule.
37239
37240         unistd: Avoid #define replacements in C++ mode.
37241         * lib/unistd.in.h: Include c++defs.h.
37242         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37243         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37244         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37245         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37246         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37247         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37248         symbol.
37249         (environ): Update.
37250         * modules/unistd (Depends-on): Add c++defs.
37251         (Makefile.am): Update unistd.h rule.
37252
37253         time: Avoid #define replacements in C++ mode.
37254         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37255         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37256         define a namespaced alias symbol.
37257         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37258         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37259         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37260         * modules/time (Depends-on): Add c++defs, warn-on-use.
37261         (Makefile.am): Update time.h rule.
37262         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37263         * modules/nanosleep (configure.ac): Likewise.
37264         * modules/strptime (configure.ac): Likewise.
37265         * modules/timegm (configure.ac): Likewise.
37266
37267         sys_time: Avoid #define replacements in C++ mode.
37268         * lib/sys_time.in.h: Include c++defs.h.
37269         (gettimeofday): In C++, define a namespaced alias symbol.
37270         * modules/sys_time (Depends-on): Add c++defs.
37271         (Makefile.am): Update sys/time.h rule.
37272
37273         sys_stat: Avoid #define replacements in C++ mode.
37274         * lib/sys_stat.in.h: Include c++defs.h.
37275         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37276         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37277         namespaced alias symbol.
37278         In C++, define a namespaced alias symbol.
37279         * modules/sys_stat (Depends-on): Add c++defs.
37280         (Makefile.am): Update sys/stat.h rule.
37281
37282         sys_socket: Avoid #define replacements in C++ mode.
37283         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37284         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37285         definitions also when the system has a <sys/socket.h>.
37286         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37287         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37288         In C++, define a namespaced alias symbol.
37289         * modules/sys_socket (Depends-on): Add c++defs.
37290         (Makefile.am): Update sys/socket.h rule.
37291
37292         sys_select: Avoid #define replacements in C++ mode.
37293         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37294         definitions also when the system has a <sys/select.h>.
37295         (select): In C++, define a namespaced alias symbol.
37296         * modules/sys_select (Depends-on): Add c++defs.
37297         (Makefile.am): Update sys/select.h rule.
37298
37299         sys_ioctl: Avoid #define replacements in C++ mode.
37300         * lib/sys_ioctl.in.h: Include c++defs.h.
37301         (ioctl): In C++, define a namespaced alias symbol.
37302         * modules/sys_ioctl (Depends-on): Add c++defs.
37303         (Makefile.am): Update sys/ioctl.h rule.
37304
37305         string: Avoid #define replacements in C++ mode.
37306         * lib/string.in.h: Include c++defs.h.
37307         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37308         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37309         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37310         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37311         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37312         * modules/string (Depends-on): Add c++defs.
37313         (Makefile.am): Update string.h rule.
37314
37315         stdlib: Avoid #define replacements in C++ mode.
37316         * lib/stdlib.in.h: Include c++defs.h.
37317         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37318         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37319         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37320         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37321         symbol.
37322         * modules/stdlib (Depends-on): Add c++defs.
37323         (Makefile.am): Update stdlib.h rule.
37324
37325         stdio: Avoid #define replacements in C++ mode.
37326         * lib/stdio.in.h: Include c++defs.h.
37327         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37328         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37329         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37330         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37331         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37332         namespaced alias symbol.
37333         * modules/stdio (Depends-on): Add c++defs.
37334         (Makefile.am): Update stdio.h rule.
37335
37336         spawn: Avoid #define replacements in C++ mode.
37337         * lib/spawn.in.h: Include c++defs.h.
37338         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37339         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37340         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37341         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37342         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37343         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37344         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37345         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37346         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37347         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37348         In C++, define a namespaced alias symbol.
37349         * modules/spawn (Depends-on): Add c++defs.
37350         (Makefile.am): Update spawn.h rule.
37351
37352         signal: Avoid #define replacements in C++ mode.
37353         * lib/signal.in.h: Include c++defs.h.
37354         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37355         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37356         namespaced alias symbol.
37357         * modules/signal (Depends-on): Add c++defs.
37358         (Makefile.am): Update signal.h rule.
37359
37360         search: Avoid #define replacements in C++ mode.
37361         * lib/search.in.h: Include c++defs.h.
37362         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37363         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37364         symbol.
37365         * modules/search (Depends-on): Add c++defs.
37366         (Makefile.am): Update search.h rule.
37367
37368         math: Avoid #define replacements in C++ mode.
37369         * lib/math.in.h: Include c++defs.h.
37370         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37371         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37372         trunc, truncl): In C++, define a namespaced alias symbol.
37373         * modules/math (Depends-on): Add c++defs.
37374         (Makefile.am): Update math.h rule.
37375
37376         locale: Avoid #define replacements in C++ mode.
37377         * lib/locale.in.h: Include c++defs.h.
37378         (duplocale): In C++, define a namespaced alias symbol.
37379         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37380         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37381         * modules/locale (Depends-on): Add c++defs.
37382         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37383
37384         langinfo: Avoid #define replacements in C++ mode.
37385         * lib/langinfo.in.h: Include c++defs.h.
37386         (nl_langinfo): In C++, define a namespaced alias symbol.
37387         * modules/langinfo (Depends-on): Add c++defs.
37388         (Makefile.am): Update langinfo.h rule.
37389
37390         iconv-h: Avoid #define replacements in C++ mode.
37391         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37392         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37393         symbol.
37394         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37395         whenever iconv is present.
37396         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37397         (Makefile.am): Update iconv.h rule.
37398
37399         glob: Avoid #define replacements in C++ mode.
37400         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37401         (_gl_glob_errfunc_fn): New type.
37402         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37403         symbol.
37404         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37405         (Makefile.am): Update glob.h rule.
37406
37407         fcntl-h: Avoid #define replacements in C++ mode.
37408         * lib/fcntl.in.h: Include c++defs.h.
37409         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37410         * modules/fcntl-h (Depends-on): Add c++defs.
37411         (Makefile.am): Update fcntl.h rule.
37412
37413         dirent: Avoid #define replacements in C++ mode.
37414         * lib/dirent.in.h: Include c++defs.h.
37415         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37416         namespaced alias symbol.
37417         (dirfd): Update declaration.
37418         * modules/dirent (Depends-on): Add c++defs.
37419         (Makefile.am): Update dirent.h rule.
37420
37421         ctype: Make it usable in C++ code.
37422         * lib/ctype.in.h: Include c++defs.h.
37423         (isblank): Declare as extern "C".
37424         * modules/ctype (Depends-on): Add c++defs.
37425         (Makefile.am): Update ctype.h rule.
37426
37427         New module 'c++defs'.
37428         * modules/c++defs: New file.
37429         * build-aux/c++defs.h: New file.
37430         Reported by John W. Eaton <jwe@gnu.org>.
37431
37432 2010-03-07  Bruno Haible  <bruno@clisp.org>
37433
37434         logb: Provide missing declaration for Cygwin.
37435         * lib/math.in.h (logb): New declaration.
37436         * m4/logb.m4: New file.
37437         * modules/logb (Files): Add m4/logb.m4.
37438         (Depends-on): Add math.
37439         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37440         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37442         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37443         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37444
37445 2010-03-07  Bruno Haible  <bruno@clisp.org>
37446
37447         Fix test-cond link error.
37448         * tests/test-cond.c: Include <stdio.h>.
37449
37450 2010-03-07  Bruno Haible  <bruno@clisp.org>
37451
37452         Fix test-dirent-safer link error.
37453         * modules/dirent-safer-tests (Makefile.am): Define
37454         test_dirent_safer_LDADD.
37455
37456 2010-03-07  Bruno Haible  <bruno@clisp.org>
37457
37458         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37459         among default module list.
37460
37461 2010-03-07  Bruno Haible  <bruno@clisp.org>
37462
37463         Fix link error on platforms with GNU libiconv.
37464         * modules/unistr/u8-strcoll-tests (Makefile): Define
37465         test_u8_strcoll_LDADD.
37466         * modules/unistr/u16-strcoll-tests (Makefile): Define
37467         test_u16_strcoll_LDADD.
37468         * modules/unistr/u32-strcoll-tests (Makefile): Define
37469         test_u32_strcoll_LDADD.
37470
37471 2010-03-07  Bruno Haible  <bruno@clisp.org>
37472
37473         Use POSIX declarations for socket functions.
37474         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37475         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37476         rpl_sendto): Change declaration to match POSIX.
37477         * lib/connect.c (rpl_connect): Likewise.
37478         * lib/accept.c (rpl_accept): Likewise.
37479         * lib/bind.c (rpl_bind): Likewise.
37480         * lib/getpeername.c (rpl_getpeername): Likewise.
37481         * lib/getsockname.c (rpl_getsockname): Likewise.
37482         * lib/recv.c (rpl_recv): Likewise.
37483         * lib/send.c (rpl_send): Likewise.
37484         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37485         * lib/sendto.c (rpl_sendto): Likewise.
37486
37487 2010-03-06  Bruno Haible  <bruno@clisp.org>
37488
37489         Clarify access, euidaccess, faccessat.
37490         * doc/posix-functions/faccessat.texi: Mention security problem under
37491         "Other problems", not "Portability problems".
37492         * doc/posix-functions/access.texi: Likewise. Mention a related security
37493         problem.
37494         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37495         * lib/euidaccess.c: Add comments about platforms.
37496         * lib/unistd.in.h (access, euidaccess): Add warnings.
37497
37498 2010-03-07  Bruno Haible  <bruno@clisp.org>
37499
37500         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37501         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37502         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37503         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37504         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37505         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37506         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37507         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37508         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37509         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37510         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37511         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37512         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37513         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37514         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37515         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37516         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37517         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37518         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37519         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37520         Likewise.
37521         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37522         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37523         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37524         Likewise.
37525         * tests/test-spawn.c (main): Make it work when
37526         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37527
37528 2010-03-07  Bruno Haible  <bruno@clisp.org>
37529
37530         Fix incorrect Makefile.am generation in German locale.
37531         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37532         Execute sed command with character range in C locale.
37533
37534 2010-03-06  Bruno Haible  <bruno@clisp.org>
37535
37536         Tests for module 'iconv-h'.
37537         * modules/iconv-h-tests: New file.
37538         * tests/test-iconv-h.c: New file.
37539
37540         New module 'iconv-h'.
37541         * modules/iconv-h: New file.
37542         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37543         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37544         (configure.ac): Remove gl_ICONV_H.
37545         (Makefile.am): Remove rule for iconv.h.
37546
37547 2010-03-06  Bruno Haible  <bruno@clisp.org>
37548
37549         More consistent naming of *.m4 files.
37550         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37551         * modules/wctype (Files): Update.
37552
37553         More consistent naming of *.m4 files.
37554         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37555         * modules/wchar (Files): Update.
37556
37557 2010-03-06  Jim Meyering  <meyering@redhat.com>
37558
37559         euidaccess: relax license to LGPLv2+
37560         * modules/euidaccess (License): Relax to LGPLv2+.
37561
37562 2010-03-06  Bruno Haible  <bruno@clisp.org>
37563
37564         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37565         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37566         (Makefile.am): Augment lib_SOURCES instead.
37567
37568 2010-03-04  Jim Meyering  <meyering@redhat.com>
37569
37570         utime: remove obsolete module
37571         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37572         unnecessary for years, and has been marked as obsolete for 10 months.
37573         * modules/utime: Remove file.
37574         * lib/utime.c: Remove file.
37575         * m4/utime.m4: Remove file.
37576         * m4/utimes-null.m4: Remove file.
37577         * doc/posix-functions/utime.texi (utime): Remove reference to
37578         the module.  Move the sole "fixed by gnulib" item into the
37579         "problems not fixed by Gnulib" list.
37580         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37581
37582 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37583
37584         * modules/exit (License): Relax license to LGPLv2+.
37585         (Status): Mark as obsolete.
37586         * NEWS: Mention deprecated 'exit' module.
37587         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37588         of now obsolete 'exit'.
37589
37590 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37591
37592         fts-lgpl: remove unused module
37593         * modules/fts-lgpl: Remove.
37594         * MODULES.html.sh (func_all_modules): Adjust.
37595         * check-module (find_included_lib_files): Adjust.
37596         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37597
37598 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37599
37600         copy-acl: enhance Solaris ACL error handling
37601         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37602         * lib/set-mode-acl.c (qset_acl): Likewise.
37603
37604 2010-03-02  Bruno Haible  <bruno@clisp.org>
37605
37606         spawn: Don't override the system defined values on FreeBSD 8.
37607         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37608         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37609         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37610         if HAVE_POSIX_SPAWN is 1.
37611         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37612
37613 2010-03-01  Bruno Haible  <bruno@clisp.org>
37614
37615         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37616         regarding Automake.
37617
37618 2010-02-25  Bruno Haible  <bruno@clisp.org>
37619
37620         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37621         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37622         setting, not afterwards.
37623         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37624
37625 2010-02-24  Eric Blake  <eblake@redhat.com>
37626
37627         bootstrap, git-version-gen: use timestamp
37628         * build-aux/git-version-gen (scriptversion): Force UTC.
37629         * build-aux/bootstrap (scriptversion): New variable.
37630
37631         bootstrap: allow older git
37632         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37633         older than 1.6.4.  Requested by the libvirt project.
37634
37635 2010-02-23  Eric Blake  <eblake@redhat.com>
37636
37637         warn-on-use: work with old autoconf
37638         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37639         AS_VAR semantics of autoconf 2.60.
37640         Reported by Bruno Haible.
37641
37642         bootstrap: improve some comments
37643         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37644         clarification comments.
37645
37646         gettimeofday: provide correct function
37647         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37648         when replacement is declared, otherwise provide gettimeofday.
37649         Reported by Michael Goffioul.
37650
37651 2010-02-23  Jim Meyering  <meyering@redhat.com>
37652
37653         lib-ignore: relax license to "unlimited", not LGPLv2+
37654         * modules/lib-ignore (License): Relax to "unlimited".
37655
37656 2010-02-23  Jim Meyering  <meyering@redhat.com>
37657
37658         lib-ignore: relax license to LGPLv2+
37659         * modules/lib-ignore (License): Relax to LGPLv2+.
37660
37661 2010-02-22  Eric Blake  <eblake@redhat.com>
37662
37663         lseek: avoid bash 3.2 broken pipe bug
37664         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37665         warning from bash 3.2.
37666         Reported by Ben Pfaff, with analysis from Bruno Haible.
37667
37668         bootstrap: support non-FSF copyright holder
37669         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37670         bootstrap.conf override of COPYRIGHT_HOLDER.
37671         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37672
37673         bootstrap: interoperate with gettext 0.14.1
37674         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37675
37676         bootstrap: allow for alternate submodule location
37677         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37678         hardcoding submodule location.
37679         (gnulib_mk): Allow direct use of Makefile.am.
37680
37681         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37682         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37683         rather than reconfiguring where the submodule points.
37684
37685         gettimeofday: restore support for platforms that lack function
37686         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37687         replacement if function is missing.
37688         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37689         * modules/sys_time (Makefile.am): Substitute it.
37690         * lib/sys_time.in.h (gettimeofday): Check it.
37691         Reported by Michael Goffioul.
37692
37693 2010-02-21  Bruno Haible  <bruno@clisp.org>
37694
37695         * lib/stdio.in.h (obstack_printf): Fix typo.
37696
37697 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37698
37699         vc-list-files: use bzr ls's -R option
37700         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37701         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37702
37703 2010-02-21  Jim Meyering  <meyering@redhat.com>
37704
37705         init.sh: fix EXEEXT shims to work also for names like test-prog
37706         * tests/init.sh: Re-exec a better shell, when needed.
37707         If the current shell lacks support for posix $(...), an init.sh-using
37708         test will now try to find a shell that supports that.  If EXEEXT is
37709         nonempty, we also require support for hyphen-in-alias-name and shell
37710         substitutions like ${var#glob}.  Failure to find such a shell results
37711         in a skipped test.
37712
37713 2010-02-21  Bruno Haible  <bruno@clisp.org>
37714
37715         Really work around around "broken pipe" error message from bash 3.2.
37716         * gnulib-tool (func_reset_sigpipe): Remove function.
37717         (echo): In bash 3.2, define to a function that uses printf.
37718         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37719
37720 2010-02-20  Bruno Haible  <bruno@clisp.org>
37721
37722         Restore support for automake 1.9.6 with autoconf 2.61.
37723         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37724         Reported by James Youngman <jay@gnu.org>.
37725
37726 2010-02-20  Bruno Haible  <bruno@clisp.org>
37727
37728         Improve *printf warning condition.
37729         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37730         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37731         and the function is overridden due to SIGPIPE emulation.
37732
37733 2010-02-20  Bruno Haible  <bruno@clisp.org>
37734
37735         * lib/stdio.in.h: Tweak comments.
37736
37737 2010-02-19  Bruno Haible  <bruno@clisp.org>
37738
37739         Make it easier to find modules. New gnulib-tool option '--find'.
37740         * gnulib-tool: New option --find.
37741         (func_usage): Document it.
37742         (func_sanitize_modulelist): New function, extracted from
37743         func_all_modules.
37744         (func_all_modules): Invoke it.
37745         * doc/gnulib-tool.texi (Which modules?): New node.
37746
37747 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37748
37749         * lib/sys_select.in.h: Provide select replacement even if
37750         sys/select.h exists on a system, for Interix.
37751
37752 2010-02-18  Jim Meyering  <meyering@redhat.com>
37753
37754         init.sh: don't use $(...) just yet
37755         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37756         to accommodate e.g., Solaris' /bin/sh.
37757
37758 2010-02-17  Bruno Haible  <bruno@clisp.org>
37759
37760         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37761         Reported by Ludovic Courtès <ludo@gnu.org>.
37762
37763 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37764
37765         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37766         linking with -lintl.
37767
37768 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37769
37770         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37771         if not provided by the system's netdb.h.  Reported by
37772         ludo@gnu.org (Ludovic Courtès).
37773
37774 2010-02-15  Jim Meyering  <meyering@redhat.com>
37775
37776         init.sh: improve portability and efficiency
37777         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37778         "dummy" in a for loop.
37779         Use '!', not '^' to select the complement of a character set used
37780         in a "case" statement.
37781         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37782         Suggestions from Eric Blake.
37783
37784         init.sh: automatically accommodate programs with the .exe suffix
37785         Automatically arrange for an invocation of "prog" to execute the
37786         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37787         may use the simpler "prog", yet still work when built on a system
37788         that requires specifying the added suffix.
37789         Do this by constructing a function named "prog" that invokes
37790         "prog.exe" for each .exe file in selected directories.
37791         * tests/init.sh (find_exe_basenames_): New function.
37792         (create_exe_shim_functions_): New function.
37793         (path_prepend_): Use it.
37794
37795         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37796         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37797         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37798
37799 2010-02-14  Jim Meyering  <meyering@redhat.com>
37800
37801         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37802         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37803         (sc_prohibit_hash_pjw_without_use): New rule.
37804
37805         maint.mk: allow the default upload destination dir to be overridden
37806         * top/maint.mk (upload_dest_dir_): Define with a default that
37807         preserves the status quo.
37808         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37809         Reported by Peter Simons.
37810
37811         maint.mk: prohibit inclusion of "hash.h" without_use
37812         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37813
37814 2010-02-10  Jim Meyering  <meyering@redhat.com>
37815
37816         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37817         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37818
37819 2010-02-09  Eric Blake  <ebb9@byu.net>
37820         and Bruno Haible  <bruno@clisp.org>
37821
37822         obstack-printf-posix: ensure declaration
37823         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37824         extracted from gl_FUNC_OBSTACK_PRINTF.
37825         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37826         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37827         Likewise.
37828         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37829         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37830         0.
37831
37832 2010-02-08  Bruno Haible  <bruno@clisp.org>
37833
37834         gnulib-tool: Fix typo in 2010-02-07 commit.
37835         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37836         Reported by Eric Blake.
37837
37838 2010-02-07  Bruno Haible  <bruno@clisp.org>
37839
37840         gnulib-tool: Fix up caching patches.
37841         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37842         option --no-cache. Use associative arrays when supported by the shell.
37843         (sed_comments): New variable.
37844         (modcache): Renamed from do_cache.
37845         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37846         abbreviate unnecessarily.
37847         (have_associative): New variable.
37848         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37849         way also for ksh and zsh.
37850         (func_init_sed_convert_to_cache_statements): New function, extracted
37851         from func_cache_lookup_module. Add support for associative arrays.
37852         Don't set the c_MODULE_cached variable here. Ignore all lines before
37853         the first field header. Remove only the final newline, not all trailing
37854         newlines. Support empty fields correctly. Limit the use of 'eval' to
37855         assignments.
37856         (func_get_description, func_get_status, func_get_notice,
37857         func_get_applicability, func_get_filelist, func_get_dependencies,
37858         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37859         func_get_automake_snippet, func_get_include_directive,
37860         func_get_link_directive, func_get_license, func_get_maintainer):
37861         Update documentation. List the unoptimized code first. Add support for
37862         associative arrays. Limit the use of 'eval' to assignments.
37863         (func_get_applicability): Undo stylistic pessimisations.
37864         (func_get_automake_snippet, func_get_include_directive): Reduce code
37865         duplication.
37866         (func_modules_transitive_closure, func_modules_add_dummy,
37867         func_modules_notice, func_modules_to_filelist, func_add_file,
37868         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
37869         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
37870         func_create_testdir, func_create_megatestdir): Update documentation.
37871
37872 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37873
37874         * gnulib-tool (func_cache_lookup_module): Store the module name
37875         belonging to the cache variable; error out if two different
37876         module names map to the same cache variable name.
37877
37878 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37879
37880         gnulib-tool: Make caching optional.
37881         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
37882         Update matching short versions of --no-changelog.
37883         (func_usage): Update.
37884         (sed_extract_cache_prog): Renamed from ...
37885         (sed_extract_prog): ... this; revert to old extraction script.
37886         (func_get_description, func_get_status)
37887         (func_get_notice, func_get_applicability, func_get_filelist)
37888         (func_get_dependencies, func_get_autoconf_early_snippet)
37889         (func_get_autoconf_snippet, func_get_automake_snippet)
37890         (func_get_include_directive, func_get_link_directive)
37891         (func_get_license, func_get_maintainer): If $do_cache is false,
37892         use old, non-caching extraction scripts.
37893         Suggestion by Bruno Haible.
37894
37895 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37896
37897         gnulib-tool: cache module metainformation.
37898         * gnulib-tool (sed_extract_prog): Match newline before each
37899         header, and rewrite header to a shell variable suffix.
37900         (func_cache_var, func_cache_lookup_module): New functions,
37901         to turn a module name into a cache variable prefix, and to
37902         look up and cache module metainformation.
37903         (func_get_description, func_get_status)
37904         (func_get_notice, func_get_applicability, func_get_filelist)
37905         (func_get_dependencies, func_get_autoconf_early_snippet)
37906         (func_get_autoconf_snippet, func_get_automake_snippet)
37907         (func_get_include_directive, func_get_link_directive)
37908         (func_get_license, func_get_maintainer): Use
37909         func_cache_lookup_module.
37910
37911 2010-02-07  Bruno Haible  <bruno@clisp.org>
37912
37913         fnctl: Fix missing dependency.
37914         * modules/fcntl (Depends-on): Add getdtablesize.
37915         Reported by John W. Eaton <jwe@gnu.org>.
37916
37917 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37918
37919         Argp: fix recognition of short alias options.
37920
37921         * lib/argp-parse.c (convert_options): Fix improper use of
37922         `|' between character values.
37923         * tests/test-argp.c (group1_option): New alias option
37924         --read (-r).
37925         (group1_parser): Special handling for 'r'.
37926         (test15): New test case.
37927         (test_fun): Add test15.
37928         * tests/test-argp-2.sh: Update expected --help and --usage
37929         outputs.
37930
37931 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37932
37933         * tests/test-argp.c: Fix indentation.
37934
37935 2010-02-04  Eric Blake  <ebb9@byu.net>
37936
37937         gettimeofday: expose type of second argument
37938         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37939         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37940         * tests/test-gettimeofday.c: Use it to silence warning.
37941         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37942         the issue.
37943
37944 2010-02-03  Jim Meyering  <meyering@redhat.com>
37945
37946         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37947         * lib/regcomp.c (TYPE_SIGNED): Define.
37948         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37949
37950         regcomp.c: avoid a new -Wshadow warning
37951         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37952
37953 2010-02-01  Jim Meyering  <meyering@redhat.com>
37954
37955         removing useless parentheses in cpp #define directives
37956         For motivation, see commit c0221df4, "define STREQ(a,b)
37957         consistently, removing useless parentheses"
37958         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37959         * lib/mountlist.c (MNT_IGNORE): Likewise.
37960         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37961
37962 2010-02-01  Eric Blake  <ebb9@byu.net>
37963
37964         sys_time: use link-warning
37965         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37966         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37967         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37968         * modules/sys_time (Depends-on): Add warn-on-use.
37969         (Makefile.am): Always build replacement.
37970         (configure.ac): Update substitutions.
37971         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37972         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37973         bother with SYS_TIME_H.
37974         * modules/gettimeofday (configure.ac): Declare indicator.
37975         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37976         in use.
37977
37978         closein-tests: silence compiler warning
37979         * tests/test-closein.c (main): Ignore fread result.
37980         * modules/closein-tests (Depends-on): Add ignore-value.
37981
37982         tests: silence warning about system return
37983         * tests/test-areadlink-with-size.c (main): Ignore system result.
37984         * tests/test-areadlink.c (main): Likewise.
37985         * tests/test-areadlinkat-with-size.c (main): Likewise.
37986         * tests/test-areadlinkat.c (main): Likewise.
37987         * tests/test-canonicalize-lgpl.c (main): Likewise.
37988         * tests/test-canonicalize.c (main): Likewise.
37989         * tests/test-chown.c (main): Likewise.
37990         * tests/test-fchownat.c (main): Likewise.
37991         * tests/test-fdutimensat.c (main): Likewise.
37992         * tests/test-fstatat.c (main): Likewise.
37993         * tests/test-futimens.c (main): Likewise.
37994         * tests/test-lchown.c (main): Likewise.
37995         * tests/test-link.c (main): Likewise.
37996         * tests/test-linkat.c (main): Likewise.
37997         * tests/test-lstat.c (main): Likewise.
37998         * tests/test-mkdir.c (main): Likewise.
37999         * tests/test-mkdirat.c (main): Likewise.
38000         * tests/test-mkfifo.c (main): Likewise.
38001         * tests/test-mkfifoat.c (main): Likewise.
38002         * tests/test-mknod.c (main): Likewise.
38003         * tests/test-readlink.c (main): Likewise.
38004         * tests/test-remove.c (main): Likewise.
38005         * tests/test-rename.c (main): Likewise.
38006         * tests/test-renameat.c (main): Likewise.
38007         * tests/test-rmdir.c (main): Likewise.
38008         * tests/test-symlink.c (main): Likewise.
38009         * tests/test-symlinkat.c (main): Likewise.
38010         * tests/test-unlink.c (main): Likewise.
38011         * tests/test-unlinkat.c (main): Likewise.
38012         * tests/test-utimens.c (main): Likewise.
38013         * tests/test-utimensat.c (main): Likewise.
38014         * modules/areadlink-tests (Depends-on): Add ignore-value.
38015         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38016         * modules/areadlinkat-tests (Depends-on): Likewise.
38017         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38018         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38019         * modules/canonicalize-tests (Depends-on): Likewise.
38020         * modules/chown-tests (Depends-on): Likewise.
38021         * modules/fdutimensat-tests (Depends-on): Likewise.
38022         * modules/futimens-tests (Depends-on): Likewise.
38023         * modules/lchown-tests (Depends-on): Likewise.
38024         * modules/link-tests (Depends-on): Likewise.
38025         * modules/linkat-tests (Depends-on): Likewise.
38026         * modules/lstat-tests (Depends-on): Likewise.
38027         * modules/mkdir-tests (Depends-on): Likewise.
38028         * modules/mkfifo-tests (Depends-on): Likewise.
38029         * modules/mkfifoat-tests (Depends-on): Likewise.
38030         * modules/mknod-tests (Depends-on): Likewise.
38031         * modules/openat-tests (Depends-on): Likewise.
38032         * modules/readlink-tests (Depends-on): Likewise.
38033         * modules/remove-tests (Depends-on): Likewise.
38034         * modules/rename-tests (Depends-on): Likewise.
38035         * modules/renameat-tests (Depends-on): Likewise.
38036         * modules/rmdir-tests (Depends-on): Likewise.
38037         * modules/symlink-tests (Depends-on): Likewise.
38038         * modules/symlinkat-tests (Depends-on): Likewise.
38039         * modules/unlink-tests (Depends-on): Likewise.
38040         * modules/utimens-tests (Depends-on): Likewise.
38041         * modules/utimensat-tests (Depends-on): Likewise.
38042
38043 2010-01-31  Bruno Haible  <bruno@clisp.org>
38044
38045         Perform the same test for many <math.h> functions.
38046         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38047         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38048         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38049         of gl_MATHFUNC.
38050         * modules/acos (configure.ac): Likewise.
38051         * modules/asin (configure.ac): Likewise.
38052         * modules/atan (configure.ac): Likewise.
38053         * modules/atan2 (configure.ac): Likewise.
38054         * modules/cbrt (configure.ac): Likewise.
38055         * modules/copysign (configure.ac): Likewise.
38056         * modules/cos (configure.ac): Likewise.
38057         * modules/cosh (configure.ac): Likewise.
38058         * modules/erf (configure.ac): Likewise.
38059         * modules/erfc (configure.ac): Likewise.
38060         * modules/exp (configure.ac): Likewise.
38061         * modules/fmod (configure.ac): Likewise.
38062         * modules/hypot (configure.ac): Likewise.
38063         * modules/j0 (configure.ac): Likewise.
38064         * modules/j1 (configure.ac): Likewise.
38065         * modules/jn (configure.ac): Likewise.
38066         * modules/lgamma (configure.ac): Likewise.
38067         * modules/log (configure.ac): Likewise.
38068         * modules/log10 (configure.ac): Likewise.
38069         * modules/log1p (configure.ac): Likewise.
38070         * modules/pow (configure.ac): Likewise.
38071         * modules/remainder (configure.ac): Likewise.
38072         * modules/sin (configure.ac): Likewise.
38073         * modules/sinh (configure.ac): Likewise.
38074         * modules/tan (configure.ac): Likewise.
38075         * modules/tanh (configure.ac): Likewise.
38076         * modules/y0 (configure.ac): Likewise.
38077         * modules/y1 (configure.ac): Likewise.
38078         * modules/yn (configure.ac): Likewise.
38079         Suggested by Paolo Bonzini.
38080
38081 2010-01-31  Bruno Haible  <bruno@clisp.org>
38082
38083         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38084
38085 2010-01-31  Bruno Haible  <bruno@clisp.org>
38086
38087         Work around getdelim() bug on FreeBSD 8.0.
38088         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38089         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38090         not work.
38091         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38092         is 1.
38093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38094         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38095         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38096         a non-zero size.
38097         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38098
38099 2010-01-31  Bruno Haible  <bruno@clisp.org>
38100
38101         Work around getline() bug on FreeBSD 8.0.
38102         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38103         and a non-zero size.
38104         * tests/test-getline.c (main): Likewise.
38105         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38106         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38107
38108 2010-01-28  Eric Blake  <ebb9@byu.net>
38109
38110         regex: fix build failure
38111         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38112         platforms.
38113
38114 2010-01-28  Jim Meyering  <meyering@redhat.com>
38115
38116         regex: do not ignore memory allocation failure
38117         * lib/regex_internal.c (create_cd_newstate): Detect
38118         re_node_set_init_copy failure.   Extracted from glibc commit
38119         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38120
38121         regex: sync more white-space changes from libc
38122         * lib/regex_internal.c: White-space only changes.
38123         * lib/regexec.c: Likewise.
38124
38125         regex: add many uses of __attribute_warn_unused_result__
38126         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38127         * lib/regexec.c: Likewise.
38128         Extracted from a messy glibc commit.
38129
38130         regcomp.c: spelling and merge-artifact from glibc
38131         * lib/regcomp.c: Merge remainder of glibc's
38132         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38133
38134         regcomp.c: sync white-space changes from glibc
38135         * lib/regcomp.c: Merge to accommodate white space
38136         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38137
38138         regcomp.c: do not ignore internal return values
38139         * lib/regcomp.c: Do not ignore internal return values.
38140         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38141         but without its white-space changes and spelling fixes.
38142
38143         regex_internal.h: define __attribute_warn_unused_result__
38144         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38145
38146         maint: add a syntax-check rule to check for vulnerable Makefile.in
38147         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38148
38149 2010-01-27  Jim Meyering  <meyering@redhat.com>
38150
38151         ncftpput-ftp: clean up spaces
38152         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38153         Remove trailing blanks.
38154
38155 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38156
38157         * build-aux/git-version-gen: Fix copyright statement.
38158         * build-aux/gnupload: Likewise.
38159         * tests/test-arcfour.c: Likewise.
38160         * tests/test-arctwo.c: Likewise.
38161         * tests/test-count-one-bits.c: Likewise.
38162         * tests/test-crc.c: Likewise.
38163         * tests/test-des.c: Likewise.
38164         * tests/test-gc-arcfour.c: Likewise.
38165         * tests/test-gc-arctwo.c: Likewise.
38166         * tests/test-gc-des.c: Likewise.
38167         * tests/test-gc-hmac-md5.c: Likewise.
38168         * tests/test-gc-hmac-sha1.c: Likewise.
38169         * tests/test-gc-md2.c: Likewise.
38170         * tests/test-gc-md4.c: Likewise.
38171         * tests/test-gc-md5.c: Likewise.
38172         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38173         * tests/test-gc-rijndael.c: Likewise.
38174         * tests/test-gc-sha1.c: Likewise.
38175         * tests/test-gc.c: Likewise.
38176         * tests/test-gethostname.c: Likewise.
38177         * tests/test-gettimeofday.c: Likewise.
38178         * tests/test-hash.c: Likewise.
38179         * tests/test-hmac-md5.c: Likewise.
38180         * tests/test-hmac-sha1.c: Likewise.
38181         * tests/test-md2.c: Likewise.
38182         * tests/test-md4.c: Likewise.
38183         * tests/test-md5.c: Likewise.
38184         * tests/test-memchr.c: Likewise.
38185         * tests/test-memchr2.c: Likewise.
38186         * tests/test-memcmp.c: Likewise.
38187         * tests/test-memmem.c: Likewise.
38188         * tests/test-memrchr.c: Likewise.
38189         * tests/test-rawmemchr.c: Likewise.
38190         * tests/test-read-file.c: Likewise.
38191         * tests/test-rijndael.c: Likewise.
38192         * tests/test-sockets.c: Likewise.
38193         * tests/test-strchrnul.c: Likewise.
38194         * tests/test-strstr.c: Likewise.
38195         * tests/test-strtod.c: Likewise.
38196         * build-aux/ncftpput-ftp: Likewise.
38197
38198 2010-01-26  Eric Blake  <ebb9@byu.net>
38199
38200         ignore-value: update recommended header name
38201         * modules/ignore-value (Include): Only use <> for headers that
38202         exist in glibc.
38203
38204 2010-01-26  Jim Meyering  <meyering@redhat.com>
38205
38206         test-userspec.c: avoid compiler warnings
38207         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38208         and "initialization discards qualifiers..." warnings.
38209         Put the first "uid" in its own scope, and make char* members "const".
38210
38211 2010-01-25  Bruno Haible  <bruno@clisp.org>
38212
38213         gnulib-tool: Make warning diagnostics consistent.
38214         * gnulib-tool (func_warning): New function.
38215         Use it everywhere where gnulib-tool produces output to stderr and it is
38216         not a fatal error.
38217
38218 2010-01-25  Bruno Haible  <bruno@clisp.org>
38219
38220         Fix test dependencies.
38221         * modules/xstrtol-tests (Depends-on): Add inttypes.
38222         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38223
38224 2010-01-25 Pádraig Brady <P@draigBrady.com>
38225
38226         syntax-check: detect incorrect boolean macro values in config.h
38227         * modules/maintainer-makefile (configure.ac): Parameterize the location
38228         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38229         The logic is from Eric Blake and the location indicated by Jim Meyering.
38230         Note the more natural CONFIG_HEADER name is prohibited by automake
38231         for backwards compatibility reasons.
38232         * top/maint.mk (sc_Wundef_boolean): New rule.
38233
38234 2010-01-25  Jim Meyering  <meyering@redhat.com>
38235
38236         bootstrap: detect MacOS 10.6's shasum, too
38237         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38238         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38239
38240 2010-01-23  Jim Meyering  <meyering@redhat.com>
38241
38242         xstrtoll: new module
38243         * modules/xstrtoll: New file.
38244         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38245         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38246         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38247         ./configure fails if you use this module and lack "long long".
38248         * modules/xstrtoll-tests: New module.
38249         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38250         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38251         new init.sh-based test framework.
38252
38253 2010-01-24  Bruno Haible  <bruno@clisp.org>
38254
38255         Tests for module 'yn'.
38256         * modules/yn-tests: New file.
38257         * tests/test-yn.c: New file.
38258
38259         Tests for module 'y1'.
38260         * modules/y1-tests: New file.
38261         * tests/test-y1.c: New file.
38262
38263         Tests for module 'y0'.
38264         * modules/y0-tests: New file.
38265         * tests/test-y0.c: New file.
38266
38267         Tests for module 'tanh'.
38268         * modules/tanh-tests: New file.
38269         * tests/test-tanh.c: New file.
38270
38271         Tests for module 'tan'.
38272         * modules/tan-tests: New file.
38273         * tests/test-tan.c: New file.
38274
38275         Tests for module 'sqrt'.
38276         * modules/sqrt-tests: New file.
38277         * tests/test-sqrt.c: New file.
38278
38279         Tests for module 'sinh'.
38280         * modules/sinh-tests: New file.
38281         * tests/test-sinh.c: New file.
38282
38283         Tests for module 'sin'.
38284         * modules/sin-tests: New file.
38285         * tests/test-sin.c: New file.
38286
38287         Tests for module 'rint'.
38288         * modules/rint-tests: New file.
38289         * tests/test-rint.c: New file.
38290
38291         Tests for module 'remainder'.
38292         * modules/remainder-tests: New file.
38293         * tests/test-remainder.c: New file.
38294
38295         Tests for module 'pow'.
38296         * modules/pow-tests: New file.
38297         * tests/test-pow.c: New file.
38298
38299         Tests for module 'nextafter'.
38300         * modules/nextafter-tests: New file.
38301         * tests/test-nextafter.c: New file.
38302
38303         Tests for module 'modf'.
38304         * modules/modf-tests: New file.
38305         * tests/test-modf.c: New file.
38306
38307         Tests for module 'logb'.
38308         * modules/logb-tests: New file.
38309         * tests/test-logb.c: New file.
38310
38311         Tests for module 'log1p'.
38312         * modules/log1p-tests: New file.
38313         * tests/test-log1p.c: New file.
38314
38315         Tests for module 'log10'.
38316         * modules/log10-tests: New file.
38317         * tests/test-log10.c: New file.
38318
38319         Tests for module 'log'.
38320         * modules/log-tests: New file.
38321         * tests/test-log.c: New file.
38322
38323         Tests for module 'lgamma'.
38324         * modules/lgamma-tests: New file.
38325         * tests/test-lgamma.c: New file.
38326
38327         Tests for module 'ldexp'.
38328         * modules/ldexp-tests: New file.
38329         * tests/test-ldexp.c: New file.
38330
38331         Tests for module 'jn'.
38332         * modules/jn-tests: New file.
38333         * tests/test-jn.c: New file.
38334
38335         Tests for module 'j1'.
38336         * modules/j1-tests: New file.
38337         * tests/test-j1.c: New file.
38338
38339         Tests for module 'j0'.
38340         * modules/j0-tests: New file.
38341         * tests/test-j0.c: New file.
38342
38343         Tests for module 'hypot'.
38344         * modules/hypot-tests: New file.
38345         * tests/test-hypot.c: New file.
38346
38347         Tests for module 'fmod'.
38348         * modules/fmod-tests: New file.
38349         * tests/test-fmod.c: New file.
38350
38351         Tests for module 'fabs'.
38352         * modules/fabs-tests: New file.
38353         * tests/test-fabs.c: New file.
38354
38355         Tests for module 'exp'.
38356         * modules/exp-tests: New file.
38357         * tests/test-exp.c: New file.
38358
38359         Tests for module 'erfc'.
38360         * modules/erfc-tests: New file.
38361         * tests/test-erfc.c: New file.
38362
38363         Tests for module 'erf'.
38364         * modules/erf-tests: New file.
38365         * tests/test-erf.c: New file.
38366
38367         Tests for module 'cosh'.
38368         * modules/cosh-tests: New file.
38369         * tests/test-cosh.c: New file.
38370
38371         Tests for module 'cos'.
38372         * modules/cos-tests: New file.
38373         * tests/test-cos.c: New file.
38374
38375         Tests for module 'copysign'.
38376         * modules/copysign-tests: New file.
38377         * tests/test-copysign.c: New file.
38378
38379         Tests for module 'cbrt'.
38380         * modules/cbrt-tests: New file.
38381         * tests/test-cbrt.c: New file.
38382
38383         Tests for module 'atan2'.
38384         * modules/atan2-tests: New file.
38385         * tests/test-atan2.c: New file.
38386
38387         Tests for module 'atan'.
38388         * modules/atan-tests: New file.
38389         * tests/test-atan.c: New file.
38390
38391         Tests for module 'asin'.
38392         * modules/asin-tests: New file.
38393         * tests/test-asin.c: New file.
38394
38395         Tests for module 'acos'.
38396         * modules/acos-tests: New file.
38397         * tests/test-acos.c: New file.
38398
38399 2010-01-24  Bruno Haible  <bruno@clisp.org>
38400
38401         Fix tests for common <math.h> functions.
38402         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38403         code snippet that references the function pointer, rather than merely
38404         calling the function. Substitute the FUNC_LIBM variable.
38405         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38406         * modules/acos (configure.ac): Likewise.
38407         * modules/asin (configure.ac): Likewise.
38408         * modules/atan (configure.ac): Likewise.
38409         * modules/atan2 (configure.ac): Likewise.
38410         * modules/cbrt (configure.ac): Likewise.
38411         * modules/copysign (configure.ac): Likewise.
38412         * modules/cos (configure.ac): Likewise.
38413         * modules/cosh (configure.ac): Likewise.
38414         * modules/erf (configure.ac): Likewise.
38415         * modules/erfc (configure.ac): Likewise.
38416         * modules/exp (configure.ac): Likewise.
38417         * modules/fabs (configure.ac): Likewise.
38418         * modules/fmod (configure.ac): Likewise.
38419         * modules/hypot (configure.ac): Likewise.
38420         * modules/j0 (configure.ac): Likewise.
38421         * modules/j1 (configure.ac): Likewise.
38422         * modules/jn (configure.ac): Likewise.
38423         * modules/ldexp (configure.ac): Likewise.
38424         * modules/lgamma (configure.ac): Likewise.
38425         * modules/log (configure.ac): Likewise.
38426         * modules/log10 (configure.ac): Likewise.
38427         * modules/log1p (configure.ac): Likewise.
38428         * modules/logb (configure.ac): Likewise.
38429         * modules/modf (configure.ac): Likewise.
38430         * modules/nextafter (configure.ac): Likewise.
38431         * modules/pow (configure.ac): Likewise.
38432         * modules/remainder (configure.ac): Likewise.
38433         * modules/rint (configure.ac): Likewise.
38434         * modules/sin (configure.ac): Likewise.
38435         * modules/sinh (configure.ac): Likewise.
38436         * modules/tan (configure.ac): Likewise.
38437         * modules/tanh (configure.ac): Likewise.
38438         * modules/y0 (configure.ac): Likewise.
38439         * modules/y1 (configure.ac): Likewise.
38440         * modules/yn (configure.ac): Likewise.
38441
38442 2010-01-24  Bruno Haible  <bruno@clisp.org>
38443
38444         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38445         * tests/test-acosl.c (x): New variable.
38446         (main): Store argument in x and fetch it from x.
38447         * tests/test-asinl.c (x): New variable.
38448         (main): Store argument in x and fetch it from x.
38449         * tests/test-atanl.c (x): New variable.
38450         (main): Store argument in x and fetch it from x.
38451         * tests/test-cosl.c (x): New variable.
38452         (main): Store argument in x and fetch it from x.
38453         * tests/test-expl.c (x): New variable.
38454         (main): Store argument in x and fetch it from x.
38455         * tests/test-logl.c (x): New variable.
38456         (main): Store argument in x and fetch it from x.
38457         * tests/test-sinl.c (x): New variable.
38458         (main): Store argument in x and fetch it from x.
38459         * tests/test-sqrtl.c (x): New variable.
38460         (main): Store argument in x and fetch it from x.
38461         * tests/test-tanl.c (x): New variable.
38462         (main): Store argument in x and fetch it from x.
38463
38464 2010-01-24  Bruno Haible  <bruno@clisp.org>
38465
38466         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38467         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38468         assignments to the initial TESTS_ENVIRONMENT.
38469         * doc/gnulib.texi (Unit test modules): Document it.
38470         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38471         TESTS_ENVIRONMENT.
38472         * modules/btowc-tests (Makefile.am): Likewise.
38473         * modules/c-stack-tests (Makefile.am): Likewise.
38474         * modules/c-strcase-tests (Makefile.am): Likewise.
38475         * modules/copy-file-tests (Makefile.am): Likewise.
38476         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38477         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38478         * modules/mbrtowc-tests (Makefile.am): Likewise.
38479         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38480         * modules/mbscasestr-tests (Makefile.am): Likewise.
38481         * modules/mbschr-tests (Makefile.am): Likewise.
38482         * modules/mbscspn-tests (Makefile.am): Likewise.
38483         * modules/mbsinit-tests (Makefile.am): Likewise.
38484         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38485         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38486         * modules/mbspbrk-tests (Makefile.am): Likewise.
38487         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38488         * modules/mbsrchr-tests (Makefile.am): Likewise.
38489         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38490         * modules/mbsspn-tests (Makefile.am): Likewise.
38491         * modules/mbsstr-tests (Makefile.am): Likewise.
38492         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38493         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38494         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38495         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38496         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38497         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38498         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38499         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38500         * modules/wcrtomb-tests (Makefile.am): Likewise.
38501         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38502         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38503         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38504         assignments from TESTS_ENVIRONMENT.
38505         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38506         augmentation.
38507         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38508         * modules/atexit-tests (Makefile.am): Likewise.
38509         * modules/binary-io-tests (Makefile.am): Likewise.
38510         * modules/closein-tests (Makefile.am): Likewise.
38511         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38512         * modules/exclude-tests (Makefile.am): Likewise.
38513         * modules/fflush-tests (Makefile.am): Likewise.
38514         * modules/fpending-tests (Makefile.am): Likewise.
38515         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38516         * modules/freadahead-tests (Makefile.am): Likewise.
38517         * modules/freadptr-tests (Makefile.am): Likewise.
38518         * modules/freadseek-tests (Makefile.am): Likewise.
38519         * modules/fseek-tests (Makefile.am): Likewise.
38520         * modules/fseeko-tests (Makefile.am): Likewise.
38521         * modules/ftell-tests (Makefile.am): Likewise.
38522         * modules/ftello-tests (Makefile.am): Likewise.
38523         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38524         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38525         * modules/lseek-tests (Makefile.am): Likewise.
38526         * modules/parse-duration-tests (Makefile.am): Likewise.
38527         * modules/perror-tests (Makefile.am): Likewise.
38528         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38529         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38530         * modules/pipe-tests (Makefile.am): Likewise.
38531         * modules/pread-tests (Makefile.am): Likewise.
38532         * modules/printf-posix-tests (Makefile.am): Likewise.
38533         * modules/select-tests (Makefile.am): Likewise.
38534         * modules/sigpipe-tests (Makefile.am): Likewise.
38535         * modules/tsearch-tests (Makefile.am): Likewise.
38536         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38537         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38538         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38539         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38540         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38541         * modules/version-etc-tests (Makefile.am): Likewise.
38542         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38543         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38544         * modules/xalloc-die-tests (Makefile.am): Likewise.
38545         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38546         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38547         * modules/xstrtol-tests (Makefile.am): Likewise.
38548         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38549         * modules/yesno-tests (Makefile.am): Likewise.
38550         Suggested by Jim Meyering.
38551
38552 2010-01-24  Bruno Haible  <bruno@clisp.org>
38553
38554         More documentation.
38555         * doc/gnulib.texi (Writing modules): New chapter.
38556         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38557         the new chapter.
38558
38559 2010-01-24  Jim Meyering  <meyering@redhat.com>
38560
38561         maint.mk: do not prepend "./" after filtering
38562         * top/maint.mk (_prepend_srcdir_prefix): New variable
38563         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38564         "./" when $(srcdir) is ".".
38565
38566         define STREQ(a,b) consistently, removing useless parentheses
38567         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38568         since the only risk is that "a" or "b" contains an unparenthesized
38569         comma, but if either did that, STREQ would have 3 or more arguments.
38570         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38571         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38572         * lib/hash-triple.c (STREQ): Likewise.
38573         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38574         * lib/getugroups.c (STREQ): Likewise.
38575
38576 2010-01-23  Jim Meyering  <meyering@redhat.com>
38577
38578         maint.mk: fix syntax-check in a non-srcdir build directory
38579         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38580         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38581
38582 2010-01-22  Jim Meyering  <meyering@redhat.com>
38583
38584         userspec: add unit tests
38585         * tests/test-userspec.c: New file.
38586         * modules/userspec-tests: Likewise.
38587
38588 2010-01-21  Jim Meyering  <meyering@redhat.com>
38589
38590         maint.mk: handle source file names containing "." robustly
38591         * top/maint.mk (_dot_escaped_srcdir): Define.
38592         (VC_LIST): Use it in LHS of sed substitution.
38593
38594 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38595
38596         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38597         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38598         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38599         from a non-srcdir build.
38600
38601 2010-01-20  Eric Blake  <ebb9@byu.net>
38602
38603         warn-on-use: use instead of link-warning
38604         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38605         * modules/unistd (Depends-on, Makefile.am): Likewise.
38606         * modules/arpa_inet (Depends-on): Replace link-warning with
38607         warn-on-use.
38608         (Makefile.am): Update rules accordingly.
38609         * modules/ctype (Depends-on, Makefile.am): Likewise.
38610         * modules/dirent (Depends-on, Makefile.am): Likewise.
38611         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38612         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38613         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38614         * modules/locale (Depends-on, Makefile.am): Likewise.
38615         * modules/math (Depends-on, Makefile.am): Likewise.
38616         * modules/search (Depends-on, Makefile.am): Likewise.
38617         * modules/signal (Depends-on, Makefile.am): Likewise.
38618         * modules/spawn (Depends-on, Makefile.am): Likewise.
38619         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38620         * modules/string (Depends-on, Makefile.am): Likewise.
38621         * modules/strings (Depends-on, Makefile.am): Likewise.
38622         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38623         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38624         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38625         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38626         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38627         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38628         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38629         * modules/wchar (Depends-on, Makefile.am): Likewise.
38630         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38631         should be poisoned.
38632         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38633         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38634         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38635         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38636         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38637         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38638         * m4/math_h.m4 (gl_MATH_H): Likewise.
38639         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38640         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38641         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38642         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38643         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38644         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38645         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38646         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38647         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38648         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38649         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38650         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38651         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38652         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38653         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38654         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38655         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38656         GL_LINK_WARNING.
38657         * lib/ctype.in.h: Likewise.
38658         * lib/dirent.in.h: Likewise.
38659         * lib/fcntl.in.h: Likewise.
38660         * lib/inttypes.in.h: Likewise.
38661         * lib/langinfo.in.h: Likewise.
38662         * lib/locale.in.h: Likewise.
38663         * lib/math.in.h: Likewise.
38664         * lib/search.in.h: Likewise.
38665         * lib/signal.in.h: Likewise.
38666         * lib/spawn.in.h: Likewise.
38667         * lib/stdio.in.h: Likewise.
38668         * lib/stdlib.in.h: Likewise.
38669         * lib/string.in.h: Likewise.
38670         * lib/strings.in.h: Likewise.
38671         * lib/sys_file.in.h: Likewise.
38672         * lib/sys_ioctl.in.h: Likewise.
38673         * lib/sys_select.in.h: Likewise.
38674         * lib/sys_socket.in.h: Likewise.
38675         * lib/sys_stat.in.h: Likewise.
38676         * lib/sys_times.in.h: Likewise.
38677         * lib/sys_utsname.in.h: Likewise.
38678         * lib/unistd.in.h: Likewise.
38679         * lib/wchar.in.h: Likewise.
38680
38681 2010-01-20  Bruno Haible  <bruno@clisp.org>
38682
38683         Avoid duplicate -lm.
38684         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38685         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38686         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38687         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38688         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38689         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38690         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38691         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38692         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38693         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38694         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38695         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38696         Reported by Paolo Bonzini.
38697
38698 2010-01-19  Bruno Haible  <bruno@clisp.org>
38699
38700         langinfo, nl_langinfo: Relicense under LGPLv2+.
38701         * modules/langinfo (License): Change to LGPLv2+.
38702         * modules/nl_langinfo (License): Likewise.
38703         Patch by David Lutterkort <lutter@redhat.com>.
38704
38705 2010-01-19  Bruno Haible  <bruno@clisp.org>
38706
38707         Avoid compilation error with cc on OSF/1 5.1.
38708         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38709         statement, not before.
38710         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38711
38712 2010-01-18  Bruno Haible  <bruno@clisp.org>
38713
38714         Avoid a link error due to the __printf__ symbol.
38715         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38716         and 2.6.x.
38717         (__format__, __printf__): Remove definitions.
38718         * lib/argp-fmtstream.h: Likewise.
38719         * lib/argp.h: Likewise.
38720         * lib/error.h: Likewise.
38721         * lib/vasnprintf.h: Likewise.
38722         * lib/xprintf.h: Likewise.
38723         * lib/xvasprintf.h: Likewise.
38724         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38725
38726 2010-01-18  Bruno Haible  <bruno@clisp.org>
38727
38728         Tests for module 'tanl'.
38729         * modules/tanl-tests: New file.
38730         * tests/test-tanl.c: New file.
38731
38732         Tests for module 'sqrtl'.
38733         * modules/sqrtl-tests: New file.
38734         * tests/test-sqrtl.c: New file.
38735
38736         Tests for module 'sinl'.
38737         * modules/sinl-tests: New file.
38738         * tests/test-sinl.c: New file.
38739
38740         Tests for module 'logl'.
38741         * modules/logl-tests: New file.
38742         * tests/test-logl.c: New file.
38743
38744         Tests for module 'expl'.
38745         * modules/expl-tests: New file.
38746         * tests/test-expl.c: New file.
38747
38748         Tests for module 'cosl'.
38749         * modules/cosl-tests: New file.
38750         * tests/test-cosl.c: New file.
38751
38752         Tests for module 'atanl'.
38753         * modules/atanl-tests: New file.
38754         * tests/test-atanl.c: New file.
38755
38756         Tests for module 'asinl'.
38757         * modules/asinl-tests: New file.
38758         * tests/test-asinl.c: New file.
38759
38760         Tests for module 'acosl'.
38761         * modules/acosl-tests: New file.
38762         * tests/test-acosl.c: New file.
38763
38764         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38765         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38766         tanl): Use the standard gnulib idiom.
38767         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38768         * lib/sinl.c: Likewise.
38769         * lib/tanl.c: Don't include trigl.c.
38770         (kernel_tanl): Make static.
38771         * lib/sincosl.c: Include trigl.h first.
38772         * lib/trigl.c: Likewise.
38773         * m4/acosl.m4: New file.
38774         * m4/asinl.m4: New file.
38775         * m4/atanl.m4: New file.
38776         * m4/cosl.m4: New file.
38777         * m4/expl.m4: New file.
38778         * m4/logl.m4: New file.
38779         * m4/sinl.m4: New file.
38780         * m4/sqrtl.m4: New file.
38781         * m4/tanl.m4: New file.
38782         * m4/mathl.m4: Remove file.
38783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38784         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38785         Don't initialize GNULIB_MATHL.
38786         * modules/acosl: New file.
38787         * modules/asinl: New file.
38788         * modules/atanl: New file.
38789         * modules/cosl: New file.
38790         * modules/expl: New file.
38791         * modules/logl: New file.
38792         * modules/sinl: New file.
38793         * modules/sqrtl: New file.
38794         * modules/tanl: New file.
38795         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38796         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38797         substitute GNULIB_MATHL.
38798         * modules/mathl: Rewritten.
38799         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38800         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38801         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38802         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38803         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38804         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38805         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38806         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38807         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38808
38809 2010-01-18  Bruno Haible  <bruno@clisp.org>
38810
38811         sqrt: Make gl_FUNC_SQRT requirable.
38812         * m4/sqrt.m4: New file.
38813         * modules/sqrt (Files): Add it.
38814         (configure.ac): Invoke gl_FUNC_SQRT.
38815
38816 2010-01-18  Bruno Haible  <bruno@clisp.org>
38817
38818         New modules for common <math.h> functions.
38819         * m4/mathfunc.m4: New file.
38820         * modules/acos: New file.
38821         * modules/asin: New file.
38822         * modules/atan: New file.
38823         * modules/atan2: New file.
38824         * modules/cbrt: New file.
38825         * modules/copysign: New file.
38826         * modules/cos: New file.
38827         * modules/cosh: New file.
38828         * modules/erf: New file.
38829         * modules/erfc: New file.
38830         * modules/exp: New file.
38831         * modules/fabs: New file.
38832         * modules/fmod: New file.
38833         * modules/hypot: New file.
38834         * modules/j0: New file.
38835         * modules/j1: New file.
38836         * modules/jn: New file.
38837         * modules/ldexp: New file.
38838         * modules/lgamma: New file.
38839         * modules/log: New file.
38840         * modules/log10: New file.
38841         * modules/log1p: New file.
38842         * modules/logb: New file.
38843         * modules/modf: New file.
38844         * modules/nextafter: New file.
38845         * modules/pow: New file.
38846         * modules/remainder: New file.
38847         * modules/rint: New file.
38848         * modules/sin: New file.
38849         * modules/sinh: New file.
38850         * modules/sqrt: New file.
38851         * modules/tan: New file.
38852         * modules/tanh: New file.
38853         * modules/y0: New file.
38854         * modules/y1: New file.
38855         * modules/yn: New file.
38856         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38857         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38858         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38859         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38860         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38861         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38862         * doc/posix-functions/cos.texi: Mention the 'cos' module.
38863         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
38864         * doc/posix-functions/erf.texi: Mention the 'erf' module.
38865         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
38866         * doc/posix-functions/exp.texi: Mention the 'exp' module.
38867         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
38868         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
38869         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
38870         * doc/posix-functions/j0.texi: Mention the 'j0' module.
38871         * doc/posix-functions/j1.texi: Mention the 'j1' module.
38872         * doc/posix-functions/jn.texi: Mention the 'jn' module.
38873         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
38874         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
38875         * doc/posix-functions/log.texi: Mention the 'log' module.
38876         * doc/posix-functions/log10.texi: Mention the 'log10' module.
38877         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
38878         * doc/posix-functions/logb.texi: Mention the 'logb' module.
38879         * doc/posix-functions/modf.texi: Mention the 'modf' module.
38880         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
38881         * doc/posix-functions/pow.texi: Mention the 'pow' module.
38882         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
38883         * doc/posix-functions/rint.texi: Mention the 'rint' module.
38884         * doc/posix-functions/sin.texi: Mention the 'sin' module.
38885         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
38886         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
38887         * doc/posix-functions/tan.texi: Mention the 'tan' module.
38888         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
38889         * doc/posix-functions/y0.texi: Mention the 'y0' module.
38890         * doc/posix-functions/y1.texi: Mention the 'y1' module.
38891         * doc/posix-functions/yn.texi: Mention the 'yn' module.
38892
38893 2010-01-18  Jim Meyering  <meyering@redhat.com>
38894
38895         ignore-value: relax license to LGPLv2+
38896         * modules/ignore-value (License): Relax to LGPLv2+.
38897
38898         getdate: don't leak when TZ contains two or more '"'s
38899         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
38900         double quote in TZ after the first one.
38901
38902         readtokens: do not leak internal token_lengths buffer
38903         * lib/readtokens.c (readtokens): Free the local, lengths,
38904         when the supplied "token_lengths" parameter is NULL.
38905
38906 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38907
38908         Fix a couple of missing LIBTHREAD link failures on AIX.
38909         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
38910         $(LIBTHREAD).
38911         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38912
38913         Link test-poll against INET_PTON_LIB.
38914         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38915         for inet_pton on Solaris 10.
38916
38917 2010-01-17  Bruno Haible  <bruno@clisp.org>
38918
38919         unistdio/*-sprintf: Fix typo in module description.
38920         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38921         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38922         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38923         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38924         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38925         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38926         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38927         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38928
38929 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38930
38931         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38932         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38933         variables in shell case patterns, for AIX and HP-UX ksh.
38934
38935         Split large sed scripts, for HP-UX sed.
38936         * modules/stdio: Split sed scripts around 50 sed commands,
38937         to avoid HP-UX limit of 99 commands, in the near future.
38938         * modules/string: Likewise.
38939         * modules/unistd: Likewise.
38940
38941         gnulib-tool: avoid writing in the current directory.
38942         * gnulib-tool (func_emit_lib_Makefile_am)
38943         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38944         not in the current directory, so concurrent gnulib-tool
38945         instances do not interfere.
38946
38947 2010-01-16  Jim Meyering  <meyering@redhat.com>
38948
38949         doc: update users.txt
38950         * users.txt: Add grep.
38951         (diffutils, gzip): Update URLs.
38952
38953 2010-01-12  Bruno Haible  <bruno@clisp.org>
38954
38955         posix_spawn: Avoid test failure on Cygwin.
38956         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38957         characters.
38958         Reported by Simon Josefsson.
38959
38960 2010-01-12  Bruno Haible  <bruno@clisp.org>
38961
38962         * tests/test-cond.c (main): When skipping the test, show the reason.
38963
38964 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38965
38966         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38967
38968 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38969
38970         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38971         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38972
38973 2010-01-12  Eric Blake  <ebb9@byu.net>
38974
38975         build: guarantee AS_VAR_IF
38976         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38977         (gl_AS_VAR_IF): Move...
38978         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38979         Reported by Simon Josefsson.
38980
38981 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38982
38983         * lib/stdio.in.h: Fix typo.
38984
38985 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38986
38987         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38988         libgpg-error.
38989
38990 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38991
38992         * tests/test-xalloc-die.sh: Use $EXEEXT.
38993
38994 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38995             Bruno Haible  <bruno@clisp.org>
38996
38997         getlogin, getlogin_r: Avoid test failure.
38998         * tests/test-getlogin.c: Include <stdio.h>.
38999         (main): Skip the test when the function fails because stdin is not a
39000         tty.
39001         * tests/test-getlogin_r.c: Include <stdio.h>.
39002         (main): Skip the test when the function fails because stdin is not a
39003         tty.
39004
39005 2010-01-11  Eric Blake  <ebb9@byu.net>
39006
39007         tests: avoid more large file warnings
39008         * tests/test-fflush.c: Avoid warning about ftell use.
39009         * tests/test-fseek.c: Avoid warning about fseek use.
39010
39011 2010-01-10  Bruno Haible  <bruno@clisp.org>
39012
39013         nproc: Work better on Linux when /proc and /sys are not mounted.
39014         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39015         as lower bound when, on glibc/Linux systems,
39016         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39017         Suggested by Pádraig Brady <P@draigbrady.com>.
39018         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39019
39020         nproc: Refactor.
39021         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39022         extracted from num_processors.
39023         (num_processors): Call it.
39024
39025 2010-01-11  Jim Meyering  <meyering@redhat.com>
39026
39027         utimecmp: avoid new warning from upcoming gcc-4.5.0
39028         * lib/utimecmp.c (BILLION): Define using #define rather than an
39029         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39030
39031 2010-01-11  Eric Blake  <ebb9@byu.net>
39032
39033         math: add portability warnings for classification macros
39034         * modules/math (Depends-on): Add warn-on-use.
39035         (Makefile.am): Provide new substitutions.
39036         * m4/math_h.m4 (gl_MATH_H): Require inline.
39037         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39038         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39039         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39040         implement warnings.
39041
39042         unistd: warn on use of environ without module
39043         * modules/unistd (Depends-on): Add warn-on-use.
39044         (Makefile.am): Provide new substitutions.
39045         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39046         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39047
39048         stdio: warn on suspicious uses
39049         * modules/stdio (Depends-on): Add warn-on-use.
39050         (Makefile.am): Provide new substitutions.
39051         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39052         fseeko.
39053         * lib/stdio.in.h (gets): Always warn on use.
39054         (fseek, ftell): Adjust when warnings are issued, and honor
39055         _GL_NO_LARGE_FILES as a way to silence the warning.
39056         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39057         any warning about large file offsets.
39058         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39059         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39060         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39061         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39062         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39063         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39064         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39065         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39066
39067         warn-on-use: new module
39068         * modules/warn-on-use: New file.
39069         * build-aux/warn-on-use.h: Likewise.
39070         * m4/warn-on-use.m4: Likewise.
39071         * MODULES.html.sh (Support for building): Mention it.
39072
39073 2010-01-10  Bruno Haible  <bruno@clisp.org>
39074
39075         Tests for module 'unistr/u32-strdup'.
39076         * modules/unistr/u32-strdup-tests: New file.
39077         * tests/unistr/test-u32-strdup.c: New file.
39078
39079         Tests for module 'unistr/u16-strdup'.
39080         * modules/unistr/u16-strdup-tests: New file.
39081         * tests/unistr/test-u16-strdup.c: New file.
39082
39083         Tests for module 'unistr/u8-strdup'.
39084         * modules/unistr/u8-strdup-tests: New file.
39085         * tests/unistr/test-u8-strdup.c: New file.
39086         * tests/unistr/test-strdup.h: New file.
39087
39088         Tests for module 'unistr/u32-strncmp'.
39089         * modules/unistr/u32-strncmp-tests: New file.
39090         * tests/unistr/test-u32-strncmp.c: New file.
39091
39092         Tests for module 'unistr/u16-strncmp'.
39093         * modules/unistr/u16-strncmp-tests: New file.
39094         * tests/unistr/test-u16-strncmp.c: New file.
39095
39096         Tests for module 'unistr/u8-strncmp'.
39097         * modules/unistr/u8-strncmp-tests: New file.
39098         * tests/unistr/test-u8-strncmp.c: New file.
39099         * tests/unistr/test-strncmp.h: New file.
39100
39101         Tests for module 'unistr/u32-strcoll'.
39102         * modules/unistr/u32-strcoll-tests: New file.
39103         * tests/unistr/test-u32-strcoll.c: New file.
39104
39105         Tests for module 'unistr/u16-strcoll'.
39106         * modules/unistr/u16-strcoll-tests: New file.
39107         * tests/unistr/test-u16-strcoll.c: New file.
39108
39109         Tests for module 'unistr/u8-strcoll'.
39110         * modules/unistr/u8-strcoll-tests: New file.
39111         * tests/unistr/test-u8-strcoll.c: New file.
39112
39113         Tests for module 'unistr/u32-strcmp'.
39114         * modules/unistr/u32-strcmp-tests: New file.
39115         * tests/unistr/test-u32-strcmp.c: New file.
39116         * tests/unistr/test-u32-strcmp.h: New file.
39117
39118         Tests for module 'unistr/u16-strcmp'.
39119         * modules/unistr/u16-strcmp-tests: New file.
39120         * tests/unistr/test-u16-strcmp.c: New file.
39121         * tests/unistr/test-u16-strcmp.h: New file.
39122
39123         Tests for module 'unistr/u8-strcmp'.
39124         * modules/unistr/u8-strcmp-tests: New file.
39125         * tests/unistr/test-u8-strcmp.c: New file.
39126         * tests/unistr/test-u8-strcmp.h: New file.
39127         * tests/unistr/test-strcmp.h: New file.
39128
39129         Tests for module 'unistr/u32-strncat'.
39130         * modules/unistr/u32-strncat-tests: New file.
39131         * tests/unistr/test-u32-strncat.c: New file.
39132
39133         Tests for module 'unistr/u16-strncat'.
39134         * modules/unistr/u16-strncat-tests: New file.
39135         * tests/unistr/test-u16-strncat.c: New file.
39136
39137         Tests for module 'unistr/u8-strncat'.
39138         * modules/unistr/u8-strncat-tests: New file.
39139         * tests/unistr/test-u8-strncat.c: New file.
39140         * tests/unistr/test-strncat.h: New file.
39141
39142         Tests for module 'unistr/u32-strcat'.
39143         * modules/unistr/u32-strcat-tests: New file.
39144         * tests/unistr/test-u32-strcat.c: New file.
39145
39146         Tests for module 'unistr/u16-strcat'.
39147         * modules/unistr/u16-strcat-tests: New file.
39148         * tests/unistr/test-u16-strcat.c: New file.
39149
39150         Tests for module 'unistr/u8-strcat'.
39151         * modules/unistr/u8-strcat-tests: New file.
39152         * tests/unistr/test-u8-strcat.c: New file.
39153         * tests/unistr/test-strcat.h: New file.
39154
39155         Tests for module 'unistr/u32-stpncpy'.
39156         * modules/unistr/u32-stpncpy-tests: New file.
39157         * tests/unistr/test-u32-stpncpy.c: New file.
39158
39159         Tests for module 'unistr/u16-stpncpy'.
39160         * modules/unistr/u16-stpncpy-tests: New file.
39161         * tests/unistr/test-u16-stpncpy.c: New file.
39162
39163         Tests for module 'unistr/u8-stpncpy'.
39164         * modules/unistr/u8-stpncpy-tests: New file.
39165         * tests/unistr/test-u8-stpncpy.c: New file.
39166         * tests/unistr/test-stpncpy.h: New file.
39167
39168         Tests for module 'unistr/u32-strncpy'.
39169         * modules/unistr/u32-strncpy-tests: New file.
39170         * tests/unistr/test-u32-strncpy.c: New file.
39171
39172         Tests for module 'unistr/u16-strncpy'.
39173         * modules/unistr/u16-strncpy-tests: New file.
39174         * tests/unistr/test-u16-strncpy.c: New file.
39175
39176         Tests for module 'unistr/u8-strncpy'.
39177         * modules/unistr/u8-strncpy-tests: New file.
39178         * tests/unistr/test-u8-strncpy.c: New file.
39179         * tests/unistr/test-strncpy.h: New file.
39180
39181         Tests for module 'unistr/u32-stpcpy'.
39182         * modules/unistr/u32-stpcpy-tests: New file.
39183         * tests/unistr/test-u32-stpcpy.c: New file.
39184
39185         Tests for module 'unistr/u16-stpcpy'.
39186         * modules/unistr/u16-stpcpy-tests: New file.
39187         * tests/unistr/test-u16-stpcpy.c: New file.
39188
39189         Tests for module 'unistr/u8-stpcpy'.
39190         * modules/unistr/u8-stpcpy-tests: New file.
39191         * tests/unistr/test-u8-stpcpy.c: New file.
39192         * tests/unistr/test-stpcpy.h: New file.
39193
39194         Tests for module 'unistr/u32-strcpy'.
39195         * modules/unistr/u32-strcpy-tests: New file.
39196         * tests/unistr/test-u32-strcpy.c: New file.
39197
39198         Tests for module 'unistr/u16-strcpy'.
39199         * modules/unistr/u16-strcpy-tests: New file.
39200         * tests/unistr/test-u16-strcpy.c: New file.
39201
39202         Tests for module 'unistr/u8-strcpy'.
39203         * modules/unistr/u8-strcpy-tests: New file.
39204         * tests/unistr/test-u8-strcpy.c: New file.
39205         * tests/unistr/test-strcpy.h: New file.
39206
39207         Tests for module 'unistr/u32-strnlen'.
39208         * modules/unistr/u32-strnlen-tests: New file.
39209         * tests/unistr/test-u32-strnlen.c: New file.
39210
39211         Tests for module 'unistr/u16-strnlen'.
39212         * modules/unistr/u16-strnlen-tests: New file.
39213         * tests/unistr/test-u16-strnlen.c: New file.
39214
39215         Tests for module 'unistr/u8-strnlen'.
39216         * modules/unistr/u8-strnlen-tests: New file.
39217         * tests/unistr/test-u8-strnlen.c: New file.
39218         * tests/unistr/test-strnlen.h: New file.
39219
39220         Tests for module 'unistr/u32-strlen'.
39221         * modules/unistr/u32-strlen-tests: New file.
39222         * tests/unistr/test-u32-strlen.c: New file.
39223
39224         Tests for module 'unistr/u16-strlen'.
39225         * modules/unistr/u16-strlen-tests: New file.
39226         * tests/unistr/test-u16-strlen.c: New file.
39227
39228         Tests for module 'unistr/u8-strlen'.
39229         * modules/unistr/u8-strlen-tests: New file.
39230         * tests/unistr/test-u8-strlen.c: New file.
39231
39232         Tests for module 'unistr/u32-prev'.
39233         * modules/unistr/u32-prev-tests: New file.
39234         * tests/unistr/test-u32-prev.c: New file.
39235
39236         Tests for module 'unistr/u16-prev'.
39237         * modules/unistr/u16-prev-tests: New file.
39238         * tests/unistr/test-u16-prev.c: New file.
39239
39240         Tests for module 'unistr/u8-prev'.
39241         * modules/unistr/u8-prev-tests: New file.
39242         * tests/unistr/test-u8-prev.c: New file.
39243
39244         Tests for module 'unistr/u32-next'.
39245         * modules/unistr/u32-next-tests: New file.
39246         * tests/unistr/test-u32-next.c: New file.
39247
39248         Tests for module 'unistr/u16-next'.
39249         * modules/unistr/u16-next-tests: New file.
39250         * tests/unistr/test-u16-next.c: New file.
39251
39252         Tests for module 'unistr/u8-next'.
39253         * modules/unistr/u8-next-tests: New file.
39254         * tests/unistr/test-u8-next.c: New file.
39255
39256         Tests for module 'unistr/u32-strmbtouc'.
39257         * modules/unistr/u32-strmbtouc-tests: New file.
39258         * tests/unistr/test-u32-strmbtouc.c: New file.
39259
39260         Tests for module 'unistr/u16-strmbtouc'.
39261         * modules/unistr/u16-strmbtouc-tests: New file.
39262         * tests/unistr/test-u16-strmbtouc.c: New file.
39263
39264         Tests for module 'unistr/u8-strmbtouc'.
39265         * modules/unistr/u8-strmbtouc-tests: New file.
39266         * tests/unistr/test-u8-strmbtouc.c: New file.
39267
39268         Tests for module 'unistr/u32-strmblen'.
39269         * modules/unistr/u32-strmblen-tests: New file.
39270         * tests/unistr/test-u32-strmblen.c: New file.
39271
39272         Tests for module 'unistr/u16-strmblen'.
39273         * modules/unistr/u16-strmblen-tests: New file.
39274         * tests/unistr/test-u16-strmblen.c: New file.
39275
39276         Tests for module 'unistr/u8-strmblen'.
39277         * modules/unistr/u8-strmblen-tests: New file.
39278         * tests/unistr/test-u8-strmblen.c: New file.
39279
39280         Tests for module 'unistr/u32-cpy-alloc'.
39281         * modules/unistr/u32-cpy-alloc-tests: New file.
39282         * tests/unistr/test-u32-cpy-alloc.c: New file.
39283
39284         Tests for module 'unistr/u16-cpy-alloc'.
39285         * modules/unistr/u16-cpy-alloc-tests: New file.
39286         * tests/unistr/test-u16-cpy-alloc.c: New file.
39287
39288         Tests for module 'unistr/u8-cpy-alloc'.
39289         * modules/unistr/u8-cpy-alloc-tests: New file.
39290         * tests/unistr/test-u8-cpy-alloc.c: New file.
39291         * tests/unistr/test-cpy-alloc.h: New file.
39292
39293         Tests for module 'unistr/u32-mbsnlen'.
39294         * modules/unistr/u32-mbsnlen-tests: New file.
39295         * tests/unistr/test-u32-mbsnlen.c: New file.
39296
39297         Tests for module 'unistr/u16-mbsnlen'.
39298         * modules/unistr/u16-mbsnlen-tests: New file.
39299         * tests/unistr/test-u16-mbsnlen.c: New file.
39300
39301         Tests for module 'unistr/u8-mbsnlen'.
39302         * modules/unistr/u8-mbsnlen-tests: New file.
39303         * tests/unistr/test-u8-mbsnlen.c: New file.
39304
39305         Tests for module 'unistr/u32-chr'.
39306         * modules/unistr/u32-chr-tests: New file.
39307         * tests/unistr/test-u32-chr.c: New file.
39308
39309         Tests for module 'unistr/u16-chr'.
39310         * modules/unistr/u16-chr-tests: New file.
39311         * tests/unistr/test-u16-chr.c: New file.
39312
39313         Tests for module 'unistr/u8-chr'.
39314         * modules/unistr/u8-chr-tests: New file.
39315         * tests/unistr/test-u8-chr.c: New file.
39316         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39317
39318         Tests for module 'unistr/u32-cmp2'.
39319         * modules/unistr/u32-cmp2-tests: New file.
39320         * tests/unistr/test-u32-cmp2.c: New file.
39321
39322         Tests for module 'unistr/u16-cmp2'.
39323         * modules/unistr/u16-cmp2-tests: New file.
39324         * tests/unistr/test-u16-cmp2.c: New file.
39325
39326         Tests for module 'unistr/u8-cmp2'.
39327         * modules/unistr/u8-cmp2-tests: New file.
39328         * tests/unistr/test-u8-cmp2.c: New file.
39329         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39330
39331         Tests for module 'unistr/u32-cmp'.
39332         * modules/unistr/u32-cmp-tests: New file.
39333         * tests/unistr/test-u32-cmp.c: New file.
39334
39335         Tests for module 'unistr/u16-cmp'.
39336         * modules/unistr/u16-cmp-tests: New file.
39337         * tests/unistr/test-u16-cmp.c: New file.
39338
39339         Tests for module 'unistr/u8-cmp'.
39340         * modules/unistr/u8-cmp-tests: New file.
39341         * tests/unistr/test-u8-cmp.c: New file.
39342         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39343
39344         Tests for module 'unistr/u32-set'.
39345         * modules/unistr/u32-set-tests: New file.
39346         * tests/unistr/test-u32-set.c: New file.
39347
39348         Tests for module 'unistr/u16-set'.
39349         * modules/unistr/u16-set-tests: New file.
39350         * tests/unistr/test-u16-set.c: New file.
39351
39352         Tests for module 'unistr/u8-set'.
39353         * modules/unistr/u8-set-tests: New file.
39354         * tests/unistr/test-u8-set.c: New file.
39355         * tests/unistr/test-set.h: New file.
39356
39357         Tests for module 'unistr/u32-move'.
39358         * modules/unistr/u32-move-tests: New file.
39359         * tests/unistr/test-u32-move.c: New file.
39360
39361         Tests for module 'unistr/u16-move'.
39362         * modules/unistr/u16-move-tests: New file.
39363         * tests/unistr/test-u16-move.c: New file.
39364
39365         Tests for module 'unistr/u8-move'.
39366         * modules/unistr/u8-move-tests: New file.
39367         * tests/unistr/test-u8-move.c: New file.
39368         * tests/unistr/test-move.h: New file.
39369
39370         Tests for module 'unistr/u32-cpy'.
39371         * modules/unistr/u32-cpy-tests: New file.
39372         * tests/unistr/test-u32-cpy.c: New file.
39373
39374         Tests for module 'unistr/u16-cpy'.
39375         * modules/unistr/u16-cpy-tests: New file.
39376         * tests/unistr/test-u16-cpy.c: New file.
39377
39378         Tests for module 'unistr/u8-cpy'.
39379         * modules/unistr/u8-cpy-tests: New file.
39380         * tests/unistr/test-u8-cpy.c: New file.
39381         * tests/unistr/test-cpy.h: New file.
39382
39383 2010-01-09  Bruno Haible  <bruno@clisp.org>
39384
39385         Tests for module 'unistr/u32-uctomb'.
39386         * modules/unistr/u32-uctomb-tests: New file.
39387         * tests/unistr/test-u32-uctomb.c: New file.
39388
39389         Tests for module 'unistr/u16-uctomb'.
39390         * modules/unistr/u16-uctomb-tests: New file.
39391         * tests/unistr/test-u16-uctomb.c: New file.
39392
39393         Tests for module 'unistr/u8-uctomb'.
39394         * modules/unistr/u8-uctomb-tests: New file.
39395         * tests/unistr/test-u8-uctomb.c: New file.
39396
39397         Tests for module 'unistr/u32-mbtoucr'.
39398         * modules/unistr/u32-mbtoucr-tests: New file.
39399         * tests/unistr/test-u32-mbtoucr.c: New file.
39400
39401         Tests for module 'unistr/u16-mbtoucr'.
39402         * modules/unistr/u16-mbtoucr-tests: New file.
39403         * tests/unistr/test-u16-mbtoucr.c: New file.
39404
39405         Tests for module 'unistr/u8-mbtoucr'.
39406         * modules/unistr/u8-mbtoucr-tests: New file.
39407         * tests/unistr/test-u8-mbtoucr.c: New file.
39408
39409         Tests for module 'unistr/u32-mbtouc'.
39410         * modules/unistr/u32-mbtouc-tests: New file.
39411         * tests/unistr/test-u32-mbtouc.c: New file.
39412
39413         Tests for module 'unistr/u16-mbtouc'.
39414         * modules/unistr/u16-mbtouc-tests: New file.
39415         * tests/unistr/test-u16-mbtouc.c: New file.
39416
39417         Tests for module 'unistr/u8-mbtouc'.
39418         * modules/unistr/u8-mbtouc-tests: New file.
39419         * tests/unistr/test-u8-mbtouc.c: New file.
39420
39421         Tests for module 'unistr/u32-mbtouc-unsafe'.
39422         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39423         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39424         * tests/unistr/test-u32-mbtouc.h: New file.
39425
39426         Tests for module 'unistr/u16-mbtouc-unsafe'.
39427         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39428         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39429         * tests/unistr/test-u16-mbtouc.h: New file.
39430
39431         Tests for module 'unistr/u8-mbtouc-unsafe'.
39432         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39433         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39434         * tests/unistr/test-u8-mbtouc.h: New file.
39435
39436         Tests for module 'unistr/u32-mblen'.
39437         * modules/unistr/u32-mblen-tests: New file.
39438         * tests/unistr/test-u32-mblen.c: New file.
39439
39440         Tests for module 'unistr/u16-mblen'.
39441         * modules/unistr/u16-mblen-tests: New file.
39442         * tests/unistr/test-u16-mblen.c: New file.
39443
39444         Tests for module 'unistr/u8-mblen'.
39445         * modules/unistr/u8-mblen-tests: New file.
39446         * tests/unistr/test-u8-mblen.c: New file.
39447
39448         Tests for module 'unistr/u32-to-u16'.
39449         * modules/unistr/u32-to-u16-tests: New file.
39450         * tests/unistr/test-u32-to-u16.c: New file.
39451
39452         Tests for module 'unistr/u32-to-u8'.
39453         * modules/unistr/u32-to-u8-tests: New file.
39454         * tests/unistr/test-u32-to-u8.c: New file.
39455
39456         Tests for module 'unistr/u16-to-u32'.
39457         * modules/unistr/u16-to-u32-tests: New file.
39458         * tests/unistr/test-u16-to-u32.c: New file.
39459
39460         Tests for module 'unistr/u16-to-u8'.
39461         * modules/unistr/u16-to-u8-tests: New file.
39462         * tests/unistr/test-u16-to-u8.c: New file.
39463
39464         Tests for module 'unistr/u8-to-u32'.
39465         * modules/unistr/u8-to-u32-tests: New file.
39466         * tests/unistr/test-u8-to-u32.c: New file.
39467
39468         Tests for module 'unistr/u8-to-u16'.
39469         * modules/unistr/u8-to-u16-tests: New file.
39470         * tests/unistr/test-u8-to-u16.c: New file.
39471
39472         Tests for module 'unistr/u32-check'.
39473         * modules/unistr/u32-check-tests: New file.
39474         * tests/unistr/test-u32-check.c: New file.
39475
39476         Tests for module 'unistr/u16-check'.
39477         * modules/unistr/u16-check-tests: New file.
39478         * tests/unistr/test-u16-check.c: New file.
39479
39480         Tests for module 'unistr/u8-check'.
39481         * modules/unistr/u8-check-tests: New file.
39482         * tests/unistr/test-u8-check.c: New file.
39483
39484         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39485         (category_equals): New function.
39486         (main): Add more tests.
39487         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39488
39489         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39490
39491 2010-01-10  Bruno Haible  <bruno@clisp.org>
39492
39493         unistr/u*-strcoll: Try harder to distinguish different strings.
39494         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39495         compare s1 and s2 to see if they are different.
39496
39497 2010-01-10  Bruno Haible  <bruno@clisp.org>
39498
39499         unistr/u*-stpncpy: Fix the return value.
39500         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39501         description of the return value consistent with stpncpy in glibc.
39502         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39503         written non-NUL unit.
39504
39505 2010-01-10  Bruno Haible  <bruno@clisp.org>
39506
39507         unistr/u*-next: Add missing dependencies.
39508         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39509         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39510         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39511
39512 2010-01-10  Bruno Haible  <bruno@clisp.org>
39513
39514         unistr/u8-mbsnlen: Fix return value for incomplete character.
39515         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39516         u8_mblen.
39517         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39518         Remove unistr/u8-mblen.
39519         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39520         u16_mblen.
39521         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39522         Remove unistr/u16-mblen.
39523
39524 2010-01-10  Bruno Haible  <bruno@clisp.org>
39525
39526         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39527         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39528         Reported by Brian Gough <bjg@gnu.org> and
39529         Chris Clayton <chris2553@googlemail.com> via
39530         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39531
39532 2010-01-09  Bruno Haible  <bruno@clisp.org>
39533
39534         unistr/u16-to-u32: Reject invalid input.
39535         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39536         u16_mbtouc.
39537         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39538         Remove unistr/u16-mbtouc.
39539
39540         unistr/u16-to-u8: Reject invalid input.
39541         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39542         u16_mbtouc.
39543         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39544         Remove unistr/u16-mbtouc.
39545
39546         unistr/u8-to-u32: Reject invalid input.
39547         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39548         u8_mbtouc.
39549         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39550         Remove unistr/u8-mbtouc.
39551
39552         unistr/u8-to-u16: Reject invalid input.
39553         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39554         u8_mbtouc.
39555         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39556         Remove unistr/u8-mbtouc.
39557
39558 2010-01-09  Bruno Haible  <bruno@clisp.org>
39559
39560         Tests for module 'getlogin'.
39561         * modules/getlogin-tests: New file.
39562         * tests/test-getlogin.c: New file.
39563
39564         New module 'getlogin'.
39565         * lib/unistd.in.h (getlogin): New declaration.
39566         * lib/getlogin.c: New file.
39567         * m4/getlogin.m4: New file.
39568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39569         HAVE_GETLOGIN.
39570         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39571         HAVE_GETLOGIN.
39572         * modules/getlogin: New file.
39573         * doc/posix-functions/getlogin.texi: Mention the new module.
39574         Reported by John W. Eaton <jwe@gnu.org>.
39575
39576 2010-01-09  Bruno Haible  <bruno@clisp.org>
39577
39578         getlogin_r: Support for native Windows.
39579         * lib/getlogin_r.c: Include <windows.h>
39580         (getlogin_r): Implement for native Windows.
39581         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39582         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39583         via John W. Eaton <jwe@gnu.org>.
39584
39585 2010-01-09  Bruno Haible  <bruno@clisp.org>
39586
39587         getlogin_r: Small fixes.
39588         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39589         succeeds.
39590         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39591         before testing whether getlogin_r is declared. No need to set
39592         HAVE_DECL_GETLOGIN_R to 1.
39593         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39594
39595 2010-01-09  Bruno Haible  <bruno@clisp.org>
39596
39597         * lib/unistd.in.h (getlogin_r): Add comment.
39598
39599 2010-01-09  Bruno Haible  <bruno@clisp.org>
39600
39601         Tests for module 'getlogin_r'.
39602         * modules/getlogin_r-tests: New file.
39603         * tests/test-getlogin_r.c: New file.
39604
39605 2010-01-09  Jim Meyering  <meyering@redhat.com>
39606
39607         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39608         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39609         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39610
39611 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39612
39613         * lib/dup2.c (rpl_dup2): Improve comment.
39614
39615 2010-01-08  Eric Blake  <ebb9@byu.net>
39616
39617         maint.mk: allow packages to add makefile @@ exceptions
39618         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39619         (sc_makefile_check): Rename...
39620         (sc_makefile_at_at_check): ...to this, and use hook.
39621
39622         dup2: work around mingw bug
39623         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39624         Reported by Simon Josefsson.
39625
39626 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39627
39628         glob: Fix C++ compilation.
39629         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39630         C++.
39631
39632 2010-01-07  Bruno Haible  <bruno@clisp.org>
39633
39634         Fix indentation of wctype.in.h, broken since 2007-01-06.
39635         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39636
39637 2010-01-07  Bruno Haible  <bruno@clisp.org>
39638
39639         mbslen: Avoid collision with system function.
39640         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39641         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39642         * m4/mbslen.m4: New file.
39643         * modules/mbslen (Files): Add it.
39644         (configure.ac): Invoke gl_MBSLEN.
39645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39646         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39647         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39648         via Ian Beckwith <ianb@erislabs.net>.
39649
39650 2010-01-07  Bruno Haible  <bruno@clisp.org>
39651
39652         dirent: Document the last fix.
39653         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39654
39655 2010-01-07  Bruno Haible  <bruno@clisp.org>
39656
39657         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39658         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39659         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39660         va_list are defined.
39661         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39662         Reported by Eric Blake.
39663
39664 2010-01-07  Bruno Haible  <bruno@clisp.org>
39665
39666         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39667         * modules/xlist (Depends-on): Add 'list',
39668         * modules/xoset (Depends-on): Add 'oset'.
39669         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39670
39671 2010-01-07  Bruno Haible  <bruno@clisp.org>
39672
39673         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39674         * doc/posix-functions/strncasecmp.texi: Likewise.
39675
39676 2010-01-07  Bruno Haible  <bruno@clisp.org>
39677
39678         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39679
39680 2010-01-07  John W. Eaton  <jwe@octave.org>
39681
39682         wctype: allow C++ use
39683         * lib/wctype.in.h: Add extern "C" block for C++.
39684
39685 2010-01-06  Eric Blake  <ebb9@byu.net>
39686
39687         maint.mk: detect incorrect GFDL usage
39688         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39689
39690 2010-01-06  Jim Meyering  <meyering@redhat.com>
39691         and Eric Blake  <ebb9@byu.net>
39692
39693         maint.mk: ignore multi-line copyright in NEWS
39694         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39695
39696 2010-01-06  Eric Blake  <ebb9@byu.net>
39697
39698         select: add missing dependency
39699         * modules/select-tests (Depends-on): Move sockets dependency...
39700         * modules/select (Depends-on): ...here.
39701         Reported by Ian Beckwith.
39702
39703         doc: regenerate INSTALL
39704         * doc/INSTALL: Reflect recent autoconf update.
39705         * doc/INSTALL.ISO: Likewise.
39706         * doc/INSTALL.UTF-8: Likewise.
39707
39708         pread: fix compilation on glibc
39709         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39710         Reported by Ralf Wildenhues.
39711
39712         dirent: fix test failure
39713         * lib/dirent.in.h (includes): Guarantee ino_t.
39714         Reported by Ralf Wildenhues.
39715
39716 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39717
39718         linkat, renameat: avoid bad free
39719         * lib/at-func2.c (at_func2): Fix typo.
39720         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39721
39722 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39723
39724         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39725         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39726         to avoid failure of symlink test later.
39727
39728 2010-01-06  Eric Blake  <ebb9@byu.net>
39729
39730         stdio, unistd: guarantee ssize_t
39731         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39732         2008 are exposed when needed.
39733         * lib/stdio.in.h (includes): Likewise.
39734         Reported by Ralf Wildenhues.
39735
39736 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39737
39738         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39739         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39740         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39741
39742 2010-01-06  Jim Meyering  <meyering@redhat.com>
39743
39744         readtokens: this module *does* require xalloc.h
39745         It uses only functions that were omitted by the old syntax-check rule.
39746         * lib/readtokens.c: Include "xalloc.h" once again.
39747         * modules/readtokens (Depends-on): Add xalloc.
39748         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39749
39750 2010-01-05  Eric Blake  <ebb9@byu.net>
39751
39752         maint: support 'make announcement' from a VPATH build
39753         * top/maint.mk (announcement): Look for correct NEWS file.
39754
39755 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39756
39757         utimens (fdutimens): ignore a negative FD, per contract
39758         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39759         when we have a valid file descriptor.  Otherwise, using a brand
39760         new glibc (with just-patched futimens that now fails with EBADF)
39761         would cause this function to fail with ENOSYS.
39762         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39763         See also http://bugzilla.redhat.com/552320.
39764
39765 2010-01-05  Eric Blake  <ebb9@byu.net>
39766
39767         strcase: document what it provides
39768         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39769         gnulib module.
39770         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39771         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39772
39773 2010-01-05  Jim Meyering  <meyering@redhat.com>
39774
39775         maint: remove useless inclusions of "xalloc.h"
39776         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39777         * lib/readtokens.c: Likewise.
39778         * lib/same.c: Likewise.
39779         * modules/getloadavg (Depends-on): Remove xalloc.
39780         * modules/readtokens: Likewise.
39781         * modules/same: Likewise.
39782
39783         maint.mk: include 4 more function names in alloca.h-checking regexp
39784         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39785         regexp.  Before, we would give a false-positive (saying alloca.h
39786         is included unnecessarily) when the only uses involved omitted symbols.
39787
39788         xalloc.h: use consistent formatting
39789         * lib/xalloc.h: Move declarations to start in the first column.
39790
39791 2010-01-05  Eric Blake  <ebb9@byu.net>
39792
39793         mkdir: avoid xalloc
39794         * lib/mkdir.c (includes): Drop unused header.
39795         Reported by John W. Eaton.
39796
39797 2010-01-04  Jim Meyering  <meyering@redhat.com>
39798
39799         nl_langinfo: avoid configure-time syntax error
39800         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39801         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39802         the empty string.  Don't let that provoke a shell syntax error.
39803
39804         regcomp, regexec, fnmatch: avoid array bounds read error
39805         * lib/regcomp.c (build_equiv_class): From glibc:
39806         Use only the low 24 bits of a findidx return value as an index
39807         into the weights array.  Patch by Ulrich Drepper:
39808         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39809         * lib/regexec.c (check_node_accept_bytes): Likewise.
39810         * lib/fnmatch_loop.c (FCT): Likewise.
39811
39812         regcomp: skip collseq lookup when there are no rules
39813         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39814         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39815
39816         regcomp: recognize ill-formed { } expressions
39817         * lib/regcomp.c (parse_dup_op): From glibc:
39818         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39819
39820         regcomp: fix typo in comment
39821         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39822         s/satisfy/satisfies/.
39823
39824         regcomp: sync from glibc: remove dead store
39825         * lib/regcomp.c (duplicate_node_closure): Remove useless
39826         search_duplicated_node call and dead store.
39827
39828         regcomp: sync from glibc; always use nl_langinfo
39829         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39830         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39831         * modules/regex (Depends-on): Add nl_langinfo.
39832
39833 2010-01-04  Eric Blake  <ebb9@byu.net>
39834
39835         fdopendir: fix configure test
39836         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39837
39838 2010-01-01  Bruno Haible  <bruno@clisp.org>
39839
39840         wchar: Remove unused configure check.
39841         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39842
39843 2010-01-01  Eric Blake  <ebb9@byu.net>
39844
39845         headers: make check of system header explicit
39846         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39847         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39848         ourselves.
39849         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39850         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39851         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39852         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39853         internals.
39854         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39855         missing.
39856         Suggested by Bruno Haible.
39857
39858 2010-01-01  Jim Meyering  <meyering@redhat.com>
39859
39860         ChangeLog: tweak to eliminate unnecessary copyright line
39861         * ChangeLog: Remove a copyright line that was mistakenly updated
39862         by today's update-copyright run.  Reported by Eric Blake.
39863
39864         test-update-copyright: don't let envvar setting cause test failure
39865         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39866
39867 2010-01-01  Bruno Haible  <bruno@clisp.org>
39868
39869         localename: Avoid gcc warning.
39870         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
39871         function if it is not used.
39872
39873 2010-01-01  Jim Meyering  <meyering@redhat.com>
39874
39875         update nearly all FSF copyright year lists to include 2010
39876         Use the same procedure as for 2009, outlined in
39877         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
39878
39879         version-etc: set COPYRIGHT_YEAR to 2010
39880         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
39881
39882 2009-12-31  Eric Blake  <ebb9@byu.net>
39883
39884         doc: correct availability of cygwin 1.5.x getopt
39885         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
39886         variables.
39887         * doc/posix-functions/opterr.texi (opterr): Likewise.
39888         * doc/posix-functions/optind.texi (optind): Likewise.
39889         * doc/posix-functions/optopt.texi (optopt): Likewise.
39890         * doc/posix-functions/tzname.texi (tzname): Likewise.
39891
39892         openat: update maintainer
39893         * modules/openat (Maintainer): Add myself.
39894
39895         utimens: avoid shadowing warning
39896         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
39897         buffers into one, to avoid shadowing, as well as avoiding a
39898         redundant stat.
39899         Reported by Jim Meyering.
39900
39901         test-dup2: avoid compiler warning
39902         * tests/test-dup2.c (is_inheritable): Only define if used.
39903
39904 2010-01-01  Bruno Haible  <bruno@clisp.org>
39905
39906         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
39907         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
39908         defined, use wctomb instead of wcrtomb.
39909
39910 2010-01-01  Bruno Haible  <bruno@clisp.org>
39911
39912         iconv: Reject native Solaris iconv.
39913         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39914         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39915
39916 2009-12-31  Bruno Haible  <bruno@clisp.org>
39917
39918         * tests/test-signal.c (main): Remove test of 'SIG'.
39919
39920 2009-12-31  Bruno Haible  <bruno@clisp.org>
39921
39922         spawn: Fix incomplete fix.
39923         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39924         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39925         warnings for GNULIB_POSIXCHECK again.
39926         Reported by Eric Blake.
39927
39928 2009-12-31  Bruno Haible  <bruno@clisp.org>
39929
39930         Avoid namespace pollution on glibc systems.
39931         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39932         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39933         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39934         glibc systems.
39935
39936 2009-12-31  Bruno Haible  <bruno@clisp.org>
39937
39938         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39939         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39940         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39941         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39942         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39943         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39944         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39945
39946 2009-12-31  Bruno Haible  <bruno@clisp.org>
39947
39948         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39949         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39950         afterwards.
39951
39952 2009-12-31  Bruno Haible  <bruno@clisp.org>
39953
39954         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39955         SYS_UTSNAME_H.
39956
39957 2009-12-31  Bruno Haible  <bruno@clisp.org>
39958
39959         spawn: Fix misapplied patch.
39960         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39961         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39962         warnings for GNULIB_POSIXCHECK.
39963
39964 2009-12-31  Bruno Haible  <bruno@clisp.org>
39965
39966         times: Update after sys_times changed.
39967         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39968         * modules/times (Files): Add it.
39969         (configure.ac): Invoke gl_FUNC_TIMES.
39970
39971 2009-12-31  Bruno Haible  <bruno@clisp.org>
39972
39973         Use AC_C_INLINE where necessary.
39974         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39975         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39976         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39977         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39978         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39979         * m4/mbiter.m4 (gl_MBITER): Likewise.
39980         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39981         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39982         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39983         * modules/u64 (configure.ac): Likewise.
39984
39985 2009-12-31  Bruno Haible  <bruno@clisp.org>
39986
39987         Use AC_C_INLINE instead of module 'inline' where possible.
39988         * modules/inline (Description): Clarify purpose.
39989         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39990         * modules/count-one-bits (Depends-on): Remove inline.
39991         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39992         * modules/openat (Depends-on): Remove inline.
39993         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39994         instead of depending on module 'inline'.
39995         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39996         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39997         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39998         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39999         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40000         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40001         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40002         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40003         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40004         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40005         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40006         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40007         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40008         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40009         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40010         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40011         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40012         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40013         Likewise.
40014         * modules/unictype/property-ascii-hex-digit (Depends-on,
40015         configure.ac): Likewise.
40016         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40017         configure.ac): Likewise.
40018         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40019         configure.ac): Likewise.
40020         * modules/unictype/property-bidi-block-separator (Depends-on,
40021         configure.ac): Likewise.
40022         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40023         configure.ac): Likewise.
40024         * modules/unictype/property-bidi-common-separator (Depends-on,
40025         configure.ac): Likewise.
40026         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40027         Likewise.
40028         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40029         configure.ac): Likewise.
40030         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40031         configure.ac): Likewise.
40032         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40033         configure.ac): Likewise.
40034         * modules/unictype/property-bidi-european-digit (Depends-on,
40035         configure.ac): Likewise.
40036         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40037         configure.ac): Likewise.
40038         * modules/unictype/property-bidi-left-to-right (Depends-on,
40039         configure.ac): Likewise.
40040         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40041         configure.ac): Likewise.
40042         * modules/unictype/property-bidi-other-neutral (Depends-on,
40043         configure.ac): Likewise.
40044         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40045         Likewise.
40046         * modules/unictype/property-bidi-segment-separator (Depends-on,
40047         configure.ac): Likewise.
40048         * modules/unictype/property-bidi-whitespace (Depends-on,
40049         configure.ac): Likewise.
40050         * modules/unictype/property-combining (Depends-on, configure.ac):
40051         Likewise.
40052         * modules/unictype/property-composite (Depends-on, configure.ac):
40053         Likewise.
40054         * modules/unictype/property-currency-symbol (Depends-on,
40055         configure.ac): Likewise.
40056         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40057         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40058         Likewise.
40059         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40060         configure.ac): Likewise.
40061         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40062         Likewise.
40063         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40064         Likewise.
40065         * modules/unictype/property-extender (Depends-on, configure.ac):
40066         Likewise.
40067         * modules/unictype/property-format-control (Depends-on, configure.ac):
40068         Likewise.
40069         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40070         Likewise.
40071         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40072         Likewise.
40073         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40074         Likewise.
40075         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40076         Likewise.
40077         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40078         Likewise.
40079         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40080         Likewise.
40081         * modules/unictype/property-id-start (Depends-on, configure.ac):
40082         Likewise.
40083         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40084         Likewise.
40085         * modules/unictype/property-ids-binary-operator (Depends-on,
40086         configure.ac): Likewise.
40087         * modules/unictype/property-ids-trinary-operator (Depends-on,
40088         configure.ac): Likewise.
40089         * modules/unictype/property-ignorable-control (Depends-on,
40090         configure.ac): Likewise.
40091         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40092         Likewise.
40093         * modules/unictype/property-join-control (Depends-on, configure.ac):
40094         Likewise.
40095         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40096         Likewise.
40097         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40098         Likewise.
40099         * modules/unictype/property-logical-order-exception (Depends-on,
40100         configure.ac): Likewise.
40101         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40102         Likewise.
40103         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40104         * modules/unictype/property-non-break (Depends-on, configure.ac):
40105         Likewise.
40106         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40107         Likewise.
40108         * modules/unictype/property-numeric (Depends-on, configure.ac):
40109         Likewise.
40110         * modules/unictype/property-other-alphabetic (Depends-on,
40111         configure.ac): Likewise.
40112         * modules/unictype/property-other-default-ignorable-code-point
40113         (Depends-on, configure.ac): Likewise.
40114         * modules/unictype/property-other-grapheme-extend (Depends-on,
40115         configure.ac): Likewise.
40116         * modules/unictype/property-other-id-continue (Depends-on,
40117         configure.ac): Likewise.
40118         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40119         Likewise.
40120         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40121         Likewise.
40122         * modules/unictype/property-other-math (Depends-on, configure.ac):
40123         Likewise.
40124         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40125         Likewise.
40126         * modules/unictype/property-paired-punctuation (Depends-on,
40127         configure.ac): Likewise.
40128         * modules/unictype/property-paragraph-separator (Depends-on,
40129         configure.ac): Likewise.
40130         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40131         Likewise.
40132         * modules/unictype/property-pattern-white-space (Depends-on,
40133         configure.ac): Likewise.
40134         * modules/unictype/property-private-use (Depends-on, configure.ac):
40135         Likewise.
40136         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40137         Likewise.
40138         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40139         Likewise.
40140         * modules/unictype/property-radical (Depends-on, configure.ac):
40141         Likewise.
40142         * modules/unictype/property-sentence-terminal (Depends-on,
40143         configure.ac): Likewise.
40144         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40145         Likewise.
40146         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40147         * modules/unictype/property-terminal-punctuation (Depends-on,
40148         configure.ac): Likewise.
40149         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40150         Likewise.
40151         * modules/unictype/property-unassigned-code-value (Depends-on,
40152         configure.ac): Likewise.
40153         * modules/unictype/property-unified-ideograph (Depends-on,
40154         configure.ac): Likewise.
40155         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40156         Likewise.
40157         * modules/unictype/property-variation-selector (Depends-on,
40158         configure.ac): Likewise.
40159         * modules/unictype/property-white-space (Depends-on, configure.ac):
40160         Likewise.
40161         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40162         Likewise.
40163         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40164         Likewise.
40165         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40166         Likewise.
40167         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40168         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40169         Likewise.
40170
40171 2009-12-31  Bruno Haible  <bruno@clisp.org>
40172
40173         Remove unnecessary AC_C_INLINE invocation.
40174         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40175         since 2009-08-21.
40176
40177 2009-12-31  Jim Meyering  <meyering@redhat.com>
40178
40179         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40180         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40181         With this change, we can all remove the gpg_key_ID = ... definition
40182         from our respective cfg.mk files.
40183
40184         maint.mk: create announcement template in ~/, not in /tmp
40185         * top/maint.mk (emit_upload_commands): Adjust.
40186         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40187         Remove temporary file, .ci-msg.
40188
40189 2009-12-31  Eric Blake  <ebb9@byu.net>
40190
40191         link-warning: always build headers with link warnings
40192         * modules/arpa_inet (Makefile.am): Always build replacement
40193         header.
40194         * modules/ctype (Makefile.am): Likewise.
40195         * modules/dirent (Makefile.am): Likewise.
40196         * modules/inttypes (Makefile.am): Likewise.
40197         * modules/langinfo (Makefile.am): Likewise.
40198         * modules/locale (Makefile.am): Likewise.
40199         * modules/spawn (Makefile.am): Likewise.
40200         * modules/sys_file (Makefile.am): Likewise.
40201         * modules/sys_ioctl (Makefile.am): Likewise.
40202         * modules/sys_select (Makefile.am): Likewise.
40203         * modules/sys_socket (Makefile.am): Likewise.
40204         * modules/sys_times (Makefile.am): Likewise.
40205         * modules/sys_utsname (Makefile.am): Likewise.
40206         * modules/sys_wait (Makefile.am): Likewise.
40207         * modules/wchar (Makefile.am): Likewise.
40208         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40209         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40210         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40211         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40212         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40213         Likewise.
40214         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40215         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40216         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40217         Likewise.
40218         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40219         Likewise.
40220         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40221         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40222         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40223         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40224         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40225         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40226         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40227         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40228         (gl_WCHAR_H_DEFAULTS): Likewise.
40229
40230 2009-12-31  Eric Blake  <ebb9@byu.net>
40231
40232         signal, spawn: use link warnings
40233         * lib/signal.in.h (sigset_t): Make unconditional.
40234         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40235         (sigpending, sigprocmask, sigaction): Add link warnings.
40236         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40237         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40238         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40239         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40240         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40241         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40242         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40243         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40244         (posix_spawn_file_actions_destroy)
40245         (posix_spawn_file_actions_addopen)
40246         (posix_spawn_file_actions_addclose)
40247         (posix_spawn_file_actions_adddup2): Likewise.
40248         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40249         * tests/test-signal.c (main): Enhance test.
40250
40251         spawn: improve wrapper support
40252         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40253         (gl_SPAWN_H_DEFAULTS): New defaults.
40254         * modules/spawn (Makefile.am): Substitute them.
40255         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40256         Only declare if missing or broken.
40257
40258         sys_times, sys_utsname: use include_next
40259         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40260         header.
40261         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40262         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40263         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40264         * modules/sys_times (Depends-on): Add include_next.
40265         (Makefile.am): Substitute additional values.
40266         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40267         * lib/sys_times.in.h (includes): Include native header, if
40268         available.
40269         * lib/sys_utsname.in.h (includes): Likewise.
40270         * tests/test-sys_times.c (main): Enhance test.
40271
40272         fdutimensat: revert prior patch
40273         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40274         utimens.h.
40275         Reported by Bruno Haible.
40276
40277 2009-12-30  Eric Blake  <ebb9@byu.net>
40278
40279         sys_wait: drop link-warning dependency
40280         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40281         link-warning efforts.
40282         * lib/sys_wait.in.h: Likewise.
40283
40284         fdutimensat: remove bogus dependency
40285         * modules/fdutimensat (Depends-on): Drop inline.
40286
40287         unistd: fix typo
40288         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40289
40290 2009-12-30  Bruno Haible  <bruno@clisp.org>
40291
40292         Fix compilation error with Solaris cc.
40293         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40294         * lib/unicase/u16-is-invariant.c: Likewise.
40295         * lib/unicase/u32-is-invariant.c: Likewise.
40296         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40297
40298 2009-12-30  Bruno Haible  <bruno@clisp.org>
40299
40300         Fix test crash.
40301         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40302         locales.
40303         Reported by Simon Josefsson <simon@josefsson.org>.
40304
40305 2009-12-30  Bruno Haible  <bruno@clisp.org>
40306
40307         Fix compilation error on most platforms.
40308         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40309         Reported by Simon Josefsson <simon@josefsson.org>
40310         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40311
40312 2009-12-30  Eric Blake  <ebb9@byu.net>
40313
40314         futimens, utimensat: work around ntfs-3g bug
40315         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40316         a ctime bug is present, and expand workaround to cover ntfs-3g.
40317         * lib/utimens.c (fdutimens, lutimens): Likewise.
40318         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40319         (validate_timespec): Adjust return value.
40320         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40321         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40322         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40323
40324 2009-12-29  Eric Blake  <ebb9@byu.net>
40325
40326         link-warning: make usage consistent
40327         * modules/ctype (Depends-on): Add link-warning.
40328         (Makefile.am): Update rules accordingly.
40329         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40330         * modules/locale (Depends-on, Makefile.am): Likewise.
40331         * modules/sys_file (Makefile.am): Likewise.
40332         * modules/getopt-posix (Makefile.am): Delete unused link warning
40333         efforts.
40334         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40335         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40336         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40337         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40338
40339         stdio: remove unused variables
40340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40341         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40342         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40343
40344         tests: test more substitute headers
40345         * modules/ctype-tests: New file.
40346         * modules/dirent-tests: Likewise.
40347         * modules/spawn-tests: Likewise.
40348         * modules/sys_file-tests: Likewise.
40349         * modules/sys_ioctl-tests: Likewise.
40350         * modules/sys_wait-tests: Likewise.
40351         * tests/test-ctype.c: Likewise.
40352         * tests/test-dirent.c: Likewise.
40353         * tests/test-spawn.c: Likewise.
40354         * tests/test-sys_file.c: Likewise.
40355         * tests/test-sys_ioctl.c: Likewise.
40356         * tests/test-sys_wait.c: Likewise.
40357         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40358         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40359         whether or not flock is in use.
40360
40361         tests: remove License section from module
40362         * modules/arpa_inet-tests: Remove unneeded section.
40363         * modules/byteswap-tests: Likewise.
40364         * modules/ceilf-tests: Likewise.
40365         * modules/ceill-tests: Likewise.
40366         * modules/crypto/des-tests: Likewise.
40367         * modules/crypto/gc-arcfour-tests: Likewise.
40368         * modules/crypto/gc-arctwo-tests: Likewise.
40369         * modules/crypto/gc-des-tests: Likewise.
40370         * modules/crypto/gc-hmac-md5-tests: Likewise.
40371         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40372         * modules/crypto/gc-md2-tests: Likewise.
40373         * modules/crypto/gc-md4-tests: Likewise.
40374         * modules/crypto/gc-md5-tests: Likewise.
40375         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40376         * modules/crypto/gc-rijndael-tests: Likewise.
40377         * modules/crypto/gc-sha1-tests: Likewise.
40378         * modules/crypto/gc-tests: Likewise.
40379         * modules/crypto/md2-tests: Likewise.
40380         * modules/crypto/md4-tests: Likewise.
40381         * modules/fcntl-h-tests: Likewise.
40382         * modules/floorf-tests: Likewise.
40383         * modules/floorl-tests: Likewise.
40384         * modules/frexp-nolibm-tests: Likewise.
40385         * modules/frexp-tests: Likewise.
40386         * modules/frexpl-nolibm-tests: Likewise.
40387         * modules/frexpl-tests: Likewise.
40388         * modules/getaddrinfo-tests: Likewise.
40389         * modules/inttypes-tests: Likewise.
40390         * modules/isfinite-tests: Likewise.
40391         * modules/isinf-tests: Likewise.
40392         * modules/ldexpl-tests: Likewise.
40393         * modules/locale-tests: Likewise.
40394         * modules/math-tests: Likewise.
40395         * modules/netdb-tests: Likewise.
40396         * modules/netinet_in-tests: Likewise.
40397         * modules/printf-frexp-tests: Likewise.
40398         * modules/printf-frexpl-tests: Likewise.
40399         * modules/priv-set-tests: Likewise.
40400         * modules/random_r-tests: Likewise.
40401         * modules/round-tests: Likewise.
40402         * modules/roundf-tests: Likewise.
40403         * modules/roundl-tests: Likewise.
40404         * modules/search-tests: Likewise.
40405         * modules/select-tests: Likewise.
40406         * modules/signal-tests: Likewise.
40407         * modules/stdbool-tests: Likewise.
40408         * modules/stddef-tests: Likewise.
40409         * modules/stdint-tests: Likewise.
40410         * modules/stdio-tests: Likewise.
40411         * modules/stdlib-tests: Likewise.
40412         * modules/string-tests: Likewise.
40413         * modules/strings-tests: Likewise.
40414         * modules/sys_select-tests: Likewise.
40415         * modules/sys_socket-tests: Likewise.
40416         * modules/sys_stat-tests: Likewise.
40417         * modules/sys_time-tests: Likewise.
40418         * modules/sys_utsname-tests: Likewise.
40419         * modules/sysexits-tests: Likewise.
40420         * modules/time-tests: Likewise.
40421         * modules/trunc-tests: Likewise.
40422         * modules/truncf-tests: Likewise.
40423         * modules/truncl-tests: Likewise.
40424         * modules/tsearch-tests: Likewise.
40425         * modules/unistd-tests: Likewise.
40426         * modules/wchar-tests: Likewise.
40427         * modules/wctype-tests: Likewise.
40428
40429         tests: fix license on several tests
40430         * tests/test-des.c: Update to GPLv3+.
40431         * tests/test-flock.c: Likewise.
40432         * tests/test-fsync.c: Likewise.
40433         * tests/test-futimens.h: Likewise.
40434         * tests/test-gc-arcfour.c: Likewise.
40435         * tests/test-gc-arctwo.c: Likewise.
40436         * tests/test-gc-des.c: Likewise.
40437         * tests/test-gc-hmac-md5.c: Likewise.
40438         * tests/test-gc-hmac-sha1.c: Likewise.
40439         * tests/test-gc-md2.c: Likewise.
40440         * tests/test-gc-md4.c: Likewise.
40441         * tests/test-gc-md5.c: Likewise.
40442         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40443         * tests/test-gc-rijndael.c: Likewise.
40444         * tests/test-gc-sha1.c: Likewise.
40445         * tests/test-gc.c: Likewise.
40446         * tests/test-getcwd.c: Likewise.
40447         * tests/test-link.c: Likewise.
40448         * tests/test-link.h: Likewise.
40449         * tests/test-lutimens.h: Likewise.
40450         * tests/test-md2.c: Likewise.
40451         * tests/test-md4.c: Likewise.
40452         * tests/test-mkdir.h: Likewise.
40453         * tests/test-rename.c: Likewise.
40454         * tests/test-rename.h: Likewise.
40455         * tests/test-safe-alloc.c: Likewise.
40456         * tests/test-utimens-common.h: Likewise.
40457         * tests/test-utimens.h: Likewise.
40458
40459         maint: sync license texts
40460         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40461         * doc/gpl-3.0.texi: Revert copyright year update.
40462         * doc/lgpl-3.0.texi: Likewise.
40463
40464 2009-12-29  Jim Meyering  <meyering@redhat.com>
40465
40466         update nearly all FSF copyright year lists to include 2009
40467         The files named by the following are exempted:
40468             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40469               test -f "$dst" && { echo "$dst"; continue; }
40470               test -d "$dst" || continue
40471               echo "$dst"/$(basename "$src")
40472             done > exempt
40473             git ls-files tests/unictype >> exempt
40474         In the remaining files, convert to all-interval notation if
40475         - there is already at least one year interval like 2000-2003
40476         - the file is maintained by me
40477         - the file is in lib/uni*/, where that style already prevails
40478         Otherwise, use update-copyright's default.
40479
40480 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40481         and Eric Blake  <ebb9@byu.net>
40482
40483         tests: don't require debug system() to pass
40484         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40485         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40486         * tests/test-unlink.h (test_unlink_func): Likewise.
40487         * tests/test-fstatat.c (main): ...into callers.
40488         * tests/test-lstat.c (main): Likewise.
40489         * tests/test-rmdir.c (main): Likewise.
40490         * tests/test-unlink.c (main): Likewise.
40491         * tests/test-unlinkat.c (main): Likewise.
40492         * tests/test-areadlink-with-size.c (main): Don't require a
40493         debug-only system call to pass, aiding cross-testing to mingw.
40494         * tests/test-areadlink.c (main): Likewise.
40495         * tests/test-areadlinkat-with-size.c (main): Likewise.
40496         * tests/test-areadlinkat.c (main): Likewise.
40497         * tests/test-canonicalize-lgpl.c (main): Likewise.
40498         * tests/test-canonicalize.c (main): Likewise.
40499         * tests/test-chown.c (main): Likewise.
40500         * tests/test-fchownat.c (main): Likewise.
40501         * tests/test-lchown.c (main): Likewise.
40502         * tests/test-fdutimensat.c (main): Likewise.
40503         * tests/test-futimens.c (main): Likewise.
40504         * tests/test-link.c (main): Likewise.
40505         * tests/test-linkat.c (main): Likewise.
40506         * tests/test-mkdir.c (main): Likewise.
40507         * tests/test-mkdirat.c (main): Likewise.
40508         * tests/test-mkfifo.c (main): Likewise.
40509         * tests/test-mkfifoat.c (main): Likewise.
40510         * tests/test-mknod.c (main): Likewise.
40511         * tests/test-readlink.c (main): Likewise.
40512         * tests/test-remove.c (main): Likewise.
40513         * tests/test-rename.c (main): Likewise.
40514         * tests/test-renameat.c (main): Likewise.
40515         * tests/test-symlink.c (main): Likewise.
40516         * tests/test-symlinkat.c (main): Likewise.
40517         * tests/test-utimens.c (main): Likewise.
40518         * tests/test-utimensat.c (main): Likewise.
40519
40520 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40521
40522         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40523         on $(UNUSED_PARAMETER_H) to avoid build failure.
40524
40525 2009-12-28  Jim Meyering  <meyering@redhat.com>
40526
40527         update-copyright: you may specify a max. line length other than 72
40528         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40529
40530         maint: use consistent FSF copyright line syntax
40531         * lib/posixtm.c: Add missing comma in FSF copyright line.
40532         * lib/posixtm.h: Likewise.
40533         * lib/getugroups.c: Add missing ", Inc.".
40534
40535         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40536         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40537         FSF copyright line.  Remove trailing blanks.
40538
40539 2009-12-28  Eric Blake  <ebb9@byu.net>
40540
40541         test-dup2: reduce dependencies
40542         * modules/cloexec (Configure.ac): Set witness.
40543         * modules/dup2-tests (Depends-on): Drop cloexec.
40544         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40545         not present.
40546         Suggested by Bruno Haible.
40547
40548 2009-12-26  Bruno Haible  <bruno@clisp.org>
40549
40550         Remove an unneeded dependency.
40551         * modules/fseterr (Depends-on): Remove dup2.
40552
40553 2009-12-26  Eric Blake  <ebb9@byu.net>
40554
40555         tests: use macros.h in more places
40556         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40557         (ASSERT_STREAM): Provide default of stderr.
40558         * tests/test-dirent-safer.c: Include macros.h, using alternate
40559         stream for assertions.
40560         * tests/test-dup-safer.c: Likewise.
40561         * tests/test-freopen-safer.c: Likewise.
40562         * tests/test-getopt.c: Likewise.
40563         * tests/test-openat-safer.c: Likewise.
40564         * tests/test-pipe.c: Likewise.
40565         * tests/test-popen-safer.c: Likewise.
40566         * modules/dirent-safer-tests (Files): Include macros.h.
40567         * modules/unistd-safer-tests (Files): Likewise.
40568         * modules/freopen-safer-tests (Files): Likewise.
40569         * modules/getopt-posix-tests (Files): Likewise.
40570         * modules/openat-safer-tests (Files): Likewise.
40571         * modules/pipe-tests (Files): Likewise.
40572
40573 2009-12-26  Bruno Haible  <bruno@clisp.org>
40574
40575         javacomp: Portability fix.
40576         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40577         that it also works on Solaris.
40578
40579 2009-12-26  Bruno Haible  <bruno@clisp.org>
40580
40581         localename: Fix storage allocation of gl_locale_name_thread's result.
40582         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40583         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40584         all platforms that have 'uselocale'.
40585         (gl_locale_name_thread_unsafe): New function, extracted from
40586         gl_locale_name_thread.
40587         (gl_locale_name_thread): Call struniq on all platforms that have
40588         'uselocale'.
40589         * tests/test-localename.c (test_locale_name_thread): Check that the
40590         resulting strings are permanently allocated.
40591         * modules/localename-tests (Depends-on): Add strdup.
40592
40593 2009-12-26  Bruno Haible  <bruno@clisp.org>
40594
40595         * tests/test-localename.c (categories): Fill in the strings.
40596
40597 2009-12-26  Jim Meyering  <meyering@redhat.com>
40598
40599         isdir: complete the removal of m4/isdir.m4
40600         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40601
40602         isdir: clean up, since at least grep still uses it
40603         * lib/isdir.c: Include "isdir.h".
40604         (S_ISDIR): Remove now-unneeded definition.
40605         * modules/isdir (Files): Add lib/isdir.h.
40606         * lib/isdir.h: New file, with declaration.
40607         * m4/isdir.m4: Remove file -- unneeded.
40608
40609 2009-12-25  Bruno Haible  <bruno@clisp.org>
40610
40611         selinux-h: Make generated .h files standalone.
40612         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40613         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40614         * lib/se-selinux.in.h: Likewise.
40615         * modules/selinux-h (Depends-on): Add unused-parameter.
40616         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40617         selinux/selinux.h and selinux/context.h.
40618         Suggested by Eric Blake.
40619
40620 2009-12-25  Bruno Haible  <bruno@clisp.org>
40621
40622         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40623         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40624         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40625         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40626         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40627
40628 2009-12-24  Bruno Haible  <bruno@clisp.org>
40629
40630         openat: Fix warning.
40631         * lib/openat-proc.c: Include <unistd.h>.
40632
40633 2009-12-24  Bruno Haible  <bruno@clisp.org>
40634
40635         New module 'unused-parameter'.
40636         * build-aux/unused-parameter.h: New file, extracted from earlier
40637         gnulib-common.m4.
40638         * modules/unused-parameter: New file.
40639         * lib/unistr.h: Include unused-parameter.h.
40640         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40641         _GL_UNUSED.
40642         * modules/unistr/base (Depends-on): Add unused-parameter.
40643
40644 2009-12-24  Bruno Haible  <bruno@clisp.org>
40645
40646         Add missing dependencies to 'extensions' module.
40647         * m4/extensions.m4: Add comment.
40648         * modules/accept4 (Depends-on): Add extensions.
40649         * modules/dup3 (Depends-on): Likewise.
40650         * modules/fcntl (Depends-on): Likewise.
40651         * modules/futimens (Depends-on): Likewise.
40652         * modules/mknod (Depends-on): Likewise.
40653         * modules/pipe2 (Depends-on): Likewise.
40654         * modules/stat-time (Depends-on): Likewise.
40655         * modules/strcasestr-simple (Depends-on): Likewise.
40656         * modules/strsignal (Depends-on): Likewise.
40657         * modules/utimensat (Depends-on): Likewise.
40658         * modules/localcharset (Depends-on): Likewise. Needed because of
40659         gl_FCNTL_O_FLAGS.
40660         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40661         AC_TYPE_MBSTATE_T.
40662         * modules/wcsnrtombs (Depends-on): Likewise.
40663         * modules/wcsrtombs (Depends-on): Likewise.
40664
40665 2009-12-24  Bruno Haible  <bruno@clisp.org>
40666
40667         binary-io: Avoid gcc warning due to SET_BINARY.
40668         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40669         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40670
40671 2009-12-24  Bruno Haible  <bruno@clisp.org>
40672
40673         Avoid future namespace pollution on glibc systems.
40674         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40675         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40676         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40677         glibc systems.
40678
40679 2009-12-24  Bruno Haible  <bruno@clisp.org>
40680
40681         Refactor common macros used in tests.
40682         * tests/macros.h: New file.
40683         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40684         and/or <stdlib.h>, if appropriate.
40685         (ASSERT, SIZEOF): Remove macros.
40686         * tests/test-areadlink-with-size.c: Likewise.
40687         * tests/test-areadlinkat.c: Likewise.
40688         * tests/test-areadlinkat-with-size.c: Likewise.
40689         * tests/test-argmatch.c: Likewise.
40690         * tests/test-argv-iter.c: Likewise.
40691         * tests/test-array-mergesort.c: Likewise.
40692         * tests/test-array_list.c: Likewise.
40693         * tests/test-array_oset.c: Likewise.
40694         * tests/test-avltree_list.c: Likewise.
40695         * tests/test-avltree_oset.c: Likewise.
40696         * tests/test-avltreehash_list.c: Likewise.
40697         * tests/test-base64.c: Likewise.
40698         * tests/test-binary-io.c: Likewise.
40699         * tests/test-bitrotate.c: Likewise.
40700         * tests/test-btowc.c: Likewise.
40701         * tests/test-byteswap.c: Likewise.
40702         * tests/test-c-ctype.c: Likewise.
40703         * tests/test-c-stack.c: Likewise.
40704         * tests/test-c-strcasecmp.c: Likewise.
40705         * tests/test-c-strcasestr.c: Likewise.
40706         * tests/test-c-strncasecmp.c: Likewise.
40707         * tests/test-c-strstr.c: Likewise.
40708         * tests/test-canonicalize-lgpl.c: Likewise.
40709         * tests/test-canonicalize.c: Likewise.
40710         * tests/test-carray_list.c: Likewise.
40711         * tests/test-ceilf1.c: Likewise.
40712         * tests/test-ceilf2.c: Likewise.
40713         * tests/test-ceill.c: Likewise.
40714         * tests/test-chown.c: Likewise.
40715         * tests/test-cloexec.c: Likewise.
40716         * tests/test-copy-acl.c: Likewise.
40717         * tests/test-copy-file.c: Likewise.
40718         * tests/test-count-one-bits.c: Likewise.
40719         * tests/test-dprintf-posix.c: Likewise.
40720         * tests/test-dup2.c: Likewise.
40721         * tests/test-dup3.c: Likewise.
40722         * tests/test-duplocale.c: Likewise.
40723         * tests/test-fbufmode.c: Likewise.
40724         * tests/test-fchdir.c: Likewise.
40725         * tests/test-fchownat.c: Likewise.
40726         * tests/test-fcntl-safer.c: Likewise.
40727         * tests/test-fcntl.c: Likewise.
40728         * tests/test-fdopendir.c: Likewise.
40729         * tests/test-fdutimensat.c: Likewise.
40730         * tests/test-fflush2.c: Likewise.
40731         * tests/test-file-has-acl.c: Likewise.
40732         * tests/test-filevercmp.c: Likewise.
40733         * tests/test-flock.c: Likewise.
40734         * tests/test-floorf1.c: Likewise.
40735         * tests/test-floorf2.c: Likewise.
40736         * tests/test-floorl.c: Likewise.
40737         * tests/test-fnmatch.c: Likewise.
40738         * tests/test-fopen.h: Likewise.
40739         * tests/test-fpending.c: Likewise.
40740         * tests/test-fprintf-posix.c: Likewise.
40741         * tests/test-fpurge.c: Likewise.
40742         * tests/test-freadable.c: Likewise.
40743         * tests/test-freadahead.c: Likewise.
40744         * tests/test-freading.c: Likewise.
40745         * tests/test-freadptr.c: Likewise.
40746         * tests/test-freadptr2.c: Likewise.
40747         * tests/test-freadseek.c: Likewise.
40748         * tests/test-freopen.c: Likewise.
40749         * tests/test-frexp.c: Likewise.
40750         * tests/test-frexpl.c: Likewise.
40751         * tests/test-fseek.c: Likewise.
40752         * tests/test-fseeko.c: Likewise.
40753         * tests/test-fstatat.c: Likewise.
40754         * tests/test-fstrcmp.c: Likewise.
40755         * tests/test-fsync.c: Likewise.
40756         * tests/test-ftell.c: Likewise.
40757         * tests/test-ftello.c: Likewise.
40758         * tests/test-func.c: Likewise.
40759         * tests/test-futimens.c: Likewise.
40760         * tests/test-fwritable.c: Likewise.
40761         * tests/test-fwriting.c: Likewise.
40762         * tests/test-getcwd.c: Likewise.
40763         * tests/test-getdate.c: Likewise.
40764         * tests/test-getdelim.c: Likewise.
40765         * tests/test-getdtablesize.c: Likewise.
40766         * tests/test-getgroups.c: Likewise.
40767         * tests/test-getline.c: Likewise.
40768         * tests/test-getndelim2.c: Likewise.
40769         * tests/test-glob.c: Likewise.
40770         * tests/test-hash.c: Likewise.
40771         * tests/test-i-ring.c: Likewise.
40772         * tests/test-iconv-utf.c: Likewise.
40773         * tests/test-iconv.c: Likewise.
40774         * tests/test-idpriv-drop.c: Likewise.
40775         * tests/test-idpriv-droptemp.c: Likewise.
40776         * tests/test-inet_ntop.c: Likewise.
40777         * tests/test-inet_pton.c: Likewise.
40778         * tests/test-isblank.c: Likewise.
40779         * tests/test-isfinite.c: Likewise.
40780         * tests/test-isinf.c: Likewise.
40781         * tests/test-isnan.c: Likewise.
40782         * tests/test-isnand.h: Likewise.
40783         * tests/test-isnanf.h: Likewise.
40784         * tests/test-isnanl.h: Likewise.
40785         * tests/test-lchown.c: Likewise.
40786         * tests/test-ldexpl.c: Likewise.
40787         * tests/test-link.c: Likewise.
40788         * tests/test-linkat.c: Likewise.
40789         * tests/test-linked_list.c: Likewise.
40790         * tests/test-linkedhash_list.c: Likewise.
40791         * tests/test-localename.c: Likewise.
40792         * tests/test-lseek.c: Likewise.
40793         * tests/test-lstat.c: Likewise.
40794         * tests/test-mbmemcasecmp.c: Likewise.
40795         * tests/test-mbmemcasecoll.c: Likewise.
40796         * tests/test-mbrtowc.c: Likewise.
40797         * tests/test-mbscasecmp.c: Likewise.
40798         * tests/test-mbscasestr1.c: Likewise.
40799         * tests/test-mbscasestr2.c: Likewise.
40800         * tests/test-mbscasestr3.c: Likewise.
40801         * tests/test-mbscasestr4.c: Likewise.
40802         * tests/test-mbschr.c: Likewise.
40803         * tests/test-mbscspn.c: Likewise.
40804         * tests/test-mbsinit.c: Likewise.
40805         * tests/test-mbsncasecmp.c: Likewise.
40806         * tests/test-mbsnrtowcs.c: Likewise.
40807         * tests/test-mbspbrk.c: Likewise.
40808         * tests/test-mbspcasecmp.c: Likewise.
40809         * tests/test-mbsrchr.c: Likewise.
40810         * tests/test-mbsrtowcs.c: Likewise.
40811         * tests/test-mbsspn.c: Likewise.
40812         * tests/test-mbsstr1.c: Likewise.
40813         * tests/test-mbsstr2.c: Likewise.
40814         * tests/test-mbsstr3.c: Likewise.
40815         * tests/test-memchr.c: Likewise.
40816         * tests/test-memchr2.c: Likewise.
40817         * tests/test-memcmp.c: Likewise.
40818         * tests/test-memmem.c: Likewise.
40819         * tests/test-memrchr.c: Likewise.
40820         * tests/test-mkdir.c: Likewise.
40821         * tests/test-mkdirat.c: Likewise.
40822         * tests/test-mkfifo.c: Likewise.
40823         * tests/test-mkfifoat.c: Likewise.
40824         * tests/test-mknod.c: Likewise.
40825         * tests/test-nanosleep.c: Likewise.
40826         * tests/test-nl_langinfo.c: Likewise.
40827         * tests/test-obstack-printf.c: Likewise.
40828         * tests/test-open.c: Likewise.
40829         * tests/test-openat.c: Likewise.
40830         * tests/test-pipe-filter-gi1.c: Likewise.
40831         * tests/test-pipe-filter-gi2-main.c: Likewise.
40832         * tests/test-pipe-filter-ii1.c: Likewise.
40833         * tests/test-pipe-filter-ii2-main.c: Likewise.
40834         * tests/test-pipe2.c: Likewise.
40835         * tests/test-popen.h: Likewise.
40836         * tests/test-posixtm.c: Likewise.
40837         * tests/test-pread.c: Likewise.
40838         * tests/test-printf-frexp.c: Likewise.
40839         * tests/test-printf-frexpl.c: Likewise.
40840         * tests/test-printf-posix.c: Likewise.
40841         * tests/test-priv-set.c: Likewise.
40842         * tests/test-quotearg.c: Likewise.
40843         * tests/test-random_r.c: Likewise.
40844         * tests/test-rawmemchr.c: Likewise.
40845         * tests/test-rbtree_list.c: Likewise.
40846         * tests/test-rbtree_oset.c: Likewise.
40847         * tests/test-rbtreehash_list.c: Likewise.
40848         * tests/test-readlink.c: Likewise.
40849         * tests/test-remove.c: Likewise.
40850         * tests/test-rename.c: Likewise.
40851         * tests/test-renameat.c: Likewise.
40852         * tests/test-rmdir.c: Likewise.
40853         * tests/test-round1.c: Likewise.
40854         * tests/test-roundf1.c: Likewise.
40855         * tests/test-roundl.c: Likewise.
40856         * tests/test-safe-alloc.c: Likewise.
40857         * tests/test-sameacls.c: Likewise.
40858         * tests/test-set-mode-acl.c: Likewise.
40859         * tests/test-setenv.c: Likewise.
40860         * tests/test-sigaction.c: Likewise.
40861         * tests/test-signbit.c: Likewise.
40862         * tests/test-sleep.c: Likewise.
40863         * tests/test-snprintf-posix.c: Likewise.
40864         * tests/test-snprintf.c: Likewise.
40865         * tests/test-sprintf-posix.c: Likewise.
40866         * tests/test-stat-time.c: Likewise.
40867         * tests/test-stat.c: Likewise.
40868         * tests/test-strcasestr.c: Likewise.
40869         * tests/test-strchrnul.c: Likewise.
40870         * tests/test-strerror.c: Likewise.
40871         * tests/test-striconv.c: Likewise.
40872         * tests/test-striconveh.c: Likewise.
40873         * tests/test-striconveha.c: Likewise.
40874         * tests/test-strsignal.c: Likewise.
40875         * tests/test-strstr.c: Likewise.
40876         * tests/test-strtod.c: Likewise.
40877         * tests/test-strverscmp.c: Likewise.
40878         * tests/test-symlink.c: Likewise.
40879         * tests/test-symlinkat.c: Likewise.
40880         * tests/test-trunc1.c: Likewise.
40881         * tests/test-trunc2.c: Likewise.
40882         * tests/test-truncf1.c: Likewise.
40883         * tests/test-truncf2.c: Likewise.
40884         * tests/test-truncl.c: Likewise.
40885         * tests/test-uname.c: Likewise.
40886         * tests/test-unlink.c: Likewise.
40887         * tests/test-unlinkat.c: Likewise.
40888         * tests/test-unsetenv.c: Likewise.
40889         * tests/test-usleep.c: Likewise.
40890         * tests/test-utimens.c: Likewise.
40891         * tests/test-utimensat.c: Likewise.
40892         * tests/test-vasnprintf-posix.c: Likewise.
40893         * tests/test-vasnprintf-posix2.c: Likewise.
40894         * tests/test-vasnprintf.c: Likewise.
40895         * tests/test-vasprintf-posix.c: Likewise.
40896         * tests/test-vasprintf.c: Likewise.
40897         * tests/test-vdprintf-posix.c: Likewise.
40898         * tests/test-vfprintf-posix.c: Likewise.
40899         * tests/test-vprintf-posix.c: Likewise.
40900         * tests/test-vsnprintf-posix.c: Likewise.
40901         * tests/test-vsnprintf.c: Likewise.
40902         * tests/test-vsprintf-posix.c: Likewise.
40903         * tests/test-wcrtomb.c: Likewise.
40904         * tests/test-wcsnrtombs.c: Likewise.
40905         * tests/test-wcsrtombs.c: Likewise.
40906         * tests/test-wctype.c: Likewise.
40907         * tests/test-wcwidth.c: Likewise.
40908         * tests/test-xfprintf-posix.c: Likewise.
40909         * tests/test-xmemdup0.c: Likewise.
40910         * tests/test-xprintf-posix.c: Likewise.
40911         * tests/test-xvasprintf.c: Likewise.
40912         * tests/unicase/test-locale-language.c: Likewise.
40913         * tests/unicase/test-mapping-part1.h: Likewise.
40914         * tests/unicase/test-predicate-part1.h: Likewise.
40915         * tests/unicase/test-u8-casecmp.c: Likewise.
40916         * tests/unicase/test-u8-casecoll.c: Likewise.
40917         * tests/unicase/test-u8-casefold.c: Likewise.
40918         * tests/unicase/test-u8-is-cased.c: Likewise.
40919         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40920         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40921         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40922         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40923         * tests/unicase/test-u8-tolower.c: Likewise.
40924         * tests/unicase/test-u8-totitle.c: Likewise.
40925         * tests/unicase/test-u8-toupper.c: Likewise.
40926         * tests/unicase/test-u16-casecmp.c: Likewise.
40927         * tests/unicase/test-u16-casecoll.c: Likewise.
40928         * tests/unicase/test-u16-casefold.c: Likewise.
40929         * tests/unicase/test-u16-is-cased.c: Likewise.
40930         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40931         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40932         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40933         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40934         * tests/unicase/test-u16-tolower.c: Likewise.
40935         * tests/unicase/test-u16-totitle.c: Likewise.
40936         * tests/unicase/test-u16-toupper.c: Likewise.
40937         * tests/unicase/test-u32-casecmp.c: Likewise.
40938         * tests/unicase/test-u32-casecoll.c: Likewise.
40939         * tests/unicase/test-u32-casefold.c: Likewise.
40940         * tests/unicase/test-u32-is-cased.c: Likewise.
40941         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40942         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40943         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40944         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40945         * tests/unicase/test-u32-tolower.c: Likewise.
40946         * tests/unicase/test-u32-totitle.c: Likewise.
40947         * tests/unicase/test-u32-toupper.c: Likewise.
40948         * tests/unicase/test-ulc-casecmp.c: Likewise.
40949         * tests/unicase/test-ulc-casecoll.c: Likewise.
40950         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40951         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40952         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40953         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40954         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40955         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40956         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40957         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40958         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40959         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40960         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40961         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40962         * tests/unictype/test-bidi_byname.c: Likewise.
40963         * tests/unictype/test-bidi_name.c: Likewise.
40964         * tests/unictype/test-bidi_of.c: Likewise.
40965         * tests/unictype/test-bidi_test.c: Likewise.
40966         * tests/unictype/test-block_list.c: Likewise.
40967         * tests/unictype/test-block_of.c: Likewise.
40968         * tests/unictype/test-block_test.c: Likewise.
40969         * tests/unictype/test-categ_and.c: Likewise.
40970         * tests/unictype/test-categ_and_not.c: Likewise.
40971         * tests/unictype/test-categ_byname.c: Likewise.
40972         * tests/unictype/test-categ_name.c: Likewise.
40973         * tests/unictype/test-categ_none.c: Likewise.
40974         * tests/unictype/test-categ_of.c: Likewise.
40975         * tests/unictype/test-categ_or.c: Likewise.
40976         * tests/unictype/test-categ_test_withtable.c: Likewise.
40977         * tests/unictype/test-combining.c: Likewise.
40978         * tests/unictype/test-decdigit.c: Likewise.
40979         * tests/unictype/test-digit.c: Likewise.
40980         * tests/unictype/test-mirror.c: Likewise.
40981         * tests/unictype/test-numeric.c: Likewise.
40982         * tests/unictype/test-pr_byname.c: Likewise.
40983         * tests/unictype/test-pr_test.c: Likewise.
40984         * tests/unictype/test-predicate-part1.h: Likewise.
40985         * tests/unictype/test-scripts.c: Likewise.
40986         * tests/unictype/test-sy_c_ident.c: Likewise.
40987         * tests/unictype/test-sy_java_ident.c: Likewise.
40988         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40989         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40990         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40991         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40992         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40993         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40994         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40995         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40996         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40997         * tests/uninorm/test-compat-decomposition.c: Likewise.
40998         * tests/uninorm/test-composition.c: Likewise.
40999         * tests/uninorm/test-decomposing-form.c: Likewise.
41000         * tests/uninorm/test-decomposition.c: Likewise.
41001         * tests/uninorm/test-u8-nfc.c: Likewise.
41002         * tests/uninorm/test-u8-nfd.c: Likewise.
41003         * tests/uninorm/test-u8-nfkc.c: Likewise.
41004         * tests/uninorm/test-u8-nfkd.c: Likewise.
41005         * tests/uninorm/test-u8-normcmp.c: Likewise.
41006         * tests/uninorm/test-u8-normcoll.c: Likewise.
41007         * tests/uninorm/test-u16-nfc.c: Likewise.
41008         * tests/uninorm/test-u16-nfd.c: Likewise.
41009         * tests/uninorm/test-u16-nfkc.c: Likewise.
41010         * tests/uninorm/test-u16-nfkd.c: Likewise.
41011         * tests/uninorm/test-u16-normcmp.c: Likewise.
41012         * tests/uninorm/test-u16-normcoll.c: Likewise.
41013         * tests/uninorm/test-u32-nfc.c: Likewise.
41014         * tests/uninorm/test-u32-nfd.c: Likewise.
41015         * tests/uninorm/test-u32-nfkc.c: Likewise.
41016         * tests/uninorm/test-u32-nfkd.c: Likewise.
41017         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41018         * tests/uninorm/test-u32-normcmp.c: Likewise.
41019         * tests/uninorm/test-u32-normcoll.c: Likewise.
41020         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41021         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41022         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41023         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41024         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41025         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41026         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41027         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41028         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41029         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41030         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41031         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41032         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41033         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41034         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41035         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41036         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41037         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41038         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41039         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41040         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41041         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41042         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41043         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41044         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41045         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41046         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41047         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41048         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41049         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41050         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41051         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41052         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41053         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41054         * tests/uniwidth/test-u8-width.c: Likewise.
41055         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41056         * tests/uniwidth/test-u16-width.c: Likewise.
41057         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41058         * tests/uniwidth/test-u32-width.c: Likewise.
41059         * tests/uniwidth/test-uc_width.c: Likewise.
41060         * tests/uniwidth/test-uc_width2.c: Likewise.
41061         * modules/acl-tests (Files): Add tests/macros.h.
41062         * modules/areadlink-tests (Files): Likewise.
41063         * modules/areadlink-with-size-tests (Files): Likewise.
41064         * modules/areadlinkat-tests (Files): Likewise.
41065         * modules/areadlinkat-with-size-tests (Files): Likewise.
41066         * modules/argmatch-tests (Files): Likewise.
41067         * modules/argv-iter-tests (Files): Likewise.
41068         * modules/array-list-tests (Files): Likewise.
41069         * modules/array-mergesort-tests (Files): Likewise.
41070         * modules/array-oset-tests (Files): Likewise.
41071         * modules/avltree-list-tests (Files): Likewise.
41072         * modules/avltree-oset-tests (Files): Likewise.
41073         * modules/avltreehash-list-tests (Files): Likewise.
41074         * modules/base64-tests (Files): Likewise.
41075         * modules/binary-io-tests (Files): Likewise.
41076         * modules/bitrotate-tests (Files): Likewise.
41077         * modules/btowc-tests (Files): Likewise.
41078         * modules/byteswap-tests (Files): Likewise.
41079         * modules/c-ctype-tests (Files): Likewise.
41080         * modules/c-stack-tests (Files): Likewise.
41081         * modules/c-strcase-tests (Files): Likewise.
41082         * modules/c-strcasestr-tests (Files): Likewise.
41083         * modules/c-strstr-tests (Files): Likewise.
41084         * modules/canonicalize-lgpl-tests (Files): Likewise.
41085         * modules/canonicalize-tests (Files): Likewise.
41086         * modules/carray-list-tests (Files): Likewise.
41087         * modules/ceilf-tests (Files): Likewise.
41088         * modules/ceill-tests (Files): Likewise.
41089         * modules/chown-tests (Files): Likewise.
41090         * modules/cloexec-tests (Files): Likewise.
41091         * modules/copy-file-tests (Files): Likewise.
41092         * modules/count-one-bits-tests (Files): Likewise.
41093         * modules/dprintf-posix-tests (Files): Likewise.
41094         * modules/dup2-tests (Files): Likewise.
41095         * modules/dup3-tests (Files): Likewise.
41096         * modules/duplocale-tests (Files): Likewise.
41097         * modules/fbufmode-tests (Files): Likewise.
41098         * modules/fchdir-tests (Files): Likewise.
41099         * modules/fcntl-safer-tests (Files): Likewise.
41100         * modules/fcntl-tests (Files): Likewise.
41101         * modules/fdopendir-tests (Files): Likewise.
41102         * modules/fdutimensat-tests (Files): Likewise.
41103         * modules/fflush-tests (Files): Likewise.
41104         * modules/filevercmp-tests (Files): Likewise.
41105         * modules/flock-tests (Files): Likewise.
41106         * modules/floorf-tests (Files): Likewise.
41107         * modules/floorl-tests (Files): Likewise.
41108         * modules/fnmatch-tests (Files): Likewise.
41109         * modules/fopen-safer-tests (Files): Likewise.
41110         * modules/fopen-tests (Files): Likewise.
41111         * modules/fpending-tests (Files): Likewise.
41112         * modules/fprintf-posix-tests (Files): Likewise.
41113         * modules/fpurge-tests (Files): Likewise.
41114         * modules/freadable-tests (Files): Likewise.
41115         * modules/freadahead-tests (Files): Likewise.
41116         * modules/freading-tests (Files): Likewise.
41117         * modules/freadptr-tests (Files): Likewise.
41118         * modules/freadseek-tests (Files): Likewise.
41119         * modules/freopen-tests (Files): Likewise.
41120         * modules/frexp-nolibm-tests (Files): Likewise.
41121         * modules/frexp-tests (Files): Likewise.
41122         * modules/frexpl-nolibm-tests (Files): Likewise.
41123         * modules/frexpl-tests (Files): Likewise.
41124         * modules/fseek-tests (Files): Likewise.
41125         * modules/fseeko-tests (Files): Likewise.
41126         * modules/fstrcmp-tests (Files): Likewise.
41127         * modules/fsync-tests (Files): Likewise.
41128         * modules/ftell-tests (Files): Likewise.
41129         * modules/ftello-tests (Files): Likewise.
41130         * modules/func-tests (Files): Likewise.
41131         * modules/futimens-tests (Files): Likewise.
41132         * modules/fwritable-tests (Files): Likewise.
41133         * modules/fwriting-tests (Files): Likewise.
41134         * modules/getcwd-tests (Files): Likewise.
41135         * modules/getdate-tests (Files): Likewise.
41136         * modules/getdelim-tests (Files): Likewise.
41137         * modules/getdtablesize-tests (Files): Likewise.
41138         * modules/getgroups-tests (Files): Likewise.
41139         * modules/getline-tests (Files): Likewise.
41140         * modules/getndelim2-tests (Files): Likewise.
41141         * modules/glob-tests (Files): Likewise.
41142         * modules/hash-tests (Files): Likewise.
41143         * modules/i-ring-tests (Files): Likewise.
41144         * modules/iconv-tests (Files): Likewise.
41145         * modules/iconv_open-utf-tests (Files): Likewise.
41146         * modules/idpriv-drop-tests (Files): Likewise.
41147         * modules/idpriv-droptemp-tests (Files): Likewise.
41148         * modules/inet_ntop-tests (Files): Likewise.
41149         * modules/inet_pton-tests (Files): Likewise.
41150         * modules/isblank-tests (Files): Likewise.
41151         * modules/isfinite-tests (Files): Likewise.
41152         * modules/isinf-tests (Files): Likewise.
41153         * modules/isnan-tests (Files): Likewise.
41154         * modules/isnand-nolibm-tests (Files): Likewise.
41155         * modules/isnand-tests (Files): Likewise.
41156         * modules/isnanf-nolibm-tests (Files): Likewise.
41157         * modules/isnanf-tests (Files): Likewise.
41158         * modules/isnanl-nolibm-tests (Files): Likewise.
41159         * modules/isnanl-tests (Files): Likewise.
41160         * modules/lchown-tests (Files): Likewise.
41161         * modules/ldexpl-tests (Files): Likewise.
41162         * modules/link-tests (Files): Likewise.
41163         * modules/linkat-tests (Files): Likewise.
41164         * modules/linked-list-tests (Files): Likewise.
41165         * modules/linkedhash-list-tests (Files): Likewise.
41166         * modules/localename-tests (Files): Likewise.
41167         * modules/lseek-tests (Files): Likewise.
41168         * modules/lstat-tests (Files): Likewise.
41169         * modules/mbmemcasecmp-tests (Files): Likewise.
41170         * modules/mbmemcasecoll-tests (Files): Likewise.
41171         * modules/mbrtowc-tests (Files): Likewise.
41172         * modules/mbscasecmp-tests (Files): Likewise.
41173         * modules/mbscasestr-tests (Files): Likewise.
41174         * modules/mbschr-tests (Files): Likewise.
41175         * modules/mbscspn-tests (Files): Likewise.
41176         * modules/mbsinit-tests (Files): Likewise.
41177         * modules/mbsncasecmp-tests (Files): Likewise.
41178         * modules/mbsnrtowcs-tests (Files): Likewise.
41179         * modules/mbspbrk-tests (Files): Likewise.
41180         * modules/mbspcasecmp-tests (Files): Likewise.
41181         * modules/mbsrchr-tests (Files): Likewise.
41182         * modules/mbsrtowcs-tests (Files): Likewise.
41183         * modules/mbsspn-tests (Files): Likewise.
41184         * modules/mbsstr-tests (Files): Likewise.
41185         * modules/memchr-tests (Files): Likewise.
41186         * modules/memchr2-tests (Files): Likewise.
41187         * modules/memcmp-tests (Files): Likewise.
41188         * modules/memmem-tests (Files): Likewise.
41189         * modules/memrchr-tests (Files): Likewise.
41190         * modules/mkdir-tests (Files): Likewise.
41191         * modules/mkfifo-tests (Files): Likewise.
41192         * modules/mkfifoat-tests (Files): Likewise.
41193         * modules/mknod-tests (Files): Likewise.
41194         * modules/nanosleep-tests (Files): Likewise.
41195         * modules/nl_langinfo-tests (Files): Likewise.
41196         * modules/obstack-printf-tests (Files): Likewise.
41197         * modules/open-tests (Files): Likewise.
41198         * modules/openat-tests (Files): Likewise.
41199         * modules/pipe-filter-gi-tests (Files): Likewise.
41200         * modules/pipe-filter-ii-tests (Files): Likewise.
41201         * modules/pipe2-tests (Files): Likewise.
41202         * modules/popen-safer-tests (Files): Likewise.
41203         * modules/popen-tests (Files): Likewise.
41204         * modules/posixtm-tests (Files): Likewise.
41205         * modules/pread-tests (Files): Likewise.
41206         * modules/printf-frexp-tests (Files): Likewise.
41207         * modules/printf-frexpl-tests (Files): Likewise.
41208         * modules/printf-posix-tests (Files): Likewise.
41209         * modules/priv-set-tests (Files): Likewise.
41210         * modules/quotearg-tests (Files): Likewise.
41211         * modules/random_r-tests (Files): Likewise.
41212         * modules/rawmemchr-tests (Files): Likewise.
41213         * modules/rbtree-list-tests (Files): Likewise.
41214         * modules/rbtree-oset-tests (Files): Likewise.
41215         * modules/rbtreehash-list-tests (Files): Likewise.
41216         * modules/readlink-tests (Files): Likewise.
41217         * modules/remove-tests (Files): Likewise.
41218         * modules/rename-tests (Files): Likewise.
41219         * modules/renameat-tests (Files): Likewise.
41220         * modules/rmdir-tests (Files): Likewise.
41221         * modules/round-tests (Files): Likewise.
41222         * modules/roundf-tests (Files): Likewise.
41223         * modules/roundl-tests (Files): Likewise.
41224         * modules/safe-alloc-tests (Files): Likewise.
41225         * modules/setenv-tests (Files): Likewise.
41226         * modules/sigaction-tests (Files): Likewise.
41227         * modules/signbit-tests (Files): Likewise.
41228         * modules/sleep-tests (Files): Likewise.
41229         * modules/snprintf-posix-tests (Files): Likewise.
41230         * modules/snprintf-tests (Files): Likewise.
41231         * modules/sprintf-posix-tests (Files): Likewise.
41232         * modules/stat-tests (Files): Likewise.
41233         * modules/stat-time-tests (Files): Likewise.
41234         * modules/strcasestr-tests (Files): Likewise.
41235         * modules/strchrnul-tests (Files): Likewise.
41236         * modules/strerror-tests (Files): Likewise.
41237         * modules/striconv-tests (Files): Likewise.
41238         * modules/striconveh-tests (Files): Likewise.
41239         * modules/striconveha-tests (Files): Likewise.
41240         * modules/strsignal-tests (Files): Likewise.
41241         * modules/strstr-tests (Files): Likewise.
41242         * modules/strtod-tests (Files): Likewise.
41243         * modules/strverscmp-tests (Files): Likewise.
41244         * modules/symlink-tests (Files): Likewise.
41245         * modules/symlinkat-tests (Files): Likewise.
41246         * modules/trunc-tests (Files): Likewise.
41247         * modules/truncf-tests (Files): Likewise.
41248         * modules/truncl-tests (Files): Likewise.
41249         * modules/uname-tests (Files): Likewise.
41250         * modules/unicase/cased-tests (Files): Likewise.
41251         * modules/unicase/ignorable-tests (Files): Likewise.
41252         * modules/unicase/locale-language-tests (Files): Likewise.
41253         * modules/unicase/tolower-tests (Files): Likewise.
41254         * modules/unicase/totitle-tests (Files): Likewise.
41255         * modules/unicase/toupper-tests (Files): Likewise.
41256         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41257         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41258         * modules/unicase/u8-casefold-tests (Files): Likewise.
41259         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41260         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41261         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41262         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41263         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41264         * modules/unicase/u8-tolower-tests (Files): Likewise.
41265         * modules/unicase/u8-totitle-tests (Files): Likewise.
41266         * modules/unicase/u8-toupper-tests (Files): Likewise.
41267         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41268         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41269         * modules/unicase/u16-casefold-tests (Files): Likewise.
41270         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41271         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41272         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41273         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41274         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41275         * modules/unicase/u16-tolower-tests (Files): Likewise.
41276         * modules/unicase/u16-totitle-tests (Files): Likewise.
41277         * modules/unicase/u16-toupper-tests (Files): Likewise.
41278         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41279         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41280         * modules/unicase/u32-casefold-tests (Files): Likewise.
41281         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41282         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41283         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41284         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41285         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41286         * modules/unicase/u32-tolower-tests (Files): Likewise.
41287         * modules/unicase/u32-totitle-tests (Files): Likewise.
41288         * modules/unicase/u32-toupper-tests (Files): Likewise.
41289         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41290         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41291         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41292         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41293         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41294         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41295         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41296         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41297         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41298         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41299         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41300         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41301         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41302         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41303         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41304         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41305         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41306         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41307         * modules/unictype/block-list-tests (Files): Likewise.
41308         * modules/unictype/block-of-tests (Files): Likewise.
41309         * modules/unictype/block-test-tests (Files): Likewise.
41310         * modules/unictype/category-C-tests (Files): Likewise.
41311         * modules/unictype/category-Cc-tests (Files): Likewise.
41312         * modules/unictype/category-Cf-tests (Files): Likewise.
41313         * modules/unictype/category-Cn-tests (Files): Likewise.
41314         * modules/unictype/category-Co-tests (Files): Likewise.
41315         * modules/unictype/category-Cs-tests (Files): Likewise.
41316         * modules/unictype/category-L-tests (Files): Likewise.
41317         * modules/unictype/category-Ll-tests (Files): Likewise.
41318         * modules/unictype/category-Lm-tests (Files): Likewise.
41319         * modules/unictype/category-Lo-tests (Files): Likewise.
41320         * modules/unictype/category-Lt-tests (Files): Likewise.
41321         * modules/unictype/category-Lu-tests (Files): Likewise.
41322         * modules/unictype/category-M-tests (Files): Likewise.
41323         * modules/unictype/category-Mc-tests (Files): Likewise.
41324         * modules/unictype/category-Me-tests (Files): Likewise.
41325         * modules/unictype/category-Mn-tests (Files): Likewise.
41326         * modules/unictype/category-N-tests (Files): Likewise.
41327         * modules/unictype/category-Nd-tests (Files): Likewise.
41328         * modules/unictype/category-Nl-tests (Files): Likewise.
41329         * modules/unictype/category-No-tests (Files): Likewise.
41330         * modules/unictype/category-P-tests (Files): Likewise.
41331         * modules/unictype/category-Pc-tests (Files): Likewise.
41332         * modules/unictype/category-Pd-tests (Files): Likewise.
41333         * modules/unictype/category-Pe-tests (Files): Likewise.
41334         * modules/unictype/category-Pf-tests (Files): Likewise.
41335         * modules/unictype/category-Pi-tests (Files): Likewise.
41336         * modules/unictype/category-Po-tests (Files): Likewise.
41337         * modules/unictype/category-Ps-tests (Files): Likewise.
41338         * modules/unictype/category-S-tests (Files): Likewise.
41339         * modules/unictype/category-Sc-tests (Files): Likewise.
41340         * modules/unictype/category-Sk-tests (Files): Likewise.
41341         * modules/unictype/category-Sm-tests (Files): Likewise.
41342         * modules/unictype/category-So-tests (Files): Likewise.
41343         * modules/unictype/category-Z-tests (Files): Likewise.
41344         * modules/unictype/category-Zl-tests (Files): Likewise.
41345         * modules/unictype/category-Zp-tests (Files): Likewise.
41346         * modules/unictype/category-Zs-tests (Files): Likewise.
41347         * modules/unictype/category-and-not-tests (Files): Likewise.
41348         * modules/unictype/category-and-tests (Files): Likewise.
41349         * modules/unictype/category-byname-tests (Files): Likewise.
41350         * modules/unictype/category-name-tests (Files): Likewise.
41351         * modules/unictype/category-none-tests (Files): Likewise.
41352         * modules/unictype/category-of-tests (Files): Likewise.
41353         * modules/unictype/category-or-tests (Files): Likewise.
41354         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41355         * modules/unictype/combining-class-tests (Files): Likewise.
41356         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41357         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41358         * modules/unictype/ctype-blank-tests (Files): Likewise.
41359         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41360         * modules/unictype/ctype-digit-tests (Files): Likewise.
41361         * modules/unictype/ctype-graph-tests (Files): Likewise.
41362         * modules/unictype/ctype-lower-tests (Files): Likewise.
41363         * modules/unictype/ctype-print-tests (Files): Likewise.
41364         * modules/unictype/ctype-punct-tests (Files): Likewise.
41365         * modules/unictype/ctype-space-tests (Files): Likewise.
41366         * modules/unictype/ctype-upper-tests (Files): Likewise.
41367         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41368         * modules/unictype/decimal-digit-tests (Files): Likewise.
41369         * modules/unictype/digit-tests (Files): Likewise.
41370         * modules/unictype/mirror-tests (Files): Likewise.
41371         * modules/unictype/numeric-tests (Files): Likewise.
41372         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41373         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41374         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41375         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41376         Likewise.
41377         * modules/unictype/property-bidi-block-separator-tests (Files):
41378         Likewise.
41379         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41380         Likewise.
41381         * modules/unictype/property-bidi-common-separator-tests (Files):
41382         Likewise.
41383         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41384         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41385         Likewise.
41386         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41387         Likewise.
41388         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41389         Likewise.
41390         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41391         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41392         Likewise.
41393         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41394         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41395         Likewise.
41396         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41397         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41398         * modules/unictype/property-bidi-segment-separator-tests (Files):
41399         Likewise.
41400         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41401         * modules/unictype/property-byname-tests (Files): Likewise.
41402         * modules/unictype/property-combining-tests (Files): Likewise.
41403         * modules/unictype/property-composite-tests (Files): Likewise.
41404         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41405         * modules/unictype/property-dash-tests (Files): Likewise.
41406         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41407         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41408         Likewise.
41409         * modules/unictype/property-deprecated-tests (Files): Likewise.
41410         * modules/unictype/property-diacritic-tests (Files): Likewise.
41411         * modules/unictype/property-extender-tests (Files): Likewise.
41412         * modules/unictype/property-format-control-tests (Files): Likewise.
41413         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41414         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41415         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41416         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41417         * modules/unictype/property-hyphen-tests (Files): Likewise.
41418         * modules/unictype/property-id-continue-tests (Files): Likewise.
41419         * modules/unictype/property-id-start-tests (Files): Likewise.
41420         * modules/unictype/property-ideographic-tests (Files): Likewise.
41421         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41422         * modules/unictype/property-ids-trinary-operator-tests (Files):
41423         Likewise.
41424         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41425         * modules/unictype/property-iso-control-tests (Files): Likewise.
41426         * modules/unictype/property-join-control-tests (Files): Likewise.
41427         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41428         * modules/unictype/property-line-separator-tests (Files): Likewise.
41429         * modules/unictype/property-logical-order-exception-tests (Files):
41430         Likewise.
41431         * modules/unictype/property-lowercase-tests (Files): Likewise.
41432         * modules/unictype/property-math-tests (Files): Likewise.
41433         * modules/unictype/property-non-break-tests (Files): Likewise.
41434         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41435         * modules/unictype/property-numeric-tests (Files): Likewise.
41436         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41437         * modules/unictype/property-other-default-ignorable-code-point-tests
41438         (Files): Likewise.
41439         * modules/unictype/property-other-grapheme-extend-tests (Files):
41440         Likewise.
41441         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41442         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41443         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41444         * modules/unictype/property-other-math-tests (Files): Likewise.
41445         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41446         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41447         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41448         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41449         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41450         * modules/unictype/property-private-use-tests (Files): Likewise.
41451         * modules/unictype/property-punctuation-tests (Files): Likewise.
41452         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41453         * modules/unictype/property-radical-tests (Files): Likewise.
41454         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41455         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41456         * modules/unictype/property-space-tests (Files): Likewise.
41457         * modules/unictype/property-terminal-punctuation-tests (Files):
41458         Likewise.
41459         * modules/unictype/property-test-tests (Files): Likewise.
41460         * modules/unictype/property-titlecase-tests (Files): Likewise.
41461         * modules/unictype/property-unassigned-code-value-tests (Files):
41462         Likewise.
41463         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41464         * modules/unictype/property-uppercase-tests (Files): Likewise.
41465         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41466         * modules/unictype/property-white-space-tests (Files): Likewise.
41467         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41468         * modules/unictype/property-xid-start-tests (Files): Likewise.
41469         * modules/unictype/property-zero-width-tests (Files): Likewise.
41470         * modules/unictype/scripts-tests (Files): Likewise.
41471         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41472         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41473         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41474         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41475         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41476         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41477         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41478         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41479         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41480         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41481         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41482         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41483         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41484         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41485         * modules/uninorm/composition-tests (Files): Likewise.
41486         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41487         * modules/uninorm/decomposition-tests (Files): Likewise.
41488         * modules/uninorm/filter-tests (Files): Likewise.
41489         * modules/uninorm/nfc-tests (Files): Likewise.
41490         * modules/uninorm/nfd-tests (Files): Likewise.
41491         * modules/uninorm/nfkc-tests (Files): Likewise.
41492         * modules/uninorm/nfkd-tests (Files): Likewise.
41493         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41494         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41495         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41496         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41497         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41498         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41499         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41500         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41501         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41502         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41503         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41504         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41505         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41506         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41507         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41508         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41509         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41510         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41511         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41512         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41513         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41514         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41515         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41516         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41517         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41518         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41519         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41520         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41521         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41522         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41523         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41524         * modules/uniwidth/u8-width-tests (Files): Likewise.
41525         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41526         * modules/uniwidth/u16-width-tests (Files): Likewise.
41527         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41528         * modules/uniwidth/u32-width-tests (Files): Likewise.
41529         * modules/uniwidth/width-tests (Files): Likewise.
41530         * modules/unlink-tests (Files): Likewise.
41531         * modules/unsetenv-tests (Files): Likewise.
41532         * modules/usleep-tests (Files): Likewise.
41533         * modules/utimens-tests (Files): Likewise.
41534         * modules/utimensat-tests (Files): Likewise.
41535         * modules/vasnprintf-posix-tests (Files): Likewise.
41536         * modules/vasnprintf-tests (Files): Likewise.
41537         * modules/vasprintf-posix-tests (Files): Likewise.
41538         * modules/vasprintf-tests (Files): Likewise.
41539         * modules/vdprintf-posix-tests (Files): Likewise.
41540         * modules/vfprintf-posix-tests (Files): Likewise.
41541         * modules/vprintf-posix-tests (Files): Likewise.
41542         * modules/vsnprintf-posix-tests (Files): Likewise.
41543         * modules/vsnprintf-tests (Files): Likewise.
41544         * modules/vsprintf-posix-tests (Files): Likewise.
41545         * modules/wcrtomb-tests (Files): Likewise.
41546         * modules/wcsnrtombs-tests (Files): Likewise.
41547         * modules/wcsrtombs-tests (Files): Likewise.
41548         * modules/wctype-tests (Files): Likewise.
41549         * modules/wcwidth-tests (Files): Likewise.
41550         * modules/xmemdup0-tests (Files): Likewise.
41551         * modules/xprintf-posix-tests (Files): Likewise.
41552         * modules/xvasprintf-tests (Files): Likewise.
41553
41554 2009-12-24  Eric Blake  <ebb9@byu.net>
41555
41556         test-nanosleep: fix typo
41557         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41558         patch.
41559         Reported by Bruno Haible.
41560
41561 2009-12-24  Bruno Haible  <bruno@clisp.org>
41562
41563         Reduce namespace pollution on glibc systems.
41564         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41565         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41566         systems.
41567         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41568         <getopt.h> on glibc systems.
41569         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41570         systems.
41571         * lib/fcntl.c: Include <unistd.h> here instead.
41572
41573 2009-12-24  Bruno Haible  <bruno@clisp.org>
41574
41575         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41576
41577 2009-12-24  Eric Blake  <ebb9@byu.net>
41578
41579         tests: add signature checks
41580         * tests/signature.h (SIGNATURE_CHECK): New file.
41581         * modules/atexit-tests (Files): Use it.
41582         * modules/btowc-tests (Files): Likewise.
41583         * modules/canonicalize-lgpl-tests (Files): Likewise.
41584         * modules/ceilf-tests (Files): Likewise.
41585         * modules/ceill-tests (Files): Likewise.
41586         * modules/chown-tests (Files): Likewise.
41587         * modules/dprintf-posix-tests (Files): Likewise.
41588         * modules/dup2-tests (Files): Likewise.
41589         * modules/dup3-tests (Files): Likewise.
41590         * modules/duplocale-tests (Files): Likewise.
41591         * modules/fchdir-tests (Files): Likewise.
41592         * modules/fcntl-tests (Files): Likewise.
41593         * modules/fdopendir-tests (Files): Likewise.
41594         * modules/fflush-tests (Files): Likewise.
41595         * modules/flock-tests (Files): Likewise.
41596         * modules/floorf-tests (Files): Likewise.
41597         * modules/floorl-tests (Files): Likewise.
41598         * modules/fnmatch-tests (Files): Likewise.
41599         * modules/fopen-tests (Files): Likewise.
41600         * modules/fprintf-posix-tests (Files): Likewise.
41601         * modules/freopen-tests (Files): Likewise.
41602         * modules/frexp-nolibm-tests (Files): Likewise.
41603         * modules/frexp-tests (Files): Likewise.
41604         * modules/frexpl-nolibm-tests (Files): Likewise.
41605         * modules/frexpl-tests (Files): Likewise.
41606         * modules/fseek-tests (Files): Likewise.
41607         * modules/fseeko-tests (Files): Likewise.
41608         * modules/fsync-tests (Files): Likewise.
41609         * modules/ftell-tests (Files): Likewise.
41610         * modules/ftello-tests (Files): Likewise.
41611         * modules/futimens-tests (Files): Likewise.
41612         * modules/getaddrinfo-tests (Files): Likewise.
41613         * modules/getcwd-tests (Files): Likewise.
41614         * modules/getdelim-tests (Files): Likewise.
41615         * modules/getdtablesize-tests (Files): Likewise.
41616         * modules/getgroups-tests (Files): Likewise.
41617         * modules/gethostname-tests (Files): Likewise.
41618         * modules/getline-tests (Files): Likewise.
41619         * modules/getopt-posix-tests (Files): Likewise.
41620         * modules/gettimeofday-tests (Files): Likewise.
41621         * modules/glob-tests (Files): Likewise.
41622         * modules/iconv-tests (Files): Likewise.
41623         * modules/inet_ntop-tests (Files): Likewise.
41624         * modules/inet_pton-tests (Files): Likewise.
41625         * modules/isblank-tests (Files): Likewise.
41626         * modules/lchown-tests (Files): Likewise.
41627         * modules/ldexpl-tests (Files): Likewise.
41628         * modules/link-tests (Files): Likewise.
41629         * modules/linkat-tests (Files): Likewise.
41630         * modules/lseek-tests (Files): Likewise.
41631         * modules/lstat-tests (Files): Likewise.
41632         * modules/mbrtowc-tests (Files): Likewise.
41633         * modules/mbsinit-tests (Files): Likewise.
41634         * modules/mbsnrtowcs-tests (Files): Likewise.
41635         * modules/mbsrtowcs-tests (Files): Likewise.
41636         * modules/memchr-tests (Files): Likewise.
41637         * modules/memcmp-tests (Files): Likewise.
41638         * modules/memmem-tests (Files): Likewise.
41639         * modules/memrchr-tests (Files): Likewise.
41640         * modules/mkdir-tests (Files): Likewise.
41641         * modules/mkfifo-tests (Files): Likewise.
41642         * modules/mkfifoat-tests (Files): Likewise.
41643         * modules/mknod-tests (Files): Likewise.
41644         * modules/nanosleep-tests (Files): Likewise.
41645         * modules/nl_langinfo-tests (Files): Likewise.
41646         * modules/obstack-printf-tests (Files): Likewise.
41647         * modules/open-tests (Files): Likewise.
41648         * modules/openat-tests (Files): Likewise.
41649         * modules/perror-tests (Files): Likewise.
41650         * modules/pipe2-tests (Files): Likewise.
41651         * modules/poll-tests (Files): Likewise.
41652         * modules/popen-tests (Files): Likewise.
41653         * modules/posix_spawn-tests (Files): Likewise.
41654         * modules/posix_spawnp-tests (Files): Likewise.
41655         * modules/pread-tests (Files): Likewise.
41656         * modules/printf-posix-tests (Files): Likewise.
41657         * modules/pty-tests (Files): Likewise.
41658         * modules/random_r-tests (Files): Likewise.
41659         * modules/rawmemchr-tests (Files): Likewise.
41660         * modules/readlink-tests (Files): Likewise.
41661         * modules/remove-tests (Files): Likewise.
41662         * modules/rename-tests (Files): Likewise.
41663         * modules/renameat-tests (Files): Likewise.
41664         * modules/rmdir-tests (Files): Likewise.
41665         * modules/round-tests (Files): Likewise.
41666         * modules/roundf-tests (Files): Likewise.
41667         * modules/roundl-tests (Files): Likewise.
41668         * modules/select-tests (Files): Likewise.
41669         * modules/setenv-tests (Files): Likewise.
41670         * modules/sigaction-tests (Files): Likewise.
41671         * modules/sleep-tests (Files): Likewise.
41672         * modules/snprintf-posix-tests (Files): Likewise.
41673         * modules/snprintf-tests (Files): Likewise.
41674         * modules/sprintf-posix-tests (Files): Likewise.
41675         * modules/stat-tests (Files): Likewise.
41676         * modules/strcasestr-tests (Files): Likewise.
41677         * modules/strchrnul-tests (Files): Likewise.
41678         * modules/strerror-tests (Files): Likewise.
41679         * modules/strsignal-tests (Files): Likewise.
41680         * modules/strstr-tests (Files): Likewise.
41681         * modules/strtod-tests (Files): Likewise.
41682         * modules/strverscmp-tests (Files): Likewise.
41683         * modules/symlink-tests (Files): Likewise.
41684         * modules/symlinkat-tests (Files): Likewise.
41685         * modules/times-tests (Files): Likewise.
41686         * modules/trunc-tests (Files): Likewise.
41687         * modules/truncf-tests (Files): Likewise.
41688         * modules/truncl-tests (Files): Likewise.
41689         * modules/tsearch-tests (Files): Likewise.
41690         * modules/uname-tests (Files): Likewise.
41691         * modules/unlink-tests (Files): Likewise.
41692         * modules/unsetenv-tests (Files): Likewise.
41693         * modules/usleep-tests (Files): Likewise.
41694         * modules/utimensat-tests (Files): Likewise.
41695         * modules/vasprintf-tests (Files): Likewise.
41696         * modules/vdprintf-posix-tests (Files): Likewise.
41697         * modules/vfprintf-posix-tests (Files): Likewise.
41698         * modules/vprintf-posix-tests (Files): Likewise.
41699         * modules/vsnprintf-posix-tests (Files): Likewise.
41700         * modules/vsnprintf-tests (Files): Likewise.
41701         * modules/vsprintf-posix-tests (Files): Likewise.
41702         * modules/wcrtomb-tests (Files): Likewise.
41703         * modules/wcsnrtombs-tests (Files): Likewise.
41704         * modules/wcsrtombs-tests (Files): Likewise.
41705         * modules/wcwidth-tests (Files): Likewise.
41706         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41707         * tests/test-isinf.c (isinf): Likewise.
41708         * tests/test-isnan.c (isnan): Likewise.
41709         * tests/test-signbit.c (signbit): Likewise.
41710         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41711         declaration, either as macro or with correct signature.
41712         (select): Ensure function under test is declared with correct
41713         signature in correct header.
41714         * tests/test-atexit.c (atexit): Likewise.
41715         * tests/test-btowc.c (btowc): Likewise.
41716         * tests/test-canonicalize-lgpl.c (realpath)
41717         (canonicalize_file_name): Likewise.
41718         * tests/test-ceilf1.c (ceilf): Likewise.
41719         * tests/test-ceill.c (ceill): Likewise.
41720         * tests/test-chown.c (chown): Likewise.
41721         * tests/test-dprintf-posix.c (dprintf): Likewise.
41722         * tests/test-dup2.c (dup2): Likewise.
41723         * tests/test-dup3.c (dup3): Likewise.
41724         * tests/test-duplocale.c (duplocale): Likewise.
41725         * tests/test-fchdir.c (fchdir): Likewise.
41726         * tests/test-fchownat.c (fchownat): Likewise.
41727         * tests/test-fcntl.c (fcntl): Likewise.
41728         * tests/test-fdopendir.c (fdopendir): Likewise.
41729         * tests/test-fflush.c (fflush): Likewise.
41730         * tests/test-flock.c (flock): Likewise.
41731         * tests/test-floorf1.c (floorf): Likewise.
41732         * tests/test-floorl.c (floorl): Likewise.
41733         * tests/test-fnmatch.c (fnmatch): Likewise.
41734         * tests/test-fopen.c (fopen): Likewise.
41735         * tests/test-fprintf-posix.c (fprintf): Likewise.
41736         * tests/test-freopen.c (freopen): Likewise.
41737         * tests/test-frexp.c (frexp): Likewise.
41738         * tests/test-frexpl.c (frexpl): Likewise.
41739         * tests/test-fseek.c (fseek): Likewise.
41740         * tests/test-fseeko.c (fseeko): Likewise.
41741         * tests/test-fstatat.c (fstatat): Likewise.
41742         * tests/test-fsync.c (fsync): Likewise.
41743         * tests/test-ftell.c (ftell): Likewise.
41744         * tests/test-ftello.c (ftello): Likewise.
41745         * tests/test-futimens.c (futimens): Likewise.
41746         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41747         (gai_strerror): Likewise.
41748         * tests/test-getcwd.c (getcwd): Likewise.
41749         * tests/test-getdelim.c (getdelim): Likewise.
41750         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41751         * tests/test-getgroups.c (getgroups): Likewise.
41752         * tests/test-gethostname.c (gethostname): Likewise.
41753         * tests/test-getline.c (getline): Likewise.
41754         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41755         Likewise.
41756         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41757         * tests/test-glob.c (glob, globfree): Likewise.
41758         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41759         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41760         * tests/test-inet_pton.c (inet_pton): Likewise.
41761         * tests/test-isblank.c (isblank): Likewise.
41762         * tests/test-lchown.c (lchown): Likewise.
41763         * tests/test-ldexpl.c (ldexpl): Likewise.
41764         * tests/test-link.c (link): Likewise.
41765         * tests/test-linkat.c (linkat): Likewise.
41766         * tests/test-lseek.c (lseek): Likewise.
41767         * tests/test-lstat.c (lstat): Likewise.
41768         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41769         * tests/test-mbsinit.c (mbsinit): Likewise.
41770         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41771         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41772         * tests/test-memchr.c (memchr): Likewise.
41773         * tests/test-memcmp.c (memcmp): Likewise.
41774         * tests/test-memmem.c (memmem): Likewise.
41775         * tests/test-memrchr.c (memrchr): Likewise.
41776         * tests/test-mkdir.c (mkdir): Likewise.
41777         * tests/test-mkdirat.c (mkdirat): Likewise.
41778         * tests/test-mkfifo.c (mkfifo): Likewise.
41779         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41780         * tests/test-mknod.c (mknod): Likewise.
41781         * tests/test-nanosleep.c (nanosleep): Likewise.
41782         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41783         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41784         Likewise.
41785         * tests/test-open.c (open): Likewise.
41786         * tests/test-openat.c (openat): Likewise.
41787         * tests/test-perror.c (perror): Likewise.
41788         * tests/test-pipe2.c (pipe2): Likewise.
41789         * tests/test-poll.c (poll): Likewise.
41790         * tests/test-popen.c (popen, pclose): Likewise.
41791         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41792         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41793         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41794         (posix_spawn_file_actions_destroy)
41795         (posix_spawn_file_actions_addclose)
41796         (posix_spawn_file_actions_addopen)
41797         (posix_spawn_file_actions_adddup2): Likewise.
41798         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41799         * tests/test-pread.c (pread): Likewise.
41800         * tests/test-printf-posix.c (printf): Likewise.
41801         * tests/test-pty.c (openpty, forkpty): Likewise.
41802         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41803         (random_r): Likewise.
41804         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41805         * tests/test-readlink.c (readlink): Likewise.
41806         * tests/test-remove.c (remove): Likewise.
41807         * tests/test-rename.c (rename): Likewise.
41808         * tests/test-renameat.c (renameat): Likewise.
41809         * tests/test-rmdir.c (rmdir): Likewise.
41810         * tests/test-round1.c (round): Likewise.
41811         * tests/test-roundf1.c (roundf): Likewise.
41812         * tests/test-roundl.c (roundl): Likewise.
41813         * tests/test-setenv.c (setenv): Likewise.
41814         * tests/test-sigaction.c (sigaction): Likewise.
41815         * tests/test-sleep.c (sleep): Likewise.
41816         * tests/test-snprintf.c (snprintf): Likewise.
41817         * tests/test-sprintf-posix.c (sprintf): Likewise.
41818         * tests/test-stat.c (stat): Likewise.
41819         * tests/test-stpncpy.c (stpncpy): Likewise.
41820         * tests/test-strcasestr.c (strcasestr): Likewise.
41821         * tests/test-strchrnul.c (strchrnul): Likewise.
41822         * tests/test-strerror.c (strerror): Likewise.
41823         * tests/test-strsignal.c (strsignal): Likewise.
41824         * tests/test-strstr.c (strstr): Likewise.
41825         * tests/test-strtod.c (strtod): Likewise.
41826         * tests/test-strverscmp.c (strverscmp): Likewise.
41827         * tests/test-symlink.c (symlink): Likewise.
41828         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41829         * tests/test-times.c (times): Likewise.
41830         * tests/test-trunc1.c (trunc): Likewise.
41831         * tests/test-truncf1.c (truncf): Likewise.
41832         * tests/test-truncl.c (truncl): Likewise.
41833         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41834         Likewise.
41835         * tests/test-uname.c (uname): Likewise.
41836         * tests/test-unlink.c (unlink): Likewise.
41837         * tests/test-unlinkat.c (unlinkat): Likewise.
41838         * tests/test-unsetenv.c (unsetenv): Likewise.
41839         * tests/test-usleep.c (usleep): Likewise.
41840         * tests/test-utimensat.c (utimensat): Likewise.
41841         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41842         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41843         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41844         * tests/test-vprintf-posix.c (vprintf): Likewise.
41845         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41846         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41847         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41848         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41849         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41850         * tests/test-wcwidth.c (wcwidth): Likewise.
41851
41852         build: pull in conditional headers during GNULIB_POSIXCHECK
41853         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41854         definitions from any conditionally-included headers.
41855         * lib/stdlib.in.h (includes): Likewise.
41856         * lib/unistd.in.h (includes): Likewise.
41857
41858 2009-12-24  Bruno Haible  <bruno@clisp.org>
41859
41860         * tests/test-argv-iter.c: Include header file being tested immediately
41861         after config.h.
41862         * tests/test-base64.c: Likewise.
41863         * tests/test-flock.c: Likewise.
41864         * tests/test-fsync.c: Likewise.
41865         * tests/test-getdate.c: Likewise.
41866         * tests/test-getndelim2.c: Likewise.
41867         * tests/test-isfinite.c: Likewise.
41868         * tests/test-isinf.c: Likewise.
41869         * tests/test-strerror.c: Likewise.
41870         * tests/test-strsignal.c: Likewise.
41871
41872 2009-12-23  Eric Blake  <ebb9@byu.net>
41873
41874         unistd: work around cygwin bug
41875         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
41876         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
41877         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41878
41879 2009-12-23  Bruno Haible  <bruno@clisp.org>
41880
41881         localename: More tests.
41882         * tests/test-localename.c (SIZEOF): New macro.
41883         (categories): New variable.
41884         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
41885         test_locale_name_default): Add test w.r.t. thread locale.
41886         (test_locale_name_thread): New function.
41887         (main): Invoke it.
41888
41889         localename: Make aware of thread locale.
41890         * lib/localename.h (gl_locale_name_thread): New declaration.
41891         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
41892         behaviour with respect to thread locale.
41893         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
41894         <langinfo.h>, glthread/lock.h.
41895         (SIZE_BITS): New macro.
41896         (string_hash): New function.
41897         (struct hash_node): New type.
41898         (HASH_TABLE_SIZE): New macro.
41899         (struniq_hash_table, struniq_lock): New variables.
41900         (struniq): New function.
41901         (gl_locale_name_thread): New function.
41902         (gl_locale_name): Invoke it.
41903         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
41904         * modules/localename (Depends-on): Add lock.
41905         Reported by Mike Gran <spk121@yahoo.com>.
41906
41907 2009-12-23  Eric Blake  <ebb9@byu.net>
41908
41909         va-args: new module
41910         * modules/va-args: New file.
41911         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41912         * MODULES.html.sh (Core language properties): Mention it.
41913
41914         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41915         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41916         named alias for __attribute__((__unused__)).
41917         * lib/chown.c: Update client.
41918         * lib/fchmodat.c: Likewise.
41919         * lib/fts.c: Likewise.
41920         * lib/getdate.y: Likewise.
41921         * lib/getgroups.c: Likewise.
41922         * lib/getopt.c: Likewise.
41923         * lib/getugroups.c: Likewise.
41924         * lib/mkdir.c: Likewise.
41925         * lib/mkfifo.c: Likewise.
41926         * lib/mkfifoat.c: Likewise.
41927         * lib/mknod.c: Likewise.
41928         * lib/mknodat.c: Likewise.
41929         * lib/readlink.c: Likewise.
41930         * lib/se-context.in.h: Likewise.
41931         * lib/se-selinux.in.h: Likewise.
41932         * lib/sockets.c: Likewise.
41933         * lib/symlink.c: Likewise.
41934         * lib/symlinkat.c: Likewise.
41935         * lib/unicodeio.c: Likewise.
41936         * lib/unistr.h: Likewise.
41937         * tests/test-areadlink.c: Likewise.
41938         * tests/test-areadlinkat.c: Likewise.
41939         * tests/test-filenamecat.c: Likewise.
41940         * tests/test-fseeko.c: Likewise.
41941         * tests/test-ftello.c: Likewise.
41942         * tests/test-getdate.c: Likewise.
41943         * tests/test-getgroups.c: Likewise.
41944         * tests/test-gethostname.c: Likewise.
41945         * tests/test-quotearg.c: Likewise.
41946         * tests/test-version-etc.c: Likewise.
41947         * tests/test-xalloc-die.c: Likewise.
41948         * tests/test-xfprintf-posix.c: Likewise.
41949         * tests/test-xprintf-posix.c: Likewise.
41950         * tests/test-xvasprintf.c: Likewise.
41951
41952         tests: avoid compiler warnings
41953         * tests/test-fcntl.c (main): Delete unused parameters.
41954         * tests/test-freopen-safer.c (main): Likewise.
41955         * tests/test-xalloc-die.c (main): Mark unused parameters.
41956         * tests/test-fseeko.c (main): Likewise.
41957         * tests/test-ftello.c (main): Likewise.
41958         * tests/test-nanosleep.c (main): Avoid declaration warning.
41959         * tests/test-sleep.c (main): Likewise.
41960         * tests/test-unsetenv.c (main): Silence warning about string
41961         literal.
41962         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41963
41964 2009-12-23  Bruno Haible  <bruno@clisp.org>
41965
41966         * tests/test-localename.c (test_locale_name): New function, extracted
41967         from main. Also test mixed situations.
41968         (test_locale_name_posix, test_locale_name_environ,
41969         test_locale_name_default): New functions.
41970         (main): Invoke them all.
41971         * modules/localename-tests (configure.ac): Test for newlocale.
41972
41973 2009-12-23  Bruno Haible  <bruno@clisp.org>
41974
41975         unistd: Ensure getcwd gets declared before being overridden.
41976         * lib/unistd.in.h: Conditionally include <io.h>.
41977
41978 2009-12-22  Bruno Haible  <bruno@clisp.org>
41979
41980         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41981         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41982         (gl_WCHAR_H): Invoke it.
41983         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41984         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41985         Reported by Karl Berry <karl@freefriends.org>.
41986
41987 2009-12-22  Eric Blake  <ebb9@byu.net>
41988
41989         math, unistd: avoid redundant includes
41990         * lib/math.in.h (isnan): No need to re-include <math.h>.
41991         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41992
41993         getsubopt: work around cygwin bug
41994         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41995         avoid conflicting with system getsubopt.
41996         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41997         bug.
41998
41999         getopt: synchronize from glibc
42000         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42001         parameter order.  Adjust all callers.
42002         (_getopt_internal_r, main): Adjust quoting in error messages.
42003         Drop considerations for outdated POSIX 1003.2 error message.
42004         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42005         callers.
42006         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42007
42008         test-getopt: test stderr behavior
42009         * modules/getopt-posix-tests (Depends-on): Add dup2.
42010         * tests/test-getopt.c (ASSERT): Avoid stderr.
42011         (main): Move stderr to a temporary file.
42012         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42013         Instead, add parameter to inform caller if output occurred.
42014         (test_getopt): Adjust all existing tests to expect silence, and
42015         add new tests of leading ":".
42016         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42017         glibc shortcomings with leading "-:" or "+:" in optstring.
42018         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42019         Likewise.
42020         * doc/posix-functions/getopt.texi (getopt): Likewise.
42021
42022         test-getopt: enhance test
42023         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42024         supports optind=0.
42025         * tests/test-getopt.c (OPTIND_MIN): Move...
42026         * tests/test-getopt.h (OPTIND_MIN): ...here.
42027         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42028         Require that optind=0 works, since modern BSD supports it in
42029         addition to optreset, and since coreutils expects it.
42030         (test_getopt_long_only): New test.
42031         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42032         glibc shortcomings with 'W;', and enforcement of optind=0.
42033         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42034         Likewise.
42035
42036 2009-12-21  Bruno Haible  <bruno@clisp.org>
42037
42038         localename: Improvements for MacOS X and Cygwin.
42039         * lib/localename.h (gl_locale_name_environ): New declaration.
42040         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42041         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42042         (gl_locale_name_posix): Invoke it.
42043         (gl_locale_name_default): Add comments. Use Windows native API also on
42044         Cygwin.
42045
42046 2009-12-21  Bruno Haible  <bruno@clisp.org>
42047
42048         Update list of Win32 locale ids.
42049         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42050         (LANG_SAMI): Renamed from LANG_SAAMI.
42051         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42052         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42053         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42054         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42055         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42056         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42057         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42058         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42059         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42060         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42061         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42062         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42063         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42064         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42065         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42066         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42067         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42068         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42069         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42070         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42071         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42072         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42073         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42074         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42075         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42076         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42077         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42078         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42079         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42080         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42081         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42082         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42083         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42084         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42085         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42086         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42087         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42088         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42089         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42090         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42091         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42092         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42093         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42094         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42095         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42096         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42097         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42098         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42099         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42100         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42101         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42102         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42103         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42104         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42105         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42106         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42107         Add more languages and countries for Sami, Sorbian. Add more countries
42108         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42109         for Pashto. Change country for Syriac, Tswana.
42110
42111 2009-12-21  Eric Blake  <ebb9@byu.net>
42112
42113         test-utimens: avoid spurious failure
42114         * tests/test-chown.h (nap): Factor...
42115         * tests/nap.h: ...into new file.
42116         * tests/test-lchown.h (nap): Avoid duplication.
42117         * tests/test-utimens-common.h (nap): Use shared implementation,
42118         necessary on file systems with 1-second resolution.
42119         * modules/chown-tests (Files): Include new file.
42120         * modules/fdutimensat-tests (Files): Likewise.
42121         * modules/futimens-tests (Files): Likewise.
42122         * modules/lchown-tests (Files): Likewise.
42123         * modules/openat-tests (Files): Likewise.
42124         * modules/utimens-tests (Files): Likewise.
42125         * modules/utimensat-tests (Files): Likewise.
42126
42127 2009-12-19  Eric Blake  <ebb9@byu.net>
42128
42129         futimens, utimensat: work around Linux bug
42130         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42131         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42132         * lib/utimensat.c (rpl_utimensat): Work around it.
42133         * lib/futimens.c (rpl_futimens): Adjust comment.
42134
42135         utimens: work around Linux ctime bug
42136         * lib/utimens.c (detect_ctime_bug): New helper function.
42137         (update_timespec): Differentiate between workaround needed for
42138         this bug vs. what is needed for systems that lack utimensat.
42139         (fdutimens, lutimens): Work around bug.
42140
42141         utimens: check for ctime update
42142         * tests/test-utimens-common.h (check_ctime): Define.
42143         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42144         * tests/test-futimens.h (test_futimens): Likewise.
42145         * tests/test-lutimens.h (test_lutimens): Likewise.
42146         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42147         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42148
42149 2009-12-19  Bruno Haible  <bruno@clisp.org>
42150
42151         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42152         * tests/test-dprintf-posix2.sh: New file.
42153         * tests/test-dprintf-posix2.c: New file.
42154         * modules/dprintf-posix-tests (Files): Add them.
42155         (configure.ac): Check for getrlimit and setrlimit.
42156         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42157
42158 2009-12-19  Bruno Haible  <bruno@clisp.org>
42159
42160         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42161         * tests/test-fprintf-posix3.sh: New file.
42162         * tests/test-fprintf-posix3.c: New file.
42163         * modules/fprintf-posix-tests (Files): Add them.
42164         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42165
42166 2009-12-19  Eric Blake  <ebb9@byu.net>
42167
42168         dirfd: fix prototype
42169         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42170         * lib/dirfd.c (dirfd): Likewise.
42171
42172         canonicalize: reduce memory usage
42173         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42174         allocation to size.
42175         Reported by Solar Designer <solar@openwall.com>.
42176
42177 2009-12-19  Bruno Haible  <bruno@clisp.org>
42178
42179         New module attribute 'Applicability'.
42180         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42181         * gnulib-tool: New option --extract-applicability.
42182         (func_usage): Document it.
42183         (sed_extract_prog): Recognize it.
42184         (func_get_applicability): New function.
42185         (func_import): Generalize handling of 'link-warning' module.
42186         * modules/link-warning (Applicability): New section.
42187         * modules/arg-nonnull (Applicability): New section.
42188         Repoted by Simon Josefsson <simon@josefsson.org>.
42189
42190 2009-12-19  Bruno Haible  <bruno@clisp.org>
42191
42192         fflush: tweak
42193         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42194         * lib/fseeko.c (rpl_fseeko): Likewise.
42195
42196 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42197
42198         * lib/gl_list.h: Fix typo in comment.
42199
42200 2009-12-16  Eric Blake  <ebb9@byu.net>
42201
42202         fcntl: use to simplify other modules
42203         * modules/cloexec (Depends-on): Add fcntl.
42204         * modules/fchdir (Depends-on): Likewise.
42205         * modules/fd-safer-flag (Depends-on): Likewise.
42206         * modules/unistd-safer (Depends-on): Likewise.
42207         * modules/dup3 (configure.ac): Set module indicator.
42208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42209         missing.
42210         * lib/fchdir.c (_gl_register_dup): Fix comment.
42211         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42212         * lib/dup-safer.c (dup_safer): Likewise.
42213         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42214         * lib/dup3.c (dup3): Likewise.
42215         * tests/test-fchdir.c (main): Enhance test.
42216         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
42217
42218         fcntl: port portions of fcntl to mingw
42219         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42220         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42221         replacement for mingw.
42222         * modules/fcntl (Description): Update.
42223         (Depends-on): Add dup2.
42224         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42225         * modules/fcntl-h (Makefile.am): Substitute it.
42226         * lib/fcntl.in.h (fcntl): Update declaration.
42227         (F_DUPFD, F_GETFD): New macros, when needed.
42228         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42229         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42230         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42231         we now guarantee.
42232
42233         fcntl: work around cygwin bug in F_DUPFD
42234         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42235         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42236         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42237         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42238         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42239
42240         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42241         * modules/fcntl (Files): List new files.
42242         (configure.ac): Run a test.
42243         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42244         * lib/fcntl.c (rpl_fcntl): Likewise.
42245         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42246         (gl_FCNTL_H): Always replace fcntl.h.
42247         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42248         * lib/fcntl.in.h (fcntl): Declare replacement.
42249         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42250         needed, plus a witness.
42251         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42252         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42253         * tests/test-fcntl.c: New file.
42254         * modules/fcntl-tests: Likewise.
42255
42256         binary-io: avoid potential compilation warning
42257         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42258         directives.
42259
42260         fflush: avoid compilation error on NetBSD
42261         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42262         between off_t and fpos_t, since the latter is sometimes a struct.
42263         * lib/fseeko.c (rpl_fseeko): Likewise.
42264         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42265
42266 2009-12-15  Eric Blake  <ebb9@byu.net>
42267
42268         fcntl-h, stdio, sys_ioctl: fix declarations
42269         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42270         function must not take arguments.
42271         * lib/sys_ioctl.in.h (ioctl): Likewise.
42272         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42273         (open): Add a link warning.
42274
42275 2009-12-15  Jim Meyering  <meyering@redhat.com>
42276
42277         areadlink, areadlink-with-size: relax license to LGPLv2+
42278         * modules/areadlink (License): Relax to LGPLv2+.
42279         * modules/areadlink-with-size (License): Likewise.
42280
42281 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42282             Bruno Haible  <bruno@clisp.org>
42283
42284         *printf: Fix memory leak.
42285         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42286         * lib/vfprintf.c (vfprintf): Likewise.
42287         * lib/dprintf.c (dprintf): Likewise.
42288         * lib/vdprintf.c (vdprintf): Likewise.
42289
42290 2009-12-14  Eric Blake  <ebb9@byu.net>
42291
42292         accept4: adjust module dependencies
42293         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42294
42295         utimens: one more try at avoiding compiler warning
42296         * lib/utimens.c (lutimens): Lower scope of result.
42297
42298 2009-12-13  Bruno Haible  <bruno@clisp.org>
42299
42300         Move the malloc checking from module 'list' to new module 'xlist'.
42301         * modules/xlist: New file.
42302         * lib/gl_xlist.h: New file.
42303         * lib/gl_xlist.c: New file.
42304         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42305         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42306         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42307         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42308         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42309         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42310         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42311         gl_sortedlist_nx_add): New declarations.
42312         (struct gl_list_implementation): Rename and change methods accordingly.
42313         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42314         (gl_list_nx_create): Renamed from gl_list_create.
42315         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42316         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42317         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42318         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42319         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42320         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42321         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42322         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42323         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42324         gl_list_create_empty.
42325         (gl_list_nx_create): Renamed from gl_list_create.
42326         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42327         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42328         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42329         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42330         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42331         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42332         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42333         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42334         * lib/gl_array_list.c: Don't include xalloc.h.
42335         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42336         NULL upon out-of-memory.
42337         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42338         out-of-memory.
42339         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42340         Change return type to 'int'.
42341         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42342         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42343         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42344         upon out-of-memory.
42345         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42346         upon out-of-memory.
42347         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42348         upon out-of-memory.
42349         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42350         upon out-of-memory.
42351         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42352         out-of-memory.
42353         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42354         Update.
42355         (gl_array_list_implementation): Update.
42356         * lib/gl_carray_list.c: Don't include xalloc.h.
42357         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42358         Return NULL upon out-of-memory.
42359         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42360         out-of-memory.
42361         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42362         Change return type to 'int'.
42363         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42364         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42365         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42366         upon out-of-memory.
42367         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42368         upon out-of-memory.
42369         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42370         out-of-memory.
42371         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42372         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42373         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42374         Update.
42375         (gl_carray_list_implementation): Update.
42376         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42377         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42378         gl_linked_create_empty. Return NULL upon out-of-memory.
42379         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42380         out-of-memory.
42381         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42382         Change return type to 'int'. Return -1 upon out-of-memory.
42383         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42384         out-of-memory.
42385         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42386         upon out-of-memory.
42387         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42388         upon out-of-memory.
42389         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42390         NULL upon out-of-memory.
42391         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42392         upon out-of-memory.
42393         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42394         out-of-memory.
42395         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42396         Update.
42397         * lib/gl_linked_list.c: Don't include xalloc.h.
42398         (gl_linked_list_implementation): Update.
42399         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42400         (add_to_bucket): Change return type to 'int'.
42401         (gl_linkedhash_list_implementation): Update.
42402         * lib/gl_anytree_list1.h (free_subtree): New function.
42403         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42404         gl_tree_create_empty. Return NULL upon out-of-memory.
42405         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42406         Change return type to 'int'. Return -1 upon out-of-memory.
42407         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42408         out-of-memory.
42409         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42410         (gl_tree_remove_node): New function, moved here from
42411         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42412         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42413         Update.
42414         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42415         malloc, not xmalloc. Return NULL upon out-of-memory.
42416         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42417         out-of-memory.
42418         (gl_tree_remove_node_from_tree): New function, extracted from
42419         gl_tree_remove_node.
42420         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42421         upon out-of-memory.
42422         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42423         out-of-memory.
42424         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42425         upon out-of-memory.
42426         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42427         upon out-of-memory.
42428         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42429         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42430         not xmalloc. Return NULL upon out-of-memory.
42431         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42432         out-of-memory.
42433         (gl_tree_remove_node_from_tree): New function, extracted from
42434         gl_tree_remove_node.
42435         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42436         upon out-of-memory.
42437         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42438         out-of-memory.
42439         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42440         upon out-of-memory.
42441         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42442         upon out-of-memory.
42443         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42444         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42445         gl_anytree_list1.h before gl_anyavltree_list2.h.
42446         (gl_avltree_list_implementation): Update.
42447         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42448         gl_anytree_list1.h before gl_anyavltree_list2.h.
42449         (gl_rbtree_list_implementation): Update.
42450         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42451         Change return type to 'int'. Return -1 upon out-of-memory. Use
42452         __builtin_expect.
42453         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42454         (gl_avltreehash_list_implementation): Update.
42455         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42456         (gl_rbtreehash_list_implementation): Update.
42457         * modules/array-list (Depends-on): Remove xalloc.
42458         * modules/carray-list (Depends-on): Likewise.
42459         * modules/linked-list (Depends-on): Likewise.
42460         * modules/linkedhash-list (Depends-on): Likewise.
42461         * modules/avltree-list (Depends-on): Likewise.
42462         * modules/rbtree-list (Depends-on): Likewise.
42463         * modules/avltreehash-list (Depends-on): Likewise.
42464         * modules/rbtreehash-list (Depends-on): Likewise.
42465
42466         * modules/xsublist: New file.
42467         * lib/gl_xsublist.h: New file.
42468         * lib/gl_xsublist.c: New file.
42469         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42470         (gl_sublist_nx_create): New declaration.
42471         * lib/gl_sublist.c: Don't include xalloc.h.
42472         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42473         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42474         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42475         Change return type to 'int'. Return -1 upon out-of-memory.
42476         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42477         upon out-of-memory.
42478         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42479         NULL upon out-of-memory.
42480         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42481         upon out-of-memory.
42482         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42483         NULL upon out-of-memory.
42484         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42485         NULL upon out-of-memory.
42486         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42487         upon out-of-memory.
42488         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42489         (gl_sublist_list_implementation): Update.
42490         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42491         upon out-of-memory.
42492         * modules/sublist (Depends-on): Remove xalloc.
42493
42494         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42495         * tests/test-carray_list.c: Likewise.
42496         * tests/test-linked_list.c: Likewise.
42497         * tests/test-linkedhash_list.c: Likewise.
42498         * tests/test-avltree_list.c: Likewise.
42499         * tests/test-rbtree_list.c: Likewise.
42500         * tests/test-avltreehash_list.c: Likewise.
42501         * tests/test-rbtreehash_list.c: Likewise.
42502         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42503         * modules/carray-list-tests (Makefile.am): Likewise.
42504         * modules/linked-list-tests (Makefile.am): Likewise.
42505         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42506         * modules/avltree-list-tests (Makefile.am): Likewise.
42507         * modules/rbtree-list-tests (Makefile.am): Likewise.
42508         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42509         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42510
42511         * NEWS: Mention the changes.
42512
42513         * lib/clean-temp.c: Include gl_xlist.h.
42514         * modules/clean-temp (Depends-on): Add xlist.
42515
42516         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42517         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42518
42519         * tests/test-array_oset.c: Include gl_xlist.h.
42520         * modules/array-oset-tests (Depends-on): Add xlist.
42521
42522         Reported by José E. Marchesi <jemarch@gnu.org>.
42523
42524 2009-12-13  Bruno Haible  <bruno@clisp.org>
42525
42526         Move the malloc checking from module 'oset' to new module 'xoset'.
42527         * modules/xoset: New file.
42528         * lib/gl_xoset.h: New file.
42529         * lib/gl_xoset.c: New file.
42530         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42531         declarations.
42532         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42533         (struct gl_oset_implementation): Rename and change methods accordingly.
42534         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42535         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42536         'int'. Mark as __warn_unused_result__.
42537         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42538         gl_oset_create_empty.
42539         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42540         'int'.
42541         * lib/gl_array_oset.c: Don't include xalloc.h.
42542         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42543         malloc, not xmalloc.
42544         (grow): Change return type to 'int'. Don't call xalloc_die.
42545         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42546         to 'int'.
42547         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42548         'int'.
42549         (gl_array_oset_implementation): Update.
42550         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42551         gl_tree_create_empty.
42552         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42553         'int'.
42554         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42555         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42556         xmalloc.
42557         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42558         not xmalloc.
42559         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42560         xmalloc.
42561         (gl_avltree_oset_implementation): Update.
42562         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42563         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42564         xmalloc.
42565         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42566         not xmalloc.
42567         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42568         xmalloc.
42569         (gl_rbtree_oset_implementation): Update.
42570         * modules/array-oset (Depends-on): Remove xalloc.
42571         * modules/avltree-oset (Depends-on): Likewise.
42572         * modules/rbtree-oset (Depends-on): Likewise.
42573         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42574         * tests/test-avltree_oset.c: Likewise.
42575         * tests/test-rbtree_oset.c: Likewise.
42576         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42577         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42578         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42579         * NEWS: Mention the change.
42580
42581 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42582
42583         maint.mk: allow a project to override release-prep commands
42584         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42585         commands into a new rule.
42586         (release-prep): New rule.
42587         (release-prep-hook): New overridable variable.
42588
42589 2009-12-13  Bruno Haible  <bruno@clisp.org>
42590
42591         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42592
42593 2009-12-13  Jim Meyering  <meyering@redhat.com>
42594
42595         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42596         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42597
42598 2009-12-12  Bruno Haible  <bruno@clisp.org>
42599
42600         duplocale: Tweak.
42601         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42602
42603 2009-12-12  Karl Berry  <karl@gnu.org>
42604
42605         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42606
42607 2009-12-12  Bruno Haible  <bruno@clisp.org>
42608
42609         * m4/po.m4: Undo incorrect untabification.
42610
42611 2009-12-12  Bruno Haible  <bruno@clisp.org>
42612
42613         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42614         * modules/c-strtod (Depends-on): Add locale.
42615         * modules/c-strtold (Depends-on): Likewise.
42616
42617 2009-12-12  Bruno Haible  <bruno@clisp.org>
42618
42619         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42620
42621 2009-12-11  Eric Blake  <ebb9@byu.net>
42622
42623         setenv: relax requirement in light of POSIX ruling
42624         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42625         not NULL.
42626         * tests/test-setenv.c (main): Relax test.
42627         * tests/test-unsetenv.c (main): Likewise.
42628         * doc/posix-functions/setenv.texi (setenv): Document this.
42629         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42630
42631 2009-12-11  Bruno Haible  <bruno@clisp.org>
42632
42633         New module 'fd-safer-flag'.
42634         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42635         * lib/dup-safer.c (dup_safer_flag): Remove function.
42636         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42637         * lib/fd-safer.c (fd_safer_flag): Remove function.
42638         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42639         * modules/cloexec (configure.ac): Drop indicator macro.
42640         * modules/fd-safer-flag: New file.
42641         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42642         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42643         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42644
42645 2009-12-11  Bruno Haible  <bruno@clisp.org>
42646
42647         Tests for module 'nl_langinfo'.
42648         * modules/nl_langinfo-tests: New file.
42649         * tests/test-nl_langinfo.sh: New file.
42650         * tests/test-nl_langinfo.c: New file.
42651
42652         New module 'nl_langinfo'.
42653         * lib/nl_langinfo.c: New file.
42654         * m4/nl_langinfo.m4: New file.
42655         * modules/nl_langinfo: New file.
42656         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42657
42658 2009-12-11  Bruno Haible  <bruno@clisp.org>
42659
42660         Tests for module 'langinfo'.
42661         * modules/langinfo-tests: New file.
42662         * tests/test-langinfo.c: New file.
42663
42664         New module 'langinfo'.
42665         * lib/langinfo.in.h: New file.
42666         * m4/langinfo_h.m4: New file.
42667         * modules/langinfo: New file.
42668         * doc/posix-headers/langinfo.texi: Mention the new module.
42669
42670 2009-12-11  Bruno Haible  <bruno@clisp.org>
42671
42672         * lib/config.charset: Untabify.
42673
42674 2009-12-11  Bruno Haible  <bruno@clisp.org>
42675
42676         * modules/unistd-safer (configure.ac): Drop indicator macro.
42677
42678 2009-12-11  Bruno Haible  <bruno@clisp.org>
42679
42680         Move pipe2-safer code to its own file.
42681         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42682         * lib/pipe-safer.c (pipe2_safer): Remove function.
42683         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42684         (Makefile.am): Add it to lib_SOURCES.
42685
42686 2009-12-10  Bruno Haible  <bruno@clisp.org>
42687
42688         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42689
42690 2009-12-10  Bruno Haible  <bruno@clisp.org>
42691
42692         Declare which arguments expect non-NULL values, for GCC and clang.
42693         * build-aux/arg-nonnull.h: New file.
42694         * modules/arg-nonnull: New file.
42695         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42696         (inet_ntop, inet_pton): Use it.
42697         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42698         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42699         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42700         (open, openat): Use it.
42701         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42702         (fnmatch): Use it.
42703         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42704         (getopt, getopt_long, getopt_long_only): Use it.
42705         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42706         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42707         Use it.
42708         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42709         (iconv_open): Use it.
42710         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42711         (strtoimax, strtoumax): Use it.
42712         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42713         (duplocale): Use it.
42714         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42715         (frexp, frexpl): Use it.
42716         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42717         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42718         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42719         (tsearch, tfind, tdelete, twalk): Use it.
42720         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42721         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42722         sigpending): Use it.
42723         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42724         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42725         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42726         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42727         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42728         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42729         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42730         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42731         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42732         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42733         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42734         Use it.
42735         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42736         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42737         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42738         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42739         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42740         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42741         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42742         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42743         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42744         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42745         strtoull, unsetenv): Use it.
42746         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42747         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42748         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42749         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42750         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42751         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42752         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42753         (strcasecmp, strncasecmp): Use it.
42754         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42755         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42756         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42757         rpl_setsockopt): Use it.
42758         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42759         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42760         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42761         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42762         (gettimeofday): Use it.
42763         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42764         (times): Use it.
42765         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42766         (uname): Use it.
42767         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42768         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42769         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42770         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42771         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42772         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42773         unlinkat, write): Use it.
42774         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42775         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42776         * lib/argv-iter.h: Include arg-nonnull.h.
42777         (_ATTRIBUTE_NONNULL_): Remove macro.
42778         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42779         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42780         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42781         optimization.
42782         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42783         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42784         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42785         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42786         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42787         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42788         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42789         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42790         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42791         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42792         * modules/dirent (Depends-on): Add arg-nonnull.
42793         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42794         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42795         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42796         * modules/fnmatch (Depends-on): Add arg-nonnull.
42797         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42798         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42799         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42800         * modules/glob (Depends-on): Add arg-nonnull.
42801         (Makefile.am): Insert arg-nonnull.h into glob.h.
42802         * modules/iconv_open (Depends-on): Add arg-nonnull.
42803         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42804         * modules/inttypes (Depends-on): Add arg-nonnull.
42805         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42806         * modules/locale (Depends-on): Add arg-nonnull.
42807         (Makefile.am): Insert arg-nonnull.h into locale.h.
42808         * modules/math (Depends-on): Add arg-nonnull.
42809         (Makefile.am): Insert arg-nonnull.h into math.h.
42810         * modules/netdb (Depends-on): Add arg-nonnull.
42811         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42812         * modules/search (Depends-on): Add arg-nonnull.
42813         (Makefile.am): Insert arg-nonnull.h into search.h.
42814         * modules/signal (Depends-on): Add arg-nonnull.
42815         (Makefile.am): Insert arg-nonnull.h into signal.h.
42816         * modules/spawn (Depends-on): Add arg-nonnull.
42817         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42818         * modules/stdio (Depends-on): Add arg-nonnull.
42819         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42820         * modules/stdlib (Depends-on): Add arg-nonnull.
42821         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42822         * modules/string (Depends-on): Add arg-nonnull.
42823         (Makefile.am): Insert arg-nonnull.h into string.h.
42824         * modules/strings (Depends-on): Add arg-nonnull.
42825         (Makefile.am): Insert arg-nonnull.h into strings.h.
42826         * modules/sys_socket (Depends-on): Add arg-nonnull.
42827         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42828         * modules/sys_stat (Depends-on): Add arg-nonnull.
42829         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42830         * modules/sys_time (Depends-on): Add arg-nonnull.
42831         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42832         * modules/sys_times (Depends-on): Add arg-nonnull.
42833         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42834         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42835         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42836         * modules/time (Depends-on): Add arg-nonnull.
42837         (Makefile.am): Insert arg-nonnull.h into time.h.
42838         * modules/unistd (Depends-on): Add arg-nonnull.
42839         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42840         * modules/wchar (Depends-on): Add arg-nonnull.
42841         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42842         * modules/argv-iter (Depends-on): Add arg-nonnull.
42843         * tests/test-canonicalize.c (null_ptr): New function.
42844         (main): Use it.
42845         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42846         (main): Use it.
42847         * tests/test-memmem.c (null_ptr): New function.
42848         (main): Use it.
42849         Reported by Jim Meyering.
42850
42851 2009-12-10  Bruno Haible  <bruno@clisp.org>
42852
42853         Use spaces for indentation, not tabs.
42854         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42855         * m4/*.m4: Untabify.
42856         * build-aux/*.h: Untabify.
42857         * tests/**/*.[hc]: Untabify.
42858         * README: New section "Indent with spaces, not TABs", based on
42859         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42860         * NEWS: Mention the change.
42861
42862 2009-12-10  Bruno Haible  <bruno@clisp.org>
42863
42864         pty test: Fix link error.
42865         * modules/pty-tests (Makefile.am): Add the default LDADD value to
42866         test_pty_LDADD.
42867
42868 2009-12-07  Simon Josefsson  <simon@josefsson.org>
42869
42870         * modules/pty: New file.
42871         * modules/pty-tests: New file.
42872         * m4/pty.m4: New file.
42873         * tests/test-pty.c: New file.
42874         * doc/glibc-headers/pty.texi: Modified.
42875         * doc/glibc-functions/forkpty.texi: Modified.
42876         * doc/glibc-functions/openpty.texi: Modified.
42877
42878 2009-12-10  Bruno Haible  <bruno@clisp.org>
42879
42880         Avoid syntax error in C++ mode.
42881         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
42882
42883 2009-12-10  Bruno Haible  <bruno@clisp.org>
42884
42885         Use sed with option -e.
42886         * gnulib-tool (func_version, func_emit_copyright_notice,
42887         func_emit_initmacro_end, func_import, func_create_testdir): Pass
42888         option -e to sed.
42889         * modules/link-warning (Makefile.am): Likewise.
42890
42891 2009-12-10  Jim Meyering  <meyering@redhat.com>
42892
42893         mgetgroups: do not write bytes beyond end of malloc'd buffer
42894         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
42895         username, we call getgroups with a one-element-shorter buffer,
42896         but still told it the length was original, max_n_groups.
42897
42898 2009-12-09  Eric Blake  <ebb9@byu.net>
42899
42900         cloexec: relax license
42901         * modules/cloexec (Maintainer): Add myself.
42902         (License): Use LGPL, not GPL.
42903
42904         link-warning: optimize generation
42905         * modules/link-warning (Makefile.am): Reduce process usage.
42906
42907 2009-12-09  Bruno Haible  <bruno@clisp.org>
42908
42909         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
42910         workaround was added on 2009-11-17.
42911
42912 2009-12-09  Jim Meyering  <meyering@redhat.com>
42913             Bruno Haible  <bruno@clisp.org>
42914
42915         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42916         * modules/link-warning (Makefile.am): Make the comment-removing sed
42917         command more robust in the face of bootstrap-prepended comment lines.
42918
42919 2009-12-09  Bruno Haible  <bruno@clisp.org>
42920
42921         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42922         most one group.
42923
42924 2009-12-09  Simon Josefsson <simon@josefsson.org>
42925             Bruno Haible  <bruno@clisp.org>
42926
42927         * build-aux/link-warning.h: Add copyright notice.
42928         * modules/link-warning (Makefile.am): Generate link-warning.h from
42929         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42930         * NEWS: Mention change in link-warning module.
42931         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42932         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42933         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42934         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42935         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42936         * modules/math (Makefile.am): Add dependency to math.h.
42937         * modules/search (Makefile.am): Add dependency to search.h.
42938         * modules/signal (Makefile.am): Add dependency to signal.h.
42939         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42940         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42941         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42942         * modules/string (Makefile.am): Add dependency to string.h.
42943         * modules/strings (Makefile.am): Add dependency to strings.h.
42944         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42945         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42946         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42947         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42948         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42949         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42950         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42951         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42952         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42953
42954 2009-12-09  Bruno Haible  <bruno@clisp.org>
42955
42956         fchdir: Optimize away rpl_fstat when possible.
42957         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42958         REPLACE_OPEN_DIRECTORY.
42959         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42960
42961 2009-12-09  Bruno Haible  <bruno@clisp.org>
42962
42963         * lib/fchdir.c: Update comment.
42964
42965 2009-12-09  Bruno Haible  <bruno@clisp.org>
42966
42967         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42968
42969 2009-12-08  Eric Blake  <ebb9@byu.net>
42970
42971         fchdir: avoid memory leak on re-registration.
42972         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42973
42974 2009-12-08  Jim Meyering  <meyering@redhat.com>
42975
42976         init.sh: avoid Solaris 10 /bin/sh portability problem
42977         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42978         sourced script:
42979           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42980           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42981           bar
42982         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42983         and two tests used that idiom.
42984         * tests/init.sh: Update suggested usage comments.
42985         (path_prepend_): New function, to be used in place
42986         of the --src-path=DIR option.
42987         (setup_): Move PATH-prepending code into path_prepend_.
42988         * tests/test-pread.sh: Adapt to new usage.
42989         * tests/test-xalloc-die.sh: Likewise.
42990
42991 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42992
42993         * doc/gnulib.texi (Glibc pty.h): Add.
42994         * doc/glibc-functions/forkpty.texi: Add.
42995         * doc/glibc-functions/openpty.texi: Add.
42996         Suggested by Bruno Haible.
42997
42998 2009-12-08  Eric Blake  <ebb9@byu.net>
42999
43000         fchdir: fix logic bugs
43001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43002         * tests/test-fchdir.c (main): Enhance test.
43003         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43004         is in use.
43005
43006         dup2: fix logic bugs
43007         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43008         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43009         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43010         exists.
43011         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43012
43013 2009-12-07  Eric Blake  <ebb9@byu.net>
43014
43015         unlink: fix m4 detection
43016         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43017
43018         unistd-safer: add unit test
43019         * modules/unistd-safer-tests: New file.
43020         * tests/test-dup-safer.c: Likewise.
43021         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43022         * tests/test-dup2.c (setmode): Likewise.
43023         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43024
43025         cloexec: preserve text vs. binary across dup_cloexec
43026         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43027         mode.
43028         * modules/dup2-tests (Depends-on): Add binary-io.
43029         * modules/cloexec-tests (Depends-on): Likewise.
43030         * tests/test-dup2.c (setmode, is_mode): New helpers.
43031         (main): Add tests that translation mode is preserved.
43032         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43033         Reported by Bruno Haible.
43034
43035         mgetgroups: reduce duplicate listings
43036         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43037         resulting array.
43038         * tests/test-chown.h (test_chown): Simplify client.
43039         * tests/test-lchown.h (test_lchown): Likewise.
43040
43041 2009-12-06  Bruno Haible  <bruno@clisp.org>
43042
43043         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43044         value.
43045
43046 2009-12-06  Bruno Haible  <bruno@clisp.org>
43047
43048         * lib/progname.c: Include stdio.h, stdlib.h.
43049         (set_program_name): Reject a NULL argument.
43050
43051 2009-12-05  Eric Blake  <ebb9@byu.net>
43052
43053         pipe2-safer: new module
43054         * modules/pipe2-safer: New file.
43055         * lib/unistd-safer.h (pipe2_safer): New prototype.
43056         * lib/unistd--.h (pipe2): New wrapper.
43057         * lib/pipe-safer.c (pipe2_safer): New function.
43058         * modules/pipe (Depends-on): Add pipe2-safer.
43059         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43060
43061         stdlib-safer: preserve cloexec flag for mkostemp[s]
43062         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43063         fd_safer_flag.
43064
43065         unistd-safer: allow preservation of cloexec status via flag
43066         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43067         prototypes.
43068         * lib/dup-safer.c (dup_safer_flag): New function.
43069         * lib/fd-safer.c (fd_safer_flag): Likewise.
43070         * modules/cloexec (configure.ac): Set witness.
43071
43072         test-dup2: enhance test
43073         * modules/dup2-tests (Depends-on): Add cloexec.
43074         * tests/test-dup2.c (main): Enhance test.
43075
43076         cloexec: add dup_cloexec
43077         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43078         header and comments.
43079         * lib/cloexec.c (set_cloexec_flag): Add comments.
43080         (dup_cloexec): New function, with mingw implementation borrowed
43081         from...
43082         * lib/w32spawn.h (dup_noinherit): ...here.
43083         * modules/execute (Depends-on): Add cloexec.
43084         * modules/pipe (Depends-on): Likewise.
43085         * modules/cloexec (Depends-on): Add dup2.
43086         * modules/cloexec-tests (Files): New file.
43087         * tests/test-cloexec.c: Likewise.
43088
43089         test-xalloc-die: fix test for mingw
43090         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43091         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43092         directory and .exe suffix off argv[0] output.
43093
43094         test-fseeko: fix test for mingw
43095         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43096         than undefining fseek, so test will pass on mingw.
43097
43098 2009-12-05  Bruno Haible  <bruno@clisp.org>
43099
43100         * lib/progname.h (set_program_name): Clarify specification.
43101         * lib/progname.c (set_program_name): Likewise.
43102         Reported by Jim Meyering.
43103
43104 2009-12-05  Jim Meyering  <meyering@redhat.com>
43105
43106         maint.mk: backslash-escape parens in default regexp
43107         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43108         backslash-escape the literal parentheses.
43109
43110         maint.mk: news-date-check: use grep -E
43111         * top/maint.mk (today): Define a Make variable, not a...
43112         (news-date-check): ...shell variable.
43113         (news-date-regexp): Use the Make variable.
43114         Use grep's -E option.  Change the failing diagnostic to mention
43115         the variable, $(news-date-regexp).
43116
43117 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43118
43119         maintainer-makefile: allow customization of NEWS entry format
43120         * top/maint.mk (news-date-regexp): New overridable variable.
43121         (news-date-check): Use it.
43122
43123 2009-12-04  Eric Blake  <ebb9@byu.net>
43124
43125         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43126         * lib/mgetgroups.h (xgetgroups): New prototype.
43127         * lib/mgetgroups.c (xgetgroups): New wrapper.
43128         (mgetgroups): Handle ENOSYS.
43129         * modules/mgetgroups (Depends-on): Add realloc.
43130         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43131
43132         mgetgroups: avoid argument promotion issues with -1
43133         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43134         for invalid gid_t.
43135         * tests/test-chown.h (getegid, test_chown): Likewise.
43136         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43137
43138 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43139
43140         exclude: Fix header file problems.
43141         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43142
43143 2009-12-01  Jim Meyering  <meyering@redhat.com>
43144
43145         fts: fts_open: do not let an empty string cause immediate failure
43146         This is required in support of GNU rm, for which the command
43147         "rm A '' B" must process and remove both A and B, in spite of
43148         the empty string argument.
43149         * lib/fts.c (fts_open): Do not let the presence of an empty string
43150         cause fts_open to fail immediately.  Most fts-using tools must be
43151         able to process all arguments, in order, and can be expected to
43152         diagnose such arguments themselves.
43153
43154 2009-11-30  Eric Blake  <ebb9@byu.net>
43155
43156         utimens: fix compilation error
43157         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43158         Declare variable at right scope.
43159
43160 2009-11-29  Jim Meyering  <meyering@redhat.com>
43161
43162         bootstrap: handle perl-5.11's changed --version output
43163         * build-aux/bootstrap (get_version): Handle perl separately,
43164         since perl-5.11's --version output is different.
43165
43166 2009-11-28  Jim Meyering  <meyering@redhat.com>
43167
43168         userspec: depend on the inttostr module, too
43169         * modules/userspec (Depends-on): Add inttostr.
43170
43171         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43172         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43173         number of MAXUID when it evaluates to (uid_t) -1.
43174         Likewise for group ID.  Reported by Matt McCutchen in
43175         <http://savannah.gnu.org/bugs/?28113>
43176
43177         userspec: reformat to use spaces, not TABs
43178         * lib/userspec.c: Expand TABs to spaces.
43179         Add Emacs' "indent-tabs-mode: nil" hint.
43180
43181 2009-11-27  Eric Blake  <ebb9@byu.net>
43182
43183         getopt-gnu: flush out another BSD bug
43184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43185         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43186         flush out BSD bug.
43187         * tests/test-getopt.h (test_getopt): End lists with NULL.
43188         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43189         (test_getopt_long_posix): Enhance test.
43190         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43191         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43192         getopt-gnu.
43193         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43194         Likewise.
43195
43196 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43197
43198         * modules/idpriv-droptemp-tests (Notice): Fix text.
43199
43200 2009-11-27  Jim Meyering  <meyering@redhat.com>
43201
43202         test-xalloc-die: avoid spurious failure due to libtool argv difference
43203         In a libtool-enabled project, this test would fail due to a difference
43204         in the emitted program name, e.g.,
43205         -test-xalloc-die: memory exhausted
43206         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43207         Use program to avoid that.
43208         * modules/xalloc-die-tests (Depends-on): Add progname.
43209         * tests/test-xalloc-die.c: Include progname.h".
43210         (program_name): Remove decl.
43211         (main): Call set_program_name.
43212         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43213
43214 2009-11-26  Richard Jones  <rjones@redhat.com>
43215
43216         w32sock: leave win32 error in place.
43217         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43218
43219 2009-11-26  Eric Blake  <ebb9@byu.net>
43220
43221         init.sh: suggest to use skip_ and fail_ functions in comments
43222         * tests/init.sh: Add a sentence.
43223
43224 2009-11-25  Bruno Haible  <bruno@clisp.org>
43225
43226         init.sh: add documentation in comments
43227         * tests/init.sh: Add some developer and user documentation.
43228
43229 2009-11-26  Jim Meyering  <meyering@redhat.com>
43230
43231         init.sh: accommodate even those who specify bogus srcdir manually
43232         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43233         configure-time tests to be sanitized, so that there is no need to
43234         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43235         (with no double quotes) suffices.  However, since tests may be
43236         invoked manually, and since you may explicitly set srcdir to the
43237         name of a directory containing spaces, do quote its uses here.
43238         * tests/test-pread.sh: Likewise.
43239         Suggested by Bruno Haible.
43240
43241         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43242         * tests/test-pread.sh: Write no data into the pipe, because
43243         test-pread actually reads none.  This avoids a diagnostic,
43244         "bash: echo: write error: Broken pipe", that arises in the unusual
43245         event something is ignoring SIGPIPE, and might be interpreted
43246         as some sort of failure.  Reported by Bruno Haible.
43247
43248 2009-11-25  Jim Meyering  <meyering@redhat.com>
43249
43250         test-pread: cover failure with ESPIPE and EINVAL
43251         * tests/test-pread.c (main): Test for failure, too.
43252         * tests/test-pread.sh: Invoke with stdin on a pipe.
43253         Suggested by Eric Blake.
43254
43255         pread: improvement and fix
43256         * modules/pread (Depends-on): Depend on lseek, for portability to
43257         e.g., mingw.  Suggested by Eric Blake.
43258         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43259
43260         unistd.in.h: correct declaration of pread
43261         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43262         Reported by Richard W.M. Jones.
43263
43264         test-pread.sh: distribute the test script
43265         * modules/pread-tests (Files): Include test-pread.sh.
43266
43267         test-pread.sh: clean up
43268         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43269         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43270         That is unnecessary, since it's always ".".
43271         Suggestion from Eric Blake.
43272
43273         test-pread.sh: make executable
43274         * tests/test-pread.sh: Set executable bit.
43275         Reported by Eric Blake.
43276
43277         correct typo in test-pread.sh
43278         * tests/test-pread.sh: Add #! line.
43279
43280         test pread
43281         * tests/test-pread.c: New file.
43282         * tests/test-pread.sh: Likewise.
43283         * modules/pread-tests: Likewise.
43284
43285         pread: new module
43286         * modules/pread: New file.
43287         * lib/unistd.in.h (pread): Define/declare.
43288         * lib/pread.c (pread): New file.
43289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43290         * modules/unistd (Makefile.am): Substitute witnesses.
43291         * doc/posix-functions/pread.texi (pread): Update.
43292         * MODULES.html.sh: Add pread.
43293
43294 2009-11-25  Jim Meyering  <meyering@redhat.com>
43295
43296         tests/init.sh: new file to be used via most *.sh tests
43297         * tests/init.sh: New file.
43298
43299 2009-11-25  Eric Blake  <ebb9@byu.net>
43300
43301         utimens: work around older Linux failure with symlinks
43302         * lib/utimens.c (lutimensat_works_really): New variable.
43303         (fdutimens, lutimens): Use it to manage kernels that support
43304         nanosecond times on files, but not on symlinks.
43305         Reported by OndÅ™ej Vašík.
43306
43307         utimes: fix configure grammar
43308         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43309
43310 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43311
43312         regex: Fix fastmap for multibyte character ranges.
43313         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43314         characters when a multibyte character range is included.
43315
43316 2009-11-22  Andy Wingo  <wingo@pobox.com>
43317
43318         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43319         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43320
43321 2009-11-24  Bruno Haible  <bruno@clisp.org>
43322
43323         doc: Most *_l functions exist in MacOS X 10.5.
43324         * doc/posix-functions/duplocale.texi: Update platforms list.
43325         * doc/posix-functions/freelocale.texi: Likewise.
43326         * doc/posix-functions/newlocale.texi: Likewise.
43327         * doc/posix-functions/uselocale.texi: Likewise.
43328         * doc/posix-functions/isalnum_l.texi: Likewise.
43329         * doc/posix-functions/isalpha_l.texi: Likewise.
43330         * doc/posix-functions/isblank_l.texi: Likewise.
43331         * doc/posix-functions/iscntrl_l.texi: Likewise.
43332         * doc/posix-functions/isdigit_l.texi: Likewise.
43333         * doc/posix-functions/isgraph_l.texi: Likewise.
43334         * doc/posix-functions/islower_l.texi: Likewise.
43335         * doc/posix-functions/isprint_l.texi: Likewise.
43336         * doc/posix-functions/ispunct_l.texi: Likewise.
43337         * doc/posix-functions/isspace_l.texi: Likewise.
43338         * doc/posix-functions/isupper_l.texi: Likewise.
43339         * doc/posix-functions/iswalnum_l.texi: Likewise.
43340         * doc/posix-functions/iswalpha_l.texi: Likewise.
43341         * doc/posix-functions/iswblank_l.texi: Likewise.
43342         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43343         * doc/posix-functions/iswctype_l.texi: Likewise.
43344         * doc/posix-functions/iswdigit_l.texi: Likewise.
43345         * doc/posix-functions/iswgraph_l.texi: Likewise.
43346         * doc/posix-functions/iswlower_l.texi: Likewise.
43347         * doc/posix-functions/iswprint_l.texi: Likewise.
43348         * doc/posix-functions/iswpunct_l.texi: Likewise.
43349         * doc/posix-functions/iswspace_l.texi: Likewise.
43350         * doc/posix-functions/iswupper_l.texi: Likewise.
43351         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43352         * doc/posix-functions/isxdigit_l.texi: Likewise.
43353         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43354         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43355         * doc/posix-functions/strcoll_l.texi: Likewise.
43356         * doc/posix-functions/strfmon_l.texi: Likewise.
43357         * doc/posix-functions/strftime_l.texi: Likewise.
43358         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43359         * doc/posix-functions/strxfrm_l.texi: Likewise.
43360         * doc/posix-functions/tolower_l.texi: Likewise.
43361         * doc/posix-functions/toupper_l.texi: Likewise.
43362         * doc/posix-functions/towctrans_l.texi: Likewise.
43363         * doc/posix-functions/towlower_l.texi: Likewise.
43364         * doc/posix-functions/towupper_l.texi: Likewise.
43365         * doc/posix-functions/wcscoll_l.texi: Likewise.
43366         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43367         * doc/posix-functions/wctrans_l.texi: Likewise.
43368         * doc/posix-functions/wctype_l.texi: Likewise.
43369         * doc/glibc-functions/strptime_l.texi: Likewise.
43370         * doc/glibc-functions/strtod_l.texi: Likewise.
43371         * doc/glibc-functions/strtof_l.texi: Likewise.
43372         * doc/glibc-functions/strtol_l.texi: Likewise.
43373         * doc/glibc-functions/strtold_l.texi: Likewise.
43374         * doc/glibc-functions/strtoll_l.texi: Likewise.
43375         * doc/glibc-functions/strtoul_l.texi: Likewise.
43376         * doc/glibc-functions/strtoull_l.texi: Likewise.
43377         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43378         * doc/glibc-functions/wcstod_l.texi: Likewise.
43379         * doc/glibc-functions/wcstof_l.texi: Likewise.
43380         * doc/glibc-functions/wcstol_l.texi: Likewise.
43381         * doc/glibc-functions/wcstold_l.texi: Likewise.
43382         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43383         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43384         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43385
43386 2009-11-24  Bruno Haible  <bruno@clisp.org>
43387
43388         duplocale: Fix logic bug.
43389         * lib/duplocale.c: Don't include <langinfo.h>.
43390         (_NL_LOCALE_NAME): Remove macro.
43391         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43392         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43393
43394 2009-11-23  Jim Meyering  <meyering@redhat.com>
43395
43396         test-update-copyright: don't hard-code /usr/bin/perl
43397         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43398         perl to print the current year.  Gilles Espinasse reported that
43399         the replaced use of perl was hard-coded as /usr/bin/perl.
43400
43401 2009-11-23  Bruno Haible  <bruno@clisp.org>
43402
43403         duplocale: Add support for glibc 2.3.x.
43404         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43405
43406 2009-11-22  Bruno Haible  <bruno@clisp.org>
43407
43408         vasnprintf: Tiny optimization.
43409         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43410         MacOS X.
43411
43412 2009-11-22  Bruno Haible  <bruno@clisp.org>
43413
43414         Tests for module 'duplocale'.
43415         * modules/duplocale-tests: New file.
43416         * tests/test-duplocale.c: New file.
43417
43418         New module 'duplocale'.
43419         * m4/duplocale.m4: New file.
43420         * lib/locale.in.h (duplocale): New declaration.
43421         * lib/duplocale.c: New file.
43422         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43423         gl_LOCALE_H_DEFAULTS): New macros.
43424         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43425         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43426         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43427         REPLACE_DUPLOCALE.
43428         * modules/duplocale: New file.
43429         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43430
43431 2009-11-22  Bruno Haible  <bruno@clisp.org>
43432
43433         * modules/locale-tests (configure.ac): Test for newlocale function.
43434         * tests/test-locale.c: When the system has extended locale functions,
43435         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43436
43437         locale: Make locale_t available when possible.
43438         * lib/locale.in.h: Include <xlocale.h> when it exists.
43439         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43440         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43441         * modules/locale (Depends-on): Add extensions.
43442         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43443         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43444
43445 2009-11-22  Bruno Haible  <bruno@clisp.org>
43446
43447         Add comments.
43448         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43449         invocation.
43450         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43451         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43452         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43453
43454 2009-11-22  Bruno Haible  <bruno@clisp.org>
43455
43456         error: account for the possibility of freopen (stdout).
43457         * lib/error.c: Include <unistd.h>.
43458         (flush_stdout): New function, extracted from error and error_at_line.
43459         Determine stdout's fd dynamically.
43460         (error, error_at_line): Invoke flush_stdout.
43461         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43462         * modules/error (Depends-on): Add unistd.
43463
43464 2009-11-22  Bruno Haible  <bruno@clisp.org>
43465
43466         diffseq: Add comment.
43467         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43468
43469 2009-11-22  Jim Meyering  <meyering@redhat.com>
43470
43471         c-stack: avoid defining an unused static function
43472         * lib/c-stack.c (find_stack_direction): Do not define this function
43473         when it will not be used.
43474
43475         diffseq: avoid spurious gcc warnings
43476         * lib/diffseq.h (IF_LINT2): Define.
43477         (compareseq): Use it to initialize two members of "part".
43478         This avoids two used-uninitialized warnings.
43479
43480 2009-11-21  Jim Meyering  <meyering@redhat.com>
43481
43482         c-stack: avoid "ignoring return value of `write'" warning
43483         * lib/c-stack.c: Include "ignore-value.h".
43484         (die): Explicitly ignore each write return value.
43485         * modules/c-stack (Depends-on): Add ignore-value.
43486
43487 2009-11-21  Bruno Haible  <bruno@clisp.org>
43488
43489         diffseq: reduce scope of variable 'best'.
43490         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43491         variable, earlier used for two different purposes.
43492
43493 2009-11-21  Jim Meyering  <meyering@redhat.com>
43494
43495         diffseq: remove useless assignment to "best"
43496         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43497         assignment.  At that point "best" is already guaranteed to be zero.
43498
43499 2009-11-20  Eric Blake  <ebb9@byu.net>
43500
43501         build: mention ftp redirector in release announcements
43502         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43503         values that used to come from cfg.mk; mention FTP redirect URL.
43504         * build-aux/announce-gen: Mention the mirror list.
43505         Suggested by Karl Berry.
43506
43507         nanosleep: improve port to mingw
43508         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43510         LIB_NANOSLEEP, but only when needed.
43511         * modules/select (Link): Document LIBSOCKET.
43512         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43513         enough.
43514
43515         nanosleep: work around cygwin bug
43516         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43517         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43518         bug.
43519         (getnow): Delete, not needed.
43520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43521         LIB_CLOCK_GETTIME.
43522         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43523         clock-time, gettime.
43524         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43525         bug.
43526         * modules/nanosleep-tests: New test.
43527         * tests/test-nanosleep.c: New file.
43528
43529         sleep: work around cygwin bug
43530         * lib/sleep.c (rpl_sleep): Work around the bug.
43531         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43532         (gl_PREREQ_SLEEP): Delete unused macro.
43533         * modules/sleep (Depends-on): Add verify.
43534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43535         * modules/unistd (Makefile.am): Substitute witness.
43536         * lib/unistd.in.h (sleep): Update prototype.
43537         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43538         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43539         * modules/sleep-tests (Depends-on): Check for alarm.
43540
43541 2009-11-20  Jim Meyering  <meyering@redhat.com>
43542
43543         maint.mk: improve sc_prohibit_magic_number_exit
43544         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43545         so it does not match uses like System.exit(1).
43546         Add comments showing how to correct all offenders.
43547
43548 2009-11-19  Eric Blake  <ebb9@byu.net>
43549
43550         xalloc-die-tests: add missing library
43551         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43552
43553         test-xvasprintf: silence compiler warnings
43554         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43555         empty string from gcc.
43556
43557 2009-11-19  Jim Meyering  <meyering@redhat.com>
43558
43559         xfreopen: new module, from coreutils
43560         * modules/xfreopen: New module.
43561         * lib/xfreopen.c: New file.
43562         * lib/xfreopen.h: New file.
43563         * MODULES.html.sh (File stream based Input/Output"): Add it.
43564
43565 2009-11-19  Eric Blake  <ebb9@byu.net>
43566
43567         manywarnings: depend on warnings
43568         * modules/manywarnings (Depends-on): Add warnings.
43569
43570         build: avoid compiler warnings
43571         * lib/select.c (rpl_select): Delete unused variable.
43572         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43573
43574 2009-11-18  Eric Blake  <ebb9@byu.net>
43575
43576         tests: avoid false negative with --with-packager
43577         * tests/test-version-etc.sh: Discard packager information.
43578         * tests/test-argp-version-etc-1.sh: Likewise.
43579         Reported by Mike Frysinger.
43580
43581         utimens: fix regression on Solaris
43582         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43583         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43584         can only change fd timestamps via futimesat.  Instead, use an
43585         additional witness macro to avoid BSD bug.
43586         Reported by Jim Meyering.
43587
43588 2009-11-17  Eric Blake  <ebb9@byu.net>
43589
43590         usleep: use it to simplify tests
43591         * modules/stat-time-tests (Depends-on): Add usleep.
43592         (configure.ac): Drop usleep check.
43593         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43594         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43595         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43596         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43597         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43598         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43599         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43600         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43601         Likewise.
43602         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43603         * tests/test-lchown.h (nap): Likewise.
43604         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43605         * tests/test-stat-time.c (nap): Likewise.
43606         * tests/test-utimens-common.h (nap): Update comments.
43607
43608         usleep: new module
43609         * modules/usleep: New file.
43610         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43611         * lib/usleep.c (usleep): Likewise.
43612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43613         * modules/unistd (Makefile.am): Substitute witnesses.
43614         * lib/unistd.in.h (usleep): Add declaration.
43615         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43616         * MODULES.html.sh (Date and time): Likewise.
43617         * modules/usleep-tests (Depends-on): New test.
43618         * tests/test-usleep.c: New file.
43619
43620         chown: work around OpenBSD bug
43621         * lib/chown.c (rpl_chown): Work around the bug.
43622         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43623         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43624         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43625         * modules/chown (Depends-on): Add stdbool.
43626         * modules/lchown (Depends-on): Likewise.
43627         * doc/posix-functions/chown.texi (chown): Document the bug.
43628         * doc/posix-functions/lchown.texi (lchown): Likewise.
43629         * tests/test-lchown.h (test_chown): Relax test.
43630
43631         mkstemp: avoid conflict with C++ keyword template
43632         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43633         * lib/mkostemp.c (mkostemp): Likewise.
43634         * lib/mkostemps.c (mkostemps): Likewise.
43635         * lib/mkstemp.c (mkstemp): Likewise.
43636         * lib/mkstemps.c (mkstemps): Likewise.
43637
43638         xalloc-die-tests: optimize
43639         * tests/test-xalloc-die.sh: Reduce number of processes.
43640
43641 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43642
43643         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43644         patch from ludo@gnu.org (Ludovic Courtès).
43645
43646 2009-11-17  Jim Meyering  <meyering@redhat.com>
43647
43648         version-etc: use proper license string
43649         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43650         * modules/version-etc-fsf: Likewise.
43651
43652 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43653
43654         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43655         printed to stdout.  Deal with EOL differences.
43656
43657 2009-11-17  Eric Blake  <ebb9@byu.net>
43658
43659         unsetenv: work around Solaris bug
43660         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43661         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43662         Reported by Jim Meyering.
43663
43664         vasnprintf: avoid compiler warnings
43665         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43666         variables.
43667         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43668
43669 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43670
43671         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43672         settings since xalloc-die is no longer the self test,
43673         xalloc-die.sh is.
43674
43675 2009-11-17  Jim Meyering  <meyering@redhat.com>
43676
43677         test-xalloc-die.sh: make the code agree with the commit log
43678         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43679         at the end, just in case you happen to have a test-xalloc-die
43680         program in some other PATH directory.
43681
43682         test-xalloc-die.sh: fix a portability bug
43683         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43684         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43685         Otherwise, argv[0] (as often seen in diagnostics) would be too
43686         system-dependent, sometimes with, and sometimes without the leading "./".
43687
43688         version-etc-fsf: relax license to LGPLv3+
43689         * modules/version-etc-fsf (License): Relax license.
43690
43691 2009-11-16  Eric Blake  <ebb9@byu.net>
43692
43693         xalloc-die-tests: avoid printing null pointer
43694         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43695         shell script.
43696         * tests/test-xalloc-die.c (program_name): Declare.
43697         * tests/test-xalloc-die.sh (tmpfiles): New file.
43698
43699         setenv, unsetenv: work around various bugs
43700         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43701         (setenv) [HAVE_SETENV]: Work around bugs.
43702         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43703         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43704         for bugs.
43705         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43706         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43708         * modules/stdlib (Makefile.am): Update substitutions.
43709         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43710         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43711         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43712         * modules/setenv-tests: New test.
43713         * modules/unsetenv-tests: Likewise.
43714         * tests/test-setenv.c: New file.
43715         * tests/test-unsetenv.c: Likewise.
43716
43717 2009-11-16  Jim Meyering  <meyering@redhat.com>
43718
43719         version-etc: relax license to LGPLv3+
43720         * modules/version-etc (License): Relax license.
43721
43722         better AC_REQUIRE expanded-before-required-warning avoidance
43723         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43724         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43725         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43726         which is no longer needed.
43727
43728 2009-11-16  Eric Blake  <ebb9@byu.net>
43729
43730         test-freading: clean up temporary file
43731         * tests/test-freading.c (main): Remove file on success, and use
43732         ASSERT more liberally.
43733         Reported by Jim Meyering.
43734
43735 2009-11-16  Jim Meyering  <meyering@redhat.com>
43736
43737         avoid new AC_REQUIRE expanded-before-required warnings
43738         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43739         merely using it.
43740         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43741         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43742
43743 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43744
43745         * tests/test-xalloc-die.c: New file.
43746         * modules/xalloc-die-tests: New file.
43747         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43748         XFAIL_TESTS so it can be appended by modules.
43749
43750 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43751
43752         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43753         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43754
43755 2009-11-14  Eric Blake  <ebb9@byu.net>
43756
43757         fnmatch: avoid compiler warning
43758         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43759         to silence compiler warning about mismatch signedness in ?:.
43760         Reported by Robert Millan.
43761
43762         intprops: add double-inclusion guard
43763         * lib/intprops.h: Allow idempotent includes.
43764         Suggested by Bruce Korb.
43765
43766         openat: detect Solaris fchownat bug
43767         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43768         penalizing glibc chownat when only lchownat is broken.
43769         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43770         trailing slash bugs.
43771         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43772         * modules/openat-tests (Files): Include more files.
43773         (Depends-on): Add mgetgroups, sleep, stat-time.
43774         (configure.ac): Add additional checks.
43775         (Makefile.am): Build new test.
43776         * tests/test-fchownat.c: New file.
43777
43778         lchown: detect Solaris and FreeBSD bug
43779         * lib/lchown.c (rpl_lchown): Work around bug.
43780         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43782         * modules/unistd (Makefile.am): Populate it.
43783         * lib/unistd.in.h (lchown): Update declaration.
43784         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43785         * modules/lchown-tests: New file.
43786         * tests/test-lchown.h (test_lchown): Likewise.
43787         * tests/test-lchown.c (main): Likewise.
43788
43789         chown: detect Solaris and FreeBSD bug
43790         * lib/chown.c (rpl_chown): Work around bug.
43791         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43792         (gl_PREREQ_CHOWN): Delete.
43793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43794         * modules/unistd (Makefile.am): Populate it.
43795         * lib/unistd.in.h (chown): Update declaration.
43796         * lib/lchown.c (chown): Update client.
43797         * modules/lchown (Depends-on): Add lstat.
43798         * doc/posix-functions/chown.texi (chown): Document the bug.
43799         * doc/posix-functions/getgroups.texi (getgroups): Document
43800         getgroups pitfall.
43801         * modules/chown-tests: New file.
43802         * tests/test-chown.h (test_chown): Likewise.
43803         * tests/test-chown.c (main): Likewise.
43804
43805 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43806
43807         gnulib-tool: correctly detect absence of m4 directories
43808         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43809
43810 2009-11-14  Jim Meyering  <meyering@redhat.com>
43811
43812         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43813         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43814
43815 2009-11-14  John W. Eaton  <jwe@gnu.org>
43816
43817         strftime.h: wrap function declaration in extern "C" block
43818         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43819
43820 2009-11-13  Eric Blake  <ebb9@byu.net>
43821
43822         getgroups: avoid compiler warning
43823         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43824
43825         getgroups: work around FreeBSD bug
43826         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43827         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43828         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43829         * tests/test-getgroups.c (main): Fix buffer overrun.
43830
43831         getgroups: avoid compilation failure
43832         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43833         * modules/getgroups (Depends-on): Add stdint.
43834
43835 2009-11-13  Jim Meyering  <meyering@redhat.com>
43836
43837         test-getgroups: avoid compilation failure
43838         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43839
43840 2009-11-13  Eric Blake  <ebb9@byu.net>
43841
43842         mgetgroups: new module, taken from coreutils
43843         * modules/mgetgroups: New file.
43844         * lib/mgetgroups.h: Likewise.
43845         * lib/mgetgroups.c (mgetgroups): Likewise.
43846         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43847         * MODULES.html.sh (Users and groups): Mention it.
43848
43849         getgroups: don't expose GETGROUPS_T to user
43850         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43851         an element at a time if GETGROUPS_T is wrong size.
43852         * lib/getugroups.h (getugroups): Change signature.
43853         * lib/unistd.in.h (getgroups): Likewise.
43854         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43855         signature needs fixing.
43856         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43857         AC_TYPE_GETGROUPS.
43858         * modules/group-member (Depends-on): Add getgroups.
43859         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43860         (group_member): Rely on getgroups replacement.
43861         * lib/getugroups.c (getugroups): Use gid_t.
43862         * tests/test-getgroups.c (main): Likewise.
43863         * NEWS: Mention the signature change.
43864         * doc/posix-functions/getgroups.texi (getgroups): Mention the
43865         problem with signature.
43866         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
43867         GETGROUPS_T is still useful for setgroups.
43868
43869         getgroups, getugroups: provide stubs for mingw
43870         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
43871         * lib/getugroups.c (getugroups): Likewise.
43872         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
43873         function.  Modernize replacement scheme.
43874         (gl_PREREQ_GETGROUPS): Delete.
43875         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
43876         * modules/getgroups (configure.ac): Declare witness.
43877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43878         * modules/unistd (Depends-on): Substitute witness.
43879         * lib/unistd.in.h (getgroups): Declare replacement.
43880
43881         getgroups: avoid calling exit
43882         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
43883         drop xalloc.
43884         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
43885         dependencies.
43886         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
43887         exiting, in the rare case of malloc failure.
43888
43889         getgroups: fix logic error
43890         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
43891         has more than 20 groups.
43892         * modules/getgroups-tests: New test.
43893         * tests/test-getgroups.c: New file.
43894
43895 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43896
43897         * tests/test-base64.c: Improve.
43898
43899 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43900
43901         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
43902         Blake <ebb9@byu.net>.
43903
43904 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43905
43906         * tests/test-xvasprintf.c: Add %s%s related checks.
43907
43908 2009-11-12  Eric Blake  <ebb9@byu.net>
43909
43910         version-etc: match standards.texi style
43911         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43912         and use <> only for URLs.
43913
43914 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43915
43916         fts: do not fail on a submount during traversal
43917         * lib/fts.c (fts_build): Read the stat info again after opening
43918         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43919         Original report at http://bugzilla.redhat.com/501848.
43920
43921 2009-11-12  Jim Meyering  <meyering@redhat.com>
43922
43923         bootstrap: sync from coreutils
43924         * build-aux/bootstrap (bootstrap_epilogue): New function.
43925         Use git_modules_config in one more place.  This make bootstrap's
43926         --gnulib-srcdir option more useful for testing.
43927
43928         bootstrap: generalize autoheader check
43929         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43930         AC_CONFIG_HEADERS.
43931
43932 2009-11-11  Eric Blake  <ebb9@byu.net>
43933
43934         mkfifoat: use new modules for Solaris and BSD bugs
43935         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43936         * lib/mkfifoat.c (mknodat): Split...
43937         * lib/mknodat.c (mknodat): ...into new file.
43938         * modules/mkfifoat (Files): Ship new file.
43939         (Depends-on): Add mkfifo, mknod.
43940         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43941         (Depends-on): Add symlink.
43942         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43943         redundant with test_mkfifo.h.
43944         (do_mkfifoat, do_mknodat): New helpers.
43945
43946         mknod: new module
43947         * modules/mknod: New file.
43948         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43949         * lib/mknod.c (mknod): Likewise.
43950         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43951         defaults.
43952         * modules/sys_stat (Makefile.am): Substitute them.
43953         * lib/sys_stat.in.h (mknod): Declare replacement.
43954         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43955         Document it.
43956         * doc/posix-functions/mknod.texi (mknod): Likewise.
43957         * modules/mknod-tests: New test.
43958         * tests/test-mknod.c: Likewise.
43959
43960         mkfifo: new module
43961         * modules/mkfifo: New file.
43962         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43963         * lib/mkfifo.c (mkfifo): Likewise.
43964         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43965         defaults.
43966         * modules/sys_stat (Makefile.am): Substitute them.
43967         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43968         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43969         Document it.
43970         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43971         * modules/mkfifo-tests: New test.
43972         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43973         from test-mkfifoat.c.
43974         * tests/test-mkfifo.c: New file.
43975
43976         readlink: detect FreeBSD bug
43977         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43978         slash on symlink.
43979         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43980         * tests/test-readlink.h (test_readlink): Enhance test.
43981
43982         symlink: detect FreeBSD bug
43983         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43984         slash on symlink.
43985         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43986         * tests/test-symlink.h (test_symlink): Enhance test.
43987
43988 2009-11-10  Eric Blake  <ebb9@byu.net>
43989
43990         link: detect FreeBSD bug
43991         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43992         symlink.
43993         * doc/posix-functions/link.texi (link): Document the bug.
43994         * tests/test-link.h (test_link): Enhance test.
43995         * tests/test-linkat.c (main): Update caller.
43996
43997         unlink, remove: detect FreeBSD bug
43998         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43999         slash on symlink.
44000         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44001         * doc/posix-functions/remove.texi (remove): Likewise.
44002         * tests/test-unlink.h (test_unlink): Enhance test.
44003         * tests/test-remove.c (main): Likewise.
44004
44005 2009-11-09  Eric Blake  <ebb9@byu.net>
44006
44007         rename: detect FreeBSD bug
44008         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44009         slash on symlink.
44010         * modules/renameat-tests (Depends-on): Add filenamecat.
44011         * tests/test-rename.h (test_rename): Allow one more errno.
44012         * tests/test-renameat.c (main): Likewise.
44013         * doc/posix-functions/rename.texi (rename): Document the bug.
44014
44015         open: detect FreeBSD bug
44016         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44017         symlink.
44018         * doc/posix-functions/open.texi (open): Document the bug.
44019         * doc/posix-functions/utimes.texi (utimes): Likewise.
44020         * tests/test-open.h (test_open): Add parameters, and test symlink
44021         handling.
44022         * tests/test-open.c (main): Adjust caller.
44023         * tests/test-fcntl-safer.c (main): Likewise.
44024         * modules/open-tests (Depends-on): Add stdbool, symlink.
44025         * modules/fcntl-safer-tests (Depends-on): Likewise.
44026         * tests/test-openat.c (main): Add test-open tests.
44027
44028         stat: detect FreeBSD bug
44029         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44030         symlink.
44031         * doc/posix-functions/stat.texi (stat): Document the bug.
44032         * tests/test-stat.h (test_stat_func): Add argument.
44033         * tests/test-stat.c (main): Adjust caller.
44034         * tests/test-fstatat.c (main): Likewise.
44035         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44036         Reported by Jim Meyering.
44037
44038 2009-11-09  James Youngman  <jay@gnu.org>
44039
44040         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44041         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44042
44043 2009-11-08  Jim Meyering  <meyering@redhat.com>
44044
44045         utimens: remove invalid futimesat call
44046         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44047         It used the file descriptor of the target file as the DIR_FD
44048         parameter and NULL as the file name.  That caused failure with
44049         errno == EFAULT on FreeBSD-8.0-rc2
44050
44051 2009-11-07  Eric Blake  <ebb9@byu.net>
44052
44053         fflush, freadseek: use fseeko, not fseek
44054         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44055         (clear_ungetc_buffer): Avoid potential problems on large files.
44056         * lib/freadseek.c (freadseek): Likewise.
44057         * modules/freadseek (Depends-on): Add fseeko.
44058         * modules/fseek (configure.ac): Set a witness.
44059         * tests/test-fflush.c (main): Use fseeko.
44060         * tests/test-fpurge.c (fseek): Disable link warning.
44061         * tests/test-freadable.c (fseek): Likewise.
44062         * tests/test-freading.c (fseek): Likewise.
44063         * tests/test-fseeko.c (fseek): Likewise.
44064         * tests/test-ftell.c (fseek): Likewise.
44065         * tests/test-ftello.c (fseek): Likewise.
44066         * tests/test-fwritable.c (fseek): Likewise.
44067         * tests/test-fwriting.c (fseek): Likewise.
44068
44069 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44070
44071         * modules/memchr (Depends-on): Drop getpagesize dependency.
44072
44073 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44074
44075         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44076         Reported by Ludovic Courtès.
44077         * build-aux/pmccabe2html: Improve example usage.
44078         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44079
44080 2009-11-06  Jim Meyering  <meyering@redhat.com>
44081
44082         do-release-commit-and-tag: New module.
44083         Automate the release-commit and tag process.
44084         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44085         * modules/do-release-commit-and-tag: New file.
44086         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44087
44088 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44089
44090         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44091         because test-select.c uses inet_pton.
44092
44093 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44094
44095         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44096         GETADDRINFO_LIB.  Bump serial number.
44097         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44098         Suggested by Eric Blake <ebb9@byu.net>.
44099
44100 2009-11-05  Eric Blake  <ebb9@byu.net>
44101
44102         strtod: detect darwin bug
44103         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44104         Reported by Leo Davis.
44105
44106         freopen-safer: new module
44107         * modules/freopen-safer: New module.
44108         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44109         * lib/freopen-safer.c (freopen_safer): New file.
44110         * lib/stdio-safer.h (freopen_safer): New declaration.
44111         * lib/stdio--.h (freopen): New override.
44112         * MODULES.html.sh (File stream based Input/Output): Mention it.
44113         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44114         freopen-safer module.
44115         * doc/posix-functions/stderr.texi (stderr): Likewise.
44116         * doc/posix-functions/stdin.texi (stdin): Likewise.
44117         * doc/posix-functions/stdout.texi (stdout): Likewise.
44118         * modules/freopen-safer-tests: New test.
44119         * tests/test-reopen-safer.c: New file.
44120
44121 2009-11-05  Jim Meyering  <meyering@redhat.com>
44122
44123         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44124         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44125
44126 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44127
44128         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44129
44130 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44131
44132         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44133
44134 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44135
44136         Fix link error.
44137         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44138         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44139
44140 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44141
44142         * tests/test-func.c: Also test value of __func__.
44143
44144 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44145
44146         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44147         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44148
44149 2009-11-05  Bruno Haible  <bruno@clisp.org>
44150
44151         Fix link error.
44152         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44153         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44154         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44155
44156 2009-11-05  Bruno Haible  <bruno@clisp.org>
44157
44158         Tests for module 'inet_pton'.
44159         * modules/inet_pton-tests: New file.
44160         * tests/test-inet_pton.c: New file.
44161
44162 2009-11-05  Bruno Haible  <bruno@clisp.org>
44163
44164         Tests for module 'inet_ntop'.
44165         * modules/inet_ntop-tests: New file.
44166         * tests/test-inet_ntop.c: New file.
44167
44168 2009-11-04  Eric Blake  <ebb9@byu.net>
44169
44170         stdlib-safer: wrap all mkstemp variants
44171         * modules/mkostemp (configure.ac): Set witness.
44172         * modules/mkostemps (configure.ac): Likewise.
44173         * modules/mkstemps (configure.ac): Likewise.
44174         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44175         (mkstemps_safer): Wrap more functions.
44176         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44177         wrapping.
44178         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44179         (mkstemps_safer): Implement the wrappers.
44180
44181         mkstemps, mkostemps: new modules
44182         * modules/mkostemps: New module.
44183         * modules/mkstemps: Likewise.
44184         * lib/mkostemps.c (mkostemps): New file.
44185         * lib/mkstemps.c (mkstemps): Likewise.
44186         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44187         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44189         * modules/stdlib (Makefile.am): Substitute them.
44190         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44191         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44192         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44193         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44194         * MODULES.html.sh (File system functions): Mention them.
44195
44196         tempname: resync from glibc
44197         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44198         same values for __GT_FILE as glibc.  Abort even when assertions
44199         are disabled.
44200         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44201         match its value otherwise.  Allow idempotent inclusion.
44202         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44203         * lib/mkostemp.c (mkostemp): Likewise.
44204         * lib/mkstemp.c (mkstemp): Likewise.
44205         * lib/tmpfile.c (tmpfile): Likewise.
44206         * NEWS: Document this.
44207
44208         utimens: fix use of futimens on older Linux
44209         * lib/utimens.c (fdutimens): Use updated, rather than original,
44210         timespec to avoid bug in older Linux kernel.
44211         Reported by Simon Josefsson.
44212
44213 2009-11-04  Bruno Haible  <bruno@clisp.org>
44214
44215         Make num_processors more flexible and consistent.
44216         * lib/nproc.h (enum nproc_query): New type.
44217         (num_processors): Add a 'query' argument.
44218         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44219         (num_processors): Add a 'query' argument. Test the value of the
44220         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44221         mingw, count the number of CPUs available for the current process.
44222         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44223         Check for sched_getaffinity and sched_getaffinity_np.
44224         * modules/nproc (Depends-on): Add c-ctype, extensions.
44225         * NEWS: Mention the change.
44226
44227 2009-11-03  Bruno Haible  <bruno@clisp.org>
44228
44229         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44230
44231 2009-11-03  Jim Meyering  <meyering@redhat.com>
44232
44233         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44234         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44235         if it is defined.
44236
44237 2009-11-02  Eric Blake  <ebb9@byu.net>
44238
44239         mktime, timegm: share common declaration
44240         * lib/mktime-internal.h: New file.
44241         * lib/mktime.c: Use it rather than open-coding a declaration.
44242         * lib/timegm.c: Likewise.
44243         * modules/mktime (Files): Ship it.
44244         * modules/timegm (Files): Likewise.
44245         Suggested by Bruno Haible.
44246
44247         test-update-copyright: update test to match script changes
44248         * tests/test-update-copyright.sh: Avoid hard-coding perl
44249         location.  Don't update *.bak created by earlier runs.
44250
44251 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44252             Simon Josefsson  <simon@josefsson.org>
44253             Bruno Haible  <bruno@clisp.org>
44254
44255         Fix link error on Solaris 8.
44256         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44257         also in libnsl. Define also INET_PTON_LIB.
44258         * modules/inet_pton (Link): New section.
44259
44260 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44261             Bruno Haible  <bruno@clisp.org>
44262
44263         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44264         * modules/inet_ntop (Link): New section.
44265         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44266
44267 2009-11-02  Eric Blake  <ebb9@byu.net>
44268
44269         maint: avoid compiler warnings in m4 macros
44270         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44271         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44272
44273 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44274
44275         * m4/pmccabe2html.m4: Remove file.
44276         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44277         function.  Change maintainer.
44278         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44279         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44280         Courtès).
44281
44282 2009-10-31  Eric Blake  <ebb9@byu.net>
44283
44284         fseeko: fix m4 regression
44285         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44286         regression from 2009-10-27.
44287         Reported by Ralf Wildenhues.
44288
44289 2009-10-31  Jim Meyering  <meyering@redhat.com>
44290
44291         inttostr: aesthetics and improved (compile-time) safety
44292         Define inttype_is_signed rather than inttype_is_unsigned,
44293         since the sole use is via "#if inttype_is_signed".
44294         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44295         inttype_is_unsigned.
44296         * lib/offtostr.c (inttype_is_signed): Likewise.
44297         * lib/uinttostr.c (inttype_is_signed): Likewise.
44298         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44299         * lib/inttostr.c (inttostr): Use verify to cross-check the
44300         inttype_is_signed value and the signedness of the actual type.
44301         * modules/inttostr (Depends-on): Add verify.
44302
44303 2009-10-30  Eric Blake  <ebb9@byu.net>
44304
44305         build: avoid compiler warnings
44306         * lib/fchmodat.c (lchmod): Mark unused variables.
44307         * lib/getopt.c (_getopt_initialize): Likewise.
44308         * lib/mktime.c (__mktime_internal): Provide prototype.
44309         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44310         older gcc that do not understand #pragma GCC diagnostic.
44311         * lib/uinttostr.c (inttype_is_unsigned): Define.
44312         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44313
44314 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44315
44316         stat: fix compilation on AIX
44317         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44318         only see struct stat64.
44319
44320 2009-10-30  Eric Blake  <ebb9@byu.net>
44321
44322         exclude: make more robust
44323         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44324         rather than masking a coding bug.
44325         Suggested by Bruno Haible.
44326
44327 2009-10-30  Jim Meyering  <meyering@redhat.com>
44328
44329         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44330         Rather than putting #!/usr/bin/perl on the first line,
44331         start with a variant of what's recommended by "man perlrun" that
44332         invokes the first "perl" program from your shell's search path.
44333         * build-aux/gitlog-to-changelog: Replace #!... as above.
44334         Add a "Local Variables" perl mode setting.
44335         Prompted by a patch from Ludovic Courtès.
44336         Improved by Eric Blake.
44337         * build-aux/useless-if-before-free: Likewise.
44338         * build-aux/announce-gen: Likewise.
44339         * build-aux/update-copyright: Likewise.
44340
44341 2009-10-29  Eric Blake  <ebb9@byu.net>
44342
44343         filenamecat-lgpl: adjust clients
44344         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44345         filenamecat.
44346         * modules/renameat (Depends-on): Likewise.
44347
44348         filenamecat: split into filenamecat-lgpl
44349         * modules/filenamecat-lgpl: New module.
44350         * modules/filenamecat (Files): Move library-safe files into
44351         filenamecat-lgpl.
44352         (Depends-on): Add filenamecat-lgpl.
44353         (configure.ac): Declare witness.
44354         * lib/filenamecat.h (file_name_concat): Only declare when using
44355         GPL module.
44356         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44357         Move...
44358         * lib/filenamecat-lgpl.c: ...into new file.
44359         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44360         (gl_FILE_NAME_CONCAT): Use it.
44361         * MODULES.html.sh (File system functions): Mention new module.
44362
44363         argp: avoid memory leak
44364         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44365         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44366         base_name, since the latter malloc()s and can call exit().
44367         Leak introduced 2006-07-03.
44368
44369         dirname-lgpl: adjust clients that don't need full dirname
44370         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44371         * modules/filenamecat (Depends-on): Likewise.
44372         * modules/linkat (Depends-on): Likewise.
44373         * modules/mkancesdirs (Depends-on): Likewise.
44374         * modules/mkdir (Depends-on): Likewise.
44375         * modules/openat (Depends-on): Likewise.
44376         * modules/savewd (Depends-on): Likewise.
44377         * modules/rename (Depends-on): Likewise.
44378         (License): Relax license.
44379         * modules/mkdir-tests (Depends-on): Drop progname.
44380         (Makefile.am): Delete unneeded LDADD.
44381         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44382
44383         dirname: split into dirname-lgpl
44384         * modules/dirname-lgpl: New module.
44385         * modules/dirname (Files): Move library-safe files into
44386         dirname-lgpl.
44387         (Depends-on): Add dirname-lgpl.
44388         (configure.ac): Declare witness.
44389         * modules/double-slash-root (License): Relax license.
44390         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44391         module.
44392         * lib/dirname.c (dir_len, mdir_name): Move...
44393         * lib/dirname-lgpl.c: ...into new file.
44394         * lib/basename.c (last_component, base_len): Move...
44395         * lib/basename-lgpl.c: ...into new file.
44396         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44397         (gl_DIRNAME): Use it.
44398         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44399         Mention new module.
44400         * modules/dirname-tests (Depends-on): Add progname.
44401         * tests/test-dirname.c (program_name): Delete.
44402
44403         mkdir: make safe for libraries
44404         * modules/mkdir (Depends-on): Drop xalloc.
44405         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44406         exit.
44407
44408         tests: avoid some compiler warnings
44409         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44410         literals.
44411         * tests/test-memchr.c (main): Avoid type mismatch.
44412         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44413         * tests/test-base64.c (main): Likewise.
44414         * tests/test-getdelim.c (main): Likewise.
44415         * tests/test-gethostname.c (main): Likewise.
44416         * tests/test-getline.c (main): Likewise.
44417         * tests/test-netinet_in.c (main): Likewise.
44418         * tests/test-select.c (open_server_socket, main): Likewise.
44419         * tests/test-select-stdin.c (main): Likewise.
44420         * tests/test-sockets.c (main): Likewise.
44421         * tests/test-strsignal.c (main): Likewise.
44422         * tests/test-sys_select.c (main): Likewise.
44423         * tests/test-sys_socket.c (main): Likewise.
44424         * tests/test-u64.c (main): Likewise.
44425         * tests/test-xfprintf-posix.c (main): Likewise.
44426         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44427
44428         sockets: avoid compiler warning
44429         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44430
44431         maint: detect usage(1) and other suspicious exits
44432         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44433
44434 2009-10-29  Jim Meyering  <meyering@redhat.com>
44435
44436         timespec: long-to-int truncation could make timespec_cmp malfunction
44437         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44438         a multiple of 2^32 nanoseconds as no difference.
44439
44440 2009-10-28  Jim Meyering  <meyering@redhat.com>
44441
44442         fprintftime: wrap macro code argument in "do {...} while(0)"
44443         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44444         cpy macro must be a statement that can be followed by a semicolon.
44445         Now that the else clause contains a comment and is hence longer
44446         than one line, I require curly braces.  That in turn requires
44447         that we wrap this code block in the standard do...while(0).
44448
44449         fprintftime: remove stray semicolon from previous change
44450         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44451
44452         fprintftime: avoid a warning about ignored fwrite return value
44453         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44454         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44455         that is unsafe.
44456         * modules/fprintftime (Depends-on): Add ignore-value.
44457
44458         exclude: avoid an unwarranted warning
44459         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44460
44461 2009-10-27  Eric Blake  <ebb9@byu.net>
44462
44463         fseek: avoid compilation failure when fflush is replaced
44464         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44465         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44466         module is in use.
44467         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44468         module is not in use; since REPLACE_FSEEK worked otherwise.
44469         (GNULIB_FTELLO): Likewise for ftell.
44470         Reported by Ian Beckwith and others.
44471
44472 2009-10-27  Bruno Haible  <bruno@clisp.org>
44473
44474         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44475         Reported by Jim Meyering.
44476
44477 2009-10-27  Jim Meyering  <jim@meyering.net>
44478             Bruno Haible  <bruno@clisp.org>
44479
44480         Avoid warning despite dropping the return value of fwrite.
44481         * lib/unicodeio.c: Include ignore-value.h.
44482         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44483         * modules/unicodeio (Depends-on): Add ignore-value.
44484
44485 2009-10-26  Eric Blake  <ebb9@byu.net>
44486
44487         areadlinkat: fix fallback path
44488         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44489         pointer and zero.
44490
44491 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44492
44493         Use a better IO block size for modern systems
44494         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44495         * lib/md2.c: Likewise.
44496         * lib/md4.c: Likewise.
44497         * lib/md5.c: Likewise.
44498         * lib/sha1.c: Likewise.
44499         * lib/sha256.c: Likewise.
44500         * lib/sha512.c: Likewise.
44501
44502 2009-10-22  Eric Blake  <ebb9@byu.net>
44503
44504         tests: avoid several compiler warnings
44505         * tests/test-getcwd.c (main): Avoid buffer underflow.
44506         * tests/test-getdate.c (main): String literals are not safe with
44507         putenv, so use setenv.  Declare unused argument.
44508         * modules/getdate-tests (Depends-on): Add setenv.
44509         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44510         problems with string literals in char *.
44511         * tests/test-hash.c (main): Avoid shadowing declaration.
44512         (insert_new): Treat string literals as char const *.
44513         * tests/test-getopt.h (test_getopt): Likewise.
44514         (getopt_loop): Alter types to minimize casting elsewhere.
44515         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44516         (test_getopt_long_posix): Likewise.
44517         (do_getopt_long): Add wrapper to minimize casting.
44518         * tests/test-atexit.c (clear_temp_file): Use void.
44519         * tests/test-areadlink-with-size.c (main): Declare unused
44520         arguments.
44521         * tests/test-areadlink.c (main): Likewise.
44522         * tests/test-areadlinkat-with-size.c (main): Likewise.
44523         * tests/test-areadlinkat.c (main): Likewise.
44524         * tests/test-canonicalize-lgpl.c (main): Likewise.
44525         * tests/test-canonicalize.c (main): Likewise.
44526         * tests/test-dirent-safer.c (main): Likewise.
44527         * tests/test-dirname.c (main): Likewise.
44528         * tests/test-dup2.c (main): Likewise.
44529         * tests/test-fchdir.c (main): Likewise.
44530         * tests/test-fcntl-h.c (main): Likewise.
44531         * tests/test-fcntl-safer.c (main): Likewise.
44532         * tests/test-fdopendir.c (main): Likewise.
44533         * tests/test-fdutimensat.c (main): Likewise.
44534         * tests/test-fflush.c (main): Likewise.
44535         * tests/test-filenamecat.c (main): Likewise.
44536         * tests/test-filevercmp.c (main): Likewise.
44537         * tests/test-fopen-safer.c (main): Likewise.
44538         * tests/test-fopen.c (main): Likewise.
44539         * tests/test-fpending.c (main): Likewise.
44540         * tests/test-fpurge.c (main): Likewise.
44541         * tests/test-freading.c (main): Likewise.
44542         * tests/test-fstatat.c (main): Likewise.
44543         * tests/test-fsync.c (main): Likewise.
44544         * tests/test-futimens.c (main): Likewise.
44545         * tests/test-getndelim2.c (main): Likewise.
44546         * tests/test-gettimeofday.c (main): Likewise.
44547         * tests/test-getopt.c (main): Likewise.
44548         * tests/test-i-ring.c (main): Likewise.
44549         * tests/test-inttypes.c (main): Likewise.
44550         * tests/test-link.c (main): Likewise.
44551         * tests/test-lstat.c (main): Likewise.
44552         * tests/test-math.c (main): Likewise.
44553         * tests/test-md5.c (main): Likewise.
44554         * tests/test-memchr2.c (main): Likewise.
44555         * tests/test-memrchr.c (main): Likewise.
44556         * tests/test-mkdir.c (main): Likewise.
44557         * tests/test-mkdirat.c (main): Likewise.
44558         * tests/test-mkfifoat.c (main): Likewise.
44559         * tests/test-open.c (main): Likewise.
44560         * tests/test-openat-safer.c (main): Likewise.
44561         * tests/test-openat.c (main): Likewise.
44562         * tests/test-quotearg.c (main): Likewise.
44563         * tests/test-rawmemchr.c (main): Likewise.
44564         * tests/test-readlink.c (main): Likewise.
44565         * tests/test-remove.c (main): Likewise.
44566         * tests/test-rename.c (main): Likewise.
44567         * tests/test-renameat.c (main): Likewise.
44568         * tests/test-rmdir.c (main): Likewise.
44569         * tests/test-sha1.c (main): Likewise.
44570         * tests/test-signal.c (main): Likewise.
44571         * tests/test-sigaction.c (main): Likewise.
44572         * tests/test-stat.c (main): Likewise.
44573         * tests/test-stat-time.c (main): Likewise.
44574         * tests/test-stddef.c (main): Likewise.
44575         * tests/test-stdint.c (main): Likewise.
44576         * tests/test-stdio.c (main): Likewise.
44577         * tests/test-stdlib.c (main): Likewise.
44578         * tests/test-strchrnul.c (main): Likewise.
44579         * tests/test-strerror.c (main): Likewise.
44580         * tests/test-string.c (main): Likewise.
44581         * tests/test-strtod.c (main): Likewise.
44582         * tests/test-strverscmp.c (main): Likewise.
44583         * tests/test-symlink.c (main): Likewise.
44584         * tests/test-symlinkat.c (main): Likewise.
44585         * tests/test-sys_stat.c (main): Likewise.
44586         * tests/test-sys_time.c (main): Likewise.
44587         * tests/test-time.c (main): Likewise.
44588         * tests/test-unistd.c (main): Likewise.
44589         * tests/test-unlink.c (main): Likewise.
44590         * tests/test-unlinkat.c (main): Likewise.
44591         * tests/test-utimens.c (main): Likewise.
44592         * tests/test-utimensat.c (main): Likewise.
44593         * tests/test-version-etc.c (main): Likewise.
44594         * tests/test-wchar.c (main): Likewise.
44595         * tests/test-wctype.c (main): Likewise.
44596         * tests/test-xprintf-posix.c (main): Likewise.
44597         * tests/test-posixtm.c (main): Likewise.
44598         (STREQ): Delete unused macro.
44599         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44600         shadowed variables.
44601         * tests/test-memchr.c (main): Likewise.
44602
44603 2009-10-21  Eric Blake  <ebb9@byu.net>
44604
44605         areadlinkat: avoid failure on older glibc
44606         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44607         rather than mis-comparing 0 against FUNC_RESULT of char*.
44608
44609 2009-10-21  Bruno Haible  <bruno@clisp.org>
44610
44611         * modules/stpncpy (License): Relicense under LGPLv2+.
44612         Reported by David Lutterkort <lutter@redhat.com>.
44613
44614 2009-10-20  Eric Blake  <ebb9@byu.net>
44615
44616         utimensat: work around Solaris 9 bug
44617         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44618         has trailing slash bugs.
44619         * tests/test-lutimens.h (test_lutimens): Enhance test.
44620         * tests/test-utimens.h (test_utimens): Likewise.
44621         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44622         * doc/posix-functions/utimes.texi (utimes): Likewise.
44623         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44624         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44625         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44626         * doc/posix-functions/futimens.texi (futimens): Likewise.
44627
44628         fdutimensat: new module
44629         * modules/fdutimensat: New file.
44630         * lib/fdutimensat.c (fdutimensat): Likewise.
44631         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44632         * MODULES.html.sh (File system functions): Mention module.
44633         * modules/fdutimensat-tests: New test.
44634         * tests/test-fdutimensat.c: Likewise.
44635
44636         doc: regenerate INSTALL
44637         * doc/INSTALL: Reflect recent autoconf update.
44638         * doc/INSTALL.ISO: Likewise.
44639         * doc/INSTALL.UTF-8: Likewise.
44640
44641 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44642
44643         acl: warn if ACL support is not detected
44644         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44645
44646 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44647
44648         * lib/nproc.h: Add extern "C" block for C++.
44649
44650 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44651             Bruno Haible  <bruno@clisp.org>
44652
44653         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44654         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44655         * doc/posix-functions/isalpha.texi: Likewise.
44656         * doc/posix-functions/isblank.texi: Likewise.
44657         * doc/posix-functions/iscntrl.texi: Likewise.
44658         * doc/posix-functions/isdigit.texi: Likewise.
44659         * doc/posix-functions/isgraph.texi: Likewise.
44660         * doc/posix-functions/islower.texi: Likewise.
44661         * doc/posix-functions/isprint.texi: Likewise.
44662         * doc/posix-functions/ispunct.texi: Likewise.
44663         * doc/posix-functions/isspace.texi: Likewise.
44664         * doc/posix-functions/isupper.texi: Likewise.
44665         * doc/posix-functions/isxdigit.texi: Likewise.
44666
44667 2009-10-18  Bruno Haible  <bruno@clisp.org>
44668
44669         Tests for module 'isblank'.
44670         * modules/isblank-tests: New file.
44671         * tests/test-isblank.c: New file.
44672
44673         New module 'isblank'.
44674         * lib/isblank.c: New file.
44675         * m4/isblank.m4: New file.
44676         * modules/isblank: New file.
44677         * doc/posix-functions/isblank.texi: Mention the new module.
44678
44679 2009-10-18  Bruno Haible  <bruno@clisp.org>
44680
44681         New module 'ctype'.
44682         * lib/ctype.in.h: New file.
44683         * m4/ctype.m4: New file.
44684         * modules/ctype: New file.
44685         * doc/posix-headers/ctype.texi: Mention the new module.
44686
44687 2009-10-18  Jim Meyering  <meyering@redhat.com>
44688
44689         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44690         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44691         right after its initialization, rather than farther down.
44692         Keeping these in close proximity makes it easier to ensure
44693         that each such variable is initialized.  E.g.,
44694
44695             LIB_CLOCK_GETTIME=
44696             AC_SUBST([LIB_CLOCK_GETTIME])
44697
44698         This change also increments these serial numbers.
44699         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44700         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44702
44703 2009-10-18  Bruno Haible  <bruno@clisp.org>
44704
44705         Don't let environment variables perturb build.
44706         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44707         (gl_PREREQ_GETHRXTIME): ... not here.
44708
44709 2009-10-18  Bruno Haible  <bruno@clisp.org>
44710
44711         Avoid symlink attack in localcharset module.
44712         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44713         (O_NOFOLLOW): Define fallback.
44714         (get_charset_aliases): Don't open the file if it is a symbolic link.
44715         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44716         gl_FCNTL_H.
44717         (gl_FCNTL_H): Require it.
44718         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44719         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44720         Reported by Fergal Glynn <fglynn@veracode.com>.
44721
44722 2009-10-18  Bruno Haible  <bruno@clisp.org>
44723
44724         Implement nproc for mingw.
44725         * lib/nproc.c: Include <windows.h>
44726         (num_processors): On native Windows platforms, try GetSystemInfo.
44727
44728 2009-10-18  Bruno Haible  <bruno@clisp.org>
44729
44730         Implement nproc for IRIX.
44731         * lib/nproc.c: Include <sys/sysmp.h>.
44732         (num_processors): On IRIX systems, try sysmp.
44733         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44734
44735 2009-10-18  Bruno Haible  <bruno@clisp.org>
44736
44737         Implement nproc for HP-UX.
44738         * lib/nproc.c: Include <sys/pstat.h>
44739         (num_processors): On HP-UX systems, try pstat_getdynamic.
44740         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44741         pstat_getdynamic.
44742
44743 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44744             Bruno Haible  <bruno@clisp.org>
44745
44746         Implement nproc for NetBSD, OpenBSD.
44747         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44748         (ARRAY_SIZE): New macro.
44749         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44750         * m4/nproc.m4: New file.
44751         * modules/nproc (Files): Add m4/nproc.m4.
44752         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44753         (Makefile.am): Instead, augment lib_SOURCES.
44754
44755 2009-10-18  Bruno Haible  <bruno@clisp.org>
44756
44757         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44758         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44759         sys/param.h.
44760
44761 2009-10-16  Eric Blake  <ebb9@byu.net>
44762
44763         utimensat: new module
44764         * modules/utimensat: New file.
44765         * lib/utimensat.c (utimensat): Likewise.
44766         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44767         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44768         so we can work around Linux bugs.
44769         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44770         * modules/sys_stat (Makefile.am): Substitute them.
44771         * lib/sys_stat.in.h (utimensat): Declare it.
44772         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44773         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44774         * modules/utimensat-tests: New test.
44775         * tests/test-utimensat.c: Likewise.
44776
44777         utimens: let lutimens work on non-symlinks
44778         * lib/utimens.c (lutimens): Fall back to utimens rather than
44779         failing with ENOSYS, when file is not a symlink.
44780         (utimens): Reduce redirection.
44781         * tests/test-lutimens.h (test_lutimens): Update test to cover
44782         non-symlinks.
44783         * tests/test-utimens.h (test_utimens): Update test to cover
44784         symlinks.
44785         * tests/test-utimens.c (main): Update caller.
44786
44787         utimens: cache whether utimensat syscall works
44788         * lib/utimens.c (utimensat_works_really): New cache variable.
44789         (fdutimens, lutimens): Use it to avoid failing syscall.
44790
44791         test-stat-time, test-utimens: improve portability
44792         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44793         ext4 on alpha, and for cygwin.
44794         * tests/test-utimens-common.h: New file.
44795         (nap): Factor delays into single function.
44796         * tests/test-lutimens.h (test_lutimens): Use new header.
44797         * tests/test-futimens.h (test_futimens): Likewise.
44798         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44799         timestamps to occur from same machine, as was done previously for
44800         test_utimens.
44801         * modules/utimens-tests (Files): Ship new file.
44802         * modules/futimens-tests (Files): Likewise.
44803         Reported in part by Jim Meyering.
44804
44805         sys_stat: sort replacement declarations
44806         * lib/sys_stat.in.h: Sort declarations.
44807         * lib/futimens.c (futimens): Fix typo.
44808
44809 2009-10-15  Jim Meyering  <meyering@redhat.com>
44810
44811         don't let environment settings perturb build
44812         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44813         could cause a configure-time and/or build-time malfunction.
44814         Typically, a configure-time function-in-library test is performed
44815         via code like this:
44816
44817           LIB_VAR=
44818           AC_SUBST([LIB_VAR])
44819           prefix_saved_LIBS=$LIBS
44820             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44821                        [test "$ac_cv_search_FUNC" = "none required" ||
44822                         LIB_VAR=$ac_cv_search_FUNC])
44823           LIBS=$prefix_saved_LIBS
44824
44825         However, in each of the files affected by this change, the LIB_VAR=
44826         initialization was omitted.  Thus, when set in the environment, its
44827         value would propagate into generated Makefiles when FUNC is not found
44828         in LIB_NAME.
44829         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44830         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44832
44833 2009-10-14  Eric Blake  <ebb9@byu.net>
44834
44835         fchdir: avoid infinite recursion in mingw
44836         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44837         recursing.
44838
44839         test-stat-time: port to mingw
44840         * tests/test-stat-time.c (force_unlink): Return a value.
44841         (test_ctime) [W32]: Fix compilation error.
44842         (nap): Don't call usleep with too large an argument.  Use
44843         force_unlink.
44844         * doc/pastposix-functions/usleep.texi (usleep): Document the
44845         portability issue.
44846
44847 2009-10-13  Jim Meyering  <meyering@redhat.com>
44848
44849         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44850         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44851         * modules/pipe-filter-ii: Likewise.
44852         * modules/sys_socket-tests: Likewise.
44853         * modules/tsearch-tests: Likewise.
44854         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44855         (check): Depend on it.
44856
44857 2009-10-12  Eric Blake  <ebb9@byu.net>
44858
44859         utimens-tests: port to NFS file systems
44860         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44861         comparisons to avoid spurious failures from timestamp drift
44862         between NFS machines.
44863
44864 2009-10-12  Eric Blake  <ebb9@byu.net>
44865
44866         stat-time-tests: minor cleanups
44867         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
44868         * tests/test-stat-time.c (nap): Separate assignment from call.
44869         Suggested by Paolo Bonzini and Bruno Haible.
44870
44871         sys_stat: guarantee struct timespec
44872         * lib/sys_stat.in.h (includes): Always include <time.h>
44873         * modules/sys_stat (Depends-on): Add time.
44874         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
44875         mode_t permission values.
44876         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
44877         get at subsecond timestamps.
44878
44879 2009-10-10  Eric Blake  <ebb9@byu.net>
44880
44881         futimens: new module
44882         * modules/futimens: New file.
44883         * lib/futimens.c (futimens): Likewise.
44884         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
44885         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
44886         we can work around Linux bugs.
44887         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44888         * modules/sys_stat (Makefile.am): Substitute them.
44889         * lib/sys_stat.in.h (futimens): Declare it.
44890         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44891         * doc/posix-functions/futimens.texi (futimens): Likewise.
44892         * modules/futimens-tests: New test.
44893         * tests/test-futimens.c: Likewise.
44894
44895         utimens: introduce fdutimens
44896         * lib/utimens.h (fdutimens): New prototype.
44897         * lib/utimens.c (gl_futimens): Move guts...
44898         (fdutimens): ...to new interface.
44899         * tests/test-utimens.c (do_fdutimens): Use it.
44900
44901         utimens: add UTIME_NOW and UTIME_OMIT support
44902         * lib/utimens.c (validate_timespec, update_timespec): New helper
44903         functions.
44904         (gl_futimens, lutimens): Use them.
44905         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
44906         stdbool, sys_stat.
44907         (Link): Mention resulting library dependency.
44908         * modules/utimecmp (Link): Likewise.
44909         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
44910         (Makefile.am): Pick up library dependency.
44911         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44912         definition.
44913         * tests/test-sys_stat.c: Test the definitions.
44914         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44915         * NEWS: Document library dependency.
44916
44917         utimecmp: support symlink timestamps
44918         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44919         hashing when possible.  Use pathconf when available.
44920         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44921         * modules/utimecmp (Depends-on): Add lstat.
44922
44923         utimens: add lutimens interface
44924         * lib/utimens.c (lutimens): New function.
44925         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44926         * lib/utimens.h (lutimens): Declare new interface.
44927         * tests/test-utimens.c (main): Enhance test.
44928         * tests/test-lutimens.h (test_lutimens): New file.
44929         * modules/utimens-tests (Files): Distribute it.
44930         (Depends-on): Add symlink.
44931         (configure.ac): Check for usleep.
44932
44933         utimens: validate futimens usage
44934         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44935         fewer syscalls on failure later on.  Avoid compiler warning on
44936         mingw.
44937         * modules/utimens (Depends-on): Add dup2.
44938
44939         utimens: add test
44940         * modules/utimens-tests: New test.
44941         * tests/test-utimens.h: New file.
44942         * tests/test-futimens.h: Likewise.
44943         * tests/test-utimens.c: Likewise.
44944
44945         doc: mention timestamp portability issues
44946         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44947         instead.
44948         * doc/posix-functions/utime.texi (utime): Likewise.
44949         * doc/posix-functions/utimes.texi (utimes): Likewise.
44950         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44951         instead.
44952         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44953         module.
44954         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44955         Mention weakness with symlink timestamps.
44956         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44957         to utimensat/futimens instead.
44958         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44959
44960         test-dup2: enhance test
44961         * tests/test-dup2.c (main): Also check AT_FDCWD.
44962
44963         test-stat-time: avoid more spurious failures
44964         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44965         xfs; and avoid race if the two timestamps cross quantization edge.
44966
44967         relocatable: prefer 'file system' over 'filesystem'
44968         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44969         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44970         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44971         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44972         * lib/relocatable.c (compute_curr_prefix): Likewise.
44973
44974 2009-10-10  Jim Meyering  <meyering@redhat.com>
44975
44976         stat-time-tests: check for the usleep function
44977         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44978
44979 2009-10-10  Bruno Haible  <bruno@clisp.org>
44980
44981         * modules/xnanosleep: Put the Link section after the Include section.
44982
44983 2009-10-09  Eric Blake  <ebb9@byu.net>
44984
44985         dup2: work around FreeBSD 6.1 bug
44986         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44987         * doc/posix-functions/dup2.texi (dup2): Document it.
44988         Reported by Nelson H. F. Beebe and Jim Meyering.
44989
44990         test-stat-time: port to buggy NFS clients
44991         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44992         (test_ctime): Also skip test if mtime and ctime are skewed.
44993
44994         maint: prefer 'file system' over 'filesystem'
44995         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44996         * doc/posix-functions/lstat.texi (lstat): Likewise.
44997         * lib/file-has-acl.c (file_has_acl): Likewise.
44998         * lib/fwriteerror.c [TEST]: Likewise.
44999         * tests/test-areadlink.h (test_areadlink): Likewise.
45000         * tests/test-areadlinkat-with-size.c (main): Likewise.
45001         * tests/test-areadlinkat.c (main): Likewise.
45002         * tests/test-canonicalize-lgpl.c (main): Likewise.
45003         * tests/test-canonicalize.c (main): Likewise.
45004         * tests/test-fstatat.c (main): Likewise.
45005         * tests/test-linkat.c (main): Likewise.
45006         * tests/test-lstat.h (test_lstat_func): Likewise.
45007         * tests/test-mkdir.h (test_mkdir): Likewise.
45008         * tests/test-readlink.h (test_readlink): Likewise.
45009         * tests/test-remove.c (main): Likewise.
45010         * tests/test-rename.h (test_rename): Likewise.
45011         * tests/test-renameat.c (main): Likewise.
45012         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45013         * tests/test-symlink.h (test_symlink): Likewise.
45014         * tests/test-symlinkat.c (main): Likewise.
45015         * tests/test-unlink.h (test_unlink_func): Likewise.
45016         * tests/test-unlinkat.c (main): Likewise.
45017
45018         maint: make realtime library usage explicit
45019         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45020         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45021         * modules/settime (Link): Likewise.
45022         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45023
45024         test-stat-time: speed up execution
45025         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45026         warning on mingw.
45027         (nap): New helper function.
45028         (prepare_test): Use it to reduce sleep time.
45029         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45030         execution.
45031         * modules/stat-time-tests (configure.ac): Check for usleep.
45032
45033 2009-10-09  Jim Meyering  <meyering@redhat.com>
45034
45035         selinux-h: always use getfilecon wrappers
45036         * lib/getfilecon.c: New file.
45037         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45038         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45039         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45040         (fgetfilecon): Provide a stub.
45041         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45042         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45043         file unconditionally.
45044         When <selinux/selinux.h> is found, arrange to use wrappers.
45045         * modules/selinux-h (Files): Add getfilecon.c.
45046         (Makefile.am): Substitute include-next-related bits
45047         into the now-always-generated selinux/selinux.h file.
45048         * doc/glibc-functions/lgetfilecon.texi: New file.
45049         * doc/glibc-functions/fgetfilecon.texi: New file.
45050         * doc/glibc-functions/getfilecon.texi: New file.
45051         * doc/glibc-functions/getfilecon-desc.texi: New file.
45052         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45053         which to pull in the new files.
45054         * MODULES.html.sh (Misc): Add selinux-h.
45055
45056 2009-10-08  Jim Meyering  <meyering@redhat.com>
45057
45058         unistd: fix comment typo
45059         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45060
45061 2009-10-08  Eric Blake  <ebb9@byu.net>
45062
45063         areadlink: use SIZE_MAX consistently
45064         * modules/areadlink (Depends-on): Add stdint.
45065         * modules/areadlink-with-size (Depends-on): Likewise.
45066         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45067         gives NULL; drop sys/types, since unistd gives size_t; and add
45068         stdint for SIZE_MAX.
45069         (SIZE_MAX): Rely on headers.
45070         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45071         and add stdint.
45072         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45073         (SIZE_MAX): Likewise.
45074         (INITIAL_BUF_SIZE): Turn into enum.
45075         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45076
45077 2009-10-08  Jim Meyering  <meyering@redhat.com>
45078
45079         areadlinkat: avoid compilation failure
45080         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45081         Fix typo in comment.
45082
45083 2009-10-07  Eric Blake  <ebb9@byu.net>
45084
45085         areadlinkat-with-size: new module
45086         * modules/areadlinkat-with-size: New module.
45087         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45088         * lib/areadlink.h (areadlinkat): Declare it.
45089         * MODULES.html.sh (File system functions): Mention it.
45090         * modules/areadlinkat-with-size-tests: New test.
45091         * tests/test-areadlinkat-with-size.c: New file.
45092
45093         xreadlinkat: new module
45094         * modules/xreadlinkat: New module.
45095         * lib/xreadlinkat.c (xreadlinkat): New file.
45096         * lib/xreadlink.h (xreadlinkat): Declare it.
45097         * MODULES.html.sh (File system functions): Mention it.
45098
45099         areadlinkat: new module
45100         * lib/at-func.c (FUNC_FAIL): New define.
45101         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45102         * modules/areadlinkat: New module.
45103         * lib/linkat.c (areadlinkat): Move...
45104         * lib/areadlinkat.c (areadlinkat): ...to new file.
45105         * lib/areadlink.h (areadlinkat): Declare it.
45106         * modules/linkat (Depends-on): Add areadlinkat.
45107         * MODULES.html.sh (File system functions): Mention it.
45108         * modules/areadlinkat-tests: New test.
45109         * tests/test-areadlinkat.c: New file.
45110
45111         areadlink, areadlink-with-size: add tests
45112         * modules/areadlink-tests: New test.
45113         * modules/areadlink-with-size-tests: Likewise.
45114         * tests/test-areadlink.h: New file.
45115         * tests/test-areadlink.c: Likewise.
45116         * tests/test-areadlink-with-size.c: Likewise.
45117
45118         maint: minor cleanups
45119         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45120         _UNUSED_PARAMETER_ instead.
45121         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45122         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45123         * modules/linkat-tests (Files): Distribute test-link.h.
45124
45125         openat, utimens: whitespace cleanup
45126         * lib/openat.c: Prefer space throughout, rather than mix of 8
45127         spaces vs. tabs.
45128         * lib/at-func.c: Likewise.
45129         * lib/utimens.c: Likewise.
45130
45131         openat: avoid using wrong fd
45132         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45133         working directory chooses same fd.
45134         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45135
45136         mkdir, mkdirat: fix cygwin 1.5.x bug
45137         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45138         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45139         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45140         bug.
45141         (gl_PREREQ_MKDIR): Delete unused macro.
45142         * modules/mkdir (Files): Track file rename.
45143         (configure.ac): Update macro name.
45144         * modules/openat (Depends-on): Add mkdir.
45145         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45146
45147         mkdir, mkdirat: add tests
45148         * modules/mkdir-tests: New test.
45149         * tests/test-mkdir.h: New file.
45150         * tests/test-mkdir.c: Likewise.
45151         * tests/test-mkdirat.c: Likewise.
45152         * modules/openat-tests (Files): Add new files.
45153         (Makefile.am): Run new test.
45154
45155 2009-10-06  Eric Blake  <ebb9@byu.net>
45156
45157         doc: tweak *at function documentation
45158         * doc/posix-functions/faccessat.texi (faccessat): Mention
45159         known issue with replacement.
45160         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45161         * doc/posix-functions/linkat.texi (linkat): Likewise.
45162         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45163         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45164         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45165         * doc/posix-functions/renameat.texi (renameat): Likewise.
45166         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45167
45168         openat: fix GNU/Hurd bug in unlinkat
45169         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45170         broken.
45171         * doc/posix-functions/unlink.texi (unlink): Document this.
45172         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45173
45174         fdopendir: fix GNU/Hurd bug
45175         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45176         allowing non-directory fds.
45177         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45178         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45179         * modules/dirent (Makefile.am): Substitute it.
45180         * lib/dirent.in.h (fdopendir): Declare replacement.
45181         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45182         * tests/test-fdopendir.c (main): Test something other than
45183         /dev/null, since on Hurd that behaves like a directory.
45184
45185         test-symlink: port to GNU/Hurd
45186         * tests/test-symlink.h (test_symlink): Relax expected errno.
45187
45188         doc: tweak more cygwin information
45189         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45190         now compatible with glibc.
45191         * doc/posix-functions/getopt.texi (getopt): Likewise.
45192
45193         getopt-gnu: add another test
45194         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45195         guarantee behavior relied on by m4.
45196         * tests/test-getopt.c (main): Use it.
45197         * modules/getopt-posix-tests (Depends-on): Add setenv.
45198         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45199
45200         getopt: fix compilation on darwin
45201         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45202         include.
45203         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45204         Reported by Ludovic Courtès.
45205
45206 2009-10-06  Bruno Haible  <bruno@clisp.org>
45207
45208         * modules/size_max (Description): Discourage its use.
45209         Reported by Simon Josefsson.
45210
45211 2009-10-06  Jim Meyering  <meyering@redhat.com>
45212
45213         linkat: avoid compilation failure
45214         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45215
45216 2009-10-05  Eric Blake  <ebb9@byu.net>
45217
45218         linkat: support Linux 2.6.17
45219         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45220         linkat on Linux, but allow cache variable override.
45221         * lib/linkat.c (rpl_linkat): Define override.
45222         * modules/linkat (Depends-on): Add symlinkat.
45223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45224         * modules/unistd (Makefile.am): Substitute it.
45225         * lib/unistd.in.h (linkat): Declare replacement.
45226         Reported by Pádraig Brady.
45227
45228         quotearg: port test to systems with C.UTF-8 locale
45229         * tests/test-quotearg.c (struct result_strings): Add another
45230         member, differentiating between C.ASCII and C.UTF-8 handling.
45231         (compare_strings): Add parameter.
45232         (main): Adjust all callers.
45233
45234         getopt: avoid clash with FreeBSD _getopt_internal
45235         * lib/getopt.in.h (_getopt_internal): Override the name.
45236         * lib/getopt_int.h (includes): Pick up any overrides.
45237         Reported by Reuben Thomas.
45238
45239         hash: allow C89 compilation
45240         * lib/hash.c (check_tuning): Move declaration before statement.
45241         Reported by Reuben Thomas.
45242
45243 2009-10-05  Karl Berry  <karl@gnu.org>
45244
45245         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45246
45247 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45248             Bruno Haible  <bruno@clisp.org>
45249
45250         * lib/uname.c (uname): Use a table-driven algorithm to compute
45251         Windows NT versions.
45252
45253 2009-10-04  Bruno Haible  <bruno@clisp.org>
45254
45255         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45256         program_invocation_short_name.
45257         * modules/progname (configure.ac): Test for presence of
45258         program_invocation_short_name.
45259         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45260
45261 2009-10-04  Bruno Haible  <bruno@clisp.org>
45262
45263         * lib/progname.c (set_program_name): Fix comment.
45264         Reported by Jim Meyering.
45265
45266 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45267             Bruno Haible  <bruno@clisp.org>
45268
45269         * lib/uname.c: Include <string.h>.
45270         (uname): Do only one call to GetVersionEx in the common case.
45271
45272 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45273             Bruno Haible  <bruno@clisp.org>
45274
45275         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45276         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45277         (uname): Add support for Windows CE and various non-x86 CPU types.
45278
45279 2009-10-03  Bruno Haible  <bruno@clisp.org>
45280
45281         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45282         invocation to tests/configure.ac.
45283         Reported by Ian Beckwith <ianb@erislabs.net>.
45284
45285 2009-10-02  Eric Blake  <ebb9@byu.net>
45286
45287         fchdir: avoid compiler warning
45288         * lib/fchdir.c (canonicalize_file_name)
45289         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45290
45291         test-open: support mingw errno values
45292         * tests/test-open.h (test_open): Relax test.
45293         * tests/test-fopen.h (test_fopen): Likewise.
45294         * tests/test-openat-safer.c (main): Likewise.
45295
45296         open: fix opening directory on mingw
45297         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45298
45299         test-open: on GNU/Hurd, /dev/null is a directory
45300         * tests/test-fopen.h (main): Rename...
45301         (test_fopen): ...to this.  Use a guaranteed non-directory when
45302         confirming open behavior on trailing slash.
45303         * tests/test-openat-safer.c (main): Likewise.
45304         * tests/test-open.h (main): Likewise....
45305         (test_open): ...to this.
45306         * tests/test-fopen.c (main): Adjust caller.
45307         * tests/test-fopen-safer.c (main): Likewise.
45308         * tests/test-open.c (main): Likewise.
45309         * tests/test-fcntl-safer.c (main): Likewise.
45310         Reported by Samuel Thibault.
45311
45312         rename, fchdir: don't ignore chdir failure
45313         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45314         * lib/rename.c (rpl_rename) [W32]: Likewise.
45315         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45316         an empty destination directory if source cannot be renamed,
45317         although there is still possibility for failure.
45318         * doc/posix-functions/rename.texi (rename): Document the race.
45319         Reported by Jim Meyering.
45320
45321         maint: cleanup whitespace in recent commits
45322         * lib/rename.c (rpl_rename): Remove tabs.
45323         * tests/test-link.h (test_link): Likewise.
45324         * lib/fchdir.c (get_name): Likewise.
45325         Reported by Jim Meyering.
45326
45327 2009-10-02  Ben Pfaff  <blp@gnu.org>
45328
45329         relocatable-prog-wrapper: Add missing dependency on
45330         double-slash-root.
45331         * modules/relocatable-prog-wrapper: Add dependency.
45332         Reported by Ian Beckwith <ianb@erislabs.net>.
45333
45334 2009-10-02  Eric Blake  <ebb9@byu.net>
45335
45336         renameat: fix Solaris bugs
45337         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45338         needed fixing.
45339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45340         * modules/stdio (Makefile.am): Substitute it.
45341         * lib/stdio.in.h (renameat): Declare replacement.
45342         * lib/renameat.c (rpl_renameat): Implement fix.
45343
45344         renameat: new module
45345         * modules/renameat: New file.
45346         * lib/renameat.c (renameat): Likewise.
45347         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45349         * modules/stdio (Makefile.am): Substitute them.
45350         * lib/stdio.in.h (renameat): Declare it.
45351         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45352         * doc/posix-functions/renameat.texi (renameat): Likewise.
45353         * modules/renameat-tests: New test.
45354         * tests/test-renameat.c: Likewise.
45355
45356         rename: fix mingw bugs
45357         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45358         directory overwrite bugs.
45359
45360         rename: fix another cygwin 1.5 bug
45361         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45362         checks.
45363         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45364         unnecessary cygwin workarounds.  Also work around bug with moving
45365         full directory onto an empty one.
45366         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45367
45368         rename-dest-slash: merge into rename module
45369         * modules/rename-dest-slash (Status): Mark obsolete.
45370         (Depends-on): Add rename.
45371         (Files): Let rename do it all.
45372         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45373         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45374         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45375         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45376         * lib/rename.c (rpl_rename): Update comments.
45377
45378         rename: fix cygwin 1.5.x bugs
45379         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45380         * lib/rename.c (rpl_rename): Work around them.
45381         * modules/rename (Depends-on): Add same-inode.
45382
45383         rename: fix Solaris 10 bug
45384         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45385         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45386         was the only bug.
45387
45388         rename: fix Solaris 9 bug
45389         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45390         on non-directory.  Avoid calling exit.
45391         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45392         strdup.
45393         * modules/rename-tests (Depends-on): Drop lstat.
45394         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45395         (gl_PREREQ_RENAME): Delete unused macro.
45396
45397         rename-dest-slash: fix NetBSD bug
45398         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45399         links.
45400         * modules/rename-dest-slash (Depends-on): Add same-inode.
45401
45402         rename-tests: new test, exposes several platform bugs
45403         * modules/rename-tests: New file.
45404         * tests/test-rename.h: Likewise.
45405         * tests/test-rename.c: Likewise.
45406         * doc/posix-functions/rename.texi (rename): Improve documentation,
45407         including bugs that will eventually be fixed in gnulib.
45408
45409 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45410
45411         * lib/uname.c: Include <stdlib.h>
45412         (uname): Assume version info is available.
45413
45414 2009-10-02  Jim Meyering  <meyering@redhat.com>
45415
45416         gnu-web-doc-update: correct --help output
45417         * build-aux/gnu-web-doc-update: Make --help output relevant.
45418
45419         gnu-web-doc-update: add standard options
45420         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45421
45422         gnu-web-doc-update: New module.
45423         Use this script to automatically update the on-line web documentation
45424         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45425         * modules/gnu-web-doc-update: New file, from coreutils.
45426         * build-aux/gnu-web-doc-update: New script.
45427
45428 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45429
45430         link: LoadLibrary is not needed.
45431         * lib/link.c: Use GetModuleHandle.
45432
45433 2009-10-01  Eric Blake  <ebb9@byu.net>
45434
45435         getopt: bump serial number
45436         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45437         change.
45438
45439         tests: tighten link, rmdir, and remove tests
45440         * tests/test-link.h (includes): No need to use <config.h> here.
45441         Clean up if directory hard link was created, otherwise test for
45442         trailing '.'.
45443         * tests/test-linkat.c (main): Simplify.
45444         * tests/test-remove.c (main): Enhance test for trailing '.'.
45445         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45446
45447 2009-10-01  Jim Meyering  <meyering@redhat.com>
45448
45449         maint.mk: requiring "make major" was annoying, for a "minor" release.
45450         What is intended is "stable", to contrast with alpha and beta,
45451         so require "make stable", not "make major".
45452         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45453         (get_tool_versions): Likewise.
45454         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45455
45456 2009-09-30  Ben Pfaff  <blp@gnu.org>
45457
45458         Fix broken build of replacement for Windows tmpfile().
45459         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45460         flags argument added along with the 'mkostemp' module.
45461
45462 2009-09-28  Bruno Haible  <bruno@clisp.org>
45463
45464         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45465         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45466         to 'remove_elt'.
45467         (gl_list_remove): Update.
45468         * lib/gl_list.c (gl_list_remove): Update.
45469         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45470         to 'remove_elt'.
45471         (gl_oset_remove): Update.
45472         * lib/gl_list.c (gl_oset_remove): Update.
45473         Reported by Eric Blake.
45474
45475 2009-09-28  Eric Blake  <ebb9@byu.net>
45476
45477         doc: mention yet more cygwin 1.7 status
45478         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45479         cygwin.
45480         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45481         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45482
45483         argp: fix test failure
45484         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45485         that are not upper-case.  Pass correct range to tolower.
45486
45487 2009-09-27  Jim Meyering  <meyering@redhat.com>
45488
45489         test-yesno: work around sparc-dash here-document infelicity
45490         Without this change, the literal \177 byte in a here document
45491         would make dash 0.5.5.1-3 access uninitialized memory.
45492         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45493         Instead, use a marker, "@", and filter through tr to create the desired
45494         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45495
45496 2009-09-27  Bruno Haible  <bruno@clisp.org>
45497
45498         Disable untested support for new flavours of ACLs on AIX.
45499         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45500         progress.
45501         * lib/set-mode-acl.c (qset_acl): Likewise.
45502
45503 2008-12-07  Bruno Haible  <bruno@clisp.org>
45504
45505         Add support for new flavours of ACLs on AIX. (Untested.)
45506         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45507         (file_has_acl): Add support for newer AIX.
45508         * lib/set-mode-acl.c (qset_acl): Likewise.
45509         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45510         Rainer Tammer <tammer@tammer.net>.
45511
45512 2009-09-26  Eric Blake  <ebb9@byu.net>
45513
45514         argp: fix compilation of getopt
45515         * lib/getopt.in.h (includes): Use different guard than glibc.
45516         Reported by Sergey Poznyakoff.
45517
45518         doc: mention more cygwin 1.7 status
45519         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45520         bug.
45521         * doc/posix-functions/execl.texi (execl): Likewise.
45522         * doc/posix-functions/execle.texi (execle): Likewise.
45523         * doc/posix-functions/execlp.texi (execlp): Likewise.
45524         * doc/posix-functions/execv.texi (execv): Likewise.
45525         * doc/posix-functions/execve.texi (execve): Likewise.
45526         * doc/posix-functions/execvp.texi (execvp): Likewise.
45527         * doc/glibc-functions/canonicalize_file_name.texi
45528         (canonicalize_file_name): Cygwin 1.7 now provides this.
45529         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45530         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45531         on AT_SYMLINK_NOFOLLOW.
45532
45533 2009-09-24  Eric Blake  <ebb9@byu.net>
45534
45535         test-linkat: make test more robust
45536         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45537
45538         getopt: fix inclusion guards for cygwin
45539         * modules/getopt-posix (Depends-on): Add include-next.
45540         (Makefile.am): Substitute more items in replacement header.
45541         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45542         <getopt.h>.
45543         * lib/getopt.in.h (includes): Use split inclusion guard, and
45544         prefer <getopt.h> over include <unistd.h> when one is present.
45545         (option): Also override name of 'struct option'.
45546
45547         same-inode: revert prior change; it is not yet ready
45548         * NEWS: Undo mention of this change.
45549         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45550         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45551         * lib/cycle-check.c (cycle_check): Likewise.
45552         * lib/same.c (same_name): Likewise.
45553         * lib/at-func2.c (at_func2): Likewise.
45554
45555 2009-09-23  Eric Blake  <ebb9@byu.net>
45556
45557         linkat: new module
45558         * modules/linkat: New file.
45559         * lib/at-func2.c (at_func2): Likewise.
45560         * lib/linkat.c (linkat): Likewise.
45561         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45562         * lib/openat-priv.h (at_func2): Add declaration.
45563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45564         * modules/unistd (Makefile.am): Substitute them.
45565         * lib/unistd.in.h (linkat): Declare it.
45566         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45567         * doc/posix-functions/linkat.texi (linkat): Likewise.
45568         * doc/posix-functions/link.texi (link): Tweak wording.
45569         * tests/test-link.c (main): Move guts...
45570         * tests/test-link.h (test_link): ...into new file.
45571         * modules/linkat-tests: New test.
45572         * tests/test-linkat.c: Likewise.
45573         * modules/link-tests (Files): Ship new file.
45574         (Depends-on): Add stdbool.
45575
45576         dirname: add library-safe mdir_name
45577         * lib/dirname.h (mdir_name): New prototype.
45578         * lib/dirname.c (dir_name): Move guts...
45579         (mdir_name): ...to new function that avoids xalloc_die.
45580
45581         fchdir: another mingw fix
45582         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45583         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45584         on mingw (where it has not yet been ported), and make it optional
45585         elsewhere.
45586         (_gl_register_fd): Use it.
45587
45588         same-inode: make SAME_INODE tri-state, to port to mingw
45589         * NEWS: Mention this change.
45590         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45591         st_ino always being 0.
45592         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45593         * lib/cycle-check.c (cycle_check): Likewise.
45594         * lib/same.c (same_name): Likewise.
45595
45596         lstat: avoid mingw compilation error
45597         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45598         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45599         lstat ourselves.
45600         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45601         was adequate.
45602         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45603         the checks for lstat.
45604         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45605
45606         link: fix test failure on Solaris 9
45607         * lib/link.c (rpl_link): Don't assume link will catch bogus
45608         trailing slash on source.
45609
45610         test-symlinkat: enhance test
45611         * tests/test-readlink.c (main): Move guts...
45612         * tests/test-readlink.h (test_readlink): ...into new file.
45613         * tests/test-symlink.c (main): Move guts...
45614         * tests/test-symlink.h (test_symlink): ...into new file.
45615         * tests/test-symlinkat.c (main): Use new files for further
45616         coverage.
45617         (do_symlink, do_readlink): New helper functions.
45618         * modules/symlink-tests (Files): Ship new file.
45619         (Depends-on): Add stdbool.
45620         * modules/readlink-tests (Files): Ship new file.
45621         (Depends-on): Add stdbool.
45622         * modules/symlinkat-tests (Files): Use new files.
45623
45624 2009-09-23  Eric Blake  <ebb9@byu.net>
45625
45626         readlink: document portability issue with symlink length
45627         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45628         systems have bogus st_size on symlinks, and mention the
45629         areadlink-with-size module.
45630         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45631         * doc/posix-functions/readlink.texi (readlink): Mention the
45632         areadlink module, and ERANGE failure.
45633         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45634         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45635
45636         readlink: fix Solaris 9 bug with trailing slash
45637         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45638         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45639         * doc/posix-functions/readlink.texi (readlink): Document this.
45640         * modules/readlink-tests: New test.
45641         * tests/test-readlink.c: Likewise.
45642
45643         readlink: fix cygwin 1.5.x bug with return type
45644         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45645         * lib/unistd.in.h (readlink): Use ssize_t.
45646         * lib/readlink.c (readlink): Likewise.
45647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45648         * modules/unistd (Makefile.am): Substitute it.
45649         * lib/unistd.in.h (readlink): Declare replacement.
45650         * doc/posix-functions/readlink.texi (readlink): Document this.
45651
45652         symlink: use throughout gnulib
45653         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45654         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45655         symlink is not used.
45656         * modules/symlinkat (Depends-on): Add symlink.
45657         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45658         * modules/canonicalize-tests (Depends-on): Likewise.
45659         * modules/lstat-tests (Depends-on): Likewise.
45660         * modules/openat-tests (Depends-on): Likewise.
45661         * modules/remove-tests (Depends-on): Likewise.
45662         * modules/rmdir-tests (Depends-on): Likewise.
45663         * modules/unlink-tests (Depends-on): Likewise.
45664         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45665         * tests/test-canonicalize.c (symlink): Likewise.
45666         * tests/test-fstatat.c (symlink): Likewise.
45667         * tests/test-lstat.c (symlink): Likewise.
45668         * tests/test-remove.c (symlink): Likewise.
45669         * tests/test-rmdir.c (symlink): Likewise.
45670         * tests/test-unlink.c (symlink): Likewise.
45671         * tests/test-unlinkat.c (symlink): Likewise.
45672
45673         symlink: new module, for Solaris 9 bug
45674         * modules/symlink: New file.
45675         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45676         * lib/symlink.c: Likewise.
45677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45678         * modules/unistd (Makefile.am): Substitute them.
45679         * lib/unistd.in.h (symlink): Declare replacement.
45680         * MODULES.html.sh (File system functions): Mention it.
45681         * doc/posix-functions/symlink.texi (symlink): Likewise.
45682         * modules/symlink-tests: New test.
45683         * tests/test-symlink.c: Likewise.
45684
45685 2009-09-23  Bruno Haible  <bruno@clisp.org>
45686
45687         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45688         when needed.
45689         Test case: gnulib-tool --import --with-tests atexit inttypes.
45690         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45691
45692 2009-09-23  Bruno Haible  <bruno@clisp.org>
45693
45694         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45695         subcommand, not in a subshell.
45696
45697 2009-09-22  Eric Blake  <ebb9@byu.net>
45698
45699         unistd: sort replacement declarations
45700         * lib/unistd.in.h: Sort declarations.
45701
45702         open, openat: minor optimization
45703         * lib/open.c (open): If open succeeded, len is non-zero.
45704         * lib/openat.c (rpl_openat): Likewise.
45705
45706         link-follow: ensure correct result
45707         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45708         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45709         distinguish between possible failures.
45710
45711 2009-09-21  Eric Blake  <ebb9@byu.net>
45712
45713         fts: avoid compiler warning
45714         * lib/fts.c (dirent_inode_sort_may_be_useful)
45715         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45716
45717 2009-09-19  Bruno Haible  <bruno@clisp.org>
45718
45719         * lib/progreloc.c (canonicalize_file_name): New declaration.
45720
45721 2009-09-19  Eric Blake  <ebb9@byu.net>
45722
45723         link: fix quoting
45724         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45725
45726         openat: fix openat bugs on Solaris 9
45727         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45728         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45729         * modules/openat (Depends-on): Add open.
45730         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45731         * modules/fcntl-h (Makefile.am): Substitute it.
45732         * lib/fcntl.in.h (openat): Declare replacement.
45733         * doc/posix-functions/openat.texi (openat): Document this.
45734
45735         openat: move fstatat and unlinkat into correct files
45736         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45737         compiled.
45738         * lib/openat.c (fstatat, unlinkat): Move...
45739         * lib/fstatat.c (fstatat): ...into correct files.
45740         * lib/unlinkat.c (unlinkat): Likewise.
45741
45742         openat: fix unlinkat bugs on Solaris 9
45743         * lib/unlinkat.c (unlinkat): New file.
45744         * modules/openat (Depends-on): Add unlink.
45745         (Files): Distribute it.
45746         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45747         trailing slash behavior is broken.
45748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45749         * modules/unistd (Makefile.am): Substitute it.
45750         * lib/unistd.in.h (unlinkat): Declare replacement.
45751         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45752
45753         openat: fix fstatat bugs on Solaris 9
45754         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45755         stat.
45756         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45757
45758         test-unlinkat: enhance test, to expose Solaris 9 bug
45759         * tests/test-unlink.c (main): Factor guts...
45760         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45761         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45762         * tests/test-rmdir.c (main): Adjust caller.
45763         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45764         (unlinker): New helper function.
45765         (rmdirat): Enhance check.
45766         * modules/rmdir-tests (Depends-on): Add stdbool.
45767         * modules/unlink-tests (Depends-on): Likewise.
45768         (Files): Add test-unlink.h.
45769         * modules/openat-tests (Files): Likewise.
45770         (Depends-on): Add unlinkdir.
45771
45772         test-fstatat: new test, to expose Solaris 9 bugs
45773         * tests/test-stat.c (main): Factor guts...
45774         * tests/test-stat.h (test_stat_func): ...into new file.
45775         * tests/test-lstat.c (main): Factor guts...
45776         * tests/test-lstat.h (test_lstat_func): ...into new file.
45777         * tests/test-fstatat.c: New file.
45778         * modules/stat-tests (Files): Add test-stat.h.
45779         * modules/lstat-tests (Files): Add test-lstat.h.
45780         (Depends-on): Add stdbool.
45781         * modules/openat-tests (Depends-on): Add pathmax.
45782         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45783         (Makefile.am): Run new test.
45784
45785         remove: new module, for mingw and Solaris 9 bugs
45786         * modules/remove: New file.
45787         * lib/remove.c: Likewise.
45788         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45790         * modules/stdio (Makefile.am): Use them.
45791         * lib/stdio.in.h (remove): Declare replacement.
45792         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45793         * doc/posix-functions/remove.texi (remove): Likewise.
45794         * modules/remove-tests: New test.
45795         * tests/test-remove.c: Likewise.
45796
45797         unlink: new module, for Solaris 9 bug
45798         * modules/unlink: New file.
45799         * lib/unlink.c: Likewise.
45800         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45802         * modules/unistd (Makefile.am): Use them.
45803         * lib/unistd.in.h (stat): Declare replacement.
45804         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45805         * doc/posix-functions/unlink.texi (unlink): Likewise.
45806         * modules/unlink-tests: New test.
45807         * tests/test-unlink.c: Likewise.
45808
45809         lstat: fix Solaris 9 bug
45810         * lib/lstat.c (lstat): Also check for trailing slash on
45811         non-symlink, non-directories.  Use stat module to simplify logic.
45812         * doc/posix-functions/lstat.texi (lstat): Document it.
45813         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45814         (configure.ac): Check for symlink.
45815         * tests/test-lstat.c (main): Add more tests.
45816
45817         stat: add as dependency to other modules
45818         * modules/chown (Depends-on): Add stat.
45819         * modules/euidaccess (Depends-on): Likewise.
45820         * modules/fchdir (Depends-on): Likewise.
45821         * modules/isdir (Depends-on): Likewise.
45822         * modules/link (Depends-on): Likewise.
45823         * modules/lstat (Depends-on): Likewise.
45824         * modules/mkdir-p (Depends-on): Likewise.
45825         * modules/modechange (Depends-on): Likewise.
45826         * modules/open (Depends-on): Likewise.
45827         * modules/readlink (Depends-on): Likewise.
45828         * modules/same (Depends-on): Likewise.
45829
45830         stat: fix Solaris 9 bug
45831         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45832         slash.
45833         * lib/stat.c (rpl_stat): Work around it.
45834         * doc/posix-functions/stat.texi (stat): Update documentation.
45835
45836         stat: new module, for mingw bug
45837         * modules/stat: New file.
45838         * lib/stat.c: Likewise.
45839         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45840         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45841         * modules/sys_stat (Makefile.am): Use them.
45842         * lib/sys_stat.in.h (stat): Declare replacement.
45843         * lib/openat.c (fstatat): Deal with lstat and stat being function
45844         macros.
45845         * modules/openat (Depends-on): Add inline.
45846         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45847         * doc/posix-functions/stat.texi (stat): Likewise.
45848         * modules/stat-tests: New test.
45849         * tests/test-stat.c: Likewise.
45850
45851 2009-09-19  Jim Meyering  <meyering@redhat.com>
45852
45853         syntax-check: detect unnecessary inclusion of canonicalize.h
45854         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45855
45856 2009-09-19  Eric Blake  <ebb9@byu.net>
45857
45858         canonicalize-lgpl: adjust clients to use correct header
45859         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45860         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45861         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45862         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
45863         * lib/progreloc.c (includes): Likewise.
45864
45865 2009-09-19  Jim Meyering  <meyering@redhat.com>
45866
45867         test-posixtm.c: correct a comment
45868         * tests/test-posixtm.c: Correct first-line comment.
45869         Spotted by Eric Blake.
45870
45871 2009-09-16  Jim Meyering  <meyering@redhat.com>
45872
45873         posixtm-tests: make T const-correct; add a test case
45874         * tests/test-posixtm.c (T): Declare const.
45875         Add a test for -(2^31+1).
45876         Remove useless can-succeed-only-in-2002 test.
45877
45878         posixtm-tests: adjust the sole failing test
45879         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
45880         expected output matches what mktime now produces.  Cross-checked via
45881         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
45882
45883         posixtm: move #ifdef'd tests into a new module
45884         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
45885         * tests/test-posixtm.c: ... this new file.
45886         * modules/posixtm-tests: New module.
45887
45888 2009-09-19  Eric Blake  <ebb9@byu.net>
45889
45890         openat: simplify use of at-func.c
45891         * lib/at-func.c (includes): Include prerequisites here, to
45892         simplify requirements on client files.
45893         * lib/openat-priv.h: Add double-inclusion guard.
45894         * lib/faccessat.c (includes): Simplify.
45895         * lib/fchmodat.c (includes): Likewise.
45896         * lib/fchownat.c (includes): Likewise.
45897         * lib/mkdirat.c (includes): Likewise.
45898         * lib/mkfifoat.c (includes): Likewise.
45899         * lib/symlinkat.c (includes): Likewise.
45900
45901         openat: allow return of fd 0
45902         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
45903         * modules/save-cwd (Depends-on): Replace fcntl-safer with
45904         unistd-safer.
45905         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
45906         <fcntl.h>; this module does not leak fds.
45907         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
45908         must be allowed to return 0, leaving openat_safer to add the
45909         safety.
45910         (openat_permissive): Avoid writing to just-opened fd 2 if
45911         restoring the current directory fails.
45912         * lib/openat-die.c (openat_restore_fail): Add comment.
45913         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45914         (save_cwd): Guarantee safe fd, but without use of open_safer.
45915         * tests/test-openat.c: New test.
45916         * modules/openat-tests (Files, Makefile.am): Distribute and build
45917         new file.
45918
45919         relocatable-prog-wrapper: fix build
45920         * modules/relocatable-prog-wrapper (Files): Update name of
45921         canonicalize m4 file, broken on 2009-09-17.
45922         Reported by emad hajjar <aleppos@hotmail.com>.
45923
45924 2009-09-19  Bruno Haible  <bruno@clisp.org>
45925
45926         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45927         * lib/safe-alloc.c: Likewise.
45928         Reported by Ian Beckwith <ianb@erislabs.net>.
45929
45930 2009-09-18  Bruno Haible  <bruno@clisp.org>
45931
45932         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45933         Reported by <erobles@sensacd.com.mx>.
45934
45935 2009-09-17  Eric Blake  <ebb9@byu.net>
45936
45937         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45938         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45939         slashes when checking if last component is missing.
45940         * tests/test-canonicalize.c (main): Test this.
45941
45942         canonicalize, canonicalize-lgpl: honor // if distinct from /
45943         * modules/canonicalize (Files): Add double-slash-root.m4.
45944         * modules/canonicalize-lgpl (Files): Likewise.
45945         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45946         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45947         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45948         fallback definition.
45949         (canonicalize_filename_mode): Use it to protect //.
45950         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45951         (__realpath): Likewise.
45952         * tests/test-canonicalize.c (main): Test this.
45953         * tests/test-canonicalize-lgpl.c (main): Likewise.
45954         * modules/canonicalize-tests (Depends-on): Add same-inode.
45955         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45956
45957         canonicalize-lgpl: fix glibc bug with trailing slash
45958         * m4/canonicalize-lgpl.m4: Move contents...
45959         * m4/canonicalize.m4: ...here.
45960         (gl_CANONICALIZE_LGPL): Factor realpath check...
45961         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45962         glibc 2.3.5 bug, fixed 2005-04-27.
45963         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45964         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45965         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45966         * modules/canonicalize-lgpl (Files): Manage file rename.
45967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45968         * modules/stdlib (Makefile.am): Substitute witness.
45969         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45970         is needed.
45971         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45972         replacement is required.
45973         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45974         * doc/glibc-functions/canonicalize_file_name.texi
45975         (canonicalize_file_name): Document this.
45976         * doc/posix-functions/realpath.texi (realpath): Likewise.
45977
45978         canonicalize-lgpl: reject non-directory with trailing slash
45979         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45980         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45981         catches failures in glibc 2.3.5.
45982         * tests/test-canonicalize.c (main): Likewise.
45983
45984         canonicalize-lgpl: use native realpath if it works
45985         * lib/canonicalize-lgpl.c (realpath): Guard with
45986         FUNC_REALPATH_WORKS.
45987         * lib/stdlib.in.h (realpath): Make declaration optional based on
45988         HAVE_REALPATH.
45989         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45990         native realpath works.
45991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45992         * modules/stdlib (Makefile.am): Substitute witness.
45993
45994         canonicalize, canonicalize-lgpl: use <stdlib.h>
45995         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45996         (Include): Mention <stdlib.h>.
45997         (configure.ac): Mention functions we provide.
45998         * modules/canonicalize (configure.ac): Likewise.
45999         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46000         realpath if canonicalize_file_name is missing.
46001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46002         * modules/stdlib (Makefile.am): Substitute witnesses.
46003         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46004         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46005         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46006         * NEWS: Document this.
46007         * doc/glibc-functions/canonicalize_file_name.texi
46008         (canonicalize_file_name): Likewise.
46009         * doc/posix-functions/realpath.texi (realpath): Likewise.
46010         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46011
46012         test-canonicalize: consolidate into single C program
46013         * tests/test-canonicalize.sh: Delete; move setup into...
46014         * tests/test-canonicalize.c (main): ...the program, making it
46015         easier to run in debugger.  Add some tests.
46016         * modules/canonicalize-tests (Files): Remove unused file.
46017         (Depends-on): Add progname.
46018         (configure.ac, Makefile.am): Simplify.
46019
46020         test-canonicalize-lgpl: consolidate into single C program
46021         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46022         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46023         easier to run in debugger.  Add some tests.
46024         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46025         (configure.ac, Makefile.am): Simplify.
46026
46027         canonicalize: avoid resolvepath
46028         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46029         unnecessary checks.
46030         * lib/canonicalize.c (includes): Simplify.
46031         (canonicalize_file_name): Drop resolvepath implementation.
46032         * modules/canonicalize (Depends-on): Drop filenamecat.
46033
46034         canonicalize: don't lose errno
46035         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46036         over calls to free.
46037
46038         canonicalize: simplify errno handling
46039         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46040         assignment.
46041
46042         canonicalize, canonicalize-lgpl: update module dependencies
46043         * modules/canonicalize (Depends-on): Add extensions, lstat,
46044         pathmax, stdlib.
46045         (Files): Drop pathmax.h.
46046         (configure.ac): Adjust macro name.
46047         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46048         lstat, stdlib, sys_stat.
46049         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46050         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46051         extensions.
46052         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46053         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46054         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46055         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46056         declaration, if available.
46057         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46058         we can rely on the readlink module.
46059         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46060         (includes): Use <unistd.h> unconditionally.
46061
46062 2009-09-17  Eric Blake  <ebb9@byu.net>
46063
46064         maint: make Include sections of modules consistent
46065         * modules/alloca: Use only header name; no need to list #include.
46066         * modules/alloca-opt: Likewise.
46067         * modules/arpa_inet: Likewise.
46068         * modules/canon-host: Likewise.
46069         * modules/configmake: Likewise.
46070         * modules/dirent: Likewise.
46071         * modules/eealloc: Likewise.
46072         * modules/environ: Likewise.
46073         * modules/fchdir: Likewise.
46074         * modules/fcntl: Likewise.
46075         * modules/fcntl-h: Likewise.
46076         * modules/gethrxtime: Likewise.
46077         * modules/gettime: Likewise.
46078         * modules/ignore-value: Likewise.
46079         * modules/inet_ntop: Likewise.
46080         * modules/inet_pton: Likewise.
46081         * modules/inttypes: Likewise.
46082         * modules/isnand-nolibm: Likewise.
46083         * modules/isnanf-nolibm: Likewise.
46084         * modules/mbchar: Likewise.
46085         * modules/mbfile: Likewise.
46086         * modules/mbiter: Likewise.
46087         * modules/mbuiter: Likewise.
46088         * modules/netdb: Likewise.
46089         * modules/netinet_in: Likewise.
46090         * modules/nproc: Likewise.
46091         * modules/pagealign_alloc: Likewise.
46092         * modules/poll: Likewise.
46093         * modules/printf-frexp: Likewise.
46094         * modules/pthread: Likewise.
46095         * modules/putenv: Likewise.
46096         * modules/random_r: Likewise.
46097         * modules/relocatable-prog: Likewise.
46098         * modules/search: Likewise.
46099         * modules/select: Likewise.
46100         * modules/selinux-h: Likewise.
46101         * modules/settime: Likewise.
46102         * modules/signal: Likewise.
46103         * modules/size_max: Likewise.
46104         * modules/socklen: Likewise.
46105         * modules/ssize_t: Likewise.
46106         * modules/stdarg: Likewise.
46107         * modules/stdbool: Likewise.
46108         * modules/stddef: Likewise.
46109         * modules/stdint: Likewise.
46110         * modules/stdio: Likewise.
46111         * modules/stdlib: Likewise.
46112         * modules/string: Likewise.
46113         * modules/strings: Likewise.
46114         * modules/sys_file: Likewise.
46115         * modules/sys_ioctl: Likewise.
46116         * modules/sys_select: Likewise.
46117         * modules/sys_socket: Likewise.
46118         * modules/sys_stat: Likewise.
46119         * modules/sys_time: Likewise.
46120         * modules/sys_times: Likewise.
46121         * modules/sys_utsname: Likewise.
46122         * modules/sys_wait: Likewise.
46123         * modules/sysexits: Likewise.
46124         * modules/time: Likewise.
46125         * modules/times: Likewise.
46126         * modules/tmpfile: Likewise.
46127         * modules/trim: Likewise.
46128         * modules/unistd: Likewise.
46129         * modules/wchar: Likewise.
46130         * modules/wctype: Likewise.
46131
46132 2009-09-17  Bruno Haible  <bruno@clisp.org>
46133
46134         Make getdate.y compile on QNX and NetBSD 5 / i386.
46135         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46136         TIME_T_FITS_IN_LONG_INT.
46137         * lib/getdate.y (long_time_t): New type.
46138         (relative_time): Change type of 'seconds' field to long_time_t.
46139         (get_date): Update types of local variables. Check against overflow
46140         during conversion from long_time_t to time_t.
46141         Reported by Matt Kraai <kraai@ftbfs.org>
46142         and Hasso Tepper <hasso@netbsd.org>.
46143
46144 2009-09-17  Bruno Haible  <bruno@clisp.org>
46145
46146         * modules/COPYING: Update copyright years.
46147         * modules/README: Likeiwse.
46148         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46149         Reported by Ian Beckwith <ianb@erislabs.net>.
46150
46151 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46152
46153         * users.txt: Update references for gnuit package.
46154
46155 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46156
46157         * m4/getdelim.m4: Fix typo in copyright line.
46158
46159 2009-09-17  Bruno Haible  <bruno@clisp.org>
46160
46161         * lib/atoll.c: Use the standard header with GPL copyright.
46162         * lib/argz.in.h: Likewise.
46163         * lib/glob.c: Likewise.
46164         * lib/glob-libc.h: Likewise.
46165         * lib/random_r.c: Likewise.
46166         * lib/siglist.h: Likewise.
46167         * lib/strsignal.c: Likewise.
46168         Reported by Ian Beckwith <ianb@erislabs.net>.
46169
46170 2009-09-17  Eric Blake  <ebb9@byu.net>
46171
46172         rmdir: ensure correct dependency order
46173         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46174
46175 2009-09-17  Bruno Haible  <bruno@clisp.org>
46176
46177         Disable assertion that fails on NetBSD 5 / i386.
46178         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46179         Reported by Sam Steingold <sds@gnu.org>
46180         and Hasso Tepper <hasso@netbsd.org>.
46181
46182 2009-09-16  Eric Blake  <ebb9@byu.net>
46183
46184         unlinkdir: port to mingw
46185         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46186         on which no one can unlink a directory.
46187
46188         stdlib: sort witness names
46189         * modules/stdlib (Makefile.am): Sort replacements.
46190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46191         * lib/stdlib.in.h: Likewise.
46192
46193         parse-duration-tests: avoid link failure
46194         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46195         LIBINTL.
46196         Reported by Tom G. Christensen.
46197
46198         openat-tests: ensure unlinkat behaves like rmdir
46199         * tests/test-rmdir.c (main): Factor guts...
46200         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46201         * modules/rmdir-tests (Files): Ship new file.
46202         * modules/openat-tests: New test.
46203         * tests/test-unlinkat.c: Likewise.
46204
46205         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46206         * modules/rmdir-errno (Status, Notice): Now obsolete.
46207
46208         rmdir: work around cygwin 1.5.x and mingw bugs
46209         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46210         * lib/rmdir.c (rmdir): Work around it.
46211         * modules/rmdir (Status, Notice): No longer obsolete.
46212         (Files): Add dos.m4.
46213         (Depends-on): Add unistd.
46214         (configure.ac): Set witnesses.
46215         (License): Relax to LGPLv2+.
46216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46217         * modules/unistd (Makefile.am): Substitute witnesses.
46218         * lib/unistd.in.h (rmdir): Declare replacement.
46219         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46220         * modules/rmdir-tests: New tests.
46221         * tests/test-rmdir.c: Likewise.
46222
46223 2009-09-15  Eric Blake  <ebb9@byu.net>
46224
46225         fchdir: improve use of replacement functions
46226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46228         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46229         REPLACE_CLOSEDIR.
46230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46231         * modules/sys_stat (Makefile.am): Substitute correct witness.
46232         * modules/dirent (Makefile.am): Likewise.
46233         * modules/unistd (Makefile.am): Likewise.
46234         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46235         * lib/unistd.in.h (dup): Likewise.
46236         * lib/sys_stat.in.h (fstat): Likewise.
46237
46238         maint: ignore gnulib-tool temp files
46239         * .gitignore: Ignore files created during gnulib-tool --test.
46240
46241 2009-09-13  Jim Meyering  <meyering@redhat.com>
46242
46243         posixtm: don't reject a time that specify "60" as the number of seconds
46244         * lib/posixtm.c (posixtime): The code to reject invalid dates
46245         would also reject a time specified with the .60 suffix.
46246         But POSIX allows that, in order to accommodate leap seconds.
46247         So don't reject it.
46248         (main): Adjust tests accordingly.
46249         * modules/posixtm (Depends-on): Add stpcpy.
46250
46251 2009-09-11  Jim Meyering  <meyering@redhat.com>
46252
46253         announce-gen: include [$release_type] in emitted Subject:
46254         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46255         e.g., [stable] in the emitted Subject: line.
46256
46257 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46258
46259         Remove obsolete macros from several modules.
46260         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46261         obsolete Autoconf macros with their modern counterparts.
46262         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46263         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46265         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46266         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46267         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46269         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46270         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46271         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46272         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46273         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46274         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46275         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46276         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46277         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46278         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46279         * m4/time_r.m4 (gl_TIME_R): Likewise.
46280         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46281         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46282         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46283
46284         Fix copyright header in build-aux scripts.
46285         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46286         recommendation.
46287         * build-aux/ncftpput-ftp: Likewise.
46288         * build-aux/update-copyright: Likewise.
46289
46290 2009-09-09  Eric Blake  <ebb9@byu.net>
46291
46292         test-link: allow Linux choice of errno
46293         * tests/test-link.c (main): Relax test for alternate error.
46294
46295         strndup: fix improper m4 caching
46296         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46297         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46298         (gl_PREREQ_STRNDUP): Delete.
46299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46300         * modules/string (Makefile.am): Substitute it.
46301         * lib/string.in.h (strndup): Modernize prototype.
46302
46303         getcwd: port to mingw
46304         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46305         different from the POSIX assumptions made throughout the getcwd
46306         module; fortunately, the mingw getcwd does not need replacement.
46307         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46308         * modules/getcwd-tests: New test.
46309         * tests/test-getcwd.c: Likewise.
46310
46311         link: fix platform bugs
46312         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46313         * lib/link.c (link): Work around them.  Fix related mingw bug.
46314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46315         * modules/unistd (Makefile.am): Substitute it.
46316         * lib/unistd.in.h (link): Declare replacement.
46317         * doc/posix-functions/link.texi (link): Document this.
46318         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46319
46320         test-link: consolidate into single C program, test more cases
46321         * tests/test-link.sh: Delete.
46322         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46323         at least Cygwin and Solaris.
46324         * modules/link-tests (Files): Remove unused file.
46325         (Depends-on): Add errno, sys_stat.
46326         (Makefile.am): Simplify.
46327
46328 2009-09-08  Bruno Haible  <bruno@clisp.org>
46329
46330         Work around towlower, towupper bug on mingw.
46331         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46332         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46333         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46334         * doc/posix-functions/towupper.texi: Likewise.
46335         Reported by Eric Blake.
46336
46337 2009-09-08  Jim Meyering  <meyering@redhat.com>
46338
46339         build: don't try to run autoheader if we don't use it
46340         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46341         is not used in configure.ac.
46342
46343 2009-09-08  Eric Blake  <ebb9@byu.net>
46344
46345         euidaccess: fix compilation error
46346         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46347
46348         rawmemchr: relax license
46349         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46350         okay.
46351         Reported by Jim Meyering.
46352
46353         mkfifoat: new module
46354         * modules/mkfifoat: New file.
46355         * lib/mkfifoat.c: Likewise.
46356         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46357         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46358         * modules/sys_stat (Makefile.am): Use them.
46359         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46360         * MODULES.html.sh (File system functions): Mention module.
46361         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46362         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46363         * modules/mkfifoat-tests: New test.
46364         * tests/test-mkfifoat.c: Likewise.
46365
46366         strchrnul: relax license
46367         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46368         okay.
46369         Reported by Jim Meyering.
46370
46371 2009-09-08  Eric Blake  <ebb9@byu.net>
46372
46373         fstatat: fix compilation on Solaris
46374         * lib/fstatat.c (includes): Add fcntl.h.
46375         Reported by Pádraig Brady.
46376
46377 2009-09-07  Eric Blake  <ebb9@byu.net>
46378
46379         rename: modernize replacement
46380         * modules/rename (Depends-on): Add stdio.
46381         (configure.ac): Declare witness.
46382         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46383         stdio take care of replacement.
46384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46385         * modules/stdio (Makefile.am): Substitute them.
46386         * lib/stdio.in.h (rename): Declare replacement.
46387         * lib/rename.c (includes): Allow cross-compilation to non-windows
46388         machines.
46389         * doc/posix-functions/rename.texi (rename): Improve
46390         documentation.
46391
46392         stdio: sort witness names
46393         * modules/stdio (Makefile.am): Sort replacements.
46394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46395         * lib/stdio.in.h: Likewise.
46396
46397         getcwd: minor cleanups
46398         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46399         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46400
46401         openat: provide more convenience names
46402         * modules/faccessat (configure.ac): Add C witness.
46403         * lib/unistd.in.h (readlinkat): Fix typo.
46404         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46405         convenience wrappers.
46406         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46407         wrappers in syntax checks.
46408
46409 2009-09-06  Eric Blake  <ebb9@byu.net>
46410
46411         doc: fix comments in recent patches
46412         * lib/faccessat.c: Mention correct function.
46413         * lib/fchmodat.c: Likewise.
46414         * lib/fchownat.c: Likewise.
46415         * lib/symlinkat.c: Likewise.
46416         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46417         constants.
46418
46419         faccessat, symlinkat: continue cleanup of previous patch
46420         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46421         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46422         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46424         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46425         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46426         set.
46427
46428 2009-09-06  Bruno Haible  <bruno@clisp.org>
46429
46430         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46431         (fstatat): Declare if GNULIB_FSTATAT is set.
46432         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46433         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46434         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46435         * modules/fcntl-h (Files): Remove m4/openat.m4.
46436         * modules/sys_stat (Files): Remove m4/openat.m4.
46437         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46438         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46439         * modules/unistd (Files): Remove m4/openat.m4.
46440         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46441         GNULIB_OPENAT.
46442         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46443         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46444         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46445         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46446         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46447         gl_OPENAT_DEFAULTS.
46448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46449         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46450         Don't require gl_OPENAT_DEFAULTS.
46451         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46452         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46453         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46454         (gl_OPENAT_DEFAULTS): Remove macro.
46455
46456 2009-09-06  Bruno Haible  <bruno@clisp.org>
46457
46458         * modules/openat (configure.ac): Remove unneeded witness.
46459
46460 2009-09-06  Bruno Haible  <bruno@clisp.org>
46461
46462         Set errno to ENOSYS when a function is entirely unsupported.
46463         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46464         EOPNOTSUPP.
46465         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46466         * modules/chown (Depends-on): Remove errno.
46467
46468 2009-09-06  Bruno Haible  <bruno@clisp.org>
46469
46470         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46471
46472 2009-09-06  Bruno Haible  <bruno@clisp.org>
46473
46474         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46475
46476 2009-09-06  Ben Pfaff  <blp@gnu.org>
46477             Bruno Haible  <bruno@clisp.org>
46478
46479         Work around a glibc bug in strtok_r.
46480         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46481         Undefine if UNDEFINE_STRTOK_R is set.
46482         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46484         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46485         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46486         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46487         UNDEFINE_STRTOK_R.
46488         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46489
46490 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46491
46492         exclude: minor fix
46493         * lib/exclude.c: Include wctype.h
46494
46495 2009-09-06  Akim Demaille  <demaille@gostai.com>
46496
46497         bootstrap: improve error message
46498         * build-aux/bootstrap (find_tool): Upon failure, report the list
46499         of candidates.
46500         Honor the initial value of the envvar.
46501
46502 2009-09-05  Eric Blake  <ebb9@byu.net>
46503
46504         symlinkat: new module
46505         * modules/symlinkat: New file.
46506         * lib/symlinkat.c: Likewise.
46507         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46509         * modules/unistd (Makefile.am): Use them.
46510         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46511         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46512         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46513         * MODULES.html.sh (File system functions): Mention module.
46514         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46515         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46516         * modules/symlinkat-tests: New test.
46517         * tests/test-symlinkat.c: Likewise.
46518
46519         test-openat-safer: add more checks
46520         * tests/test-openat-safer.c (main): Check more code paths.
46521
46522 2009-09-05  Jim Meyering  <meyering@redhat.com>
46523
46524         syntax-check: detect unnecessary inclusion of openat.h
46525         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46526
46527 2009-09-05  Bruno Haible  <bruno@clisp.org>
46528
46529         Support towlower, towupper.
46530         * doc/posix-functions/towlower.texi: Mention module wctype.
46531         * doc/posix-functions/towupper.texi: Likewise.
46532         * lib/wctype.in.h (towlower, towupper): New functions.
46533         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46534         (ASSERT): New macro.
46535         (e): New variable.
46536         (main): Test also towlower, towupper. Test WEOF argument.
46537         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46538
46539 2009-09-05  Bruno Haible  <bruno@clisp.org>
46540
46541         Fix conversion behaviour when the input is invalid.
46542         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46543         mark occurring in first pass of indirect conversion.
46544         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46545         input.
46546         Found by clang's static analyzer.
46547
46548 2009-09-05  Bruno Haible  <bruno@clisp.org>
46549
46550         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46551         where direct conversion is possible.
46552
46553 2009-09-04  Eric Blake  <ebb9@byu.net>
46554
46555         openat: fail with ENOENT on empty name
46556         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46557         buffer.
46558
46559         link-follow: fix logic bug in prior patch
46560         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46561         reversed sense of yes and no in prior patch.  Avoid confusing
46562         compilation failure with desired semantics.
46563
46564         link-follow: accommodate mingw and cross-compilation
46565         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46566         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46567         cross-compilation results to -1, to make linkat easier to
46568         implement when cross-compiling.  Trivially support mingw.
46569         * modules/link-follow (configure.ac): Call new name.
46570         * NEWS: Mention this.
46571
46572 2009-09-03  Eric Blake  <ebb9@byu.net>
46573
46574         faccessat: compile replacement
46575         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46576         needed.
46577
46578         fts: fix compilation error
46579         * lib/fts.c (includes): Re-add "openat.h", for
46580         openat_needs_fchdir.
46581
46582         faccessat: new module
46583         * modules/faccessat: New file.
46584         * lib/faccessat.c: Likewise.
46585         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46587         * modules/unistd (Makefile.am): Use it.
46588         * lib/unistd.in.h (faccessat): Declare it.
46589         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46590         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46591         * MODULES.html.sh (File system functions): Mention it.
46592         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46593         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46594
46595         euidaccess: prefer POSIX over non-standard implementation
46596         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46597         * lib/euidaccess.c (euidaccess): Use it if available.
46598
46599         openat: make template easier to use
46600         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46601         AT_FUNC_F2 to be undefined.
46602         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46603         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46604         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46605         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46606         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46607         Likewise.
46608         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46609         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46610         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46611         Likewise.
46612
46613         openat: declare in POSIX headers
46614         * NEWS: Mention this.
46615         * modules/openat (configure.ac): Declare witnesses.
46616         (Depends-on): Add fcntl-h, sys_stat, unistd.
46617         (Include): Mention correct headers.
46618         * modules/fcntl-h (Depends-on): Add link-warning.
46619         (Files): Add openat.m4.
46620         (Makefile.am): Substitute witnesses.
46621         * modules/sys_stat (Files, Makefile.am): Likewise.
46622         * modules/unistd (Files, Makefile.am): Likewise.
46623         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46624         (gl_OPENAT_DEFAULTS): New macro.
46625         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46627         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46628         (SYS_STAT_H): Remove unused variable.
46629         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46630         * lib/fcntl--.h (includes): Remove unneeded header.
46631         * lib/openat-safer.c (includes): Likewise.
46632         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46633         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46634         appropriate headers.
46635         (__OPENAT_PREFIX): Delete.
46636         * lib/fcntl.in.h (openat): Provide declaration.
46637         (AT_FDCWD): Fix Solaris bug.
46638         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46639         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46640         * lib/fchmodat.c (includes):  Adjust to find declaration.
46641         * lib/fchownat.c (includes): Likewise.
46642         * lib/mkdirat.c (includes): Likewise.
46643         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46644         still visible.
46645
46646 2009-09-02  Eric Blake  <ebb9@byu.net>
46647
46648         errno: use consistently
46649         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46650         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46651         * lib/canonicalize.c (ELOOP): Likewise.
46652         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46653         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46654         * lib/lchown.c (EOPNOTSUPP): Likewise.
46655         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46656         * lib/savewd.c (ESTALE): Likewise.
46657         * lib/settime.c (ENOSYS): Likewise.
46658         * lib/utimens.c (ENOSYS): Likewise.
46659         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46660         * lib/chdir-safer.c (ELOOP): Likewise.
46661         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46662         * modules/c-stack (Depends-on): Add errno.
46663         * modules/canonicalize (Depends-on): Likewise.
46664         * modules/chdir-safer (Depends-on): Likewise.
46665         * modules/fdopendir (Depends-on): Likewise.
46666         * modules/inet_ntop (Depends-on): Likewise.
46667         * modules/inet_pton (Depends-on): Likewise.
46668         * modules/lchown (Depends-on): Likewise.
46669         * modules/openat (Depends-on): Likewise.
46670         * modules/savewd (Depends-on): Likewise.
46671         * modules/settime (Depends-on): Likewise.
46672         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46673
46674         fts: avoid leaking fds
46675         * modules/fts (Depends-on): Add cloexec.
46676         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46677         flag.
46678
46679         fts: make directory fds more robust
46680         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46681         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46682
46683         backupfile, chdir-long, fts, savedir: make safer
46684         * lib/backupfile.c (includes): Use "dirent--.h", since
46685         numbered_backup can write to stderr during readdir.
46686         * lib/savedir.c (includes): Likewise.
46687         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46688         emulation can write to stderr on failure.
46689         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46690         * lib/getcwd.c: Document why opendir_safer is unused.
46691         * lib/glob.c: Likewise.
46692         * lib/scandir.c: Likewise.
46693         * lib/openat-proc.c: Likewise, for open_safer.
46694         * modules/backupfile (Depends-on): Add dirent-safer.
46695         * modules/savedir (Depends-on): Likewise.
46696         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46697         * modules/chdir-long (Depends-on): Add openat-safer.
46698
46699         openat-safer: new module
46700         * modules/openat-safer: New file.
46701         * lib/openat-safer.c: Likewise.
46702         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46703         * lib/fcntl-safer.h (openat_safer): Declare.
46704         * lib/fcntl--.h (openat): Override.
46705         * MODULES.html.sh (File descriptor based I/O): Mention it.
46706         * lib/openat.h: Add double-inclusion guards.
46707         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46708         "fcntl--.h", so we can implement openat.
46709         * modules/openat-safer-tests: New test.
46710         * tests/test-openat-safer.c: New file.
46711
46712         dirent-safer: new module
46713         * modules/dirent-safer: New file.
46714         * lib/dirent--.h: Likewise.
46715         * lib/dirent-safer.h: Likewise.
46716         * lib/opendir-safer.c: Likewise.
46717         * m4/dirent-safer.m4: Likewise.
46718         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46719         * modules/dirent-safer-tests: New test.
46720         * tests/test-dirent-safer.c: New file.
46721         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46722
46723         fdopendir: optimize on mingw
46724         * lib/unistd.in.h (_gl_directory_name): New prototype.
46725         * lib/fchdir.c (_gl_directory_name): Implement it.
46726         (fchdir): Use it to simplify implementation.
46727         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46728         fchdir, when available, to avoid calling [f]chdir().
46729
46730         fdopendir: split into its own module
46731         * lib/openat.c (fdopendir): Move...
46732         * lib/fdopendir.c: ...into new file.
46733         * modules/fdopendir: New module.
46734         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46735         * modules/openat (Depends-on): Add fdopendir.
46736         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46737         fdopendir here.
46738         * modules/savedir (Depends-on): Only need fdopendir, not full
46739         openat.
46740         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46741         * lib/openat.h (fdopendir): Drop prototype.
46742         * lib/dirent.in.h (fdopendir): Provide prototype.
46743         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46744         * modules/dirent (Makefile.am): Substitute them.
46745         * MODULES.html.sh (File system functions): Mention it.
46746         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46747         * modules/fdopendir-tests: New file.
46748         * tests/test-fdopendir.c: Likewise.
46749
46750         fchdir: use more consistent macro convention
46751         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46752         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46753         REPLACE_FCHDIR, rather than relying on config.h macros.
46754         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46755         inside a single make-time REPLACE_FCHDIR block, rather than using
46756         the config.h FCHDIR_REPLACEMENT.
46757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46758         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46759         Manage fstat replacement.
46760         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46761         REPLACE_FCHDIR.
46762         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46763         (Makefile.am): Substitute REPLACE_FCHDIR.
46764         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46765         FCHDIR_REPLACEMENT.
46766         * lib/dup-safer.c (dup_safer): Likewise.
46767         * lib/dup2.c (rpl_dup2): Likewise.
46768         * lib/dup3.c (rpl_dup3): Likewise.
46769         * lib/open.c (rpl_open): Likewise.
46770
46771         fchdir: simplify error handling, and support dup3
46772         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46773         stdbool, malloc-posix, realloc-posix.
46774         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46775         (ensure_dirs_slot): Return false on allocation failure.
46776         (rpl_dup2): Delete.
46777         (_gl_register_dup): New function.
46778         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46779         (_gl_register_fd): Close fd on allocation failure.
46780         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46781         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46782         prototype.
46783         (rpl_dup2_fchdir): Delete prototype.
46784         * lib/open.c (open): Update caller.
46785         * lib/dup2.c (dup2): Track fchdir metadata.
46786         * lib/dup3.c (dup3): Likewise.
46787         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46788         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46789
46790 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46791
46792         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46793         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46794         don't pass arguments to AC_OUTPUT.
46795
46796 2009-09-02  Bruno Haible  <bruno@clisp.org>
46797
46798         * modules/mkdtemp (License): Relicense under LGPLv2+.
46799         Reported by Paolo Bonzini.
46800
46801 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46802
46803         Replace uses of obsolete autoconf macros in Jim's modules.
46804         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46805         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46806         can evoke a warning from autoconf when run with -Wobsolete
46807         enabled.  They were declared obsolete for good reasons (see
46808         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46809         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46810         should not continue using the deprecated macros.
46811         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46812         obsolete Autoconf macros with modern counterparts.
46813         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46814         * m4/dos.m4 (gl_AC_DOS): Likewise.
46815         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46816         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46817         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46818         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46819         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46820         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46821         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46822         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46823         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46824         Likewise.
46825         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46826         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46827         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46828         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46829         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46830         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46831
46832 2009-09-01  Eric Blake  <ebb9@byu.net>
46833
46834         fchdir: fix off-by-one bug in previous patch
46835         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46836         (_gl_unregister_fd): Delete useless if.
46837
46838 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46839
46840         maint.mk: sort the list of syntax-check rules
46841         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46842         easier to get a sense of progress when the rules are run sequentially
46843         and take a long time.
46844
46845 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46846
46847         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46848         * modules/netinet_in: Likewise.
46849         * modules/sys_file: Likewise.
46850         * modules/sys_ioctl: Likewise.
46851         * modules/sys_select: Likewise.
46852         * modules/sys_socket: Likewise.
46853         * modules/sys_stat: Likewise.
46854         * modules/sys_time: Likewise.
46855         * modules/sys_times: Likewise.
46856         * modules/sys_utsname: Likewise.
46857         * modules/sys_wait: Likewise.
46858
46859 2009-09-01  Jim Meyering  <meyering@redhat.com>
46860
46861         fts: help ensure that return values are not ignored
46862         * lib/fts_.h (__GNUC_PREREQ): Define.
46863         (__attribute_warn_unused_result__): Define.
46864         (fts_children, fts_close, fts_open, fts_read): Declare with
46865         __attribute_warn_unused_result__.
46866
46867         fts: fts_close now fails also when closing a dir file descriptor fails
46868         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
46869         and propagate to caller, along with errno.
46870
46871         announce-gen: correct formatting in --help output
46872         * build-aux/announce-gen (usage): Move the one-line description in
46873         --help output "up", to where it belongs, just after Usage:.
46874
46875 2009-08-31  Eric Blake  <ebb9@byu.net>
46876
46877         fchdir: port to mingw
46878         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
46879         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
46880         opened, then use a substitute.
46881         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
46882         replacement.
46883         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
46884         (_gl_register_fd): No need to check stat if open already filters
46885         all directories.
46886         (fchdir): Fix error condition to match POSIX.
46887         * modules/fchdir (Depends-on): Add sys_stat.
46888         * doc/posix-functions/open.texi (open): Document the limitation.
46889         * modules/fchdir-tests: New file.
46890         * tests/test-fchdir.c: Likewise.
46891
46892         canonicalize: allow cross-testing from cygwin to mingw
46893         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
46894         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
46895         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
46896         Likewise.
46897         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
46898         target does not support symlinks.
46899         * tests/test-canonicalize-lgpl.sh: Likewise.
46900
46901         chown: avoid compilation warning on mingw
46902         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
46903         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
46904         mingw.
46905         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46906         * modules/chown (Depends-on): Add errno.
46907
46908 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46909
46910         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46911         command.
46912
46913 2009-08-31  Jim Meyering  <meyering@redhat.com>
46914
46915         canonicalize: remove useless initialization
46916         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46917         initialization of local, "end".
46918
46919 2009-08-30  Bruno Haible  <bruno@clisp.org>
46920
46921         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46922         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46923         ENOSYS.
46924
46925 2009-08-30  Bruno Haible  <bruno@clisp.org>
46926
46927         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46928         /usr/xpg4/bin/tr when it exists.
46929         * tests/test-pipe-filter-gi1.sh: Likewise.
46930
46931 2009-08-30  Bruno Haible  <bruno@clisp.org>
46932
46933         Work around deficient /usr/bin/id program on Solaris.
46934         * tests/test-file-has-acl.sh (ID): New variable.
46935         * tests/test-set-mode-acl.sh (ID): Likewise.
46936         * tests/test-copy-acl.sh (ID): Likewise.
46937         * tests/test-copy-file.sh (ID): Likewise.
46938
46939 2009-08-30  Bruno Haible  <bruno@clisp.org>
46940
46941         New module 'xstriconveh'.
46942         * lib/xstriconveh.h: New file.
46943         * lib/xstriconveh.c: New file.
46944         * modules/xstriconveh: New file.
46945
46946 2009-08-30  Bruno Haible  <bruno@clisp.org>
46947
46948         Make it easier to use mem_cd_iconveh.
46949         * lib/striconveh.h (iconveh_t): New type.
46950         (iconveh_open, iconveh_close): New declarations.
46951         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46952         with a single 'const iconveh_t *' argument.
46953         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46954         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46955         with a single 'const iconveh_t *' argument.
46956         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46957         * tests/test-striconveh.c (main): Update.
46958         * NEWS: Mention the change.
46959
46960 2009-08-30  Bruno Haible  <bruno@clisp.org>
46961
46962         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46963         problem.
46964
46965 2009-08-30  Bruno Haible  <bruno@clisp.org>
46966
46967         Work around iconv_open problem on Solaris.
46968         * lib/iconv_open-solaris.gperf: New file.
46969         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46970         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46971         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46972         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46973         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46974         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46975
46976 2009-08-29  Jim Meyering  <meyering@redhat.com>
46977
46978         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46979         * top/maint.mk (cvs-check): Remove target; it was just an alias
46980         to the better-named vc-diff-check.
46981         (maintainer-distcheck): Remove rule.  It was used only from
46982         the (alpha/beta/major) target, and all of its commands but one
46983         were coreutils-specific.
46984         (vc-dist): Remove rule.
46985         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46986         Run vc-diff-check, not vc-dist.
46987         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46988
46989 2009-08-27  Bruno Haible  <bruno@clisp.org>
46990
46991         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46992         of 0.
46993
46994 2009-08-27  Bruno Haible  <bruno@clisp.org>
46995
46996         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46997         compilers.
46998         * doc/func.texi: Document the SunPRO C bug.
46999
47000 2009-08-27  Bruno Haible  <bruno@clisp.org>
47001
47002         Fix link error on Solaris.
47003         * tests/test-parse-duration.c (xstrdup): Remove function.
47004
47005 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47006
47007         ignore-value: handle pointer types, too
47008         * lib/ignore-value.h (__attribute__): Remove definition.
47009         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47010         of a more concise and more-often effective "(void) i" statement.
47011         (ignore_ptr): New function to suppress warnings from functions that
47012         return pointers, and to make it explicit that one function doesn't
47013         handle all cases.
47014
47015 2009-08-25  Bruno Haible  <bruno@clisp.org>
47016
47017         dup2: work around a Linux bug.
47018         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47019         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47020         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47021         Reported by Simon Josefsson.
47022
47023 2009-08-25  Jim Meyering  <meyering@redhat.com>
47024
47025         libguestfs uses gnulib
47026         * users.txt: Add libguestfs.
47027
47028 2009-08-24  Eric Blake  <ebb9@byu.net>
47029
47030         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47031         * lib/pipe2.c (includes): Add binary-io.h.
47032         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47033
47034 2009-08-24  Bruno Haible  <bruno@clisp.org>
47035
47036         Tolerate declared but missing accept4 syscall.
47037         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47038         available.
47039         * lib/sys_socket.in.h (accept4): If the function is already present,
47040         override it.
47041         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47042         * modules/accept4 (Makefile.am): Compile accept4.c always.
47043         Reported by Paolo Bonzini and Eric Blake.
47044
47045 2009-08-23  Bruno Haible  <bruno@clisp.org>
47046
47047         New module 'accept4'.
47048         * lib/sys_socket.in.h (accept4): New declaration.
47049         * lib/accept4.c: New file.
47050         * m4/accept4.m4: New file.
47051         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47052         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47053         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47054         HAVE_ACCEPT4.
47055         * modules/accept4: New file.
47056         * doc/glibc-functions/accept4.texi: Mention the new module.
47057
47058 2009-08-24  Jim Meyering  <meyering@redhat.com>
47059
47060         progname: also set global program_invocation_name, when possible
47061         Before this change, a libtool-enabled program that calls glibc's
47062         error function would report the program name as
47063         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47064         * modules/progname (configure.ac): Check for a declaration of
47065         program_invocation_name.
47066         * lib/progname.c:  Include <errno.h>.
47067         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47068         Set program_invocation_name.
47069
47070 2009-08-23  Bruno Haible  <bruno@clisp.org>
47071
47072         * lib/dup3.c: Include <string.h>.
47073
47074 2009-08-23  Bruno Haible  <bruno@clisp.org>
47075
47076         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47077         * lib/pipe2.c (pipe2): Likewise.
47078         Suggested by Eric Blake.
47079
47080 2009-08-23  Bruno Haible  <bruno@clisp.org>
47081
47082         Tolerate declared but missing dup3 syscall.
47083         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47084         * lib/unistd.in.h (dup3): If the function is already present,
47085         override it.
47086         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47087         * modules/dup3 (Makefile.am): Compile dup3.c always.
47088         Reported by Paolo Bonzini.
47089
47090 2009-08-23  Bruno Haible  <bruno@clisp.org>
47091
47092         Tolerate declared but missing pipe2 syscall.
47093         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47094         available.
47095         * lib/unistd.in.h (pipe2): If the function is already present,
47096         override it.
47097         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47098         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47099         Reported by Paolo Bonzini.
47100
47101 2009-08-23  Bruno Haible  <bruno@clisp.org>
47102
47103         * lib/pipe2.c (pipe2): Move #ifs inside function.
47104
47105 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47106
47107         quotearg: document limitations of quote_these_too
47108         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47109         those limitations are created.
47110         * lib/quotearg.h (set_char_quoting): Document that digits and
47111         letters that are special after backslash are not permitted.
47112         (quotearg_char): Cross-reference set_char_quoting documentation.
47113
47114 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47115
47116         quotearg: implement custom_quoting_style
47117         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47118         right_quote fields.
47119         (set_custom_quoting): New public function.
47120         (quotearg_buffer_restyled): Add left_quote and right_quote
47121         arguments, handle them very much like locale quoting, and update
47122         all uses.
47123         (quotearg_n_custom): New public function.
47124         (quotearg_n_custom_mem): New public function.
47125         (quotearg_custom): New public function.
47126         (quotearg_custom_mem): New public function.
47127         * lib/quotearg.h: Prototype and document new public functions.
47128         (enum quoting_style): For escape_quoting_style and
47129         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47130         ignored even though they're otherwise like c_quoting_style.
47131         Add custom_quoting_style member and document with comparison to
47132         clocale_quoting_style.
47133         * tests/test-quotearg.c (custom_quotes): New array.
47134         (custom_results): New array.
47135         (main): Extend to test custom quoting.
47136
47137 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47138
47139         quotearg: fix right quote escaping when it's in quote_these_too
47140         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47141         quote, be sure to prepend only one backslash.
47142         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47143         (main): Test it.
47144
47145 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47146
47147         quotearg-tests: test escaping of embedded locale quotes
47148         * tests/test-quotearg.c (struct result_strings): Add member for
47149         new input.
47150         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47151         (inputs): Add new input.
47152         (results_g): Add expected results.
47153         (flag_results): Likewise.
47154         (locale_results): Likewise.
47155         (compare_strings): Check those.
47156
47157 2009-08-23  Bruno Haible  <bruno@clisp.org>
47158
47159         Tests for module 'dup3'.
47160         * modules/dup3-tests: New file.
47161         * tests/test-dup3.c: New file.
47162
47163         New module 'dup3'.
47164         * lib/unistd.in.h (dup3): New declaration.
47165         * lib/dup3.c: New file.
47166         * m4/dup3.m4: New file.
47167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47168         HAVE_DUP3.
47169         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47170         * modules/dup3: New file.
47171         * doc/glibc-functions/dup3.texi: Mention the new module.
47172
47173 2009-08-23  Bruno Haible  <bruno@clisp.org>
47174
47175         Tweak the dup2 test.
47176         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47177         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47178         the test file is still empty. Fix argument order of lseek.
47179
47180 2009-08-23  Bruno Haible  <bruno@clisp.org>
47181
47182         Avoid test link errors when the modules getopt-gnu, gettext are used.
47183         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47185
47186 2009-08-23  Bruno Haible  <bruno@clisp.org>
47187
47188         Fix getdtablesize() on mingw.
47189         * lib/getdtablesize.c (getdtablesize): Implement differently.
47190         * lib/unistd.in.h (getdtablesize): Improve comment.
47191
47192 2009-08-23  Bruno Haible  <bruno@clisp.org>
47193
47194         New module 'mkostemp'.
47195         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47196         * lib/stdlib.in.h (mksotemp): New declaration.
47197         * lib/mkostemp.c: New file, from glibc with modifications.
47198         * lib/tempname.h (GT_FILE): Remove outdated comment.
47199         (gen_tempname): Add flags argument.
47200         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47201         (__GT_FILE): Map to 1.
47202         (small_open, large_open): Remove macros.
47203         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47204         * lib/mkstemp.c (mkstemp): Update.
47205         * lib/mkdtemp.c (mkdtemp): Likewise.
47206         * m4/mkostemp.m4: New file.
47207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47208         HAVE_MKOSTEMP.
47209         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47210         HAVE_MKOSTEMP.
47211         * modules/mkostemp: New file, based on modules/mkstemp.
47212         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47213         * NEWS: Mention the change.
47214
47215 2009-08-23  Bruno Haible  <bruno@clisp.org>
47216
47217         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47218         Reported by Eric Blake.
47219
47220 2009-08-23  Bruno Haible  <bruno@clisp.org>
47221
47222         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47223         Reported by Eric Blake.
47224
47225 2009-08-23  Bruno Haible  <bruno@clisp.org>
47226
47227         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47228         * modules/pipe2 (Depends-on): Likewise.
47229
47230 2009-08-23  Eric Blake  <ebb9@byu.net>
47231
47232         fcntl-h: add O_TTY_INIT support
47233         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47234         * tests/test-fcntl-h.c (o): Test it.
47235         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47236
47237         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47238         * modules/fcntl: Move <fcntl.h> header replacement...
47239         * modules/fcntl-h: ...to new name, so as not to collide with
47240         like-named function.
47241         * tests/test-fcntl.c: Rename...
47242         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47243         * modules/fcntl-tests: Rename...
47244         * modules/fcntl-h-tests: ...to this.  Update test file name.
47245         * modules/chdir-long (Depends-on): Update clients.
47246         * modules/chdir-safer (Depends-on): Likewise.
47247         * modules/fcntl-safer (Depends-on): Likewise.
47248         * modules/fts (Depends-on): Likewise.
47249         * modules/mkancesdirs (Depends-on): Likewise.
47250         * modules/mkdir-p (Depends-on): Likewise.
47251         * modules/open (Depends-on): Likewise.
47252         * modules/savewd (Depends-on): Likewise.
47253         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47254         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47255
47256 2009-08-22  Bruno Haible  <bruno@clisp.org>
47257
47258         * modules/binary-io (License): Relicense under LGPL.
47259         * modules/pipe2 (License): Likewise.
47260
47261 2009-08-22  Bruno Haible  <bruno@clisp.org>
47262
47263         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47264         return value.
47265         * lib/pipe-filter-gi.c (filter_init): Likewise.
47266         Reported by Eric Blake.
47267
47268 2009-08-22  Bruno Haible  <bruno@clisp.org>
47269
47270         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47271         * modules/pipe (Depends-on): Add pipe2.
47272
47273 2009-08-22  Bruno Haible  <bruno@clisp.org>
47274
47275         Tests for module 'pipe2'.
47276         * modules/pipe2-tests: New file.
47277         * tests/test-pipe2.c: New file.
47278
47279         New module 'pipe2'.
47280         * lib/unistd.in.h (pipe2): New declaration.
47281         * lib/pipe2.c: New file.
47282         * m4/pipe2.m4: New file.
47283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47284         HAVE_PIPE2.
47285         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47286         * modules/pipe2: New file.
47287         * doc/glibc-functions/pipe2.texi: Mention the new module.
47288
47289 2009-08-22  Bruno Haible  <bruno@clisp.org>
47290
47291         Reference some new glibc functions.
47292         * doc/glibc-functions/accept4.texi: New file.
47293         * doc/glibc-functions/dup3.texi: New file.
47294         * doc/glibc-functions/mkostemp.texi: New file.
47295         * doc/glibc-functions/pipe2.texi: New file.
47296         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47297         (Glibc sys/socket.h): Refer to accept4.
47298         (Glibc unistd.h): Refer to dup3, pipe2.
47299         Reported by Eric Blake.
47300
47301 2009-08-22  Jim Meyering  <meyering@redhat.com>
47302             Bruno Haible  <bruno@clisp.org>
47303
47304         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47305         This makes it so packages using automake-1.11's silent-rules option
47306         can print e.g., a single "GEN    configmake.h" line, rather than
47307         the 30+ statements that perform the job.  If you want to see the
47308         actual commands, you can still run "make V=1".
47309         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47310         so that make output is abbreviated when those variables are defined
47311         appropriately.
47312         * modules/argz: Likewise.
47313         * modules/arpa_inet: Likewise.
47314         * modules/byteswap: Likewise.
47315         * modules/configmake: Likewise.
47316         * modules/dirent: Likewise.
47317         * modules/errno: Likewise.
47318         * modules/fcntl: Likewise.
47319         * modules/float: Likewise.
47320         * modules/fnmatch: Likewise.
47321         * modules/getopt-posix: Likewise.
47322         * modules/glob: Likewise.
47323         * modules/iconv_open: Likewise.
47324         * modules/inttypes: Likewise.
47325         * modules/localcharset: Likewise.
47326         * modules/locale: Likewise.
47327         * modules/math: Likewise.
47328         * modules/netdb: Likewise.
47329         * modules/netinet_in: Likewise.
47330         * modules/poll: Likewise.
47331         * modules/posix_spawnp-tests: Likewise.
47332         * modules/sched: Likewise.
47333         * modules/search: Likewise.
47334         * modules/selinux-h: Likewise.
47335         * modules/signal: Likewise.
47336         * modules/spawn: Likewise.
47337         * modules/stdarg: Likewise.
47338         * modules/stdbool: Likewise.
47339         * modules/stddef: Likewise.
47340         * modules/stdint: Likewise.
47341         * modules/stdio: Likewise.
47342         * modules/stdlib: Likewise.
47343         * modules/string: Likewise.
47344         * modules/strings: Likewise.
47345         * modules/sys_file: Likewise.
47346         * modules/sys_ioctl: Likewise.
47347         * modules/sys_select: Likewise.
47348         * modules/sys_socket: Likewise.
47349         * modules/sys_stat: Likewise.
47350         * modules/sys_time: Likewise.
47351         * modules/sys_times: Likewise.
47352         * modules/sys_utsname: Likewise.
47353         * modules/sys_wait: Likewise.
47354         * modules/sysexits: Likewise.
47355         * modules/time: Likewise.
47356         * modules/unistd: Likewise.
47357         * modules/wchar: Likewise.
47358         * modules/wctype: Likewise.
47359
47360 2009-08-22  Jim Meyering  <meyering@redhat.com>
47361
47362         announce-gen: detect write failure
47363         * build-aux/announce-gen: Add Coda at end.
47364         Remove equivalent-but-more-verbose block at top.
47365
47366 2009-08-19  Akim Demaille  <demaille@gostai.com>
47367
47368         bootstrap: --help to stdout.
47369         * bootstrap (usage): Don't send --help to stderr.
47370         Use a here doc instead of a long string.
47371
47372 2009-08-21  Eric Blake  <ebb9@byu.net>
47373
47374         test-popen-safer: split from test-popen
47375         * tests/test-popen.c (main): Move...
47376         * tests/test-popen.h: ...into new file.
47377         * tests/test-popen-safer2.c: New file.
47378         * modules/popen-tests (Files): Add test-popen.h.
47379         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47380         Suggested by Bruno Haible.
47381
47382         test-fcntl-safer: split from test-open
47383         * tests/test-open.c (main): Move...
47384         * tests/test-open.h: ...into new file.
47385         * tests/test-fcntl-safer.c: New file.
47386         * modules/open-tests (Files): Add test-open.h.
47387         * modules/fcntl-safer-tests: New file.
47388         Suggested by Bruno Haible.
47389
47390         test-fopen-safer: split from test-fopen
47391         * tests/test-fopen.c (main): Move...
47392         * tests/test-fopen.h: ...into new file.
47393         * tests/test-fopen-safer.c: New file.
47394         * modules/fopen-tests (Files): Add test-fopen.h.
47395         * modules/fopen-safer-tests: New file.
47396         Suggested by Bruno Haible.
47397
47398 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47399
47400         popen-safer: test O_CLOEXEC at run-time.
47401         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47402
47403 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47404
47405         fcntl: move more flags to the header
47406         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47407         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47408         * lib/fcntl.in.h: Do both things here.
47409
47410 2009-08-21  Jim Meyering  <meyering@redhat.com>
47411
47412         consistently remove $@-t before redirecting to it
47413         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47414         * modules/alloca-opt: Likewise.
47415         * modules/byteswap: Likewise.
47416         * modules/fnmatch: Likewise.
47417         * modules/getopt-posix: Likewise.
47418         * modules/glob: Likewise.
47419         * modules/poll: Likewise.
47420         * modules/posix_spawnp-tests: Likewise.
47421         * modules/sys_socket: Likewise.
47422         * modules/sysexits: Likewise.
47423
47424 2009-08-21  Eric Blake  <ebb9@byu.net>
47425
47426         popen: simplify access to original popen
47427         * lib/popen.c (rpl_popen): No need to worry about popen being a
47428         macro.
47429         Reported by Bruno Haible.
47430
47431 2009-08-20  Eric Blake  <ebb9@byu.net>
47432
47433         build: avoid some compiler warnings
47434         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47435         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47436         type.
47437         (new_exclude_segment, excluded_file_pattern_p)
47438         (excluded_file_name_p): Reduce scope.
47439         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47440         old-style declaration.
47441
47442 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47443
47444         * tests/test-exclude1.sh: Handle Windows EOL.
47445         * tests/test-exclude2.sh: Likewise.
47446         * tests/test-exclude3.sh: Likewise.
47447         * tests/test-exclude4.sh: Likewise.
47448         * tests/test-exclude5.sh: Likewise.
47449         * tests/test-exclude6.sh: Likewise.
47450         * tests/test-exclude7.sh: Likewise.
47451
47452 2009-08-19  Akim Demaille  <demaille@gostai.com>
47453
47454         bootstrap: find sha1sum when named gsha1sum.
47455         * bootstrap (find_tool): New.
47456         ($SHA1SUM): New.
47457         Use it.
47458
47459 2009-08-20  Jim Meyering  <meyering@redhat.com>
47460
47461         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47462         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47463         expression that converts "." in a file name to "\." in the resulting
47464         regexp.  Start with a dummy statement, so that prior shell variable
47465         definitions are expanded portably.  Reported by Simon Josefsson.
47466
47467 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47468
47469         Fix polling for writeability of a screen buffer.
47470         * lib/poll.c: Distinguish input and screen buffers for the
47471         Win32 implementation.
47472         * lib/select.c: Likewise.
47473
47474 2009-08-19  Eric Blake  <ebb9@byu.net>
47475
47476         popen-safer: prevent popen from clobbering std descriptors
47477         * modules/popen-safer: New file.
47478         * lib/popen-safer.c: Likewise.
47479         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47480         * lib/stdio--.h (popen): Provide override.
47481         * lib/stdio-safer.h (popen_safer): Provide declaration.
47482         * tests/test-popen.c (includes): Partially test this.
47483         * modules/popen-safer-tests: New file, for more tests.
47484         * tests/test-popen-safer.c: Likewise.
47485         * MODULES.html.sh (file stream based Input/Output): Mention it.
47486
47487         tests: test some of the *-safer modules
47488         * modules/fopen-safer (Depends-on): Add fopen.
47489         * modules/fcntl-safer (Depends-on): Add fcntl.
47490         * modules/stdlib-safer (Depends-on): Add stdlib.
47491         (configure.ac): Set indicator.
47492         * modules/unistd-safer (configure.ac): Likewise.
47493         * modules/tmpfile-safer (configure.ac): Likewise.
47494         (Depends-on): Add tmpfile.
47495         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47496         active.
47497         * tests/test-fopen.c (includes): Test safer versions when they are
47498         in use.
47499         * tests/test-open.c (includes): Likewise.
47500
47501         popen: fix cygwin 1.5 bug when stdin closed
47502         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47503         * modules/popen: New file.
47504         * modules/popen-tests: Likewise.
47505         * tests/test-popen.c: Likewise.
47506         * m4/popen.m4: Likewise.
47507         * lib/popen.c: Likewise.
47508         * lib/stdio.in.h (popen): New declaration.
47509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47510         * modules/stdio (Makefile.am): Likewise.
47511         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47512
47513 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47514
47515         maint.mk: give full control over update-copyright exclusions
47516         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47517         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47518         (update-copyright): Don't force inclusion of top-level
47519         ChangeLog.  Don't force exclusion of all COPYING files, but make
47520         them the default exclusion instead.
47521
47522 2009-08-16  Bruno Haible  <bruno@clisp.org>
47523
47524         Fix test failures on Solaris 10.
47525         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47526         tests when Solaris iconv() is used.
47527         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47528         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47529         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47530         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47531         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47532
47533 2009-08-16  Bruno Haible  <bruno@clisp.org>
47534
47535         Fix test failures on Solaris 10.
47536         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47537         'tr' program and pass it as first argument.
47538         * tests/test-pipe-filter-gi1.sh: Likewise.
47539         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47540         program as first argument.
47541         * tests/test-pipe-filter-gi1.c (main): Likewise.
47542
47543 2009-08-16  Eric Blake  <ebb9@byu.net>
47544
47545         fpurge: fix previous commits
47546         * modules/fpurge (Makefile.am): Make replacement conditional,
47547         partially reverting 2007-04-29 change; missed in previous
47548         attempt.
47549         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47550         is missing.
47551
47552 2009-08-16  Bruno Haible  <bruno@clisp.org>
47553
47554         Clarify fpurge's effect on the file position.
47555         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47556         * tests/test-fpurge.c (main): Make a second pass for checking the file
47557         position.
47558
47559 2009-08-16  Bruno Haible  <bruno@clisp.org>
47560
47561         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47562         declaration of fpurge is missing.
47563         * tests/test-fpurge.c (main): Check that the file has not more contents
47564         than expected. Close the file before removing it.
47565
47566 2009-08-15  Eric Blake  <ebb9@byu.net>
47567
47568         fpurge: don't wrap working cygwin implementation
47569         * lib/fpurge.c (fpurge): Fix comment typo.
47570         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47571         1.7 to avoid replacement.
47572         * tests/test-fpurge.c (main): Enhance test.
47573
47574 2009-08-15  Eric Blake  <ebb9@byu.net>
47575         and Jim Meyering  <meyering@redhat.com>
47576
47577         test-update-copyright: skip if perl is insufficient
47578         * tests/test-update-copyright.sh: Failure to run maintainer tool
47579         should not cause testsuite failure on cygwin 1.5.
47580
47581 2009-08-14  Eric Blake  <ebb9@byu.net>
47582
47583         doc: mention more functions added in cygwin 1.7.0
47584         * doc/posix-headers/limits.texi (limits.h): Update for recent
47585         cygwin additions.
47586         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47587         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47588         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47589         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47590         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47591
47592 2009-08-14  Eric Blake  <ebb9@byu.net>
47593
47594         maint.mk: simplify update-copyright rule
47595         * top/maint.mk (update-copyright-local): Delete, and document how
47596         to do it in cfg.mk instead.
47597         (update-copyright-exclude-regexp): Delete, and document how to do
47598         it in .x-update-copyright instead.
47599         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47600         exclude ChangeLog.
47601
47602 2009-08-14  Bruno Haible  <bruno@clisp.org>
47603
47604         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47605
47606 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47607
47608         maint.mk: support update-copyright-env
47609         * top/maint.mk (update-copyright-env): Define place-holder.
47610         (update-copyright): Expand $(update-copyright-env) before
47611         invoking update-copyright.
47612
47613 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47614
47615         update-copyright: implement forced reformatting
47616         * build-aux/update-copyright: Implement and document
47617         UPDATE_COPYRIGHT_FORCE.
47618         * tests/test-update-copyright.sh: Test it.
47619
47620 2009-08-14  Eric Blake  <ebb9@byu.net>
47621         and Bruno Haible  <bruno@clisp.org>
47622
47623         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47624         * tests/test-locale.c: Revert previous patch related to NULL.
47625         * tests/test-stdio.c: Likewise.
47626         * tests/test-stdlib.c: Likewise.
47627         * tests/test-string.c: Likewise.
47628         * tests/test-unistd.c: Likewise.
47629         * modules/time-tests (Depends-on): Add verify.
47630         * modules/wchar-tests (Depends-on): Likewise.
47631         * tests/test-time.c: Test for NULL compliance.
47632         * tests/test-wchar.c: Likewise.
47633         * modules/locale (Depends-on): Add stddef.
47634         * modules/stdio (Depends-on): Likewise.
47635         * modules/stdlib (Depends-on): Likewise.
47636         * modules/string (Depends-on): Likewise.
47637         * modules/time (Depends-on): Likewise.
47638         * modules/unistd (Depends-on): Likewise.
47639         * modules/wchar (Depends-on): Likewise.
47640         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47641         * lib/stdlib.in.h (includes): Likewise.
47642         * lib/string.in.h (includes): Likewise.
47643         * lib/time.in.h (includes): Likewise.
47644         * lib/unistd.in.h (includes): Likewise.
47645         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47646         replaced.
47647         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47648         * m4/stddef_h.m4: New file.
47649         * modules/stddef: Likewise.
47650         * lib/stddef.in.h: Likewise.
47651         * modules/stddef-tests: Likewise.
47652         * tests/test-stddef.c: Likewise.
47653         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47654         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47655         * doc/posix-headers/locale.texi (locale.h): Likewise.
47656         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47657         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47658         * doc/posix-headers/string.texi (string.h): Likewise.
47659         * doc/posix-headers/time.texi (time.h): Likewise.
47660         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47661         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47662
47663 2009-08-14  Eric Blake  <ebb9@byu.net>
47664
47665         doc: improve git diff of texinfo files
47666         * .gitattributes: Add rule for *.texi files, with hint on how to
47667         use it.
47668         Copied from m4, and based on a report by Bruno Haible.
47669
47670 2009-08-14  Bruno Haible  <bruno@clisp.org>
47671
47672         Disable multithread support by default on Cygwin 1.5.x for real.
47673         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47674
47675 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47676
47677         update-copyright: much ado about intervals
47678         * build-aux/update-copyright: Implement and document
47679         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47680         of copyright year intervals.
47681         Also, document UPDATE_COPYRIGHT_YEAR.
47682         * tests/test-update-copyright.sh: Test it.
47683
47684         update-copyright: convert 2-digit to 4-digit years
47685         * build-aux/update-copyright: Implement and document.
47686         * tests/test-update-copyright.sh: Update.
47687
47688 2009-08-14  Jim Meyering  <meyering@redhat.com>
47689
47690         test-exclude: avoid coreutils "make check" failure
47691         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47692         just as in test-argmatch.c.
47693
47694 2009-08-13  Eric Blake  <ebb9@byu.net>
47695
47696         test-dup2: fix bad assumption
47697         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47698         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47699
47700         test-version-etc: fix CRLF portability issue
47701         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47702         recognize \r.
47703         * tests/test-argp-version-etc-1.sh: Likewise.
47704
47705         getopt: update client modules
47706         * modules/argp (Depends-on): Use getopt-gnu.
47707         * modules/git-merge-changelog (Depends-on): Likewise.
47708         * modules/long-options (Depends-on): Likewise.
47709         * modules/xstrtol (Depends-on): Likewise.
47710
47711 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47712
47713         * tests/test-version-etc.sh: Don't fail on different
47714         project/version.  Don't fail on CRLF differences.  Rewrite to use
47715         multiple -e instead of multiple sed forks, suggested by Eric Blake
47716         <ebb9@byu.net>.
47717         * tests/test-argp-version-etc-1.sh: Likewise.
47718
47719 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47720
47721         * tests/test-version-etc.sh: Don't fail on different
47722         project/version.
47723
47724 2009-08-12  Bruno Haible  <bruno@clisp.org>
47725
47726         Tests for modules 'getopt-posix', 'getopt-gnu'.
47727         * modules/getopt-posix-tests: New file.
47728         * tests/test-getopt.c: New file.
47729         * tests/test-getopt.h: New file.
47730         * tests/test-getopt_long.h: New file.
47731
47732         New modules 'getopt-posix', 'getopt-gnu'.
47733         * modules/getopt-gnu: New file, renamed from modules/getopt.
47734         * modules/getopt-posix: New file.
47735         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47736         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47737         (gl_GETOPT): Remove macro.
47738         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47739         Disable the test against BSD systems that declare optreset. Test
47740         against mingw bug. Test against lack of support of optional arguments
47741         on many platforms.
47742         * doc/glibc-headers/getopt.texi: Update module name and list of
47743         relevant platforms.
47744         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47745         'getopt-gnu' and more portability problems.
47746         * NEWS: Mention the changes.
47747
47748 2009-08-12  Bruno Haible  <bruno@clisp.org>
47749
47750         Ensure that optarg etc. get declared by <unistd.h>.
47751         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47752         AC_USE_SYSTEM_EXTENSIONS.
47753         * modules/getopt (Depends-on): Add 'extensions'.
47754
47755 2009-08-12  Bruno Haible  <bruno@clisp.org>
47756
47757         Avoid test link errors.
47758         * modules/pipe-filter-ii-tests (Makefile.am): Define
47759         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47760         * modules/pipe-filter-gi-tests (Makefile.am): Define
47761         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47763
47764 2009-08-12  Bruno Haible  <bruno@clisp.org>
47765
47766         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47767         gl_GETOPT_SUBSTITUTE before.
47768         (gl_GETOPT): Use it.
47769         * m4/argp.m4 (gl_ARGP): Update.
47770         Reported by Sergey Poznyakoff.
47771
47772         * m4/getopt.m4: Reorder macros.
47773         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47774         (gl_GETOPT_SUBSTITUTE): Remove macro.
47775
47776 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47777
47778         Minor improvement in gitlog-to-changelog
47779
47780         * build-aux/gitlog-to-changelog: New option `--format' makes
47781         output format string configurable.
47782
47783 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47784
47785         Optimize exclude: use hash tables for non-wildcard patterns.
47786
47787         * lib/exclude.c: Include hash.h and mbuiter.h
47788         (struct exclude_pattern, exclude_segment): New data types.
47789         (struct exclude): Rewrite.
47790         (fnmatch_pattern_has_wildcards): New function.
47791         (new_exclude_segment, free_exclude_segment): New functions.
47792         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47793         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47794         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47795         * modules/exclude: Depend on hash and mbuiter.
47796
47797         * modules/exclude-tests: New file.
47798         * tests/test-exclude.c: New file.
47799         * tests/test-exclude1.sh: New file.
47800         * tests/test-exclude2.sh: New file.
47801         * tests/test-exclude3.sh: New file.
47802         * tests/test-exclude4.sh: New file.
47803         * tests/test-exclude5.sh: New file.
47804         * tests/test-exclude6.sh: New file.
47805         * tests/test-exclude7.sh: New file.
47806
47807 2009-08-12  Bruno Haible  <bruno@clisp.org>
47808
47809         Ensure that getopt() gets declared by <unistd.h>.
47810         * lib/unistd.in.h: Conditionally include getopt.h.
47811         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47812         Set GNULIB_UNISTD_H_GETOPT.
47813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47814         GNULIB_UNISTD_H_GETOPT.
47815         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47816
47817 2009-08-12  Bruno Haible  <bruno@clisp.org>
47818
47819         Clarify logic.
47820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47821         gl_replace_getopt instead of GETOPT_H.
47822
47823 2009-08-12  Bruno Haible  <bruno@clisp.org>
47824
47825         * m4/getopt.m4: Add comments.
47826
47827 2009-08-12  Bruno Haible  <bruno@clisp.org>
47828
47829         Disable multithread support by default on Cygwin 1.5.x.
47830         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47831         set gl_use_threads=no if not specified otherwise.
47832
47833 2009-08-11  Bruno Haible  <bruno@clisp.org>
47834
47835         Avoid compilation error on NetBSD 5.0.
47836         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47837         * tests/test-stdio.c: Likewise.
47838         * tests/test-stdlib.c: Likewise.
47839         * tests/test-string.c: Likewise.
47840         * tests/test-unistd.c: Likewise.
47841         Reported by Greg Troxel <gdt@ir.bbn.com>
47842         at <https://savannah.gnu.org/support/?106973>.
47843
47844 2009-08-11  Bruno Haible  <bruno@clisp.org>
47845
47846         * modules/dup2-tests (Depends-on): Remove close.
47847
47848         Undo 2009-07-19 commit.
47849         * modules/acl-tests (Depends-on): Remove close.
47850         * modules/binary-io-tests (Depends-on): Likewise.
47851         * modules/closein-tests (Depends-on): Likewise.
47852         * modules/flock-tests (Depends-on): Likewise.
47853         * modules/fsync-tests (Depends-on): Likewise.
47854         * modules/lseek-tests (Depends-on): Likewise.
47855         * modules/pipe-tests (Depends-on): Likewise.
47856         * modules/posix_spawn-tests (Depends-on): Likewise.
47857         * modules/posix_spawnp-tests (Depends-on): Likewise.
47858         * modules/stat-time-tests (Depends-on): Likewise.
47859         * modules/yesno-tests (Depends-on): Likewise.
47860
47861 2009-08-10  Bruno Haible  <bruno@clisp.org>
47862
47863         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
47864
47865 2009-08-10  Bruno Haible  <bruno@clisp.org>
47866
47867         Fix a gcc warning.
47868         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
47869
47870 2009-08-10  Bruno Haible  <bruno@clisp.org>
47871
47872         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
47873         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
47874         not only the first time.
47875         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
47876         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
47877         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
47878         is 1, not only the the first time.
47879
47880 2009-08-10  Bruno Haible  <bruno@clisp.org>
47881
47882         Make it possible to use module 'gethostname' without module 'close'.
47883         * lib/unistd.in.h (close): Evoke a link error only if
47884         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47886         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47887         * modules/unistd (Makefile.am): Substitute
47888         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47889         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
47890         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47891         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47892         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47893         * modules/sys_ioctl (Makefile.am): Substitute
47894         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47895         * modules/socket (configure.ac): On native Windows, set
47896         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
47897         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47898         Reported by Sam Steingold <sds@gnu.org>.
47899
47900 2009-08-10  Bruno Haible  <bruno@clisp.org>
47901
47902         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
47903         * modules/ioctl (configure.ac): Likewise.
47904
47905 2009-08-10  Bruno Haible  <bruno@clisp.org>
47906
47907         Avoid collision between gnulib wrapper and libintl wrapper.
47908         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
47909         already defined in intl/printf.c.
47910         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47911         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47912
47913 2009-08-09  Bruno Haible  <bruno@clisp.org>
47914
47915         Make <sys/select.h> really self-contained, also on Solaris 10.
47916         * lib/sys_select.in.h: Include <string.h>.
47917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47918         Solaris 10 problem.
47919         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47920         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47921         Reported by Jim Meyering.
47922
47923 2009-08-09  Bruno Haible  <bruno@clisp.org>
47924
47925         Avoid warnings from 'aclocal' that are due to a use of macro name
47926         AM_XGETTEXT_OPTION that is not defined in automake.
47927         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47928         automake.
47929         * modules/error (configure.ac): Likewise.
47930         * modules/propername (configure.ac): Likewise.
47931         * modules/vasprintf (configure.ac): Likewise.
47932         * modules/verror (configure.ac): Likewise.
47933         * modules/xprintf (configure.ac): Likewise.
47934         * modules/xvasprintf (configure.ac): Likewise.
47935
47936 2009-08-08  Bruno Haible  <bruno@clisp.org>
47937
47938         Avoid compilation error in C++ mode.
47939         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47940         Reported by Sam Steingold <sds@gnu.org>.
47941
47942 2009-08-08  Bruno Haible  <bruno@clisp.org>
47943
47944         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47945         for the various Unix platforms.
47946         * doc/posix-headers/limits.texi: Update platforms list regarding
47947         HOST_NAME_MAX.
47948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47949
47950 2009-08-07  Jim Meyering  <meyering@redhat.com>
47951
47952         selinux-at: fix typo in a comment
47953         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47954         Spotted by Paolo Bonzini.
47955
47956         selinux-at: remove redundant m4 code, add documentation
47957         * modules/selinux-at (configure.ac): Remove redundant code.
47958         LIB_SELINUX is already set via the dependent module, selinux-h.
47959         (Include): Add quotes around selinux-at.h.
47960         * lib/selinux-at.h: Add documentation.
47961         Reported by Bruno Haible in
47962         http://marc.info/?l=gnulib-bug&m=124958988300749
47963
47964 2009-08-07  Bruno Haible  <bruno@clisp.org>
47965
47966         Avoid link error on MacOS X 10.3 and 10.4.
47967         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47968         on non-ELF systems.
47969         * lib/argp-pv.c (argp_program_version): Likewise.
47970         Reported by Simon Josefsson.
47971
47972 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47973
47974         * tests/test-version-etc.sh: Use $EXEEXT.
47975
47976 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47977
47978         update-copyright: update documentation to point to maint.mk
47979         * build-aux/update-copyright: Here.
47980
47981 2009-08-06  Jim Meyering  <meyering@redhat.com>
47982
47983         maint.mk: support update-copyright-local
47984         * top/maint.mk (update-copyright-local): Define place-holder.
47985         (update-copyright): Depend on $(update-copyright-local).
47986
47987 2009-08-06  Jim Meyering  <meyering@redhat.com>
47988
47989         selinux-at: new module
47990         Initially written for coreutils, this module will soon be
47991         used by findutils, too.
47992         * MODULES.html.sh [Misc]: Add selinux-at.
47993         * lib/selinux-at.h: New file, from coreutils.
47994         * lib/selinux-at.c: Likewise.
47995         * modules/selinux-at: Likewise.
47996         (License): Change from LGPL to GPL, since it depends
47997         on the GPL'd openat module.
47998
47999         doc: update README
48000         * README: Remove references to cogito.
48001         Remove cvs-repo-updating instructions from 2007.
48002         Don't imply that CVS is better if you have limited disk space.
48003
48004 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48005
48006         update-copyright: support C-style comments
48007         * build-aux/update-copyright: Implement and document.
48008         * tests/test-update-copyright.sh: Test.
48009
48010 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48011
48012         update-copyright: support omitted "(C)"
48013         * build-aux/update-copyright: Implement and document.  Also,
48014         allow variable whitespace before "(C)".
48015         * tests/test-update-copyright.sh: Test.
48016
48017 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48018
48019         update-copyright: don't trip on non-FSF copyright statements
48020         * build-aux/update-copyright: Fix so that the first correctly
48021         formatted FSF copyright statement is recognized no matter what
48022         appears before it.  Update documentation.
48023         * tests/test-update-copyright.sh: Test that.
48024
48025 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48026
48027         update-copyright: clean up code a little
48028         * build-aux/update-copyright: Append "_re" to the name of any
48029         variable holding a regular expression.
48030         Replace "old" and "new" with "stmt" in variable names.
48031         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48032         handled correctly.
48033         Format code more consistently.
48034
48035 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48036
48037         update-copyright-tests: improve portability
48038         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48039         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48040
48041 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48042
48043         update-copyright: support @copyright{} and &copy;
48044         * build-aux/update-copyright: Implement and document.
48045         * tests/test-update-copyright.sh: Test.
48046
48047 2009-08-04  Jim Meyering  <meyering@redhat.com>
48048
48049         update-copyright-tests: correctly test EOL=\r\n handling
48050         * tests/test-update-copyright.sh: Put \r at the end of some lines
48051         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48052
48053         maint.mk: make update-copyright exclusion list more configurable
48054         * top/maint.mk (update-copyright): Default to excluding COPYING,
48055         but allow an override, in case someone does want to update that file.
48056
48057         maint.mk: don't update copyright date in COPYING
48058         * top/maint.mk (update-copyright): Exclude COPYING.
48059
48060         maint.mk: add a copyright-updating rule
48061         * top/maint.mk (update-copyright): New rule.
48062         Derived from coreutils/Makefile.am.
48063
48064         update-copyright: rename some variables
48065         * build-aux/update-copyright: Rename a few variables for clarity.
48066         Tweak syntax.  List Joel E. Denny as coauthor.
48067
48068 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48069
48070         update-copyright: fix bug for 2-digit last year and add tests
48071         * build-aux/update-copyright: Fix bug.
48072         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48073         specified.
48074         * modules/update-copyright-tests: New
48075         * tests/test-update-copyright.sh: New.
48076
48077 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48078
48079         update-copyright: handle leading tabs in line prefix
48080         * build-aux/update-copyright: Count leading tabs as 8 spaces
48081         when computing margin.  This helps with the formatting of
48082         ChangeLogs, for example.
48083         Fix documentation a little.
48084
48085 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48086
48087         update-copyright: support EOL=\r\n
48088         * build-aux/update-copyright: Implement that.
48089
48090 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48091
48092         update-copyright: automatically format copyright statements
48093         * build-aux/update-copyright: Implement that.
48094         Also, be a little more predictable and safer by always failing
48095         when the full copyright format is not perfectly recognized as an
48096         unbroken whole.  Discussed at
48097         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48098         Rewrite documentation.
48099
48100 2009-08-03  Bruno Haible  <bruno@clisp.org>
48101
48102         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48103
48104 2009-08-02  Bruno Haible  <bruno@clisp.org>
48105
48106         Tests for module 'uname'.
48107         * modules/uname-tests: New file.
48108         * tests/test-uname.c: New file.
48109
48110         New module 'uname'.
48111         * lib/uname.c: New file.
48112         * m4/uname.m4: New file.
48113         * modules/uname: New file.
48114         * doc/posix-functions/uname.texi: Mention the new module.
48115
48116 2009-08-02  Bruno Haible  <bruno@clisp.org>
48117
48118         Tests for module 'sys_utsname'.
48119         * modules/sys_utsname-tests: New file.
48120         * tests/test-sys_utsname.c: New file.
48121
48122         New module 'sys_utsname'.
48123         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48124         * m4/sys_utsname_h.m4: New file.
48125         * modules/sys_utsname: New file.
48126         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48127
48128 2009-08-02  Bruno Haible  <bruno@clisp.org>
48129
48130         Implicitly initialize the sockets library.
48131         * lib/gethostname.c: Include sockets.h.
48132         (rpl_gethostname): Invoke gl_sockets_startup.
48133         * lib/socket.c: Include sockets.h.
48134         (rpl_socket): Invoke gl_sockets_startup.
48135         * modules/gethostname (Depends-on): Add sockets.
48136         * modules/socket (Depends-on): Likewise.
48137         * tests/test-poll.c: Don't include sockets.h.
48138         (main): Don't invoke gl_sockets_startup.
48139         * tests/test-select.c: Don't include sockets.h.
48140         (main): Don't invoke gl_sockets_startup.
48141
48142 2009-08-02  Bruno Haible  <bruno@clisp.org>
48143
48144         Allow multiple calls to gl_sockets_startup.
48145         * lib/sockets.c (initialized_sockets_version): New variable.
48146         (gl_sockets_startup): Do nothing if already called for this or a higher
48147         version.
48148         (gl_sockets_cleanup): Reset initialized_sockets_version.
48149
48150 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48151
48152         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48153         different project/version.
48154
48155 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48156             Bruno Haible  <bruno@clisp.org>
48157
48158         Tests for module 'pipe-filter-gi'.
48159         * modules/pipe-filter-gi-tests: New file.
48160         * tests/test-pipe-filter-gi1.sh: New file.
48161         * tests/test-pipe-filter-gi1.c: New file.
48162         * tests/test-pipe-filter-gi2.sh: New file.
48163         * tests/test-pipe-filter-gi2-main.c: New file.
48164         * tests/test-pipe-filter-gi2-child.c: New file.
48165
48166         New module 'pipe-filter-gi'.
48167         * lib/pipe-filter-gi.c: New file.
48168         * modules/pipe-filter-gi: New file.
48169
48170 2009-08-02  Bruno Haible  <bruno@clisp.org>
48171             Paolo Bonzini  <bonzini@gnu.org>
48172
48173         Tests for module 'pipe-filter-ii'.
48174         * modules/pipe-filter-ii-tests: New file.
48175         * tests/test-pipe-filter-ii1.sh: New file.
48176         * tests/test-pipe-filter-ii1.c: New file.
48177         * tests/test-pipe-filter-ii2.sh: New file.
48178         * tests/test-pipe-filter-ii2-main.c: New file.
48179         * tests/test-pipe-filter-ii2-child.c: New file.
48180
48181         New module 'pipe-filter-ii'.
48182         * lib/pipe-filter.h: New file.
48183         * lib/pipe-filter-ii.c: New file.
48184         * lib/pipe-filter-aux.h: New file.
48185         * modules/pipe-filter-ii: New file.
48186
48187 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48188
48189         * lib/gc-libgcrypt.c: Change copyright to FSF.
48190         * lib/gc-gnulib.c: Likewise.
48191
48192 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48193
48194         * lib/gethostname.c: Include limits.h.
48195
48196 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48197             Bruno Haible  <bruno@clisp.org>
48198
48199         Ensure HOST_NAME_MAX as part of the gethostname module.
48200         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48201         define also HOST_NAME_MAX.
48202         * tests/test-gethostname.c: Include <limits.h>.
48203         (main): Check also HOST_NAME_MAX.
48204         * doc/posix-headers/limits.texi: Document the mingw problem.
48205
48206 2009-08-02  Bruno Haible  <bruno@clisp.org>
48207
48208         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48209         Add comments.
48210
48211 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48212
48213         * lib/gethostname.c: Add Windows wrapper.
48214         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48215         * modules/gethostname: Depend on sys_socket & errno, for also
48216         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48217         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48218
48219 2009-07-31  Jim Meyering  <meyering@redhat.com>
48220
48221         getloadavg: fix symbol name in comment
48222         * lib/getloadavg.c: Correct a typo I introduced when adding
48223         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48224         Matt Kraai spotted the problem.
48225
48226 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48227
48228         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48229         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48230         code also if ! defined N_NAME_POINTER.
48231         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48232         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48233         but the n_name member is a 12-byte array.
48234
48235 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48236
48237         update-copyright: generalize comment handling
48238         * build-aux/update-copyright: Handle copyright statements
48239         within more comment styles.
48240         Document usage.
48241         Report any file with an external copyright holder or parse failure.
48242
48243 2009-07-29  Jim Meyering  <meyering@redhat.com>
48244
48245         mktime: correct setting of REPLACE_MKTIME
48246         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48247
48248         update-copyright: new module
48249         * modules/update-copyright: New file.
48250         * build-aux/update-copyright: New file.
48251         * MODULES.html.sh (maint+release support): Add update-copyright.
48252
48253 2009-07-27  Bruno Haible  <bruno@clisp.org>
48254
48255         Fix compilation error when <ctime> is used and mktime is replaced.
48256         * lib/time.in.h (mktime): New declaration.
48257         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48258         REPLACE_MKTIME instead of defining mktime in config.h.
48259         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48260         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48261         Reported by Ross McFarland <rwmcfa1@neces.com>.
48262
48263 2009-07-27  Bruno Haible  <bruno@clisp.org>
48264
48265         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48266         Reported by Matt Kraai <mkraai@beckman.com>.
48267
48268 2009-07-25  Jim Meyering  <meyering@redhat.com>
48269
48270         maint.mk: avoid warnings about missing files
48271         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48272         diagnostic when .prev-version does not exist.
48273         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48274         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48275         nonexistent cfg.mk.
48276         Suggestions from Simon Josefsson.
48277
48278 2009-07-25  Bruno Haible  <bruno@clisp.org>
48279
48280         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48281         defined as macros. Needed on QNX 6.4.1.
48282         Reported by Matt Kraai <mkraai@beckman.com>.
48283
48284 2009-07-23  Jim Meyering  <meyering@redhat.com>
48285
48286         maint.mk: invoke "make dist" with a working value of XZ_OPT
48287         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48288
48289 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48290
48291         Make fseeko.c compile on QNX.
48292         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48293
48294 2009-07-22  Peter Simons  <simons@cryp.to>
48295
48296         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48297         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48298         * lib/md4.h: Likewise.
48299         * lib/md5.h: Likewise.
48300         * lib/sha1.h: Likewise.
48301         * lib/sha256.h: Likewise.
48302         * lib/sha512.h: Likewise.
48303
48304         tests-sha1: don't assign literal string to 'char *' variable
48305         * tests/test-sha1.c (main): Declare locals with "const" to match
48306         attributes of the right hand side.
48307
48308 2009-07-21  Eric Blake  <ebb9@byu.net>
48309
48310         dup2: fix more mingw problems
48311         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48312         fd to itself.
48313         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48314         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48315         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48316         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48317         care of mingw bugs.
48318
48319 2009-07-21  Jim Meyering  <meyering@redhat.com>
48320
48321         vc-list-files: avoid failure when /bin/sh is dash
48322         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48323         On some Debian based systems, /bin/sh is a symlink to dash, and running
48324         this command would omit the "/" following each 'tests' prefix:
48325           dash -x build-aux/vc-list-files -C . tests
48326         That is because bash and dash work differently:
48327           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48328           bash ok
48329           dash odd
48330
48331 2009-07-21  Eric Blake  <ebb9@byu.net>
48332
48333         dup2-tests: test previous patch
48334         * modules/dup2-tests: New file.
48335         * tests/test-dup2.c: Likewise.
48336         * tests/test-open.c (main): Avoid unspecified behavior.
48337         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48338         test.
48339
48340         dup2: work around mingw and cygwin 1.5 bug
48341         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48343         * modules/unistd (Makefile.am): Substitute it.
48344         * lib/unistd.in.h (dup2): Declare the replacement.
48345         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48346         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48347         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48348         * modules/execute (Depends-on): Add dup2.
48349         * modules/fseterr (Depends-on): Likewise.
48350         * modules/pipe (Depends-on): Likewise.
48351         * modules/posix_spawn-internal (Depends-on): Likewise.
48352
48353 2009-07-21  Bruno Haible  <bruno@clisp.org>
48354
48355         * modules/.gitattributes: New file.
48356
48357 2009-07-20  Bruno Haible  <bruno@clisp.org>
48358
48359         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48360         (main): Use it.
48361
48362 2009-07-20  Eric Blake  <ebb9@byu.net>
48363
48364         test-pipe: make a bit more robust.
48365         * tests/test-pipe.c (myerr): Allow error messages regardless of
48366         what we do to stderr.
48367         (test_pipe): Rearrange to avoid deadlock.
48368         (child_main): Try a larger read, to ensure we avoided deadlock.
48369         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48370         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48371         if misused.
48372
48373 2009-07-19  Jim Meyering  <meyering@redhat.com>
48374
48375         fts: avoid false-positive cycle-detection
48376         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48377         for each new command line argument.
48378
48379 2009-07-19  Bruno Haible  <bruno@clisp.org>
48380
48381         Fix build error on mingw with the modules sys_select and unistd.
48382         * modules/acl-tests (Depends-on): Add close.
48383         * modules/binary-io-tests (Depends-on): Likewise.
48384         * modules/closein-tests (Depends-on): Likewise.
48385         * modules/flock-tests (Depends-on): Likewise.
48386         * modules/fsync-tests (Depends-on): Likewise.
48387         * modules/lseek-tests (Depends-on): Likewise.
48388         * modules/pipe-tests (Depends-on): Likewise.
48389         * modules/posix_spawn-tests (Depends-on): Likewise.
48390         * modules/posix_spawnp-tests (Depends-on): Likewise.
48391         * modules/stat-time-tests (Depends-on): Likewise.
48392         * modules/yesno-tests (Depends-on): Likewise.
48393
48394 2009-07-19  Bruno Haible  <bruno@clisp.org>
48395
48396         Unify conditionals.
48397         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48398         macros, not at the compiler macros.
48399         * lib/pipe.c: Likewise.
48400         * lib/execute.c: Likewise.
48401         * lib/spawni.c: Likewise.
48402
48403 2009-07-19  Bruno Haible  <bruno@clisp.org>
48404
48405         Fix handling of closed stdin/stdout/stderr on mingw.
48406         * lib/w32spawn.h: Include unistd.h.
48407         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48408         file descriptor with O_NOINHERIT flag.
48409         (fd_safer_noinherit): New function, based on fd-safer.c.
48410         (dup_safer_noinherit): New function, based on dup-safer.c.
48411         (undup_safer_noinherit): New function.
48412         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48413         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48414         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48415         instead of fd_safer.
48416         * tests/test-pipe.c: Include <windows.h>.
48417         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48418         result.
48419
48420         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48421         from main.
48422         (test_pipe): Pass an extra argument for disambiguation.
48423         (main): Invoke parent_main or child_main.
48424
48425         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48426         consistently.
48427
48428 2009-07-18  Eric Blake  <ebb9@byu.net>
48429
48430         test-pipe: fix mingw build
48431         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48432
48433 2009-07-18  Bruno Haible  <bruno@clisp.org>
48434
48435         * modules/pipe-tests (Makefile.am): Fix typo.
48436
48437 2009-07-18  Eric Blake  <ebb9@byu.net>
48438
48439         error: fix mingw build
48440         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48441         Reported by Bruno Haible.
48442
48443         error: avoid undefined use of stdout
48444         * lib/error.c (error, error_at_line): Check that fd 1 is open
48445         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48446         is handling faults and the close_stdout module wants to report the
48447         detection of closed stdout as an error.
48448
48449 2009-07-17  Eric Blake  <ebb9@byu.net>
48450
48451         pipe: be robust in face of closed fds
48452         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48453         should cause child to misbehave.
48454         * modules/pipe-tests: New module.
48455         * tests/test-pipe.c: New file.
48456         * tests/test-pipe.sh: New file.
48457         Reported by Akim Demaille.
48458
48459 2009-07-14  Bruno Haible  <bruno@clisp.org>
48460
48461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48462         Reported by anonymous kc.
48463
48464 2009-07-07  Jim Meyering  <meyering@redhat.com>
48465
48466         maint.mk: don't look for translatable strings in *.m4 or *.mk
48467         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48468         when searching for translatable strings.
48469
48470 2009-07-05  Jim Meyering  <meyering@redhat.com>
48471
48472         remove superfluous parentheses in STREQ definition
48473         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48474         * lib/getugroups.c (STREQ): Likewise.
48475         * lib/fnmatch.c (STREQ): Likewise.
48476         Spotted by Bruno Haible.
48477
48478 2009-07-04  Jim Meyering  <meyering@redhat.com>
48479
48480         argv-iter: new module
48481         * MODULES.html.sh: Add argv-iter.
48482         * lib/argv-iter.c, lib/argv-iter.h: New files.
48483         * modules/argv-iter: New file.
48484         * modules/argv-iter-tests: New file.
48485         * tests/test-argv-iter.c: Test it.
48486
48487 2009-07-04  Bruno Haible  <bruno@clisp.org>
48488
48489         Fix assertion.
48490         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48491         contains more exact copies of a given entry than file2, leave the extra
48492         copies unpaired rather than aborting.
48493         Reported by Eric Blake.
48494
48495 2009-07-02  Bruno Haible  <bruno@clisp.org>
48496
48497         Speedup git-merge-changelog for git cherry-pick.
48498         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48499         (entries_mapping_get): New function, extracted from compute_mapping.
48500         (entries_mapping_reverse_get): New function.
48501         (compute_mapping): Add a 'full' argument. Return the result in a
48502         'struct entries_mapping'.
48503         (main): Update. Access the mappings through entries_mapping_get.
48504         Reported by Eric Blake.
48505
48506 2009-07-02  Bruno Haible  <bruno@clisp.org>
48507
48508         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48509         best_i.
48510
48511 2009-07-02  Bruno Haible  <bruno@clisp.org>
48512
48513         Speed up approximate search for matching ChangeLog entries.
48514         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48515         argument. Call fstrcmp_bounded instead of fstrcmp.
48516         (compute_mapping, try_split_merged_entry, main): Update callers.
48517
48518 2009-07-02  Bruno Haible  <bruno@clisp.org>
48519
48520         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48521
48522 2009-06-30  Bruno Haible  <bruno@clisp.org>
48523
48524         Reduce the number of uc_is_cased calls.
48525         * lib/unicase.h (casing_suffix_context_t): Add
48526         'first_char_except_ignorable' field.
48527         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48528         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48529         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48530         Update initializer.
48531         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48532         case-ignorable characters.
48533         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48534         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48535         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48536         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48537         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48538
48539 2009-06-30  Bruno Haible  <bruno@clisp.org>
48540
48541         Tests for module 'unicase/ignorable'.
48542         * modules/unicase/ignorable-tests: New file.
48543         * tests/unicase/test-ignorable.c: New file, generated by
48544         gen-uni-tables.
48545
48546         Tests for module 'unicase/cased'.
48547         * modules/unicase/cased-tests: New file.
48548         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48549         * tests/unicase/test-predicate-part1.h: New file, derived from
48550         tests/unictype/test-predicate-part1.h.
48551         * tests/unicase/test-predicate-part2.h: New file, same as
48552         tests/unictype/test-predicate-part2.h.
48553
48554         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48555         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48556         (output_casing_properties): New function.
48557         (main): Call it.
48558         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48559         * lib/unicase/cased.c: Include unictype/bitmap.h.
48560         (uc_is_cased): Define through a bitmap lookup.
48561         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48562         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48563         (uc_is_case_ignorable): Define through a bitmap lookup.
48564         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48565         lib/unictype/bitmap.h.
48566         (Depends-on): Add inline. Clean up.
48567         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48568         lib/unictype/bitmap.h.
48569         (Depends-on): Add inline. Clean up.
48570         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48571         recognition.
48572         * tests/unicase/test-u16-tolower.c (main): Likewise.
48573         * tests/unicase/test-u32-tolower.c (main): Likewise.
48574
48575 2009-06-30  Bruno Haible  <bruno@clisp.org>
48576
48577         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48578         * lib/unicase/u16-casemap.c: Likewise.
48579         * lib/unicase/u32-casemap.c: Likewise.
48580
48581 2009-06-29  Bruno Haible  <bruno@clisp.org>
48582
48583         Define u32_casefold as a wrapper around u32_ct_casefold.
48584         * lib/unicase/u32-casefold.c: Update.
48585         * modules/unicase/u32-casefold (Depends-on): Add
48586         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48587         unicase/empty-suffix-context. Clean up.
48588
48589         Define u16_casefold as a wrapper around u16_ct_casefold.
48590         * lib/unicase/u16-casefold.c: Update.
48591         * modules/unicase/u16-casefold (Depends-on): Add
48592         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48593         unicase/empty-suffix-context. Clean up.
48594
48595         Define u8_casefold as a wrapper around u8_ct_casefold.
48596         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48597         * lib/unicase/u8-casefold.c: Update.
48598         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48599         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48600
48601         Define u32_totitle as a wrapper around u32_ct_totitle.
48602         * lib/unicase/u32-totitle.c: Update.
48603         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48604         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48605
48606         Define u16_totitle as a wrapper around u16_ct_totitle.
48607         * lib/unicase/u16-totitle.c: Update.
48608         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48609         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48610
48611         Define u8_totitle as a wrapper around u8_ct_totitle.
48612         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48613         functions.
48614         (FUNC): Delegate to U_CT_TOTITLE.
48615         * lib/unicase/u8-totitle.c: Update.
48616         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48617         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48618
48619         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48620         invocation.
48621         * modules/unicase/u32-tolower (Depends-on): Add
48622         unicase/empty-prefix-context, unicase/empty-suffix-context.
48623
48624         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48625         invocation.
48626         * modules/unicase/u16-tolower (Depends-on): Add
48627         unicase/empty-prefix-context, unicase/empty-suffix-context.
48628
48629         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48630         * modules/unicase/u8-tolower (Depends-on): Add
48631         unicase/empty-prefix-context, unicase/empty-suffix-context.
48632
48633         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48634         invocation.
48635         * modules/unicase/u32-toupper (Depends-on): Add
48636         unicase/empty-prefix-context, unicase/empty-suffix-context.
48637
48638         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48639         invocation.
48640         * modules/unicase/u16-toupper (Depends-on): Add
48641         unicase/empty-prefix-context, unicase/empty-suffix-context.
48642
48643         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48644         * modules/unicase/u8-toupper (Depends-on): Add
48645         unicase/empty-prefix-context, unicase/empty-suffix-context.
48646
48647         New module 'unicase/u32-ct-casefold'.
48648         * lib/unicase/u32-ct-casefold.c: New file.
48649         * modules/unicase/u32-ct-casefold: New file.
48650
48651         New module 'unicase/u16-ct-casefold'.
48652         * lib/unicase/u16-ct-casefold.c: New file.
48653         * modules/unicase/u16-ct-casefold: New file.
48654
48655         New module 'unicase/u8-ct-casefold'.
48656         * lib/unicase/u8-ct-casefold.c: New file.
48657         * lib/unicase/u-ct-casefold.h: New file, derived from
48658         lib/unicase/u-casefold.h.
48659         * modules/unicase/u8-ct-casefold: New file.
48660
48661         New module 'unicase/u32-ct-totitle'.
48662         * lib/unicase/u32-ct-totitle.c: New file.
48663         * modules/unicase/u32-ct-totitle: New file.
48664
48665         New module 'unicase/u16-ct-totitle'.
48666         * lib/unicase/u16-ct-totitle.c: New file.
48667         * modules/unicase/u16-ct-totitle: New file.
48668
48669         New module 'unicase/u8-ct-totitle'.
48670         * lib/unicase/u8-ct-totitle.c: New file.
48671         * lib/unicase/u-ct-totitle.h: New file, derived from
48672         lib/unicase/u-totitle.h.
48673         * modules/unicase/u8-ct-totitle: New file.
48674
48675         New module 'unicase/u32-ct-tolower'.
48676         * lib/unicase/u32-ct-tolower.c: New file.
48677         * modules/unicase/u32-ct-tolower: New file.
48678
48679         New module 'unicase/u16-ct-tolower'.
48680         * lib/unicase/u16-ct-tolower.c: New file.
48681         * modules/unicase/u16-ct-tolower: New file.
48682
48683         New module 'unicase/u8-ct-tolower'.
48684         * lib/unicase/u8-ct-tolower.c: New file.
48685         * modules/unicase/u8-ct-tolower: New file.
48686
48687         New module 'unicase/u32-ct-toupper'.
48688         * lib/unicase/u32-ct-toupper.c: New file.
48689         * modules/unicase/u32-ct-toupper: New file.
48690
48691         New module 'unicase/u16-ct-toupper'.
48692         * lib/unicase/u16-ct-toupper.c: New file.
48693         * modules/unicase/u16-ct-toupper: New file.
48694
48695         New module 'unicase/u8-ct-toupper'.
48696         * lib/unicase/u8-ct-toupper.c: New file.
48697         * modules/unicase/u8-ct-toupper: New file.
48698
48699         Add context arguments to u*_casemap functions.
48700         * lib/unicase/unicasemap.h: Include unicase.h.
48701         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48702         suffix_context arguments.
48703         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48704         functions.
48705         (FUNC): Add prefix_context and suffix_context arguments. Use
48706         uc_is_cased and uc_is_case_ignorable.
48707         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48708         * lib/unicase/u16-casemap.c: Likewise.
48709         * lib/unicase/u32-casemap.c: Likewise.
48710         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48711         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48712         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48713         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48714         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48715         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48716
48717         New module 'unicase/u32-suffix-context'.
48718         * lib/unicase/u32-suffix-context.c: New file.
48719         * modules/unicase/u32-suffix-context: New file.
48720
48721         New module 'unicase/u16-suffix-context'.
48722         * lib/unicase/u16-suffix-context.c: New file.
48723         * modules/unicase/u16-suffix-context: New file.
48724
48725         New module 'unicase/u8-suffix-context'.
48726         * lib/unicase/u8-suffix-context.c: New file.
48727         * lib/unicase/u-suffix-context.h: New file.
48728         * modules/unicase/u8-suffix-context: New file.
48729
48730         New module 'unicase/empty-suffix-context'.
48731         * lib/unicase/empty-suffix-context.c: New file.
48732         * modules/unicase/empty-suffix-context: New file.
48733
48734         New module 'unicase/u32-prefix-context'.
48735         * lib/unicase/u32-prefix-context.c: New file.
48736         * modules/unicase/u32-prefix-context: New file.
48737
48738         New module 'unicase/u16-prefix-context'.
48739         * lib/unicase/u16-prefix-context.c: New file.
48740         * modules/unicase/u16-prefix-context: New file.
48741
48742         New module 'unicase/u8-prefix-context'.
48743         * lib/unicase/u8-prefix-context.c: New file.
48744         * lib/unicase/u-prefix-context.h: New file.
48745         * lib/unicase/context.h: New file.
48746         * modules/unicase/u8-prefix-context: New file.
48747
48748         New module 'unicase/empty-prefix-context'.
48749         * lib/unicase/empty-prefix-context.c: New file.
48750         * modules/unicase/empty-prefix-context: New file.
48751
48752         New module 'unicase/ignorable'.
48753         * lib/unicase/ignorable.c: New file.
48754         * modules/unicase/ignorable: New file.
48755
48756         New module 'unicase/cased'.
48757         * lib/unicase/caseprop.h: New file.
48758         * lib/unicase/cased.c: New file.
48759         * modules/unicase/cased: New file.
48760
48761         New functions for case mapping of substrings.
48762         * lib/unicase.h (casing_prefix_context_t): New type.
48763         (unicase_empty_prefix_context): New variable.
48764         (u8_casing_prefix_context, u16_casing_prefix_context,
48765         u32_casing_prefix_context, u8_casing_prefixes_context,
48766         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48767         declarations.
48768         (casing_suffix_context_t): New type.
48769         (unicase_empty_suffix_context): New variable.
48770         (u8_casing_suffix_context, u16_casing_suffix_context,
48771         u32_casing_suffix_context, u8_casing_suffixes_context,
48772         u16_casing_suffixes_context, u32_casing_suffixes_context,
48773         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48774         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48775         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48776         declarations.
48777
48778 2009-06-28  Jim Meyering  <meyering@redhat.com>
48779
48780         boostrap: indent only with spaces
48781         * build-aux/bootstrap: Indent only with spaces, never TABs.
48782
48783         bootstrap: split long lines
48784         * build-aux/bootstrap: Keep line length < 80.
48785
48786         bootstrap: sync from coreutils
48787         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48788         just as autoreconf does.  Verify a list of prerequisite
48789         package-name,version-number pairs if defined in bootstrap.conf.
48790         Refer to README-prereq, if prerequisites are not satisfied.
48791
48792 2009-06-27  Eric Blake  <ebb9@byu.net>
48793
48794         tests: add test for bogus NULL definition
48795         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48796         * tests/test-stdlib.c: Likewise.
48797         * tests/test-string.c: Likewise.
48798         * tests/test-locale.c: Likewise.
48799         * tests/test-unistd.c: Likewise.
48800         * modules/stdio-tests (Depends-on): Add verify.
48801         * modules/stdlib-tests (Depends-on): Likewise.
48802         * modules/string-tests (Depends-on): Likewise.
48803         * modules/locale-tests (Depends-on): Likewise.
48804         * modules/unistd-tests (Depends-on): Likewise.
48805
48806 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48807
48808         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48809         self-explaining comment.
48810         * m4/selinux-selinux-h: Update serial.
48811         (gl_LIBSELINUX): New macro, adding a warning for missing development
48812         packages to code extracted from...
48813         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48814         Add warning for missing development packages here, too.
48815
48816 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48817
48818         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48819
48820 2009-06-25  Eric Blake  <ebb9@byu.net>
48821
48822         version-etc: fix regression
48823         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48824         gcc.
48825         (version_etc): Use it, to catch bugs with trailing NULL.
48826         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48827         (version_etc_va): Fix logic bug.
48828         * modules/version-etc-tests: Add test.
48829         * tests/test-version-etc.c: New file.
48830         * tests/test-version-etc.sh: Likewise.
48831
48832 2009-06-25  Sam Steingold  <sds@gnu.org>
48833
48834         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48835         mbtowc declaration.
48836
48837 2009-06-25  Eric Blake  <ebb9@byu.net>
48838
48839         fpurge: migrate into <stdio.h>
48840         * lib/fpurge.h: Delete...
48841         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48842         * lib/fpurge.c (fpurge): Change declaring header.
48843         * modules/fpurge (Files): Drop deleted file.
48844         (Depends-on): Add stdio.
48845         (configure.ac): Set witness.
48846         * modules/stdio (Makefile.am): Support fpurge macros.
48847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48848         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48849         * lib/fflush.c: Update client.
48850         * tests/test-fpurge.c: Likewise.
48851         * NEWS: Mention the change.
48852
48853 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48854
48855         * lib/argp-version-etc.c (program_authors): Add const
48856         qualifier.
48857         * lib/version-etc.c: Fix typos in the comments.
48858         * modules/argp-version-etc: Depends on version-etc.
48859
48860 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48861
48862         argp-version-etc: new module.
48863
48864         * lib/argp-version-etc.c: New file.
48865         * lib/argp-version-etc.h: New file.
48866         * modules/argp-version-etc: New file.
48867         * modules/argp-version-etc-tests: New file.
48868         * tests/test-argp-version-etc.c: New test.
48869         * tests/test-argp-version-etc-1.sh: New test.
48870
48871 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48872
48873         Provide additional interfaces and documentation for version-etc
48874         module.
48875
48876         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
48877         interfaces.
48878         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
48879         prototypes.
48880
48881 2009-06-24  Bruno Haible  <bruno@clisp.org>
48882
48883         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
48884         HAVE_LIB${NAME} macro.
48885         Reported by Sam Steingold <sds@gnu.org>.
48886
48887 2009-06-23  Simon Josefsson  <simon@josefsson.org>
48888
48889         * modules/hash-tests (test_hash_LDADD): Link to libintl when
48890         needed.
48891
48892 2009-06-21  Bruno Haible  <bruno@clisp.org>
48893
48894         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
48895         work.
48896         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
48897         together with LIB${NAME}, LTLIB${NAME}.
48898         Reported by Sam Steingold <sds@gnu.org>.
48899
48900 2009-06-20  Jim Meyering  <meyering@redhat.com>
48901
48902         tests: make sc_require_test_exit_idiom more generic
48903         * top/maint.mk (Exit_witness_file): New overridable variable.
48904         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
48905         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
48906
48907 2009-06-19  Jim Meyering  <meyering@redhat.com>
48908
48909         hash: reverse order of src/dst parameters in an internal interface
48910         * lib/hash.c (transfer_entries): Reverse order of parameters to
48911         put DST before SRC.  Adjust callers.
48912
48913         tests: test-hash: avoid wholesale duplication
48914         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48915         Instead, use a loop and add a single conditional.
48916
48917         tests: test-hash: allow seed selection via a command line argument
48918         * tests/test-hash.c (get_seed): New function.
48919         (main): Use it.
48920
48921 2009-06-19  Eric Blake  <ebb9@byu.net>
48922
48923         hash: avoid memory leak on allocation failure
48924         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48925         failure.  Factor repeated algorithm...
48926         (transfer_entries): ...into new helper routine.
48927         (hash_delete): React to hash_rehash return value.
48928
48929         hash: reduce memory pressure in hash_rehash no-op case
48930         * lib/hash.c (next_prime): Avoid overflow.
48931         (hash_initialize): Factor bucket size computation...
48932         (compute_bucket_size): ...into new helper function.
48933         (hash_rehash): Use new function and open coding to reduce memory
48934         pressure, and avoid a memory leak in USE_OBSTACK code.
48935         Reported by Jim Meyering.
48936
48937 2009-06-18  Eric Blake  <ebb9@byu.net>
48938
48939         hash: make rotation more obvious
48940         * modules/hash (Depends-on): Add bitrotate and stdint.
48941         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48942         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48943         (SIZE_MAX): Rely on headers for definition.
48944         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48945         (raw_hasher): Use rotr_sz.
48946         Suggested by Jim Meyering.
48947
48948         hash: fix memory leak in last patch
48949         * lib/hash.c (hash_rehash): Avoid memory leak.
48950
48951         hash: avoid no-op rehashing
48952         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48953
48954         hash: provide default callback functions
48955         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48956         (hash_initialize): Use them as defaults.
48957         * tests/test-hash.c (main): Test this.
48958
48959         hash: minor optimization
48960         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48961         when possible.
48962         (hash_initialize): Document this promise.
48963         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48964         * tests/test-hash.c (hash_compare_strings): Test this.
48965
48966 2009-06-18  Bruno Haible  <bruno@clisp.org>
48967
48968         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48969         going to be replaced anyway.
48970
48971 2009-06-18  Bruno Haible  <bruno@clisp.org>
48972
48973         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48974         in one place.
48975         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48976         be replaced anyway.
48977
48978 2009-06-18  Eric Blake  <ebb9@byu.net>
48979
48980         hash: check for resize before insertion
48981         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48982         threshold before insertion, so that a pathological hash_rehash
48983         that fills every bucket can still trigger another rehash.
48984
48985 2009-06-18  Jim Meyering  <meyering@redhat.com>
48986
48987         hash-tests: add a loop around the small tests
48988         * tests/test-hash.c (main): Repeat small tests with selected
48989         small initial table sizes.
48990
48991 2009-06-17  Eric Blake  <ebb9@byu.net>
48992
48993         hash: minor cleanups
48994         * lib/hash.h (hash_entry): Make opaque, by moving...
48995         * lib/hash.c (hash_entry): ...here.
48996         (hash_insert): Clarify restrictions on what can be inserted.
48997         (hash_get_next): Clarify when it is safe to remove an element
48998         during traversal.
48999         (check_tuning): Skip verification when tuning is known safe.
49000         (hash_initialize): Clarify restrictions on tuning.
49001
49002 2009-06-17  Jim Meyering  <jim@meyering.net>
49003         and Eric Blake  <ebb9@byu.net>
49004
49005         hash-tests: new module
49006         * modules/hash-tests: New file.
49007         * tests/test-hash.c: New file.
49008
49009 2009-06-17  Eric Blake  <ebb9@byu.net>
49010
49011         strstr-simple: document new module
49012         * MODULES.html.sh: Document new module.
49013
49014         strstr, strcasestr: replace on platforms with broken memchr
49015         * modules/strstr: Split into...
49016         * modules/strstr-simple: ...new module that does not care about
49017         performance, but does care about glibc bug.
49018         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49019         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49020         if platform memchr is broken, per Debian bug 521737.
49021         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49022         memchr.
49023         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49024         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49025         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49026         * modules/mountlist (Depends-on): Add strstr-simple.
49027         * modules/gen-uni-tables (Depends-on): Likewise.
49028         * modules/argz (Depends-on): Add strstr.
49029
49030 2009-06-17  Bruno Haible  <bruno@clisp.org>
49031
49032         * modules/posix_spawn-internal (Depends-on): Add errno.
49033
49034 2009-06-17  Bruno Haible  <bruno@clisp.org>
49035
49036         Define missing ESTALE on Interix 3.5.
49037         * lib/errno.in.h (ESTALE): Assign a value if missing.
49038         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49039         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49040         missing.
49041         * doc/posix-headers/errno.texi: Mention the Interix bug.
49042         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49043
49044 2009-06-15  Eric Blake  <ebb9@byu.net>
49045
49046         memchr, memchr2: add valgrind exception
49047         * lib/memchr.valgrind: New file.
49048         * lib/memchr2.valgrind: New file.
49049         * modules/memchr (Files): Distribute valgrind file.
49050         * modules/memchr2 (Files): Likewise.
49051
49052         docs: memchr is no longer obsolete
49053         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49054         * lib/string.in.h (memchr): Simplify logic.
49055
49056 2009-06-14  Jim Meyering  <meyering@redhat.com>
49057
49058         link-follow: fix the "checking..." message to not mention trailing slash
49059         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49060         never considered trailing slashes.
49061
49062 2009-06-14  Bruno Haible  <bruno@clisp.org>
49063
49064         * m4/memchr.m4: Mention also the bug on IA-64.
49065         * doc/posix-functions/memchr.texi: Likewise.
49066
49067 2009-06-12  Eric Blake  <ebb9@byu.net>
49068
49069         memchr: detect broken x86_64 and alpha implementations
49070         * modules/memchr-tests (Depends-on): Move mmap detection...
49071         * modules/memchr (Depends-on): ...here.
49072         (configure.ac): Set indicator.
49073         * lib/string.in.h (memchr): Declare replacement.
49074         * modules/string (Makefile.am): Trigger replacement.
49075         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49076         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49077         bugs.
49078         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49079         * modules/getpagesize (License): Relax license.
49080
49081 2009-06-11  Bruno Haible  <bruno@clisp.org>
49082
49083         * lib/idpriv.h: Add more references.
49084
49085 2009-06-08  Bruno Haible  <bruno@clisp.org>
49086
49087         Tests for module 'idpriv-droptemp'.
49088         * modules/idpriv-droptemp-tests: New file.
49089         * tests/test-idpriv-droptemp.sh: New file.
49090         * tests/test-idpriv-droptemp.su.sh: New file.
49091         * tests/test-idpriv-droptemp.c: New file.
49092
49093         New module 'idpriv-droptemp'.
49094         * lib/idpriv-droptemp.c: New file.
49095         * modules/idpriv-droptemp: New file.
49096
49097 2009-06-08  Bruno Haible  <bruno@clisp.org>
49098
49099         Tests for module 'idpriv-drop'.
49100         * modules/idpriv-drop-tests: New file.
49101         * tests/test-idpriv-drop.sh: New file.
49102         * tests/test-idpriv-drop.su.sh: New file.
49103         * tests/test-idpriv-drop.c: New file.
49104
49105         New module 'idpriv-drop'.
49106         * lib/idpriv.h: New file.
49107         * lib-idpriv-drop.c: New file.
49108         * m4/idpriv.m4: New file.
49109         * modules/idpriv-drop: New file.
49110
49111 2009-06-08  Bruno Haible  <bruno@clisp.org>
49112
49113         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49114         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49115         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49116         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49117         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49118         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49119         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49120
49121 2009-06-08  Eric Blake  <ebb9@byu.net>
49122
49123         test-strstr: use memory fence, when possible
49124         * tests/test-strstr.c (main): Use memory fence, in order to be
49125         more likely to trigger Debian bug 521737.
49126         * modules/strstr-tests (Files): Pull in additional files.
49127
49128         memchr: no longer obsolete, for wider field testing
49129         * modules/memchr (Status, Notice): Delete, this module is no
49130         longer obsolete.
49131         * modules/vasnprintf (Depends-on): Add memchr.
49132
49133 2009-06-07  Jim Meyering  <meyering@redhat.com>
49134
49135         hash: declare some functions with the warn_unused_result attribute
49136         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49137
49138 2009-06-07  Bruno Haible  <bruno@clisp.org>
49139
49140         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49141         Reported by Eric Blake.
49142
49143 2009-06-06  Eric Blake  <ebb9@byu.net>
49144
49145         test-alignof: fix typo with long double
49146         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49147         compiler error.
49148
49149 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49150
49151         Escape non-texinfo { and }s.
49152         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49153         markup error.
49154
49155 2009-06-04  Jim Meyering  <meyering@redhat.com>
49156
49157         gitlog-to-changelog: don't infloop on an empty commit log
49158         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49159         Reported by Boris Petersen <transacid@centerim.org>.
49160
49161 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49162
49163         version-etc: extend for packagers
49164         Add three new configure options, intended for packagers:
49165           --with-packager="packager name"
49166           --with-packager-version="packager-specific version"
49167           --with-packager-bug-reports="packager bug reporting"
49168         An example with coreutils:
49169           $ ./configure \
49170             --with-packager=Gentoo \
49171             --with-packager-bug-report=http://bugs.gentoo.org/ \
49172             --with-packager-version="patchset 1.6"
49173           $ ./src/ls --version | head -n2
49174           ls (GNU coreutils) 7.1-dirty
49175           Packaged by Gentoo (patchset 1.6)
49176         Note that the bug reporting info via --help doesn't show up because
49177         coreutils uses its own custom emit_bug_reporting_address() implementation
49178         in src/system.h.  If it didn't, it'd look like:
49179           $ ./src/ls --help | tail -n4
49180           Report bugs to <bug-coreutils@gnu.org>.
49181           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49182           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49183           General help using GNU software: <http://www.gnu.org/gethelp/>.
49184         * lib/version-etc.c: Print new information, if provided.
49185         * m4/version-etc.m4: New file.
49186         * modules/version-etc (Files): Add m4/version-etc.m4.
49187         (configure.ac): Add gl_VERSION_ETC.
49188
49189 2009-05-31  Bruno Haible  <bruno@clisp.org>
49190
49191         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49192         and 'int64_t'.
49193         * modules/alignof-tests (Dependencies): Add stdint.
49194         Reported by Eric Blake.
49195
49196 2009-05-31  Bruno Haible  <bruno@clisp.org>
49197
49198         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49199         restriction due to compiler bugs.
49200         Reported by Eric Blake.
49201
49202 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49203             Bruno Haible  <bruno@clisp.org>
49204
49205         Fix test-alignof failure.
49206         * lib/alignof.h (alignof_slot): New macro.
49207         (alignof_type): New macro, with the same semantics as the previous
49208         'alignof'.
49209         (alignof): Alias to alignof_slot.
49210         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49211         check that the results are usable as constant expressions.
49212
49213 2009-05-31  Bruno Haible  <bruno@clisp.org>
49214
49215         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49216         * tests/test-memchr.c (main): Check that memchr does not read past the
49217         first occurrence of the byte.
49218         * tests/test-strstr.c (main): Update comment.
49219         Suggested by Eric Blake.
49220
49221 2009-05-30  Bruno Haible  <bruno@clisp.org>
49222
49223         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49224         detail how to use dumpbin.
49225         Reported by David Byron <dbyron@dbyron.com>.
49226
49227 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49228
49229         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49230
49231 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49232
49233         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49234
49235 2009-05-28  Bruno Haible  <bruno@clisp.org>
49236
49237         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49238         build-aux/ files.
49239
49240 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49241
49242         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49243
49244 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49245
49246         * gnulib-tool (sed_transform_main_lib_file)
49247         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49248         regexps.
49249
49250 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49251
49252         * tests/test-strstr.c: Add another self-test.
49253         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49254         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49255
49256 2009-05-23  Bruno Haible  <bruno@clisp.org>
49257
49258         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49259         change.
49260
49261 2009-05-21  Bruno Haible  <bruno@clisp.org>
49262
49263         Simplify use of mode_t varargs.
49264         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49265         uses 'mode_t' or 'int'.
49266         * lib/openat.c (openat): Likewise.
49267         * lib/open-safer.c (open_safer): Likewise.
49268         * m4/mode_t.m4: New file.
49269         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49270         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49271         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49272         * modules/open (Files): Add m4/mode_t.m4.
49273         * modules/openat (Files): Likewise.
49274         * modules/fcntl-safer (Files): Likewise.
49275         Suggested by Eric Blake.
49276
49277 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49278
49279         * doc/glibc-functions/fallocate.texi: New file.
49280         * doc/gnulib.texi: Include it.
49281
49282 2009-05-21  Eric Blake  <ebb9@byu.net>
49283             Bruno Haible  <bruno@clisp.org>
49284
49285         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49286         invocations.
49287         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49288
49289 2009-05-21  Eric Blake  <ebb9@byu.net>
49290             Bruno Haible  <bruno@clisp.org>
49291
49292         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49293         include_next. Fix of 2008-11-20 commit.
49294         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49295         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49296         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49297         NEXT_MATH_H.
49298         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49299         instead of NEXT_MATH_H.
49300
49301 2009-05-21  Bruno Haible  <bruno@clisp.org>
49302
49303         Avoid redefinition warnings for SIZE_MAX.
49304         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49305         Reported by Simon Josefsson.
49306
49307 2009-05-21  Bruno Haible  <bruno@clisp.org>
49308
49309         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49310         AC_CACHE_VAL.
49311
49312 2009-05-20  Bruno Haible  <bruno@clisp.org>
49313
49314         Make zeroptr.h work on mingw.
49315         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49316         mprotect.
49317         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49318         * modules/memchr2-tests (configure.ac): Likewise.
49319         * modules/memcmp-tests (configure.ac): Likewise.
49320         * modules/memmem-tests (configure.ac): Likewise.
49321         * modules/memrchr-tests (configure.ac): Likewise.
49322         Reported by Simon Josefsson.
49323
49324 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49325
49326         * tests/test-glob.c: Include string.h for strcmp prototype.
49327
49328 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49329
49330         * modules/getdelim (Depends-on): Add explicit stdint, although it
49331         was implicitly already pulled in via realloc-posix.
49332         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49333
49334 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49335
49336         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49337         G. Christensen" <tgc@jupiterrise.com>.
49338         * m4/sys_socket_h.m4: Check for sa_family_t.
49339         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49340         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49341         * tests/test-sys_socket.c: Check that sa_family_t works.
49342
49343 2009-05-18  Eric Blake  <ebb9@byu.net>
49344
49345         maint.mk: allow gnulib_dir in VPATH build
49346         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49347
49348 2009-05-15  Jim Meyering  <meyering@redhat.com>
49349
49350         maint.mk: Give gnulib_dir a default definition.
49351         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49352         Thus, most packages no longer need to specify this variable in cfg.mk
49353
49354 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49355
49356         rename.m4: fix typos that would make non-mingw cross-configure fail
49357         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49358
49359 2009-05-13  Eric Blake  <ebb9@byu.net>
49360
49361         mmap-anon: avoid out-of-order autoconf expansion
49362         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49363         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49364         * modules/memchr-tests (Depends-on): Add extensions.
49365         * modules/memchr2-tests (Depends-on): Add extensions.
49366         * modules/memcmp-tests (Depends-on): Add extensions.
49367         * modules/memmem-tests (Depends-on): Add extensions.
49368         * modules/memrchr-tests (Depends-on): Add extensions.
49369
49370 2009-05-13  Bruno Haible  <bruno@clisp.org>
49371
49372         Make some tests ISO C 99 compliant.
49373         * tests/zerosize-ptr.h: New file.
49374         * tests/test-memchr.c: Include zerosize-ptr.h.
49375         (main): Use a zero-size object pointer instead of NULL.
49376         * tests/test-memchr2.c: Include zerosize-ptr.h.
49377         (main): Use a zero-size object pointer instead of NULL.
49378         * tests/test-memcmp.c: Include zerosize-ptr.h.
49379         (main): Use a zero-size object pointer instead of NULL.
49380         * tests/test-memmem.c: Include zerosize-ptr.h.
49381         (main): Use a zero-size object pointer instead of NULL.
49382         * tests/test-memrchr.c: Include zerosize-ptr.h.
49383         (main): Use a zero-size object pointer instead of NULL.
49384         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49385         m4/mmap-anon.m4.
49386         (Depends-on): Add getpagesize.
49387         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49388         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49389         m4/mmap-anon.m4.
49390         (Depends-on): Add getpagesize.
49391         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49392         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49393         m4/mmap-anon.m4.
49394         (Depends-on): Add getpagesize.
49395         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49396         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49397         m4/mmap-anon.m4.
49398         (Depends-on): Add getpagesize.
49399         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49400         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49401         m4/mmap-anon.m4.
49402         (Depends-on): Add getpagesize.
49403         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49404
49405 2009-05-12  Bruno Haible  <bruno@clisp.org>
49406
49407         Tests for module 'alignof'.
49408         * modules/alignof-tests: New file.
49409         * tests/test-alignof.c: New file.
49410
49411 2009-05-12  Bruno Haible  <bruno@clisp.org>
49412
49413         Fix alignof macro.
49414         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49415         vendor compilers that are always correct.
49416
49417 2009-05-12  Bruno Haible  <bruno@clisp.org>
49418
49419         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49420         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49421         not whether its fully works.
49422
49423 2009-05-12  Bruno Haible  <bruno@clisp.org>
49424
49425         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49426
49427 2009-05-12  Jim Meyering  <meyering@redhat.com>
49428
49429         * top/maint.mk: Adjust backslash alignment.
49430
49431 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49432
49433         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49434
49435 2009-05-11  Eric Blake  <ebb9@byu.net>
49436
49437         argp: avoid undefined behavior
49438         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49439         macros.
49440
49441 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49442
49443         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49444         user.name to prevent git commit from complaining.
49445
49446 2009-05-10  Bruno Haible  <bruno@clisp.org>
49447
49448         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49449         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49450         it rewrites every file name only once.
49451         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49452
49453 2009-05-08  Bruno Haible  <bruno@clisp.org>
49454
49455         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49456         instead of 'max'.
49457
49458 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49459
49460         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49461         sockaddr_storage test.
49462
49463 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49464
49465         * modules/sys_socket (Makefile.am): Substitute
49466         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49467         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49468         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49469         * tests/test-sys_socket.c: Check sockaddr_storage.
49470
49471 2009-05-08  Bruno Haible  <bruno@clisp.org>
49472
49473         New module 'alignof'.
49474         * lib/alignof.h: New file.
49475         * modules/alignof: New file.
49476
49477 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49478             Bruno Haible  <bruno@clisp.org>
49479
49480         Fix test-file-has-acl on FreeBSD.
49481         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49482         mask is implicitly added.
49483         * tests/test-file-has-acl.c: Include <signal.h>.
49484         (main): Terminate the test after 5 seconds.
49485         * modules/acl-tests (configure.ac): Check for alarm function.
49486
49487 2009-05-04  Bruno Haible  <bruno@clisp.org>
49488
49489         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49490         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49491         * modules/errno (configure.ac): Drop AC_REQUIRE.
49492         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49493         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49494
49495 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49496
49497         * modules/glob-tests: New module.
49498         * tests/test-glob.c: Add.
49499
49500 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49501
49502         * modules/fnmatch-tests: New module.
49503         * tests/test-fnmatch.c: Add.
49504
49505 2009-05-04  Eric Blake  <ebb9@byu.net>
49506
49507         maint: make the new no-submodule-changes rule VPATH-safe
49508         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49509
49510 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49511             Bruno Haible  <bruno@clisp.org>
49512
49513         acl: Fix infinite loop on FreeBSD.
49514         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49515         of return value from acl_get_entry.
49516         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49517         Likewise.
49518
49519 2009-05-03  Bruno Haible  <bruno@clisp.org>
49520
49521         * lib/acl-internal.h (acl_entries): Clarify return value.
49522         * lib/acl_entries.c (acl_entries): Likewise.
49523
49524 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49525
49526         Bug fix in acl module.
49527         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49528
49529 2009-05-03  Bruno Haible  <bruno@clisp.org>
49530
49531         Create gperf-generated file in the source dir, not in the build dir.
49532         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49533         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49534         * modules/unicase/locale-language (unicase/locale-languages.h):
49535         Likewise.
49536         * modules/unicase/special-casing (unicase/special-casing-table.h):
49537         Likewise.
49538         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49539         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49540         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49541         Reported by Ralf Wildenhues.
49542
49543 2009-05-03  Bruno Haible  <bruno@clisp.org>
49544
49545         * modules/fnmatch (Description, configure.ac): Taken from
49546         fnmatch-posix.
49547         * modules/fnmatch-posix: Turn into a symbolic reference to the
49548         'fnmatch' module, and deprecate.
49549         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49550
49551 2009-05-03  Bruno Haible  <bruno@clisp.org>
49552
49553         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49554         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49555         Reported by Ralf Wildenhues.
49556
49557 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49558
49559         * m4/fnmatch.m4: Fix fnmatch re-define.
49560
49561 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49562
49563         priv-set: new module and tests; adapt write-any-file
49564         * lib/priv-set.c: New file.
49565         * lib/priv-set.h: New file.
49566         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49567         * lib/write-any-file.c: Simplify by using priv-set module.
49568         * m4/priv-set.m4: New file.
49569         * modules/priv-set: New file.
49570         * modules/unlinkdir: Add dependency on priv-set module.
49571         * modules/write-any-file: Likewise.
49572
49573         Tests for module 'priv-set'.
49574         * modules/priv-set-tests: New file.
49575         * tests/test-priv-set.c: New file.
49576
49577 2009-05-03  Jim Meyering  <meyering@redhat.com>
49578             Bruno Haible  <bruno@clisp.org>
49579
49580         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49581         use the converted UTF-8 variant of the name instead.
49582
49583 2009-05-03  Jim Meyering  <meyering@redhat.com>
49584
49585         tests: tighten some getdate tests
49586         * tests/test-getdate.c (main): Tighten tests: require equality,
49587         not just greater than.  Set TZ envvar to UTC0.
49588
49589 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49590
49591         getdate: correctly interpret "next monday" when run on a Monday
49592         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49593         that e.g., "next tues" (when run on a tuesday) results in a date
49594         that is one week in the future, and not today's date.
49595         I.e., add a week when the wday is the same as the current one.
49596         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49597         and earlier by Martin Bernreuther and Jan Minář.
49598         * tests/test-getdate.c (main): Check that "next DAY" is always in
49599         the future and that "last DAY" is always in the past.
49600
49601 2009-05-02  Jim Meyering  <meyering@redhat.com>
49602
49603         build: ensure that a release build fails when a submodule is unclean
49604         * top/maint.mk (no-submodule-changes): New rule.
49605         (alpha beta major): Depend on it.
49606
49607 2009-05-02  Bruno Haible  <bruno@clisp.org>
49608
49609         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49610         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49611         shell variable gl_fnmatch_required to detect which variant is
49612         requested.
49613         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49614         gl_FUNC_FNMATCH_POSIX.
49615         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49616         exclude fnmatch-posix.
49617
49618 2009-05-02  Bruno Haible  <bruno@clisp.org>
49619
49620         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49621         * modules/mbsrtowcs (License): Change to LGPLv2+.
49622         * modules/strnlen1 (License): Likewise.
49623         Reported by Simon Josefsson.
49624
49625 2009-05-02  Bruno Haible  <bruno@clisp.org>
49626
49627         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49628         "cross".
49629         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49630         gnulib-tool was called with option --source-base=lib.
49631
49632 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49633
49634         Use automake *-local hooks without commands, for extensibility.
49635         * modules/localcharset (Makefile.am): Rename install-exec-local
49636         rule to install-exec-localcharset, and make it a prerequisite of
49637         install-exec-local.  Likewise, rename the uninstall-local rule to
49638         uninstall-localcharset, and make it a prerequisite of the former.
49639
49640 2009-05-01  Bruno Haible  <bruno@clisp.org>
49641
49642         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49643         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49644         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49645         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49646         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49647         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49648         m4/locale-zh.m4, m4/codeset.m4.
49649
49650         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49651         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49652         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49653         m4/locale-zh.m4.
49654
49655         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49656         REPLACE_WCRTOMB if mbstate_t must be replaced.
49657         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49658         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49659
49660 2009-05-01  Bruno Haible  <bruno@clisp.org>
49661
49662         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49663         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49664         dngettext, dcngettext, textdomain, bindtextdomain,
49665         bind_textdomain_codeset): Undefine before redefining.
49666
49667 2009-04-30  Bruno Haible  <bruno@clisp.org>
49668
49669         Fix bug introduced on 2009-04-25.
49670         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49671         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49672         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49673         is defined.
49674         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49675         is defined.
49676         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49677         is defined.
49678         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49679
49680 2009-04-28  Bruno Haible  <bruno@clisp.org>
49681
49682         Comment tweaks.
49683         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49684         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49685         * lib/unicase.h (u*_casexfrm): Likewise.
49686         Reported by Paolo Bonzini.
49687
49688 2009-04-28  Bruno Haible  <bruno@clisp.org>
49689
49690         Fix a compilation error.
49691         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49692         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49693         Reported by Jim Meyering.
49694
49695 2009-04-27  Bruno Haible  <bruno@clisp.org>
49696
49697         New module 'libunistring'.
49698         * modules/libunistring: New file.
49699         * m4/libunistring.m4: New file.
49700         * MODULES.html.sh (Unicode string functions): Add it.
49701
49702 2009-04-27  Eric Blake  <ebb9@byu.net>
49703
49704         maint.mk: allow package-specific header to provide <config.h>
49705         * top/maint.mk (sc_require_config_h): New variable.
49706         (sc_require_config_h, sc_require_config_h_first): Use it.
49707
49708 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49709
49710         * top/maint.mk (sc_avoid_if_before_free): Except
49711         useless-if-before-free script.
49712
49713 2009-04-27  Eric Blake  <ebb9@byu.net>
49714
49715         maintainer-makefile: depend on all required helper scripts
49716         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49717         useless-if-before-free.
49718         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49719         version, rather than assuming gnulib checkout is available.
49720         Reported by Simen Josefsson.
49721
49722 2009-04-26  Bruno Haible  <bruno@clisp.org>
49723
49724         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49725         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49726         "../" or "..".
49727
49728 2009-04-26  Bruno Haible  <bruno@clisp.org>
49729
49730         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49731         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49732         AC_LIB_HAVE_LINKFLAGS.
49733
49734 2009-04-26  Bruno Haible  <bruno@clisp.org>
49735
49736         Simplify calling convention of u*_conv_from_encoding.
49737         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49738         u32_conv_from_encoding): Expect a resultbuf argument and return the
49739         result directly as a pointer.
49740         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49741         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49742         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49743         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49744         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49745         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49746         Update.
49747         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49748         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49749         * lib/vasnprintf.c (VASNPRINTF): Update.
49750         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49751         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49752         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49753         * NEWS: Mention the change.
49754
49755 2009-04-26  Bruno Haible  <bruno@clisp.org>
49756
49757         Simplify calling convention of u*_conv_to_encoding.
49758         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49759         u32_conv_to_encoding): Expect a resultbuf argument and return the
49760         result directly as a pointer.
49761         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49762         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49763         freeing scaled_offsets if mem_iconveha failed.
49764         * lib/unicase/u-casexfrm.h (FUNC): Update.
49765         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49766         * lib/vasnprintf.c (VASNPRINTF): Update.
49767         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49768         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49769         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49770         * NEWS: Mention the change.
49771
49772 2009-04-26  Bruno Haible  <bruno@clisp.org>
49773
49774         Avoid test failures on AIX and OSF/1.
49775         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49776         malloc(0).
49777         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49778         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49779         Likewise.
49780         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49781         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49782         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49783         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49784         * doc/posix-functions/malloc.texi: Document the portability problem
49785         related to malloc(0).
49786
49787 2009-04-26  Bruno Haible  <bruno@clisp.org>
49788
49789         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49790         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49791         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49792
49793 2009-04-25  Bruno Haible  <bruno@clisp.org>
49794
49795         Avoid link error when creating a namespace clean library.
49796         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49797         as macro with arguments if already defined as an alias.
49798         * lib/signbitf.c (gl_signbitf): Don't undefine.
49799         * lib/signbitd.c (gl_signbitd): Don't undefine.
49800         * lib/signbitl.c (gl_signbitl): Don't undefine.
49801
49802 2009-04-25  Jim Meyering  <meyering@redhat.com>
49803
49804         vc-list-files: fix another quoting bug
49805         * build-aux/vc-list-files: Avoid sed backslash expansion
49806         of pathological directory names.
49807
49808 2009-04-25  Eric Blake  <ebb9@byu.net>
49809
49810         vc-list-files: fix shell quoting error
49811         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49812         timestamp.
49813
49814 2009-04-25  Jim Meyering  <meyering@redhat.com>
49815
49816         vc-list-files: restore lost functionality with subdir argument
49817         * build-aux/vc-list-files: When given a non-"." sub-directory
49818         argument, substitute the $dir/ prefix back onto each resulting name.
49819         Otherwise, coreutils' root_tests check would fail.
49820
49821 2009-04-24  Eric Blake  <ebb9@byu.net>
49822
49823         vc-list-files: ignore git symlinks
49824         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49825         than ls-files, to ignore git symlinks.
49826
49827         maint.mk: import improvements from m4
49828         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49829         (move_if_change): Delete unused macro.
49830         (news-date-check, vc-diff-check): Support VPATH builds.
49831         (announcement): Likewise.  Split --bootstrap-tools list...
49832         (boostrap-tools): ...into separate list, which can be overridden
49833         in cfg.mk.
49834         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49835         requiring dependency on useless-if-before-free module.
49836         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49837         Support VPATH builds.
49838
49839 2009-04-24  Jim Meyering  <meyering@redhat.com>
49840
49841         maint.mk: remove coreutils-specific rules and variables
49842         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49843         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49844         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49845
49846         maint.mk: remove obsolete rule
49847         * top/maint.mk (rel-check): Remove rule.
49848         (WGET, WGETFLAGS): Remove now-unused variables.
49849
49850 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49851
49852         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49853         consistency.
49854
49855         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49856         '$(PATH_SEPARATOR)' instead of ':'.
49857
49858 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49859
49860         * lib/getopt1.c (main): Use 'const' for static array.
49861
49862 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49863
49864         * top/maint.mk: Sync with coreutils.
49865         * NEWS: Explain incompatibilities.
49866
49867 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49868             Bruno Haible  <bruno@clisp.org>
49869
49870         Fix cross-compilation results.
49871         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
49872         statement, as third argument of AC_TRY_RUN.
49873         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49874         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49875         Likewise.
49876         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49877         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49878         Likewise.
49879         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49880         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
49881         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
49882
49883 2009-04-20  Bruno Haible  <bruno@clisp.org>
49884
49885         Avoid test failure on mingw.
49886         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
49887
49888 2009-04-20  Bruno Haible  <bruno@clisp.org>
49889
49890         Avoid compilation error on mingw.
49891         * modules/localename-tests (Depends-on): Add locale.
49892
49893 2009-04-19  Bruno Haible  <bruno@clisp.org>
49894
49895         Support for building a shared library on Windows platforms.
49896         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
49897         (main): Test the presence of UNINORM_NFC here.
49898         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
49899         (main): Test the presence of UNINORM_NFD here.
49900         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
49901         (main): Test the presence of UNINORM_NFKC here.
49902         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
49903         (main): Test the presence of UNINORM_NFKD here.
49904
49905 2009-04-19  Bruno Haible  <bruno@clisp.org>
49906
49907         Avoid a compiler warning.
49908         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
49909         Change type of variable 'sequence'.
49910
49911 2009-04-19  Bruno Haible  <bruno@clisp.org>
49912
49913         * modules/configmake (Makefile.am): When the contents of configmake.h
49914         does not change, arrange to preserve its modification time.
49915
49916 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49917
49918         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49919         gettext domain.
49920
49921 2009-04-16  Jim Meyering  <meyering@redhat.com>
49922
49923         useless-if-before-free: improve conversion code
49924         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49925         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49926
49927 2009-04-14  Bruno Haible  <bruno@clisp.org>
49928
49929         * modules/fcntl (Depends-on): Add extensions.
49930         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49931
49932 2009-04-12  Ben Pfaff  <blp@gnu.org>
49933
49934         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49935         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49936
49937 2009-03-20  Ben Pfaff  <blp@gnu.org>
49938
49939         Make rename replace existing destinations on Windows.
49940         * m4/rename.m4: Add test for Mingw.
49941         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49942         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49943         * doc/posix-functions/rename.texi: Document.
49944
49945 2009-04-10  Bruno Haible  <bruno@clisp.org>
49946
49947         New include file "iconveh.h".
49948         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49949         * lib/striconveh.h: Include it.
49950         (enum iconv_ilseq_handler): Remove definition.
49951         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49952         striconveh.h.
49953         * lib/striconveha.c: Include striconveh.h.
49954         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49955         * modules/striconveh (Files): Add lib/iconveh.h.
49956         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49957         lib/striconveh.h.
49958
49959 2009-04-10  Bruno Haible  <bruno@clisp.org>
49960
49961         * lib/uniconv.h: Update comment.
49962
49963 2009-04-10  Bruno Haible  <bruno@clisp.org>
49964
49965         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49966         always.
49967         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49968         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49969         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49970         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49971         "unistring-notinline.h", so that the function gets defined always.
49972         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49973         * lib/unistr/u8-uctomb.c: Likewise.
49974         * lib/unistr/u16-mbtouc.c: Likewise.
49975         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49976         * lib/unistr/u16-uctomb.c: Likewise.
49977         * lib/unistr/u32-mbtouc.c: Likewise.
49978         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49979         * lib/unistr/u32-uctomb.c: Likewise.
49980
49981 2009-04-10  Bruno Haible  <bruno@clisp.org>
49982
49983         Mark 'utime' obsolete.
49984         * modules/utime (Status, Notice): New sections.
49985         Suggested by Jim Meyering.
49986
49987         Fix cross-compile guess for utime test.
49988         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49989         autoconf.
49990         * doc/posix-functions/utime.texi: Give more precisions.
49991         Reported by Jan <ipif@ymail.com>.
49992
49993 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49994
49995         filevercmp: correct today's change
49996         * lib/filevercmp.c: Also handle coreutils' test inputs.
49997         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49998
49999         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50000         for reporting it.
50001         * lib/filevercmp.c: Special handle for "", "." and "..".
50002         * tests/test-filevercmp.c: Enlarge the set suite.
50003
50004 2009-04-07  Jim Meyering  <meyering@redhat.com>
50005
50006         useless-if-before-free: show how to remove braced useless free, too
50007         * build-aux/useless-if-before-free: still only in a comment, though.
50008
50009 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50010
50011         maint.mk: import changes to syntax-check macros from coreutils
50012         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50013         Use them in the relevant macros.
50014
50015 2009-04-06  Bruno Haible  <bruno@clisp.org>
50016
50017         Fix unportable use of bit-fields.
50018         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50019         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50020         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50021
50022 2009-04-06  Bruno Haible  <bruno@clisp.org>
50023
50024         Avoid test failures on AIX and OSF/1.
50025         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50026         that malloc(0) = NULL.
50027         * tests/unicase/test-u8-tolower.c (check): Likewise.
50028         * tests/unicase/test-u8-totitle.c (check): Likewise.
50029         * tests/unicase/test-u8-toupper.c (check): Likewise.
50030         * tests/unicase/test-u16-casefold.c (check): Likewise.
50031         * tests/unicase/test-u16-tolower.c (check): Likewise.
50032         * tests/unicase/test-u16-totitle.c (check): Likewise.
50033         * tests/unicase/test-u16-toupper.c (check): Likewise.
50034         * tests/unicase/test-u32-casefold.c (check): Likewise.
50035         * tests/unicase/test-u32-tolower.c (check): Likewise.
50036         * tests/unicase/test-u32-totitle.c (check): Likewise.
50037         * tests/unicase/test-u32-toupper.c (check): Likewise.
50038         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50039         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50040         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50041         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50042         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50043         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50044         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50045         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50046         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50047         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50048         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50049         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50050
50051 2009-04-05  Bruno Haible  <bruno@clisp.org>
50052
50053         Work around an autoconf limitation.
50054         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50055         comment line if it would be longer than 3 KB.
50056
50057 2009-04-05  Bruno Haible  <bruno@clisp.org>
50058
50059         Avoid test failure with libiconv-1.13.
50060         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50061         of the expected test results.
50062
50063 2009-04-05  Bruno Haible  <bruno@clisp.org>
50064
50065         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50066         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50067         that it should be installed.
50068
50069 2009-04-05  Bruno Haible  <bruno@clisp.org>
50070
50071         * gnulib-tool: New option --copy-file.
50072         (func_usage): Document it.
50073         (func_dest_tmpfilename): Moved out of func_import.
50074         (func_add_file, func_update_file): New functions, extracted from
50075         func_import.
50076         (func_import): Update.
50077
50078 2009-04-05  Karl Berry  <karl@gnu.org>
50079
50080         * README: prominently mention gnulib-tool.
50081         Rearrange sections so getting the code is near the top.
50082
50083 2009-04-05  Bruno Haible  <bruno@clisp.org>
50084
50085         * lib/unicase.h: Mention u*_cmp2.
50086         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50087         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50088         * lib/unicase/ulc-casecmp.c: Likewise.
50089         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50090         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50091         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50092         unistr/u8-cmp.
50093         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50094         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50095         unistr/u16-cmp.
50096         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50097         unistr/u32-cmp.
50098
50099         * lib/uninorm.h: Mention u*_cmp2.
50100         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50101         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50102         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50103         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50104         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50105         unistr/u8-cmp.
50106         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50107         unistr/u16-cmp.
50108         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50109         unistr/u32-cmp.
50110
50111         New module 'unistr/u32-cmp2'.
50112         * lib/unistr/u32-cmp2.c: New file.
50113         * modules/unistr/u32-cmp2: New file.
50114
50115         New module 'unistr/u16-cmp2'.
50116         * lib/unistr/u16-cmp2.c: New file.
50117         * modules/unistr/u16-cmp2: New file.
50118
50119         New module 'unistr/u8-cmp2'.
50120         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50121         * lib/unistr/u8-cmp2.c: New file.
50122         * lib/unistr/u-cmp2.h: New file.
50123         * modules/unistr/u8-cmp2: New file.
50124
50125 2009-04-05  Bruno Haible  <bruno@clisp.org>
50126
50127         * lib/unictype.h (uc_property_is_valid): New macro.
50128         * tests/unictype/test-pr_byname.c (main): Use it.
50129
50130         * lib/unistr.h: Doc fixes.
50131         * lib/uniconv.h: Doc fixes.
50132         * lib/unictype.h: Doc fixes.
50133
50134 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50135
50136         Port coreutils 7.2 to Solaris 8.
50137
50138         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50139         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50140         for Solaris 8.  This is a bit of a hack, as it means it's the
50141         caller's responsibility to add -lnsl if needed, but most likely it
50142         won't be needed since only getaddrinfo uses this and getaddrinfo
50143         isn't needed on Solaris 8.
50144
50145         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50146         problem to Solaris 8 encountered with coreutils 7.2, which
50147         resulted in a message "fnmatch.c:292: warning: passing argument 4
50148         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50149         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50150
50151 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50152
50153         * m4/ld-version-script.m4: Add FIXME comment.
50154
50155 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50156
50157         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50158         SOVERSION variable.
50159
50160 2009-04-02  Bruno Haible  <bruno@clisp.org>
50161
50162         * Makefile (info, html, dvi, pdf): Combine the rules.
50163         Suggested by Jim Meyering.
50164
50165 2009-04-01  Bruno Haible  <bruno@clisp.org>
50166
50167         * Makefile (info, html, dvi, pdf): New targets.
50168         Reported by Reuben Thomas <rrt@sc3d.org>.
50169
50170 2009-04-01  Bruno Haible  <bruno@clisp.org>
50171
50172         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50173         can be put into PATH.
50174         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50175
50176 2009-04-01  Bruno Haible  <bruno@clisp.org>
50177
50178         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50179
50180 2009-04-01  Bruno Haible  <bruno@clisp.org>
50181
50182         Rename module 'visibility'.
50183         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50184         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50185         * doc/gnulib.texi: Update.
50186         * MODULES.html.sh (Misc): Update.
50187         * NEWS: Mention the change.
50188
50189 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50190
50191         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50192         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50193         Eric Blake <ebb9@byu.net> for review.
50194         * MODULES.html.sh: Add lib-msvc-compat.
50195         * doc/gnulib.texi: Link to new section.
50196         * m4/ld-output-def.m4: New file.
50197         * doc/ld-output-def.texi: New file.
50198
50199 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50200
50201         Rename ld-version-script to lib-symbol-versions.  Suggested by
50202         Bruno Haible <bruno@clisp.org>.
50203         * modules/ld-version-script: Renamed to lib-symbol-versions.
50204         * doc/ld-version-script.texi: Fix module name.
50205         * MODULES.html.sh: Add lib-symbol-versions.
50206
50207 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50208
50209         * modules/u64-tests: New file.
50210         * tests/test-u64.c: New file.
50211
50212 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50213
50214         * MODULES.html.sh: Mention u64.
50215         * modules/u64: New module.
50216         * modules/crypto/sha512: Depend on u64 module instead of providing
50217         u64.h.
50218
50219 2009-03-27  Eric Blake  <ebb9@byu.net>
50220
50221         test-strerror: make debugging EAI_SYSTEM easier
50222         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50223         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50224         failure was EAI_SYSTEM.
50225
50226 2009-03-25  Bruno Haible  <bruno@clisp.org>
50227
50228         Fix a problem with --enable-relocatable on Solaris 7.
50229         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50230         since 2008-02-24.
50231
50232 2009-03-25  Eric Blake  <ebb9@byu.net>
50233
50234         test-sockets: avoid gcc warning
50235         * tests/test-sockets.c (main): Silence compiler warning.
50236
50237 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50238
50239         New modules nproc, pthread, contributed by Glen Lenker.
50240
50241         * MODULES.html.sh: Add pthread, nproc.
50242         * lib/nproc.c: New file.
50243         * lib/nproc.h: New file.
50244         * lib/pthread.in.h: New file.
50245         * m4/pthread.m4: New file.
50246         * modules/nproc: New file.
50247         * modules/pthread: New file.
50248
50249 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50250
50251         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50252         New variable.
50253
50254 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50255
50256         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50257         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50258         * tests/test-filevercmp.c: Add tests for backup suffixes.
50259
50260 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50261
50262         * modules/stdlib (Depends-on): Add stdint, needed when defining
50263         struct random_data on, for example, HP-UX 10.20.  Reported by
50264         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50265
50266 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50267
50268         * lib/readline.c (readline): Call fflush on stdout after printing
50269         prompt.
50270
50271 2009-03-20  Bruno Haible  <bruno@clisp.org>
50272
50273         Remove dependency from 'close' module to -lws2_32 on native Windows.
50274         * lib/close-hook.h: New file.
50275         * lib/close-hook.c: New file.
50276         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50277         w32sock.h.
50278         (_gl_close_fd_maybe_socket): Remove function.
50279         (rpl_close): Invoke execute_all_close_hooks instead of
50280         _gl_close_fd_maybe_socket.
50281         * lib/sockets.c: Include close-hook.h, w32sock.h.
50282         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50283         (close_sockets_hook): New variable.
50284         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50285         (gl_sockets_cleanup): Unregister it.
50286         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50287         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50288         * modules/close-hook: New file.
50289         * modules/close (Files): Remove lib/w32sock.h.
50290         (Depends-on): Add close-hook.
50291         (Link): Remove section.
50292         * modules/sockets (Files): Add lib/w32sock.h.
50293         (Depends-on): Add close-hook.
50294         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50295         invocation.
50296         * NEWS: Mention that LIB_CLOSE is gone.
50297
50298 2009-03-23  Eric Blake  <ebb9@byu.net>
50299
50300         signal-tests: test previous patch
50301         * tests/test-signal.c: New file.
50302         * modules/signal-tests: Likewise.
50303
50304         signal.h: always support 'volatile sig_atomic_t'
50305         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50306         (gl_SIGNAL_H_DEFAULTS): Add a default.
50307         * modules/signal (Makefile.am): Substitute if needed.
50308         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50309         users can blindly add volatile.
50310         * doc/posix-headers/signal.texi (signal.h): Document it.
50311         Reported by Matthew Woehlke.
50312
50313 2009-03-23  Jim Meyering  <meyering@redhat.com>
50314
50315         pathmax: PATH_MAX: use pathconf only when available
50316         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50317         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50318         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50319         This avoids a link failure in a PSP cross-compilation environment
50320         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50321
50322         * lib/vasnprintf.c (divide): Fix typo in comment.
50323
50324 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50325
50326         * gnulib-tool (func_filter_filelist): Fix comment.
50327
50328 2009-03-20  Bruno Haible  <bruno@clisp.org>
50329
50330         Make sockets.h self-contained.
50331         * lib/sockets.c: Include sockets.h first.
50332         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50333
50334 2009-03-19  Eric Blake  <ebb9@byu.net>
50335
50336         doc: mention more functions added in cygwin 1.7.0
50337         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50338         addition.
50339         * doc/posix-functions/log2f.texi: Likewise.
50340
50341 2009-03-19  Jim Meyering  <meyering@redhat.com>
50342
50343         fsusage: avoid syntax error due to statement-before-declaration
50344         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50345         after all declarations.  Reported by Matthew Woehlke in
50346         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50347
50348 2009-03-18  Eric Blake  <ebb9@byu.net>
50349
50350         build-aux/compile: sync from automake
50351         * build-aux/compile: New file, from automake.
50352         * config/srclist.txt: Mention build-aux/compile.
50353
50354 2009-03-17  Bruno Haible  <bruno@clisp.org>
50355
50356         * lib/git-merge-changelog.c: Fix typo in comment.
50357         Reported by Reuben Thomas <rrt@sc3d.org>.
50358
50359 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50360
50361         * m4/regex.m4: update and improve help for
50362         --without-included-regex.
50363
50364 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50365
50366         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50367         failure on missing include files.
50368
50369 2009-03-17  Eric Blake  <ebb9@byu.net>
50370
50371         doc: mention more functions added in cygwin 1.7.0
50372         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50373         addition.
50374         * doc/posix-functions/fwscanf.texi: Likewise.
50375         * doc/posix-functions/swprintf.texi: Likewise.
50376         * doc/posix-functions/swscanf.texi: Likewise.
50377         * doc/posix-functions/vfwprintf.texi: Likewise.
50378         * doc/posix-functions/vfwscanf.texi: Likewise.
50379         * doc/posix-functions/vswprintf.texi: Likewise.
50380         * doc/posix-functions/vswscanf.texi: Likewise.
50381         * doc/posix-functions/vwprintf.texi: Likewise.
50382         * doc/posix-functions/vwscanf.texi: Likewise.
50383         * doc/posix-functions/wcscasecmp.texi: Likewise.
50384         * doc/posix-functions/wcsdup.texi: Likewise.
50385         * doc/posix-functions/wcsftime.texi: Likewise.
50386         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50387         * doc/posix-functions/wprintf.texi: Likewise.
50388         * doc/posix-functions/wscanf.texi: Likewise.
50389         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50390
50391 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50392
50393         maint.mk: really add $(AM_MAKEFLAGS)
50394         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50395         was inadvertently omitted in the last commit.
50396         Spotted by Bruno Haible.
50397
50398         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50399         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50400         $(AM_MAKEFLAGS)' rather than plain `make'.
50401
50402         gnulib-tool: execute $MAKE not make
50403         * gnulib-tool: Default $MAKE to 'make'.
50404         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50405         than make.  Initialize $MAKE in the do-autobuild script.
50406
50407         gnulib-tool: use $MAKE not make in generated files
50408         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50409         make, in generated files.  Initialize $MAKE in the do-autobuild
50410         script.
50411
50412         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50413
50414         GNUmakefile: disable parallelism only for multiple, recursive targets
50415         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50416         additions in the Makefile.
50417         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50418         by Automake.
50419         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50420         are listed on the command line and at least one of them is
50421         listed in $(ALL_RECURSIVE_TARGETS).
50422
50423 2009-03-14  Bruno Haible  <bruno@clisp.org>
50424
50425         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50426         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50427         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50428         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50429         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50430         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50431         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50432         unistr/u8-uctomb.
50433         * modules/unistr/u8-strchr (Depends-on): Likewise.
50434         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50435         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50436         unistr/u16-uctomb.
50437         * modules/unistr/u16-strchr (Depends-on): Likewise.
50438         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50439
50440 2009-03-12  Bruno Haible  <bruno@clisp.org>
50441
50442         Work around select() bug on Interix 3.5.
50443         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50444         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50445         * m4/select.m4: New file.
50446         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50447         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50448         * modules/select (Files): Add m4/select.m4.
50449         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50450         * modules/nanosleep (Depends-on): Add select.
50451         * modules/poll (Depends-on): Likewise.
50452         * doc/posix-functions/select.texi: Mention the Interix bug.
50453         Reported by Markus Duft <mduft@gentoo.org>.
50454
50455         * lib/select.c: Renamed from lib/winsock-select.c.
50456         * modules/select (Files): Add lib/select.c, remove
50457         lib/winsock-select.c.
50458         (configure.ac): Update.
50459
50460 2009-03-12  Jim Meyering  <meyering@redhat.com>
50461
50462         avoid gcc warnings about unused macro definitions
50463         * lib/readtokens.c (STREQ): Remove unused definition.
50464         * lib/xmalloc.c (SIZE_MAX): Likewise.
50465         * lib/openat-die.c (N_): Likewise.
50466         * lib/mountlist.c (SIZE_MAX): Remove definition.
50467         Instead, include <stdint.h>.
50468         * lib/readutmp.c: Likewise.
50469         * modules/readutmp (Depends-on): Add stdint.
50470         * modules/mountlist (Depends-on): Add stdint.
50471         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50472
50473 2009-03-10  Bruno Haible  <bruno@clisp.org>
50474
50475         Tests for module 'mbmemcasecoll'.
50476         * modules/mbmemcasecoll-tests: New file.
50477         * tests/test-mbmemcasecoll1.sh: New file.
50478         * tests/test-mbmemcasecoll2.sh: New file.
50479         * tests/test-mbmemcasecoll3.sh: New file.
50480         * tests/test-mbmemcasecoll.c: New file.
50481
50482         New module 'mbmemcasecoll'.
50483         * lib/mbmemcasecoll.h: New file.
50484         * lib/mbmemcasecoll.c: New file.
50485         * modules/mbmemcasecoll: New file.
50486
50487         * tests/test-mbmemcasecmp.h: New file, extracted from
50488         tests/test-mbmemcasecmp.c.
50489         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50490         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50491         (main): Update.
50492         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50493
50494 2009-03-09  Bruno Haible  <bruno@clisp.org>
50495
50496         Tests for module 'mbmemcasecmp'.
50497         * modules/mbmemcasecmp-tests: New file.
50498         * tests/test-mbmemcasecmp1.sh: New file.
50499         * tests/test-mbmemcasecmp2.sh: New file.
50500         * tests/test-mbmemcasecmp3.sh: New file.
50501         * tests/test-mbmemcasecmp.c: New file.
50502
50503         New module 'mbmemcasecmp'.
50504         * lib/mbmemcasecmp.h: New file.
50505         * lib/mbmemcasecmp.c: New file.
50506         * modules/mbmemcasecmp: New file.
50507
50508 2009-03-09  Bruno Haible  <bruno@clisp.org>
50509
50510         Tests for module 'unicase/ulc-casecoll'.
50511         * modules/unicase/ulc-casecoll-tests: New file.
50512         * tests/unicase/test-ulc-casecoll1.sh: New file.
50513         * tests/unicase/test-ulc-casecoll2.sh: New file.
50514         * tests/unicase/test-ulc-casecoll.c: New file.
50515
50516         New module 'unicase/ulc-casecoll'.
50517         * lib/unicase.h (ulc_casecoll): New declaration.
50518         * lib/unicase/ulc-casecoll.c: New file.
50519         * modules/unicase/ulc-casecoll: New file.
50520
50521         New module 'unicase/ulc-casexfrm'.
50522         * lib/unicase.h (ulc_casexfrm): New declaration.
50523         * lib/unicase/ulc-casexfrm.c: New file.
50524         * modules/unicase/ulc-casexfrm: New file.
50525
50526 2009-03-09  Bruno Haible  <bruno@clisp.org>
50527
50528         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50529         invocations.
50530
50531         * m4/mbscasecmp.m4: Remove file.
50532         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50533         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50534
50535         * m4/mbscasestr.m4: Remove file.
50536         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50537         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50538
50539         * m4/mbschr.m4: Remove file.
50540         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50541         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50542
50543         * m4/mbscspn.m4: Remove file.
50544         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50545         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50546
50547         * m4/mbslen.m4: Remove file.
50548         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50549         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50550
50551         * m4/mbsncasecmp.m4: Remove file.
50552         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50553         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50554
50555         * m4/mbsnlen.m4: Remove file.
50556         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50557         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50558
50559         * m4/mbspbrk.m4: Remove file.
50560         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50561         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50562
50563         * m4/mbspcasecmp.m4: Remove file.
50564         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50565         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50566
50567         * m4/mbsrchr.m4: Remove file.
50568         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50569         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50570
50571         * m4/mbssep.m4: Remove file.
50572         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50573         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50574
50575         * m4/mbsspn.m4: Remove file.
50576         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50577         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50578
50579         * m4/mbsstr.m4: Remove file.
50580         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50581         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50582
50583         * m4/mbstok_r.m4: Remove file.
50584         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50585         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50586
50587         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50588
50589         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50590         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50591
50592         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50593
50594 2009-03-08  Bruno Haible  <bruno@clisp.org>
50595
50596         Tests for module 'unicase/ulc-casecmp'.
50597         * modules/unicase/ulc-casecmp-tests: New file.
50598         * tests/unicase/test-ulc-casecmp1.sh: New file.
50599         * tests/unicase/test-ulc-casecmp2.sh: New file.
50600         * tests/unicase/test-ulc-casecmp.c: New file.
50601
50602         New module 'unicase/ulc-casecmp'.
50603         * lib/unicase.h (ulc_casecmp): New declaration.
50604         * lib/unicase/ulc-casecmp.c: New file.
50605         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50606         'const SRC_UNIT *'.
50607         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50608         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50609         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50610         * modules/unicase/ulc-casecmp: New file.
50611
50612         Tests for module 'unicase/u32-is-cased'.
50613         * modules/unicase/u32-is-cased-tests: New file.
50614         * tests/unicase/test-u32-is-cased.c: New file.
50615
50616         Tests for module 'unicase/u16-is-cased'.
50617         * modules/unicase/u16-is-cased-tests: New file.
50618         * tests/unicase/test-u16-is-cased.c: New file.
50619
50620         Tests for module 'unicase/u8-is-cased'.
50621         * modules/unicase/u8-is-cased-tests: New file.
50622         * tests/unicase/test-u8-is-cased.c: New file.
50623         * tests/unicase/test-is-cased.h: New file.
50624
50625         New module 'unicase/u32-is-cased'.
50626         * lib/unicase/u32-is-cased.c: New file.
50627         * modules/unicase/u32-is-cased: New file.
50628
50629         New module 'unicase/u16-is-cased'.
50630         * lib/unicase/u16-is-cased.c: New file.
50631         * modules/unicase/u16-is-cased: New file.
50632
50633         New module 'unicase/u8-is-cased'.
50634         * lib/unicase/u8-is-cased.c: New file.
50635         * lib/unicase/u-is-cased.h: New file.
50636         * modules/unicase/u8-is-cased: New file.
50637
50638         Tests for module 'unicase/u32-is-casefolded'.
50639         * modules/unicase/u32-is-casefolded-tests: New file.
50640         * tests/unicase/test-u32-is-casefolded.c: New file.
50641
50642         Tests for module 'unicase/u16-is-casefolded'.
50643         * modules/unicase/u16-is-casefolded-tests: New file.
50644         * tests/unicase/test-u16-is-casefolded.c: New file.
50645
50646         Tests for module 'unicase/u8-is-casefolded'.
50647         * modules/unicase/u8-is-casefolded-tests: New file.
50648         * tests/unicase/test-u8-is-casefolded.c: New file.
50649         * tests/unicase/test-is-casefolded.h: New file.
50650
50651         New module 'unicase/u32-is-casefolded'.
50652         * lib/unicase/u32-is-casefolded.c: New file.
50653         * modules/unicase/u32-is-casefolded: New file.
50654
50655         New module 'unicase/u16-is-casefolded'.
50656         * lib/unicase/u16-is-casefolded.c: New file.
50657         * modules/unicase/u16-is-casefolded: New file.
50658
50659         New module 'unicase/u8-is-casefolded'.
50660         * lib/unicase/u8-is-casefolded.c: New file.
50661         * modules/unicase/u8-is-casefolded: New file.
50662
50663         Tests for module 'unicase/u32-is-titlecase'.
50664         * modules/unicase/u32-is-titlecase-tests: New file.
50665         * tests/unicase/test-u32-is-titlecase.c: New file.
50666
50667         Tests for module 'unicase/u16-is-titlecase'.
50668         * modules/unicase/u16-is-titlecase-tests: New file.
50669         * tests/unicase/test-u16-is-titlecase.c: New file.
50670
50671         Tests for module 'unicase/u8-is-titlecase'.
50672         * modules/unicase/u8-is-titlecase-tests: New file.
50673         * tests/unicase/test-u8-is-titlecase.c: New file.
50674         * tests/unicase/test-is-titlecase.h: New file.
50675
50676         New module 'unicase/u32-is-titlecase'.
50677         * lib/unicase/u32-is-titlecase.c: New file.
50678         * modules/unicase/u32-is-titlecase: New file.
50679
50680         New module 'unicase/u16-is-titlecase'.
50681         * lib/unicase/u16-is-titlecase.c: New file.
50682         * modules/unicase/u16-is-titlecase: New file.
50683
50684         New module 'unicase/u8-is-titlecase'.
50685         * lib/unicase/u8-is-titlecase.c: New file.
50686         * modules/unicase/u8-is-titlecase: New file.
50687
50688         Tests for module 'unicase/u32-is-lowercase'.
50689         * modules/unicase/u32-is-lowercase-tests: New file.
50690         * tests/unicase/test-u32-is-lowercase.c: New file.
50691
50692         Tests for module 'unicase/u16-is-lowercase'.
50693         * modules/unicase/u16-is-lowercase-tests: New file.
50694         * tests/unicase/test-u16-is-lowercase.c: New file.
50695
50696         Tests for module 'unicase/u8-is-lowercase'.
50697         * modules/unicase/u8-is-lowercase-tests: New file.
50698         * tests/unicase/test-u8-is-lowercase.c: New file.
50699         * tests/unicase/test-is-lowercase.h: New file.
50700
50701         New module 'unicase/u32-is-lowercase'.
50702         * lib/unicase/u32-is-lowercase.c: New file.
50703         * modules/unicase/u32-is-lowercase: New file.
50704
50705         New module 'unicase/u16-is-lowercase'.
50706         * lib/unicase/u16-is-lowercase.c: New file.
50707         * modules/unicase/u16-is-lowercase: New file.
50708
50709         New module 'unicase/u8-is-lowercase'.
50710         * lib/unicase/u8-is-lowercase.c: New file.
50711         * modules/unicase/u8-is-lowercase: New file.
50712
50713         Tests for module 'unicase/u32-is-uppercase'.
50714         * modules/unicase/u32-is-uppercase-tests: New file.
50715         * tests/unicase/test-u32-is-uppercase.c: New file.
50716
50717         Tests for module 'unicase/u16-is-uppercase'.
50718         * modules/unicase/u16-is-uppercase-tests: New file.
50719         * tests/unicase/test-u16-is-uppercase.c: New file.
50720
50721         Tests for module 'unicase/u8-is-uppercase'.
50722         * modules/unicase/u8-is-uppercase-tests: New file.
50723         * tests/unicase/test-u8-is-uppercase.c: New file.
50724         * tests/unicase/test-is-uppercase.h: New file.
50725
50726         New module 'unicase/u32-is-uppercase'.
50727         * lib/unicase/u32-is-uppercase.c: New file.
50728         * modules/unicase/u32-is-uppercase: New file.
50729
50730         New module 'unicase/u16-is-uppercase'.
50731         * lib/unicase/u16-is-uppercase.c: New file.
50732         * modules/unicase/u16-is-uppercase: New file.
50733
50734         New module 'unicase/u8-is-uppercase'.
50735         * lib/unicase/u8-is-uppercase.c: New file.
50736         * modules/unicase/u8-is-uppercase: New file.
50737
50738         New module 'unicase/u32-is-invariant'.
50739         * lib/unicase/u32-is-invariant.c: New file.
50740         * modules/unicase/u32-is-invariant: New file.
50741
50742         New module 'unicase/u16-is-invariant'.
50743         * lib/unicase/u16-is-invariant.c: New file.
50744         * modules/unicase/u16-is-invariant: New file.
50745
50746         New module 'unicase/u8-is-invariant'.
50747         * lib/unicase/u8-is-invariant.c: New file.
50748         * lib/unicase/invariant.h: New file.
50749         * lib/unicase/u-is-invariant.h: New file.
50750         * modules/unicase/u8-is-invariant: New file.
50751
50752         Tests for module 'unicase/u32-casecoll'.
50753         * modules/unicase/u32-casecoll-tests: New file.
50754         * tests/unicase/test-u32-casecoll.c: New file.
50755
50756         Tests for module 'unicase/u16-casecoll'.
50757         * modules/unicase/u16-casecoll-tests: New file.
50758         * tests/unicase/test-u16-casecoll.c: New file.
50759
50760         Tests for module 'unicase/u8-casecoll'.
50761         * modules/unicase/u8-casecoll-tests: New file.
50762         * tests/unicase/test-u8-casecoll.c: New file.
50763
50764         New module 'unicase/u32-casecoll'.
50765         * lib/unicase/u32-casecoll.c: New file.
50766         * modules/unicase/u32-casecoll: New file.
50767
50768         New module 'unicase/u16-casecoll'.
50769         * lib/unicase/u16-casecoll.c: New file.
50770         * modules/unicase/u16-casecoll: New file.
50771
50772         New module 'unicase/u8-casecoll'.
50773         * lib/unicase/u8-casecoll.c: New file.
50774         * lib/unicase/u-casecoll.h: New file.
50775         * modules/unicase/u8-casecoll: New file.
50776
50777         New module 'unicase/u32-casexfrm'.
50778         * lib/unicase/u32-casexfrm.c: New file.
50779         * modules/unicase/u32-casexfrm: New file.
50780
50781         New module 'unicase/u16-casexfrm'.
50782         * lib/unicase/u16-casexfrm.c: New file.
50783         * modules/unicase/u16-casexfrm: New file.
50784
50785         New module 'unicase/u8-casexfrm'.
50786         * lib/unicase/u8-casexfrm.c: New file.
50787         * lib/unicase/u-casexfrm.h: New file.
50788         * modules/unicase/u8-casexfrm: New file.
50789
50790         Tests for module 'unicase/u32-casecmp'.
50791         * modules/unicase/u32-casecmp-tests: New file.
50792         * tests/unicase/test-u32-casecmp.c: New file.
50793
50794         Tests for module 'unicase/u16-casecmp'.
50795         * modules/unicase/u16-casecmp-tests: New file.
50796         * tests/unicase/test-u16-casecmp.c: New file.
50797
50798         Tests for module 'unicase/u8-casecmp'.
50799         * modules/unicase/u8-casecmp-tests: New file.
50800         * tests/unicase/test-u8-casecmp.c: New file.
50801         * tests/unicase/test-casecmp.h: New file.
50802
50803         New module 'unicase/u32-casecmp'.
50804         * lib/unicase/u32-casecmp.c: New file.
50805         * modules/unicase/u32-casecmp: New file.
50806
50807         New module 'unicase/u16-casecmp'.
50808         * lib/unicase/u16-casecmp.c: New file.
50809         * modules/unicase/u16-casecmp: New file.
50810
50811         New module 'unicase/u8-casecmp'.
50812         * lib/unicase/u8-casecmp.c: New file.
50813         * lib/unicase/u-casecmp.h: New file.
50814         * modules/unicase/u8-casecmp: New file.
50815
50816         Tests for module 'unicase/u32-casefold'.
50817         * modules/unicase/u32-casefold-tests: New file.
50818         * tests/unicase/test-u32-casefold.c: New file.
50819
50820         Tests for module 'unicase/u16-casefold'.
50821         * modules/unicase/u16-casefold-tests: New file.
50822         * tests/unicase/test-u16-casefold.c: New file.
50823
50824         Tests for module 'unicase/u8-casefold'.
50825         * modules/unicase/u8-casefold-tests: New file.
50826         * tests/unicase/test-u8-casefold.c: New file.
50827
50828         New module 'unicase/u32-casefold'.
50829         * lib/unicase/u32-casefold.c: New file.
50830         * modules/unicase/u32-casefold: New file.
50831
50832         New module 'unicase/u16-casefold'.
50833         * lib/unicase/u16-casefold.c: New file.
50834         * modules/unicase/u16-casefold: New file.
50835
50836         New module 'unicase/u8-casefold'.
50837         * lib/unicase/u8-casefold.c: New file.
50838         * lib/unicase/u-casefold.h: New file.
50839         * modules/unicase/u8-casefold: New file.
50840
50841         New module 'unicase/tocasefold'.
50842         * lib/unicase/casefold.h: New file.
50843         * lib/unicase/tocasefold.c: New file.
50844         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50845         * modules/unicase/tocasefold: New file.
50846
50847         Tests for module 'unicase/u32-totitle'.
50848         * modules/unicase/u32-totitle-tests: New file.
50849         * tests/unicase/test-u32-totitle.c: New file.
50850
50851         Tests for module 'unicase/u16-totitle'.
50852         * modules/unicase/u16-totitle-tests: New file.
50853         * tests/unicase/test-u16-totitle.c: New file.
50854
50855         Tests for module 'unicase/u8-totitle'.
50856         * modules/unicase/u8-totitle-tests: New file.
50857         * tests/unicase/test-u8-totitle.c: New file.
50858
50859         New module 'unicase/u32-totitle'.
50860         * lib/unicase/u32-totitle.c: New file.
50861         * modules/unicase/u32-totitle: New file.
50862
50863         New module 'unicase/u16-totitle'.
50864         * lib/unicase/u16-totitle.c: New file.
50865         * modules/unicase/u16-totitle: New file.
50866
50867         New module 'unicase/u8-totitle'.
50868         * lib/unicase/u8-totitle.c: New file.
50869         * lib/unicase/u-totitle.h: New file.
50870         * modules/unicase/u8-totitle: New file.
50871
50872         Tests for module 'unicase/u32-tolower'.
50873         * modules/unicase/u32-tolower-tests: New file.
50874         * tests/unicase/test-u32-tolower.c: New file.
50875
50876         Tests for module 'unicase/u16-tolower'.
50877         * modules/unicase/u16-tolower-tests: New file.
50878         * tests/unicase/test-u16-tolower.c: New file.
50879
50880         Tests for module 'unicase/u8-tolower'.
50881         * modules/unicase/u8-tolower-tests: New file.
50882         * tests/unicase/test-u8-tolower.c: New file.
50883
50884         New module 'unicase/u32-tolower'.
50885         * lib/unicase/u32-tolower.c: New file.
50886         * modules/unicase/u32-tolower: New file.
50887
50888         New module 'unicase/u16-tolower'.
50889         * lib/unicase/u16-tolower.c: New file.
50890         * modules/unicase/u16-tolower: New file.
50891
50892         New module 'unicase/u8-tolower'.
50893         * lib/unicase/u8-tolower.c: New file.
50894         * modules/unicase/u8-tolower: New file.
50895
50896         Tests for module 'unicase/u32-toupper'.
50897         * modules/unicase/u32-toupper-tests: New file.
50898         * tests/unicase/test-u32-toupper.c: New file.
50899
50900         Tests for module 'unicase/u16-toupper'.
50901         * modules/unicase/u16-toupper-tests: New file.
50902         * tests/unicase/test-u16-toupper.c: New file.
50903
50904         Tests for module 'unicase/u8-toupper'.
50905         * modules/unicase/u8-toupper-tests: New file.
50906         * tests/unicase/test-u8-toupper.c: New file.
50907
50908         New module 'unicase/u32-toupper'.
50909         * lib/unicase/u32-toupper.c: New file.
50910         * modules/unicase/u32-toupper: New file.
50911
50912         New module 'unicase/u16-toupper'.
50913         * lib/unicase/u16-toupper.c: New file.
50914         * modules/unicase/u16-toupper: New file.
50915
50916         New module 'unicase/u8-toupper'.
50917         * lib/unicase/u8-toupper.c: New file.
50918         * modules/unicase/u8-toupper: New file.
50919
50920         New module 'unicase/u32-casemap'.
50921         * lib/unicase/u32-casemap.c: New file.
50922         * modules/unicase/u32-casemap: New file.
50923
50924         New module 'unicase/u16-casemap'.
50925         * lib/unicase/u16-casemap.c: New file.
50926         * modules/unicase/u16-casemap: New file.
50927
50928         New module 'unicase/u8-casemap'.
50929         * lib/unicase/unicasemap.h: New file.
50930         * lib/unicase/u8-casemap.c: New file.
50931         * lib/unicase/u-casemap.h: New file.
50932         * modules/unicase/u8-casemap: New file.
50933
50934         New module 'unicase/special-casing'.
50935         * lib/unicase/special-casing.h: New file.
50936         * lib/unicase/special-casing.c: New file.
50937         * lib/unicase/special-casing-table.gperf: New file, generated by
50938         gen-uni-tables.c.
50939         * modules/unicase/special-casing: New file.
50940
50941         Tests for module 'unicase/locale-language'.
50942         * modules/unicase/locale-language-tests: New file.
50943         * tests/unicase/test-locale-language.sh: New file.
50944         * tests/unicase/test-locale-language.c: New file.
50945
50946         New module 'unicase/locale-language'.
50947         * lib/unicase/locale-language.c: New file.
50948         * lib/unicase/locale-languages.gperf: New file.
50949         * modules/unicase/locale-language: New file.
50950
50951         Generate more tables for case conversion and case folding.
50952         * lib/gen-uni-tables.c (SCC_*): New enum items.
50953         (struct special_casing_rule): New type.
50954         (casing_rules, num_casing_rules, allocated_casing_rules): New
50955         variables.
50956         (add_casing_rule, fill_casing_rules): New functions.
50957         (struct casefold_rule): New type.
50958         (casefolding_rules, num_casefolding_rules,
50959         allocated_casefolding_rules): New variables.
50960         (fill_casefolding_rules): New function.
50961         (unicode_casefold): New variable.
50962         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50963         sort_casing_rules, output_casing_rules): New functions.
50964         (main): Accept to more arguments: SpecialCasing.txt and
50965         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50966         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50967         Output mapping for casefolding.
50968
50969         * lib/unicase.h: Include stdbool.h, uninorm.h.
50970         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50971         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50972         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50973         arguments.
50974         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50975         resultp arguments.
50976         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50977         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50978         resultp arguments.
50979         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50980         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50981         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50982         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50983         declarations.
50984         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50985
50986 2009-03-08  Bruno Haible  <bruno@clisp.org>
50987
50988         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50989         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50990         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50991         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50992
50993 2009-03-07  Bruno Haible  <bruno@clisp.org>
50994
50995         Adjust u*_normcmp, u*_normcoll API.
50996         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50997         u16_normcoll, u32_normcoll): Change failure conventions.
50998         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50999         errno and return -1.
51000         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51001
51002 2009-03-07  Bruno Haible  <bruno@clisp.org>
51003
51004         Tests for module 'uninorm/u32-normcoll'.
51005         * modules/uninorm/u32-normcoll-tests: New file.
51006         * tests/uninorm/test-u32-normcoll.c: New file.
51007
51008         Tests for module 'uninorm/u16-normcoll'.
51009         * modules/uninorm/u16-normcoll-tests: New file.
51010         * tests/uninorm/test-u16-normcoll.c: New file.
51011
51012         Tests for module 'uninorm/u8-normcoll'.
51013         * modules/uninorm/u8-normcoll-tests: New file.
51014         * tests/uninorm/test-u8-normcoll.c: New file.
51015
51016 2009-03-07  Bruno Haible  <bruno@clisp.org>
51017
51018         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51019         tests/uninorm/test-u32-normcmp.c.
51020         * tests/uninorm/test-u32-normcmp.c: Include it.
51021         (test_nonascii): New function, extracted from main. Add some more
51022         tests.
51023         (main): Invoke test_ascii and test_nonascii.
51024         * modules/uninorm/u32-normcmp-tests (Files): Add
51025         tests/uninorm/test-u32-normcmp.h.
51026         (Depends-on): Remove uninorm/u32-normcmp.
51027
51028         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51029         tests/uninorm/test-u16-normcmp.c.
51030         * tests/uninorm/test-u16-normcmp.c: Include it.
51031         (test_nonascii): New function, extracted from main. Add some more
51032         tests.
51033         (main): Invoke test_ascii and test_nonascii.
51034         * modules/uninorm/u16-normcmp-tests (Files): Add
51035         tests/uninorm/test-u16-normcmp.h.
51036         (Depends-on): Remove uninorm/u16-normcmp.
51037
51038         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51039         tests/uninorm/test-u8-normcmp.c.
51040         * tests/uninorm/test-u8-normcmp.c: Include it.
51041         (test_nonascii): New function, extracted from main. Add some more
51042         tests.
51043         (main): Invoke test_ascii and test_nonascii.
51044         * modules/uninorm/u8-normcmp-tests (Files): Add
51045         tests/uninorm/test-u8-normcmp.h.
51046         (Depends-on): Remove uninorm/u8-normcmp.
51047
51048 2009-03-07  Bruno Haible  <bruno@clisp.org>
51049
51050         New module 'uninorm/u32-normcoll'.
51051         * lib/uninorm/u32-normcoll.c: New file.
51052         * modules/uninorm/u32-normcoll: New file.
51053
51054         New module 'uninorm/u16-normcoll'.
51055         * lib/uninorm/u16-normcoll.c: New file.
51056         * modules/uninorm/u16-normcoll: New file.
51057
51058         New module 'uninorm/u8-normcoll'.
51059         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51060         declarations.
51061         * lib/uninorm/u8-normcoll.c: New file.
51062         * lib/uninorm/u-normcoll.h: New file.
51063         * modules/uninorm/u8-normcoll: New file.
51064
51065         New module 'uninorm/u32-normxfrm'.
51066         * lib/uninorm/u32-normxfrm.c: New file.
51067         * modules/uninorm/u32-normxfrm: New file.
51068
51069         New module 'uninorm/u16-normxfrm'.
51070         * lib/uninorm/u16-normxfrm.c: New file.
51071         * modules/uninorm/u16-normxfrm: New file.
51072
51073         New module 'uninorm/u8-normxfrm'.
51074         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51075         declarations.
51076         * lib/uninorm/u8-normxfrm.c: New file.
51077         * lib/uninorm/u-normxfrm.h: New file.
51078         * modules/uninorm/u8-normxfrm: New file.
51079
51080 2009-03-07  Bruno Haible  <bruno@clisp.org>
51081
51082         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51083         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51084         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51085
51086 2009-03-07  Bruno Haible  <bruno@clisp.org>
51087
51088         New module 'memxfrm'.
51089         * lib/memxfrm.h: New file.
51090         * lib/memxfrm.c: New file.
51091         * modules/memxfrm: New file.
51092
51093 2009-03-07  Bruno Haible  <bruno@clisp.org>
51094
51095         New module 'memcmp2'.
51096         * lib/memcmp2.h: New file.
51097         * lib/memcmp2.c: New file.
51098         * modules/memcmp2: New file.
51099
51100 2009-03-07  Bruno Haible  <bruno@clisp.org>
51101
51102         Tests for module 'uninorm/decomposing-form'.
51103         * modules/uninorm/decomposing-form-tests: New file.
51104         * tests/uninorm/test-decomposing-form.c: New file.
51105
51106         New module 'uninorm/decomposing-form'.
51107         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51108         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51109         Add 'decomposing_variant' field.
51110         * lib/uninorm/decomposing-form.c: New file.
51111         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51112         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51113         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51114         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51115         * modules/uninorm/decomposing-form: New file.
51116         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51117         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51118
51119 2009-03-07  Bruno Haible  <bruno@clisp.org>
51120
51121         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51122         strings.
51123
51124 2009-03-06  Bruno Haible  <bruno@clisp.org>
51125
51126         Tests for module 'uninorm/u32-normcmp'.
51127         * tests/uninorm/test-u32-normcmp.c: New file.
51128         * modules/uninorm/u32-normcmp-tests: New file.
51129
51130         Tests for module 'uninorm/u16-normcmp'.
51131         * tests/uninorm/test-u16-normcmp.c: New file.
51132         * modules/uninorm/u16-normcmp-tests: New file.
51133
51134         Tests for module 'uninorm/u8-normcmp'.
51135         * tests/uninorm/test-u8-normcmp.c: New file.
51136         * modules/uninorm/u8-normcmp-tests: New file.
51137
51138         New module 'uninorm/u32-normcmp'.
51139         * lib/uninorm/u32-normcmp.c: New file.
51140         * modules/uninorm/u32-normcmp: New file.
51141
51142         New module 'uninorm/u16-normcmp'.
51143         * lib/uninorm/u16-normcmp.c: New file.
51144         * modules/uninorm/u16-normcmp: New file.
51145
51146         New module 'uninorm/u8-normcmp'.
51147         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51148         declarations.
51149         * lib/uninorm/u8-normcmp.c: New file.
51150         * lib/uninorm/u-normcmp.h: New file.
51151         * modules/uninorm/u8-normcmp: New file.
51152
51153 2009-03-06  Bruno Haible  <bruno@clisp.org>
51154
51155         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51156         Reported by Eric Blake.
51157
51158 2009-03-06  Eric Blake  <ebb9@byu.net>
51159             Bruno Haible  <bruno@clisp.org>
51160
51161         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51162         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51163         condition.
51164         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51165         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51166         condition.
51167         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51168
51169 2009-03-06  Eric Blake  <ebb9@byu.net>
51170
51171         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51172         to avoid compiler warnings.
51173         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51174
51175 2009-03-05  Bruno Haible  <bruno@clisp.org>
51176
51177         * tests/test-ftell.c (main): Disable test beyond end of file on
51178         FreeMiNT.
51179         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51180
51181 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51182
51183         * lib/filevercmp.c: Move hidden files up in ordering.
51184         * tests/test-filevercmp.c: Add tests for hidden files.
51185
51186 2009-03-04  Bruno Haible  <bruno@clisp.org>
51187
51188         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51189         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51190         AM_CFLAGS.
51191         Reported by Simon Josefsson.
51192
51193 2009-03-03  Bruno Haible  <bruno@clisp.org>
51194
51195         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51196         Reported by Simon Josefsson.
51197
51198         * doc/ld-version-script.texi: Update node reference.
51199
51200 2009-03-03  Bruno Haible  <bruno@clisp.org>
51201
51202         * modules/visibility (License): Change to 'unlimited'.
51203         Suggested by Simon Josefsson.
51204
51205 2009-03-03  Jim Meyering  <meyering@redhat.com>
51206
51207         unlinkdir: cannot_unlink_dir may modify process state
51208         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51209         it's neither thread-safe nor appropriate for use in a library.
51210
51211 2009-03-03  Eric Blake  <ebb9@byu.net>
51212
51213         test-closein: silence test under Darwin
51214         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51215         care if it dies from EPIPE or EBADF.
51216
51217 2009-03-03  Bruno Haible  <bruno@clisp.org>
51218
51219         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51220         earlier.
51221         * doc/visibility.texi: Fix @node and @section.
51222
51223 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51224
51225         * doc/gnulib.texi: Link to sections for ld version script and
51226         visibility.
51227         * doc/visibility.texi: Add @node and @section.
51228         * modules/ld-version-script: New module.
51229         * m4/ld-version-script.m4: New file.
51230         * doc/ld-version-script.texi: New file.
51231
51232 2009-03-02  David Lutterkort  <lutter@redhat.com>
51233
51234         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51235         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51236
51237 2009-03-02  Bruno Haible  <bruno@clisp.org>
51238
51239         * doc/visibility.texi: Mention libtool's -export-symbols option.
51240
51241 2009-03-02  Jim Meyering  <meyering@redhat.com>
51242
51243         announce-gen: new option: --no-print-checksums
51244         * build-aux/announce-gen (usage): Describe it.
51245         (print_checksums): Print a newline here, not in the [*] footnote.
51246         (main): Honor it.
51247
51248 2009-03-01  Bruno Haible  <bruno@clisp.org>
51249
51250         Use socklen_t in the native Windows replacements prototypes.
51251         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51252         instead of 'int'.
51253         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51254         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51255         * modules/getsockopt (Depends-on): Add socklen.
51256         * modules/setsockopt (Depends-on): Add socklen.
51257
51258 2009-03-01  Bruno Haible  <bruno@clisp.org>
51259
51260         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51261         least 4.2.
51262
51263 2009-03-01  Eric Blake  <ebb9@byu.net>
51264             Bruno Haible  <bruno@clisp.org>
51265
51266         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51267         error messages.
51268         * lib/wait-process.c (wait_subprocess): Omit error message about
51269         deadly signal sent to the child of termsigp != NULL.
51270
51271 2009-03-01  Eric Blake  <ebb9@byu.net>
51272
51273         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51274
51275 2009-03-01  Bruno Haible  <bruno@clisp.org>
51276
51277         Avoid a gcc warning.
51278         * tests/test-sched.c (b): Make global.
51279         Reported by Eric Blake.
51280
51281 2009-01-19  Martin Lambers  <marlam@marlam.de>
51282
51283         Provide POSIX semantics for socket timeout options on W32.
51284         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51285         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51286         * modules/setsockopt: Depend on sys_time module for struct timeval.
51287         * modules/getsockopt: Depend on sys_time module for struct timeval.
51288
51289 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51290
51291         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51292         __USE_GNU, for consistency with netdb.in.h.
51293         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51294
51295 2009-03-01  Bruno Haible  <bruno@clisp.org>
51296
51297         More support for FreeMiNT.
51298         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51299         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51300
51301 2009-03-01  Bruno Haible  <bruno@clisp.org>
51302
51303         More support for FreeMiNT.
51304         * lib/fpurge.c (fpurge): Correct last commit.
51305         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51306
51307 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51308
51309         Fix unportable awk script in vc-list-files.
51310         * build-aux/vc-list-files: In the replacement awk script, use
51311         substr with a second argument of 1, not zero.
51312         Report by Simon Josefsson.
51313
51314 2009-02-28  Bruno Haible  <bruno@clisp.org>
51315
51316         More support for FreeMiNT.
51317         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51318         to FreeMiNT today.
51319         * lib/fwriting.c (fwriting): Likewise.
51320         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51321
51322 2009-02-28  Bruno Haible  <bruno@clisp.org>
51323
51324         * tests/test-freadseek.c (main): Disable test beyond end of file on
51325         FreeMiNT.
51326         * tests/test-ftello.c (main): Likewise.
51327         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51328
51329 2009-02-28  Bruno Haible  <bruno@clisp.org>
51330
51331         Add tentative support for FreeMiNT.
51332         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51333         * lib/fpurge.c (fpurge): Likewise.
51334         * lib/freadable.c (freadable): Likewise.
51335         * lib/freading.c (freading): Likewise.
51336         * lib/freadptr.c (freadptr): Likewise.
51337         * lib/freadseek.c (freadptrinc): Likewise.
51338         * lib/fseeko.c (rpl_fseeko): Likewise.
51339         * lib/fseterr.c (fseterr): Likewise.
51340         * lib/fwritable.c (fwritable): Likewise.
51341         * lib/fwriting.c (fwriting): Likewise.
51342         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51343         Hourihane.
51344         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51345
51346 2009-02-28  Bruno Haible  <bruno@clisp.org>
51347
51348         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51349         SIGCHLD.
51350         Reported by Jim Meyering.
51351
51352 2009-02-28  Bruno Haible  <bruno@clisp.org>
51353
51354         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51355         Mention the results of these tests on various platforms.
51356         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51357         order.
51358         * doc/posix-functions/printf.texi: Likewise.
51359         * doc/posix-functions/snprintf.texi: Likewise.
51360         * doc/posix-functions/sprintf.texi: Likewise.
51361         * doc/posix-functions/vfprintf.texi: Likewise.
51362         * doc/posix-functions/vprintf.texi: Likewise.
51363         * doc/posix-functions/vsnprintf.texi: Likewise.
51364         * doc/posix-functions/vsprintf.texi: Likewise.
51365         * doc/glibc-functions/obstack_printf.texi: Likewise.
51366         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51367
51368 2009-02-28  Bruno Haible  <bruno@clisp.org>
51369
51370         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51371         Reported by Loïc Minier <lool@dooz.org>.
51372
51373 2009-02-27  Bruno Haible  <bruno@clisp.org>
51374
51375         * gnulib-tool (func_import): Make the sed expression used to create the
51376         sed script for updating the .gitignore file POSIX compliant.
51377         Reported by Eric Blake.
51378
51379 2009-02-27  Bruno Haible  <bruno@clisp.org>
51380
51381         * gnulib-tool (sed): Don't alias as "sed --posix".
51382         Reported by Eric Blake.
51383
51384 2009-02-27  Bruno Haible  <bruno@clisp.org>
51385
51386         Avoid test link errors.
51387         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51388         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51389         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51390         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51391         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51392
51393 2009-02-27  Bruno Haible  <bruno@clisp.org>
51394
51395         Avoid spurious "(cached)" in configure output.
51396         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51397         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51398         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51399         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51400         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51401         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51402         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51403         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51404         Reported by Eric Blake.
51405
51406 2009-02-27  Eric Blake  <ebb9@byu.net>
51407
51408         printf: fix regression in previous patch
51409         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51410
51411 2009-02-27  Bruno Haible  <bruno@clisp.org>
51412
51413         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51414         value.
51415         * lib/stdint.in.h: Likewise.
51416         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51417
51418 2009-02-27  Eric Blake  <ebb9@byu.net>
51419
51420         doc: mention more functions added in cygwin 1.7.0
51421         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51422         addition.
51423         * doc/posix-functions/open_wmemstream.texi: Likewise.
51424         * doc/posix-functions/wcsnlen.texi: Likewise.
51425         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51426         * doc/posix-functions/wcstod.texi: Likewise.
51427         * doc/posix-functions/wcstof.texi: Likewise.
51428         * doc/posix-functions/wcstoimax.texi: Likewise.
51429         * doc/posix-functions/wcstok.texi: Likewise.
51430         * doc/posix-functions/wcstoumax.texi: Likewise.
51431
51432         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51433         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51434         * doc/posix-functions/fprintf.texi: Update.
51435         * doc/posix-functions/printf.texi: Update.
51436         * doc/posix-functions/snprintf.texi: Update.
51437         * doc/posix-functions/sprintf.texi: Update.
51438         * doc/posix-functions/vfprintf.texi: Update.
51439         * doc/posix-functions/vprintf.texi: Update.
51440         * doc/posix-functions/vsnprintf.texi: Update.
51441         * doc/posix-functions/vsprintf.texi: Update.
51442         * doc/glibc-functions/obstack_printf.texi: Update.
51443         * doc/glibc-functions/obstack_vprintf.texi: Update.
51444
51445 2009-02-26  Eric Blake  <ebb9@byu.net>
51446
51447         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51448         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51449         compilation bug by using runtime conversion.
51450         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51451         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51452         * modules/ceill-tests (Files): Use nan.h.
51453         * modules/floorl-tests (Files): Likewise.
51454         * modules/frexpl-tests (Files): Likewise.
51455         * modules/isnanl-tests (Files): Likewise.
51456         * modules/ldexpl-tests (Files): Likewise.
51457         * modules/roundl-tests (Files): Likewise.
51458         * modules/truncl-tests (Files): Likewise.
51459         * tests/test-ceill.c (main): Use a working NaN.
51460         * tests/test-floorl.c (main): Likewise.
51461         * tests/test-frexpl.c (main): Likewise.
51462         * tests/test-isnan.c (test_long_double): Likewise.
51463         * tests/test-isnanl.h (main): Likewise.
51464         * tests/test-ldexpl.h (main): Likewise.
51465         * tests/test-roundl.h (main): Likewise.
51466         * tests/test-truncl.h (main): Likewise.
51467         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51468
51469 2009-02-26  Eric Blake  <ebb9@byu.net>
51470             Bruno Haible  <bruno@clisp.org>
51471
51472         Work around a *printf bug with %ls on Solaris.
51473         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51474         precision is specified, sprintf stops converting the wide string
51475         argument when the number of bytes that have been produced by this
51476         conversion equals or exceeds the precision.
51477         * doc/posix-functions/fprintf.texi: Update.
51478         * doc/posix-functions/printf.texi: Update.
51479         * doc/posix-functions/snprintf.texi: Update.
51480         * doc/posix-functions/sprintf.texi: Update.
51481         * doc/posix-functions/vfprintf.texi: Update.
51482         * doc/posix-functions/vprintf.texi: Update.
51483         * doc/posix-functions/vsnprintf.texi: Update.
51484         * doc/posix-functions/vsprintf.texi: Update.
51485         * doc/glibc-functions/obstack_printf.texi: Update.
51486         * doc/glibc-functions/obstack_vprintf.texi: Update.
51487
51488 2009-02-26  Eric Blake  <ebb9@byu.net>
51489
51490         stdlib: favor compiler check of random.h
51491         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51492         to avoid an ObjC random.h installed by Swarm.
51493
51494 2009-02-26  Bruno Haible  <bruno@clisp.org>
51495
51496         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51497         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51498         Reported by Gary V. Vaughan <gary@gnu.org>.
51499
51500 2009-02-26  Bruno Haible  <bruno@clisp.org>
51501
51502         Fix *printf behaviour regarding the %ls directive.
51503         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51504         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51505         NEED_PRINTF_DIRECTIVE_LS.
51506         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51507         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51508         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51509         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51510         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51511         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51512         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51513         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51514         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51515         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51517         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51518         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51519         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51520         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51521         * doc/posix-functions/fprintf.texi: Update.
51522         * doc/posix-functions/printf.texi: Update.
51523         * doc/posix-functions/snprintf.texi: Update.
51524         * doc/posix-functions/sprintf.texi: Update.
51525         * doc/posix-functions/vfprintf.texi: Update.
51526         * doc/posix-functions/vprintf.texi: Update.
51527         * doc/posix-functions/vsnprintf.texi: Update.
51528         * doc/posix-functions/vsprintf.texi: Update.
51529         * doc/glibc-functions/obstack_printf.texi: Update.
51530         * doc/glibc-functions/obstack_vprintf.texi: Update.
51531         Reported by Eric Blake.
51532
51533 2009-02-25  Bruno Haible  <bruno@clisp.org>
51534
51535         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51536         with known value.
51537         Reported by Gary V. Vaughan <gary@gnu.org>.
51538
51539 2009-02-25  Bruno Haible  <bruno@clisp.org>
51540
51541         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51542         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51543         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51544         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51545         Reported by Gary V. Vaughan <gary@gnu.org>.
51546
51547 2009-02-25  Bruno Haible  <bruno@clisp.org>
51548
51549         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51550         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51551         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51552         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51553         Reported by Gary V. Vaughan <gary@gnu.org>.
51554
51555 2009-02-25  Eric Blake  <ebb9@byu.net>
51556
51557         tests: skip fseek/ftell tests if ungetc is broken
51558         * m4/ungetc.m4: New file.
51559         * modules/fseek-tests: Split test, so ungetc dependency is
51560         separate from rest of test.
51561         * modules/fseeko-tests: Likewise.
51562         * modules/ftell-tests: Likewise.
51563         * modules/ftello-tests: Likewise.
51564         * tests/test-fseek.c (main): Isolate ungetc dependency.
51565         * tests/test-fseeko.c (main): Likewise.
51566         * tests/test-ftell.c (main): Likewise.
51567         * tests/test-ftello.c (main): Likewise.
51568         * tests/test-fseek2.sh: New file.
51569         * tests/test-fseeko2.sh: Likewise.
51570         * tests/test-ftell2.sh: Likewise.
51571         * tests/test-ftello2.sh: Likewise.
51572
51573 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
51574
51575         test-getaddrinfo: fix usage of skip return code 77
51576         * tests/test-gettaddrinfo.c: Return skip code 77 only
51577         for first occurrence of skip (4x77 is not 77)
51578
51579 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51580
51581         strtod: avoid C99 decl-after-statement
51582         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51583
51584 2009-02-24  Eric Blake  <ebb9@byu.net>
51585
51586         strtod: detect HP-UX 11.31 bug
51587         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51588         Reported by Gary V. Vaughan.
51589
51590 2009-02-23  Bruno Haible  <bruno@clisp.org>
51591
51592         Fix invalid read past end of memory block.
51593         * lib/vasnprintf.c (DCHAR_SET): Define.
51594         (local_wcslen): Define only when needed.
51595         (local_strnlen, local_wcsnlen): New functions.
51596         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51597         directives that involve a conversion ourselves.
51598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51599         wcsnlen, mbrtowc, wcrtomb.
51600         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51601         * tests/test-vasprintf-posix.c (test_function): Likewise.
51602         * tests/test-snprintf-posix.h (test_function): Likewise.
51603         * tests/test-sprintf-posix.h (test_function): Likewise.
51604         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51605
51606 2009-02-22  Bruno Haible  <bruno@clisp.org>
51607
51608         Implement new clarified decomposition of Hangul syllables.
51609         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51610         of type LTV, return only a pairwise decomposition.
51611         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51612         Likewise.
51613         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51614         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51615         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51616
51617 2009-02-22  Bruno Haible  <bruno@clisp.org>
51618
51619         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51620         zero-length results and shrink excess allocated memory.
51621         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51622         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51623         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51624         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51625         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51626         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51627         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51628         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51629         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51630         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51631         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51632         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51633
51634 2009-02-21  Bruno Haible  <bruno@clisp.org>
51635
51636         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51637         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51638         spaces after a period. Put a space between a macro name and its
51639         argument list. Trivial rewordings.
51640         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51641         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51642         (main): Return 0 explicitly.
51643
51644 2009-02-21  Bruno Haible  <bruno@clisp.org>
51645
51646         Tests for module 'uninorm/filter'.
51647         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51648         * modules/uninorm/filter-tests: New file.
51649
51650         New module 'uninorm/filter'.
51651         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51652         uninorm_filter_flush, uninorm_filter_free): New declarations.
51653         * lib/uninorm/uninorm-filter.c: New file.
51654         * modules/uninorm/filter: New file.
51655
51656 2009-02-21  Bruno Haible  <bruno@clisp.org>
51657
51658         Tests for module 'uninorm/nfkc'.
51659         * tests/uninorm/test-nfkc.c: New file.
51660         * tests/uninorm/test-u8-nfkc.c: New file.
51661         * tests/uninorm/test-u16-nfkc.c: New file.
51662         * tests/uninorm/test-u32-nfkc.c: New file.
51663         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51664         * tests/uninorm/test-u32-nfkc-big.c: New file.
51665         * modules/uninorm/nfkc-tests: New file.
51666
51667         New module 'uninorm/nfkc'.
51668         * lib/uninorm/nfkc.c: New file.
51669         * modules/uninorm/nfkc: New file.
51670
51671         Tests for module 'uninorm/nfkd'.
51672         * tests/uninorm/test-nfkd.c: New file.
51673         * tests/uninorm/test-u8-nfkd.c: New file.
51674         * tests/uninorm/test-u16-nfkd.c: New file.
51675         * tests/uninorm/test-u32-nfkd.c: New file.
51676         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51677         * tests/uninorm/test-u32-nfkd-big.c: New file.
51678         * modules/uninorm/nfkd-tests: New file.
51679
51680         New module 'uninorm/nfkd'.
51681         * lib/uninorm/nfkd.c: New file.
51682         * modules/uninorm/nfkd: New file.
51683
51684         Tests for module 'uninorm/nfc'.
51685         * tests/uninorm/test-nfc.c: New file.
51686         * tests/uninorm/test-u8-nfc.c: New file.
51687         * tests/uninorm/test-u16-nfc.c: New file.
51688         * tests/uninorm/test-u32-nfc.c: New file.
51689         * tests/uninorm/test-u32-nfc-big.sh: New file.
51690         * tests/uninorm/test-u32-nfc-big.c: New file.
51691         * modules/uninorm/nfc-tests: New file.
51692
51693         New module 'uninorm/nfc'.
51694         * lib/uninorm/nfc.c: New file.
51695         * modules/uninorm/nfc: New file.
51696
51697         Tests for module 'uninorm/nfd'.
51698         * tests/uninorm/test-nfd.c: New file.
51699         * tests/uninorm/test-u8-nfd.c: New file.
51700         * tests/uninorm/test-u16-nfd.c: New file.
51701         * tests/uninorm/test-u32-nfd.c: New file.
51702         * tests/uninorm/test-u32-nfd-big.sh: New file.
51703         * tests/uninorm/test-u32-nfd-big.c: New file.
51704         * tests/uninorm/test-u32-normalize-big.h: New file.
51705         * tests/uninorm/test-u32-normalize-big.c: New file.
51706         * tests/uninorm/NormalizationTest.txt: New file, created from
51707         Unicode 5.1.0 NormalizationTest.txt.
51708         * modules/uninorm/nfd-tests: New file.
51709
51710         New module 'uninorm/nfd'.
51711         * lib/uninorm/nfd.c: New file.
51712         * modules/uninorm/nfd: New file.
51713
51714         New module 'uninorm/u32-normalize'.
51715         * lib/uninorm/u32-normalize.c: New file.
51716         * modules/uninorm/u32-normalize: New file.
51717
51718         New module 'uninorm/u16-normalize'.
51719         * lib/uninorm/u16-normalize.c: New file.
51720         * modules/uninorm/u16-normalize: New file.
51721
51722         New module 'uninorm/u8-normalize'.
51723         * lib/uninorm/u8-normalize.c: New file.
51724         * lib/uninorm/normalize-internal.h: New file.
51725         * lib/uninorm/u-normalize-internal.h: New file.
51726         * modules/uninorm/u8-normalize: New file.
51727
51728         New module 'uninorm/decompose-internal'.
51729         * lib/uninorm/decompose-internal.c: New file.
51730         * modules/uninorm/decompose-internal: New file.
51731
51732         Tests for module 'uninorm/composition'.
51733         * tests/uninorm/test-composition.c: New file.
51734         * modules/uninorm/composition-tests: New file.
51735
51736         New module 'uninorm/composition'.
51737         * lib/uninorm/composition.c: New file.
51738         * lib/uninorm/composition-table.gperf: New file, generated by
51739         gen-uni-tables.
51740         * modules/uninorm/composition: New file.
51741
51742         Tests for module 'uninorm/compat-decomposition'.
51743         * tests/uninorm/test-compat-decomposition.c: New file.
51744         * modules/uninorm/compat-decomposition-tests: New file.
51745
51746         New module 'uninorm/compat-decomposition'.
51747         * lib/uninorm/decompose-internal.h: New file.
51748         * lib/uninorm/compat-decomposition.c: New file.
51749         * modules/uninorm/compat-decomposition: New file.
51750
51751         Tests for module 'uninorm/canonical-decomposition'.
51752         * tests/uninorm/test-canonical-decomposition.c: New file.
51753         * modules/uninorm/canonical-decomposition-tests: New file.
51754
51755         New module 'uninorm/canonical-decomposition'.
51756         * lib/uninorm/canonical-decomposition.c: New file.
51757         * modules/uninorm/canonical-decomposition: New file.
51758
51759         Tests for module 'uninorm/decomposition'.
51760         * tests/uninorm/test-decomposition.c: New file.
51761         * modules/uninorm/decomposition-tests: New file.
51762
51763         New module 'uninorm/decomposition'.
51764         * lib/uninorm/decomposition.c: New file.
51765         * modules/uninorm/decomposition: New file.
51766
51767         New module 'uninorm/decomposition-table'.
51768         * lib/uninorm/decomposition-table.h: New file.
51769         * lib/uninorm/decomposition-table.c: New file.
51770         * lib/uninorm/decomposition-table1.h: New file, generated by
51771         gen-uni-tables.
51772         * lib/uninorm/decomposition-table2.h: New file, generated by
51773         gen-uni-tables.
51774         * modules/uninorm/decomposition-table: New file.
51775
51776         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51777         (UC_DECOMP_*): New enumeration items.
51778         (get_decomposition): New function.
51779         (struct decomp_table): New type.
51780         (output_decomposition, output_decomposition_tables): New functions.
51781         (unicode_composition_exclusions): New variable.
51782         (fill_composition_exclusions, debug_output_composition_tables): New
51783         functions.
51784         (main): Accept one more argument. Invoke fill_composition_exclusions.
51785         Output decomposition and composition tables.
51786
51787         New module 'uninorm/base'.
51788         * lib/uninorm.h: New file.
51789         * lib/unictype.h: Update comment.
51790         * modules/uninorm/base: New file.
51791
51792 2009-02-21  David Lutterkort  <lutter@redhat.com>
51793
51794         Tests for module 'safe-alloc'.
51795         * tests/test-safe-alloc.c: New file.
51796         * modules/safe-alloc-tests: New file.
51797
51798         New module 'safe-alloc'.
51799         * lib/safe-alloc.h: New file.
51800         * lib/safe-alloc.c: New file.
51801         * m4/safe-alloc.m4: New file.
51802         * modules/safe-alloc: New file.
51803         * doc/safe-alloc.texi: New file.
51804         * doc/gnulib.texi: Include it.
51805         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51806         safe-alloc.
51807
51808 2009-02-18  Bruno Haible  <bruno@clisp.org>
51809
51810         Fix link error on non-glibc systems.
51811         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51812         variable.
51813         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51814
51815 2009-02-18  Jim Meyering  <meyering@redhat.com>
51816
51817         fts: avoid used-uninitialized error due to recent change
51818         * lib/fts.c (fts_read): Guard uses of the new member,
51819         parent->fts_n_dirs_remaining, since it's not relevant for
51820         the parent of a directory specified on the command-line.
51821
51822 2009-02-17  James Youngman  <jay@gnu.org>
51823             Bruno Haible  <bruno@clisp.org>
51824
51825         * m4/include_next.m4: Reformulate comment.
51826
51827 2009-02-16  Jim Meyering  <meyering@redhat.com>
51828
51829         fts: add #if guards so that the fts_lgpl module still builds
51830         * lib/fts.c: Guard just-added hash-table-using parts with
51831         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51832         Reported by Simon Josefsson.
51833
51834 2009-02-15  Bruno Haible  <bruno@clisp.org>
51835
51836         * modules/array-mergesort-tests: New file.
51837         * tests/test-array-mergesort.c: New file.
51838
51839         New module 'array-mergesort'.
51840         * modules/array-mergesort: New file.
51841         * lib/array-mergesort.h: New file.
51842
51843 2009-02-15  Bruno Haible  <bruno@clisp.org>
51844
51845         Fix 2009-02-07 commit.
51846         * lib/gen-uni-tables.c (output_predicate, output_category,
51847         output_combclass, output_bidi_category, output_decimal_digit,
51848         output_digit, output_numeric, output_mirror, output_scripts,
51849         output_ident_category, output_simple_mapping): Fix format directives.
51850         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51851
51852 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51853
51854         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51855         fixes are available from IBM.
51856
51857 2009-02-13  Jim Meyering  <meyering@redhat.com>
51858
51859         fts: arrange not to stat non-directories in more cases
51860         This makes GNU find (when it doesn't need to stat each file)
51861         *much* more efficient at traversing reiserfs file systems.
51862         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
51863         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
51864         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
51865         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
51866         (leaf_optimization_applies): New function.
51867         (LCO_hash, LCO_compare): New helper functions.
51868         (link_count_optimize_ok): New function.
51869         (fts_stat): Initialize new member (if dir).
51870         (fts_read): Decrement parent's fts_n_dirs_remaining count if
51871         we've just stat'ed a directory.  Skip the stat call when possible.
51872         ---
51873         Note this AFS-related exchange:
51874         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
51875         and note find's pioctl call in find/fstype.c.
51876         But that is necessary only if you want to enable the
51877         optimization for AFS, and for now, I don't.
51878
51879         fts: move a function definition "up" (no semantic change)
51880         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
51881         "up" to precede upcoming use of a related function.
51882
51883 2009-02-11  Jim Meyering  <meyering@redhat.com>
51884
51885         fts: correct internal computation of nlinks (optimization-related)
51886         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
51887         whether the current entry is a directory, so don't test it.
51888
51889 2009-02-10  Bruno Haible  <bruno@clisp.org>
51890
51891         Tests for module 'uniwbrk/ulc-wordbreaks'.
51892         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
51893         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
51894         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
51895
51896         Tests for module 'uniwbrk/u32-wordbreaks'.
51897         * modules/uniwbrk/u32-wordbreaks-tests: New file.
51898         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
51899
51900         Tests for module 'uniwbrk/u16-wordbreaks'.
51901         * modules/uniwbrk/u16-wordbreaks-tests: New file.
51902         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
51903
51904         Tests for module 'uniwbrk/u8-wordbreaks'.
51905         * modules/uniwbrk/u8-wordbreaks-tests: New file.
51906         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
51907
51908 2009-02-10  Bruno Haible  <bruno@clisp.org>
51909
51910         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51911         property.
51912         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51913         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51914         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51915
51916 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51917
51918         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51919         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51920
51921 2009-02-10  Bruno Haible  <bruno@clisp.org>
51922
51923         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51924         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51925         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51926         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51927         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51928         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51929
51930 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51931
51932         * lib/sockets.h (gl_fd_to_handle): New function.
51933
51934         * tests/test-sockets.c: Call gl_fd_to_handle.
51935
51936 2009-02-09  Bruno Haible  <bruno@clisp.org>
51937
51938         * doc/havelib.texi: Document the conventions on bi-arch systems.
51939
51940 2009-02-08  Bruno Haible  <bruno@clisp.org>
51941
51942         Document the AC_LIB_LINKFLAGS macro.
51943         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51944         * doc/gnulib.texi: Include it.
51945
51946 2009-02-08  Bruno Haible  <bruno@clisp.org>
51947
51948         Fix wrong order of sections, compared to TOC.
51949         * doc/gnulib.texi: Include relocatable-maint.texi after the
51950         "Regular expressions" node, not before.
51951
51952 2009-02-08  Bruno Haible  <bruno@clisp.org>
51953
51954         Tests for module 'unicase/totitle'.
51955         * modules/unicase/totitle-tests: New file.
51956
51957         Tests for module 'unicase/tolower'.
51958         * modules/unicase/tolower-tests: New file.
51959
51960         Tests for module 'unicase/toupper'.
51961         * modules/unicase/toupper-tests: New file.
51962         * tests/unicase/test-mapping-part1.h: New file.
51963         * tests/unicase/test-mapping-part2.h: New file.
51964
51965         New module 'unicase/totitle'.
51966         * modules/unicase/totitle: New file.
51967         * lib/unicase/totitle.c: New file.
51968
51969         New module 'unicase/tolower'.
51970         * modules/unicase/tolower: New file.
51971         * lib/unicase/tolower.c: New file.
51972
51973         New module 'unicase/toupper'.
51974         * modules/unicase/toupper: New file.
51975         * lib/unicase/toupper.c: New file.
51976         * lib/unicase/simple-mapping.h: New file.
51977
51978         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51979         (mapping_table): New structure.
51980         (output_simple_mapping): New function.
51981         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51982         * modules/gen-uni-tables (Description): Update.
51983         * lib/unicase/toupper.h: New file, automatically generated by
51984         gen-uni-tables.
51985         * lib/unicase/tolower.h: New file, automatically generated by
51986         gen-uni-tables.
51987         * lib/unicase/totitle.h: New file, automatically generated by
51988         gen-uni-tables.
51989         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51990         gen-uni-tables.
51991         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51992         gen-uni-tables.
51993         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51994         gen-uni-tables.
51995
51996         New module 'unicase/base'.
51997         * modules/unicase/base: New file.
51998         * lib/unicase.h: New file.
51999
52000 2009-02-08  Bruno Haible  <bruno@clisp.org>
52001
52002         New module 'uniwbrk/ulc-wordbreaks'.
52003         * modules/uniwbrk/ulc-wordbreaks: New file.
52004         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52005
52006         New module 'uniwbrk/u32-wordbreaks'.
52007         * modules/uniwbrk/u32-wordbreaks: New file.
52008         * lib/uniwbrk/u32-wordbreaks.c: New file.
52009
52010         New module 'uniwbrk/u16-wordbreaks'.
52011         * modules/uniwbrk/u16-wordbreaks: New file.
52012         * lib/uniwbrk/u16-wordbreaks.c: New file.
52013
52014         New module 'uniwbrk/u8-wordbreaks'.
52015         * modules/uniwbrk/u8-wordbreaks: New file.
52016         * lib/uniwbrk/u8-wordbreaks.c: New file.
52017         * lib/uniwbrk/u-wordbreaks.h: New file.
52018
52019         New module 'uniwbrk/table'.
52020         * modules/uniwbrk/table: New file.
52021         * lib/uniwbrk/wbrktable.h: New file.
52022         * lib/uniwbrk/wbrktable.c: New file.
52023
52024         New module 'uniwbrk/wordbreak-property'.
52025         * modules/uniwbrk/wordbreak-property: New file.
52026         * lib/uniwbrk/wordbreak-property.c: New file.
52027
52028         * lib/gen-uni-tables.c (WBP_*): New enum items.
52029         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52030         (unicode_org_wbp): New variable.
52031         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52032         New functions.
52033         (wbp_table): New structure.
52034         (output_wbp, output_wbrk_tables): New functions.
52035         (main): Accept additional argument. Invoke fill_org_wbp,
52036         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52037         output_wbrk_tables.
52038         * modules/gen-uni-tables (Description): Update.
52039         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52040         gen-uni-tables.
52041
52042         New module 'uniwbrk/base'.
52043         * modules/uniwbrk/base: New file.
52044         * lib/uniwbrk.h: New file.
52045
52046 2009-02-08  Bruno Haible  <bruno@clisp.org>
52047
52048         Update to Unicode 5.1.0.
52049         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52050         U+2185..U+2188.
52051         (is_property_default_ignorable_code_point): Don't include characters
52052         of category Cc or Cs and not-a-characters.
52053         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52054         U+0D79, U+109E, U+109F, U+A60C.
52055         * lib/unictype/bidi_of.h: Regenerated.
52056         * lib/unictype/blocks.h: Regenerated.
52057         * lib/unictype/categ_C.h: Regenerated.
52058         * lib/unictype/categ_Cf.h: Regenerated.
52059         * lib/unictype/categ_Cn.h: Regenerated.
52060         * lib/unictype/categ_L.h: Regenerated.
52061         * lib/unictype/categ_Ll.h: Regenerated.
52062         * lib/unictype/categ_Lm.h: Regenerated.
52063         * lib/unictype/categ_Lo.h: Regenerated.
52064         * lib/unictype/categ_Lu.h: Regenerated.
52065         * lib/unictype/categ_M.h: Regenerated.
52066         * lib/unictype/categ_Mc.h: Regenerated.
52067         * lib/unictype/categ_Me.h: Regenerated.
52068         * lib/unictype/categ_Mn.h: Regenerated.
52069         * lib/unictype/categ_N.h: Regenerated.
52070         * lib/unictype/categ_Nd.h: Regenerated.
52071         * lib/unictype/categ_Nl.h: Regenerated.
52072         * lib/unictype/categ_No.h: Regenerated.
52073         * lib/unictype/categ_P.h: Regenerated.
52074         * lib/unictype/categ_Pd.h: Regenerated.
52075         * lib/unictype/categ_Pe.h: Regenerated.
52076         * lib/unictype/categ_Pf.h: Regenerated.
52077         * lib/unictype/categ_Pi.h: Regenerated.
52078         * lib/unictype/categ_Po.h: Regenerated.
52079         * lib/unictype/categ_Ps.h: Regenerated.
52080         * lib/unictype/categ_S.h: Regenerated.
52081         * lib/unictype/categ_Sk.h: Regenerated.
52082         * lib/unictype/categ_Sm.h: Regenerated.
52083         * lib/unictype/categ_So.h: Regenerated.
52084         * lib/unictype/categ_of.h: Regenerated.
52085         * lib/unictype/combining.h: Regenerated.
52086         * lib/unictype/ctype_alnum.h: Regenerated.
52087         * lib/unictype/ctype_alpha.h: Regenerated.
52088         * lib/unictype/ctype_graph.h: Regenerated.
52089         * lib/unictype/ctype_lower.h: Regenerated.
52090         * lib/unictype/ctype_print.h: Regenerated.
52091         * lib/unictype/ctype_punct.h: Regenerated.
52092         * lib/unictype/ctype_upper.h: Regenerated.
52093         * lib/unictype/decdigit.h: Regenerated.
52094         * lib/unictype/digit.h: Regenerated.
52095         * lib/unictype/mirror.h: Regenerated.
52096         * lib/unictype/numeric.h: Regenerated.
52097         * lib/unictype/pr_alphabetic.h: Regenerated.
52098         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52099         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52100         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52101         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52102         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52103         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52104         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52105         * lib/unictype/pr_combining.h: Regenerated.
52106         * lib/unictype/pr_dash.h: Regenerated.
52107         * lib/unictype/pr_decimal_digit.h: Regenerated.
52108         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52109         * lib/unictype/pr_deprecated.h: Regenerated.
52110         * lib/unictype/pr_diacritic.h: Regenerated.
52111         * lib/unictype/pr_extender.h: Regenerated.
52112         * lib/unictype/pr_format_control.h: Regenerated.
52113         * lib/unictype/pr_grapheme_base.h: Regenerated.
52114         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52115         * lib/unictype/pr_grapheme_link.h: Regenerated.
52116         * lib/unictype/pr_id_continue.h: Regenerated.
52117         * lib/unictype/pr_id_start.h: Regenerated.
52118         * lib/unictype/pr_ideographic.h: Regenerated.
52119         * lib/unictype/pr_ignorable_control.h: Regenerated.
52120         * lib/unictype/pr_lowercase.h: Regenerated.
52121         * lib/unictype/pr_math.h: Regenerated.
52122         * lib/unictype/pr_numeric.h: Regenerated.
52123         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52124         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52125         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52126         * lib/unictype/pr_other_id_continue.h: Regenerated.
52127         * lib/unictype/pr_other_lowercase.h: Regenerated.
52128         * lib/unictype/pr_other_math.h: Regenerated.
52129         * lib/unictype/pr_punctuation.h: Regenerated.
52130         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52131         * lib/unictype/pr_soft_dotted.h: Regenerated.
52132         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52133         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52134         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52135         * lib/unictype/pr_uppercase.h: Regenerated.
52136         * lib/unictype/pr_xid_continue.h: Regenerated.
52137         * lib/unictype/pr_xid_start.h: Regenerated.
52138         * lib/unictype/pr_zero_width.h: Regenerated.
52139         * lib/unictype/scripts.h: Regenerated.
52140         * lib/unictype/scripts_byname.gperf: Regenerated.
52141         * lib/unictype/sy_java_ident.h: Regenerated.
52142         * lib/unilbrk/lbrkprop1.h: Regenerated.
52143         * lib/unilbrk/lbrkprop2.h: Regenerated.
52144         * tests/unictype/test-categ_C.c: Regenerated.
52145         * tests/unictype/test-categ_Cf.c: Regenerated.
52146         * tests/unictype/test-categ_Cn.c: Regenerated.
52147         * tests/unictype/test-categ_L.c: Regenerated.
52148         * tests/unictype/test-categ_Ll.c: Regenerated.
52149         * tests/unictype/test-categ_Lm.c: Regenerated.
52150         * tests/unictype/test-categ_Lo.c: Regenerated.
52151         * tests/unictype/test-categ_Lu.c: Regenerated.
52152         * tests/unictype/test-categ_M.c: Regenerated.
52153         * tests/unictype/test-categ_Mc.c: Regenerated.
52154         * tests/unictype/test-categ_Me.c: Regenerated.
52155         * tests/unictype/test-categ_Mn.c: Regenerated.
52156         * tests/unictype/test-categ_N.c: Regenerated.
52157         * tests/unictype/test-categ_Nd.c: Regenerated.
52158         * tests/unictype/test-categ_Nl.c: Regenerated.
52159         * tests/unictype/test-categ_No.c: Regenerated.
52160         * tests/unictype/test-categ_P.c: Regenerated.
52161         * tests/unictype/test-categ_Pd.c: Regenerated.
52162         * tests/unictype/test-categ_Pe.c: Regenerated.
52163         * tests/unictype/test-categ_Pf.c: Regenerated.
52164         * tests/unictype/test-categ_Pi.c: Regenerated.
52165         * tests/unictype/test-categ_Po.c: Regenerated.
52166         * tests/unictype/test-categ_Ps.c: Regenerated.
52167         * tests/unictype/test-categ_S.c: Regenerated.
52168         * tests/unictype/test-categ_Sk.c: Regenerated.
52169         * tests/unictype/test-categ_Sm.c: Regenerated.
52170         * tests/unictype/test-categ_So.c: Regenerated.
52171         * tests/unictype/test-ctype_alnum.c: Regenerated.
52172         * tests/unictype/test-ctype_alpha.c: Regenerated.
52173         * tests/unictype/test-ctype_graph.c: Regenerated.
52174         * tests/unictype/test-ctype_lower.c: Regenerated.
52175         * tests/unictype/test-ctype_print.c: Regenerated.
52176         * tests/unictype/test-ctype_punct.c: Regenerated.
52177         * tests/unictype/test-ctype_upper.c: Regenerated.
52178         * tests/unictype/test-decdigit.h: Regenerated.
52179         * tests/unictype/test-digit.h: Regenerated.
52180         * tests/unictype/test-numeric.h: Regenerated.
52181         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52182         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52183         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52184         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52185         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52186         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52187         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52188         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52189         * tests/unictype/test-pr_combining.c: Regenerated.
52190         * tests/unictype/test-pr_dash.c: Regenerated.
52191         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52192         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52193         * tests/unictype/test-pr_deprecated.c: Regenerated.
52194         * tests/unictype/test-pr_diacritic.c: Regenerated.
52195         * tests/unictype/test-pr_extender.c: Regenerated.
52196         * tests/unictype/test-pr_format_control.c: Regenerated.
52197         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52198         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52199         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52200         * tests/unictype/test-pr_id_continue.c: Regenerated.
52201         * tests/unictype/test-pr_id_start.c: Regenerated.
52202         * tests/unictype/test-pr_ideographic.c: Regenerated.
52203         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52204         * tests/unictype/test-pr_lowercase.c: Regenerated.
52205         * tests/unictype/test-pr_math.c: Regenerated.
52206         * tests/unictype/test-pr_numeric.c: Regenerated.
52207         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52208         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52209         Regenerated.
52210         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52211         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52212         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52213         * tests/unictype/test-pr_other_math.c: Regenerated.
52214         * tests/unictype/test-pr_punctuation.c: Regenerated.
52215         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52216         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52217         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52218         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52219         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52220         * tests/unictype/test-pr_uppercase.c: Regenerated.
52221         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52222         * tests/unictype/test-pr_xid_start.c: Regenerated.
52223         * tests/unictype/test-pr_zero_width.c: Regenerated.
52224
52225         Update to Unicode 5.1.0.
52226         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52227         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52228         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52229         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52230         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52231         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52232         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52233         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52234         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52235         (nonspacing_table_ind): Update.
52236         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52237
52238         Update to Unicode 5.1.0.
52239         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52240         code transform.
52241         * lib/uniname/uniname.c (unicode_character_name,
52242         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52243         * lib/uniname/uninames.h: Regenerated.
52244         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52245
52246 2009-02-07  Bruno Haible  <bruno@clisp.org>
52247
52248         Merge gen-ctype and gen-lbrk into a single program.
52249         * lib/gen-uni-tables.c: New file, incorporating
52250         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52251         Add directory prefixes to the names of the generated files.
52252         * lib/unictype/gen-ctype.c: Remove file.
52253         * lib/unilbrk/gen-lbrk.c: Remove file.
52254         * modules/gen-uni-tables: New file.
52255         * modules/unictype/gen-ctype: Remove file.
52256         * modules/unilbrk/gen-lbrk: Remove file.
52257
52258 2009-02-07  Bruno Haible  <bruno@clisp.org>
52259
52260         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52261
52262         New module 'unistr/u32-strcoll'.
52263         * modules/unistr/u32-strcoll: New file.
52264         * lib/unistr/u32-strcoll.c: New file.
52265
52266         New module 'unistr/u16-strcoll'.
52267         * modules/unistr/u16-strcoll: New file.
52268         * lib/unistr/u16-strcoll.c: New file.
52269
52270         New module 'unistr/u8-strcoll'.
52271         * modules/unistr/u8-strcoll: New file.
52272         * lib/unistr/u8-strcoll.c: New file.
52273         * lib/unistr/u-strcoll.h: New file.
52274
52275 2009-02-07  Bruno Haible  <bruno@clisp.org>
52276
52277         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52278         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52279         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52280         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52281         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52282         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52283
52284 2009-02-07  Bruno Haible  <bruno@clisp.org>
52285
52286         Make 64-bit clean.
52287         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52288         output_combclass, output_bidi_category, output_decimal_digit,
52289         output_digit, output_numeric, output_mirror, output_scripts,
52290         output_ident_category): Use proper width specifier in format strings.
52291
52292 2009-02-07  Bruno Haible  <bruno@clisp.org>
52293
52294         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52295         failure behaviour.
52296
52297 2009-02-07  Jim Meyering  <meyering@redhat.com>
52298
52299         regex: avoid compilation failure with upcoming gcc-4.4
52300         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52301         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52302         "... error: integer overflow in preprocessor expression".
52303
52304 2009-02-05  Ben Pfaff  <blp@gnu.org>
52305
52306         Fix link errors on Windows when close module is used.
52307         * modules/close: Add $(LIB_CLOSE) to Link section.
52308         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52309         $(LIB_CLOSE) on Windows.
52310
52311 2009-02-05  Jim Meyering  <meyering@redhat.com>
52312
52313         still avoid unused-parameter warnings, but do it cleanly
52314         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52315         (get_fs_usage): Cast to void instead.
52316         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52317         (dev_from_mount_options, read_file_system_list): Cast to void.
52318         Prompted by Bruno Haible.
52319
52320 2009-02-04  Jim Meyering  <meyering@redhat.com>
52321
52322         fsusage.c: correct copyright year
52323         * lib/fsusage.c: Reflect year in which the change is pushed into
52324
52325         avoid misc. warnings
52326         * lib/fsusage.c (UNUSED_PARAM): Define.
52327         (get_fs_usage): Mark parameter "disk" as unused.
52328         * lib/getugroups.c (getgrent): Use "void" in prototype.
52329         * lib/mountlist.c: Mark unused parameters.
52330         (read_file_system_list): Declare a local with "const".
52331         * lib/nanosleep.c (getnow): Declare static.
52332         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52333
52334         dirfd: set errno upon failure
52335         * lib/dirfd.c: Include <errno.h>.
52336         Set errno to ENOTSUP when returning -1.
52337         * modules/dirfd (Depends-on): Add errno.
52338         Suggested by John Kodis <kodis@comcast.net>.
52339
52340 2009-02-01  Bruno Haible  <bruno@clisp.org>
52341
52342         Don't assume sizeof (long) >= sizeof (void *).
52343         * lib/memcmp.c: Include stdint.h.
52344         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52345         srcp2 to 'const byte *'.
52346         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52347         types to uintptr_t.
52348         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52349         * modules/memcmp (Depends-on): Add stdint.
52350         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52351
52352 2009-01-30  Eric Blake  <ebb9@byu.net>
52353
52354         fix more require-before-expand issues
52355         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52356         expand, AC_PROG_AWK.
52357         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52358
52359 2009-01-28  Eric Blake  <ebb9@byu.net>
52360
52361         version-etc: use consistent URL formatting
52362         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52363         Improve formatting.  Use fputs for string without %.
52364
52365 2009-01-28  Jim Meyering  <meyering@redhat.com>
52366
52367         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52368         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52369         "underquoted definition of NAME" from autoconf-2.59.
52370
52371 2009-01-28  Bruno Haible  <bruno@clisp.org>
52372
52373         * doc/gnulib.texi: Add "Obsolete modules" to index.
52374
52375 2009-01-28  Jim Meyering  <meyering@redhat.com>
52376
52377         useless-if-before-free: recognize more variants
52378         * build-aux/useless-if-before-free: Also recognize e.g.,
52379         if (NULL != p) free (p);
52380
52381 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52382
52383         test-getaddrinfo: skip (don't fail) this test when there's no network
52384         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52385         on the presumption that it means you lack network access.
52386
52387 2009-01-26  Jim Meyering  <meyering@redhat.com>
52388
52389         fflush: avoid warnings on modern systems
52390         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52391         pos and result, into scopes where they're used.
52392
52393 2009-01-26  Eric Blake  <ebb9@byu.net>
52394
52395         Silence warning reintroduced by recent extensions patch.
52396         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52397         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52398         autoconf.
52399
52400         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52401         * m4/00gnulib.m4: New file.
52402         * gnulib-tool (func_get_filelist): Always use it.
52403         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52404         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52405
52406 2009-01-25  Bruno Haible  <bruno@clisp.org>
52407
52408         Make test-quotearg work on MacOS X and AIX.
52409         * tests/test-quotearg.sh: New file.
52410         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52411         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52412         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52413         include <libintl.h>.
52414         (fake_locale): Remove variable.
52415         (gettext, dgettext, dcgettext): Remove functions.
52416         (main): Instead of setting a fake locale, set a real locale. Call
52417         textdomain and bindtextdomain.
52418         * modules/quotearg-tests (Files): Add the new files.
52419         (Depends-on): Add gettext, setenv, unsetenv.
52420         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52421         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52422         Augment TESTS_ENVIRONMENT.
52423
52424 2009-01-25  Bruno Haible  <bruno@clisp.org>
52425
52426         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52427         fr_FR.ISO8859-1 locale on MacOS X.
52428         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52429         ja_JP.eucJP locale on MacOS X.
52430         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52431         zh_CN.GB18030 locale on MacOS X.
52432
52433 2009-01-25  Bruno Haible  <bruno@clisp.org>
52434
52435         Avoid link errors on MacOS X 10.3.
52436         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52437         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52438
52439 2009-01-25  Bruno Haible  <bruno@clisp.org>
52440
52441         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52442         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52443         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52444         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52445         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52446         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52447         posix_spawnattr_init, posix_spawnattr_setsigmask,
52448         posix_spawnattr_setflags, posix_spawnattr_destroy.
52449
52450         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52451         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52452         * modules/execute (Files): Remove m4/posix_spawn.m4.
52453         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52454         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52455         posix_spawnattr_init, posix_spawnattr_setsigmask,
52456         posix_spawnattr_setflags, posix_spawnattr_destroy.
52457
52458 2009-01-25  Bruno Haible  <bruno@clisp.org>
52459
52460         * lib/glthread/threadlib.c: Include <stdlib.h>.
52461
52462 2009-01-25  Bruno Haible  <bruno@clisp.org>
52463
52464         * lib/glthread/threadlib.c (dummy): New declaration.
52465
52466 2009-01-25  Bruno Haible  <bruno@clisp.org>
52467
52468         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52469         multibyte characters also for the GB18030 encoding. Don't crash when
52470         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52471
52472 2009-01-25  Bruno Haible  <bruno@clisp.org>
52473
52474         Avoid redefining 'struct random_data' on OSF/1 5.1.
52475         * lib/stdlib.in.h: Include <random.h> if it exists.
52476         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52477         HAVE_RANDOM_H. Include <random.h> when testing whether
52478         'struct random_data' exists.
52479         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52480
52481 2009-01-25  Bruno Haible  <bruno@clisp.org>
52482
52483         Don't install charset.alias on MacOS X >= 10.3.
52484         * lib/localcharset.c (DARWIN7): New macro.
52485         (get_charset_aliases): Hardcode the result for Darwin7.
52486         * modules/localcharset (install-exec-local): Don't install
52487         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52488
52489 2009-01-25  Bruno Haible  <bruno@clisp.org>
52490
52491         Don't install charset.alias on mingw and Cygwin.
52492         * modules/localcharset (install-exec-local): Don't install
52493         charset.alias on mingw and Cygwin, if the file does not yet exist.
52494         The result for these platforms is hardcoded in localcharset.c.
52495
52496 2009-01-25  Bruno Haible  <bruno@clisp.org>
52497
52498         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52499         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52500         before requiring AC_USE_SYSTEM_EXTENSIONS.
52501
52502 2009-01-25  Jim Meyering  <meyering@redhat.com>
52503
52504         c-strtod: avoid warnings
52505         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52506         "assignment discards qualifiers from pointer target type" warnings.
52507
52508 2009-01-24  Bruno Haible  <bruno@clisp.org>
52509
52510         Add support for non-UTF-8 locales on MacOS X.
52511         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52512         canonical encodings. For Darwin 7 and newer, don't map traditional
52513         encodings to UTF-8.
52514         Reported by Vincent Lefevre <vincent@vinc17.org>
52515         at <http://savannah.gnu.org/bugs/?25235>.
52516
52517 2009-01-24  Bruno Haible  <bruno@clisp.org>
52518
52519         * doc/gnulib.texi (Obsolete modules): New section.
52520         Reported by Mike Frysinger <vapier@gentoo.org>.
52521
52522 2009-01-24  Bruno Haible  <bruno@clisp.org>
52523
52524         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52525         (%.dvi): New rule.
52526
52527 2009-01-24  Bruno Haible  <bruno@clisp.org>
52528
52529         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52530         Reported by Eric Blake.
52531
52532 2009-01-24  Bruno Haible  <bruno@clisp.org>
52533
52534         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52535         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52536         Reported by Gary V. Vaughan <gary@gnu.org>.
52537
52538 2009-01-24  Bruno Haible  <bruno@clisp.org>
52539
52540         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52541
52542 2009-01-23  Bruno Haible  <bruno@clisp.org>
52543
52544         Make c-strtod, c-strtold usable in libraries.
52545         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52546         (C_STRTOD): Call strdup instead of xstrdup.
52547         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52548         * modules/c-strtold (Depends-on): Likewise.
52549         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52550         * NEWS: Mention the change.
52551         Reported by Michael Gold <mgold@ncf.ca>.
52552
52553 2009-01-23  Jim Meyering  <meyering@redhat.com>
52554
52555         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52556         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52557         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52558
52559 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52560
52561         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52562         GNU CoreUtils.
52563         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52564         * modules/version-etc (Description): Update.
52565
52566 2009-01-22  Bruno Haible  <bruno@clisp.org>
52567
52568         Cache the C locale object.
52569         * lib/c-strtod.c (c_locale_cache): New variable.
52570         (c_locale): New function.
52571         (C_STRTOD): Use it, and don't call freelocale.
52572         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52573         Suggested by Paolo Bonzini.
52574
52575 2009-01-21  Bruno Haible  <bruno@clisp.org>
52576
52577         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52578         conditions other than overflow.
52579
52580 2009-01-21  Bruno Haible  <bruno@clisp.org>
52581
52582         * lib/c-strtod.c: Include errno.h.
52583         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52584         value from STRTOD_L and STRTOD.
52585
52586 2009-01-21  Bruno Haible  <bruno@clisp.org>
52587         and Jim Meyering  <meyering@redhat.com>
52588
52589         nanosleep: skip configure test (fail it) for apple universal builds
52590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52591         universal builds, assume that nanosleep does not work.
52592         * modules/nanosleep (Depends-on): Add multiarch.
52593
52594         mktime: skip configure test (fail it) for apple universal builds
52595         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52596         universal builds, assume that mktime does not work.
52597         * modules/mktime (Depends-on): Add multiarch.
52598
52599 2009-01-21  Eric Blake  <ebb9@byu.net>
52600
52601         multiarch: avoid expand-before-require warning
52602         * modules/multiarch (configure.ac): Require, rather than expand,
52603         gl_MULTIARCH.
52604         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52605         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52606         enforce that all clients require it.  Partial reversion of
52607         2008-12-29 patch.
52608
52609         error: avoid expand-before-require warning
52610         * modules/errno (configure.ac): Require, rather than expand,
52611         gl_HEADER_ERRNO_H.
52612         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52613         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52614         enforce that all clients require it.
52615
52616         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52617         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52618         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52619         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52620
52621 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52622
52623         Revert:
52624         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52625
52626         regex: do not depend on obsolete modules.
52627         * modules/regex: Remove memcmp and memmove.
52628
52629 2009-01-20  Bruno Haible  <bruno@clisp.org>
52630
52631         Make the 'link' module link on Windows NT 4.
52632         * lib/link.c (_WIN32_WINNT): Don't define.
52633         (CreateHardLinkFuncType): New type.
52634         (CreateHardLinkFunc, initialized): New variables.
52635         (initialize): New function.
52636         (link): Invoke CreateHardLink indirectly through the function pointer.
52637
52638 2009-01-20  Bruno Haible  <bruno@clisp.org>
52639
52640         Fix compilation failure on mingw.
52641         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52642
52643 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52644
52645         * doc/c-strtod.texi: Mention a couple of restrictions.
52646
52647 2009-01-20  Jim Meyering  <meyering@redhat.com>
52648
52649         gettimeofday: move more declarations out of functions
52650         * lib/gettimeofday.c: Move extern declarations of tzset and
52651         gmtime out of containing functions.  Prompted by Bruno Haible.
52652
52653 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52654
52655         regex: do not depend on obsolete modules.
52656         * modules/regex: Remove memcmp and memmove.
52657
52658 2009-01-19  Bruno Haible  <bruno@clisp.org>
52659
52660         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52661         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52662         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52663         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52664         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52665
52666 2009-01-19  Bruno Haible  <bruno@clisp.org>
52667
52668         * tests/test-link.c: Include <errno.h>.
52669         (main): Exit with code 77 when a hard link cannot be created due to
52670         the file system.
52671         * tests/test-link.sh: Skip test when a hard link cannot be created due
52672         to the file system.
52673         Suggested by Eric Blake.
52674
52675 2009-01-19  Martin Lambers  <marlam@marlam.de>
52676
52677         * modules/link-tests: New file.
52678         * tests/test-link.sh: New file.
52679         * tests/test-link.c: New file.
52680
52681 2009-01-19  Eric Blake  <ebb9@byu.net>
52682
52683         doc: mention another function added in cygwin 1.7.0
52684         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52685         Another new function in cygwin 1.7.
52686
52687 2009-01-19  Bruno Haible  <bruno@clisp.org>
52688
52689         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52690         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52691         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52692         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52693         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52694         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52695         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52696         * m4/md4.m4 (gl_MD4): Likewise.
52697         * m4/md5.m4 (gl_MD5): Likewise.
52698         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52699         * m4/sha1.m4 (gl_SHA1): Likewise.
52700         * m4/sha256.m4 (gl_SHA256): Likewise.
52701         * m4/sha512.m4 (gl_SHA512): Likewise.
52702
52703 2009-01-19  Bruno Haible  <bruno@clisp.org>
52704
52705         * modules/uniname/uniname-tests (Depends-on): Add progname.
52706         * tests/uniname/test-uninames.c: Include progname.h.
52707         (main): Call set_program_name.
52708
52709         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52710         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52711         (main): Call set_program_name.
52712
52713         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52714         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52715         (main): Call set_program_name.
52716
52717         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52718         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52719         (main): Call set_program_name.
52720
52721         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52722         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52723         (main): Call set_program_name.
52724
52725         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52726         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52727         (main): Call set_program_name.
52728
52729         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52730         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52731         (main): Call set_program_name.
52732
52733         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52734         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52735         (main): Call set_program_name.
52736
52737         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52738         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52739         (main): Call set_program_name.
52740
52741 2009-01-19  Eric Blake  <ebb9@byu.net>
52742
52743         test-unistd: test previous patch
52744         * tests/test-unistd.c: Test *_FILENO macros.
52745
52746         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52747         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52748         Guarantee a definition.
52749         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52750         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52751         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52752         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52753         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52754         Likewise.
52755         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52756         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52757         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52758         Likewise.
52759         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52760         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52761         (STDERR_FILENO): Likewise.
52762         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52763         (STDERR_FILENO): Likewise.
52764         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52765         (STDERR_FILENO): Likewise.
52766         Reported by Elbert Pol.
52767
52768 2009-01-19  Eric Blake  <ebb9@byu.net>
52769
52770         doc: mention more functions added in cygwin 1.7.0
52771         * doc/posix-functions/abort.texi (abort): Update wording related
52772         to cygwin.
52773         * doc/posix-functions/daylight.texi (daylight): Likewise.
52774         * doc/posix-functions/optarg.texi (optarg): Likewise.
52775         * doc/posix-functions/optarg.texi (opterr): Likewise.
52776         * doc/posix-functions/optarg.texi (optind): Likewise.
52777         * doc/posix-functions/optarg.texi (optopt): Likewise.
52778         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52779         worked in 1.5.x, and was withdrawn in 1.7.
52780         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52781         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52782         cygwin versions.
52783         * doc/posix-functions/perror.texi (perror): Likewise.
52784         * doc/posix-functions/printf.texi (printf): Likewise.
52785         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52786         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52787         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52788         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52789         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52790         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52791         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52792         Likewise.
52793         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52794         Likewise.
52795         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52796         this function.
52797         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52798         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52799         Likewise.
52800         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52801         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52802         * doc/posix-functions/confstr.texi (confstr): Likewise.
52803         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52804         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52805         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52806         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52807         * doc/posix-functions/fputws.texi (fputws): Likewise.
52808         * doc/posix-functions/fwide.texi (fwide): Likewise.
52809         * doc/posix-functions/getwc.texi (getwc): Likewise.
52810         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52811         * doc/posix-functions/putwc.texi (putwc): Likewise.
52812         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52813         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52814         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52815         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52816         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52817         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52818         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52819         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52820         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52821         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52822         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52823
52824 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52825
52826         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52827         * lib/ioctl.c: Include <sys/ioctl.h>.
52828
52829 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52830
52831         * modules/getdate-tests (Depends-on): Add progname.
52832         * tests/test-getdate.c: Use progname module, to avoid link errors
52833         on non-glibc systems.
52834
52835 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52836
52837         * modules/filenamecat-tests (Depends-on): Add progname.
52838         * modules/fstrcmp-tests (Depends-on): Likewise.
52839
52840         * tests/test-filenamecat.c: Use progname module, to avoid link
52841         errors on non-glibc systems.
52842         * tests/test-fstrcmp.c: Likewise.
52843
52844 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52845
52846         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52847         * lib/gettimeofday.c: Move extern declaration out of function.
52848
52849 2009-01-18  Bruno Haible  <bruno@clisp.org>
52850
52851         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52852         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52853         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52854
52855 2009-01-18  Bruno Haible  <bruno@clisp.org>
52856
52857         * lib/strftime.c (MEMPCPY): Remove unused macro.
52858         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52859
52860 2009-01-18  Martin Lambers  <marlam@marlam.de>
52861
52862         New module 'link'.
52863         * lib/unistd.in.h (link): New declaration.
52864         * lib/link.c: New file.
52865         * m4/link.m4: New file.
52866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
52867         HAVE_LINK.
52868         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
52869         * modules/link: New file.
52870         * doc/posix-functions/link.texi: Mention the new module.
52871
52872 2009-01-18  Bruno Haible  <bruno@clisp.org>
52873
52874         * tests/test-avltree_list.c (main): Call set_program_name.
52875         * tests/test-avltree_oset.c (main): Likewise.
52876         * tests/test-obstack-printf.c: Include progname.h.
52877         (main): Call set_program_name.
52878         * tests/test-quotearg.c: Include progname.h.
52879         (main): Call set_program_name.
52880         * tests/test-xmemdup0.c: Include progname.h.
52881         (main): Call set_program_name.
52882
52883 2009-01-18  Bruno Haible  <bruno@clisp.org>
52884
52885         New module 'alphasort'.
52886         * lib/dirent.in.h (alphasort): New declaration.
52887         * lib/alphasort.c: New file, from glibc with modifications.
52888         * m4/alphasort.m4: New file.
52889         * modules/alphasort: New file.
52890         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
52891         HAVE_ALPHASORT.
52892         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
52893         HAVE_ALPHASORT.
52894         * doc/posix-functions/alphasort.texi: Mention the new module and the
52895         portability problems.
52896
52897 2009-01-18  Bruno Haible  <bruno@clisp.org>
52898
52899         New module 'scandir'.
52900         * lib/dirent.in.h (scandir): New declaration.
52901         * lib/scandir.c: New file, from glibc with modifications.
52902         * m4/scandir.m4: New file.
52903         * modules/scandir: New file.
52904         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
52905         HAVE_SCANDIR.
52906         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
52907         HAVE_SCANDIR.
52908         * doc/posix-functions/scandir.texi: Mention the new module and the
52909         portability problems.
52910
52911 2009-01-17  Bruno Haible  <bruno@clisp.org>
52912
52913         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52914         Update documentation.
52915         (func_remove_suffix): Escape all dots in the suffix. Update
52916         documentation.
52917         (func_filter_filelist): Update documentation.
52918         Reported by Ralf Wildenhues.
52919
52920 2009-01-17  Bruno Haible  <bruno@clisp.org>
52921
52922         * modules/dprintf-posix-tests: New file.
52923         * tests/test-dprintf-posix.sh: New file.
52924         * tests/test-dprintf-posix.c: New file.
52925
52926         New modules 'dprintf', 'dprintf-posix'.
52927         * lib/stdio.in.h (dprintf): New declaration.
52928         * lib/dprintf.c: New file.
52929         * m4/dprintf.m4: New file.
52930         * m4/dprintf-posix.m4: New file.
52931         * modules/dprintf: New file.
52932         * modules/dprintf-posix: New file.
52933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52934         HAVE_DPRINTF, REPLACE_DPRINTF.
52935         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52936         HAVE_DPRINTF, REPLACE_DPRINTF.
52937         * doc/posix-functions/dprintf.texi: Mention the new modules.
52938
52939 2009-01-17  Bruno Haible  <bruno@clisp.org>
52940
52941         * modules/vdprintf-posix-tests: New file.
52942         * tests/test-vdprintf-posix.sh: New file.
52943         * tests/test-vdprintf-posix.c: New file.
52944
52945         New modules 'vdprintf', 'vdprintf-posix'.
52946         * lib/stdio.in.h (vdprintf): New declaration.
52947         * lib/vdprintf.c: New file.
52948         * m4/vdprintf.m4: New file.
52949         * m4/vdprintf-posix.m4: New file.
52950         * modules/vdprintf: New file.
52951         * modules/vdprintf-posix: New file.
52952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52953         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52954         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52955         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52956         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52957
52958 2009-01-17  Bruno Haible  <bruno@clisp.org>
52959
52960         Fix replacement of fopen on mingw.
52961         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52962         mingw.
52963
52964 2009-01-17  Bruno Haible  <bruno@clisp.org>
52965
52966         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52967         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52968
52969 2009-01-17  Bruno Haible  <bruno@clisp.org>
52970
52971         Avoid test-fflush2.sh failure on mingw.
52972         * tests/test-fflush2.c: Include binary-io.h.
52973         (main): Put standard input into binary mode.
52974         * modules/fflush-tests (Depends-on): Add binary-io.
52975
52976 2009-01-17  Bruno Haible  <bruno@clisp.org>
52977
52978         * lib/wchar.in.h: In another particular situation, include only the
52979         system's <wchar.h> file.
52980         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52981         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52982         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52983
52984 2009-01-17  Bruno Haible  <bruno@clisp.org>
52985
52986         Support for stripping executables in --enable-relocatable.
52987         * build-aux/install-reloc: Expect one more argument, or an environment
52988         variable RELOC_STRIP_PROG. If set, strip the destination program and
52989         its wrapper.
52990         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52991         RELOC_STRIP_PROG.
52992         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52993         to set RELOCATABLE_STRIP.
52994         * NEWS: Mention the new Makefile requirement.
52995
52996 2009-01-17  Bruno Haible  <bruno@clisp.org>
52997
52998         * build-aux/install-reloc: Remove debugging information left over by
52999         C compiler on MacOS X.
53000
53001 2009-01-17  Bruno Haible  <bruno@clisp.org>
53002
53003         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53004         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53005         _NSGetExecutablePath.
53006
53007 2009-01-16  Jim Meyering  <meyering@redhat.com>
53008
53009         strerror: avoid warnings about discarding "const"
53010         * lib/strerror.c (rpl_strerror): Instead of returning a const
53011         string from each and every "case", use a variable, and add a single
53012         cast after the switch.
53013
53014 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53015
53016         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53017
53018 2009-01-16  Bruno Haible  <bruno@clisp.org>
53019
53020         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53021         array initializer syntax that also works in C++ mode.
53022         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53023
53024 2009-01-16  Jim Meyering  <meyering@redhat.com>
53025
53026         poll: suppress a warning
53027         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53028         to ignore "...unsigned expression < 0 is always false" warnings.
53029
53030 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53031
53032         poll: remove declarations of unused variables
53033         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53034         sockbuf and optlen.
53035
53036 2009-01-15  Bruno Haible  <bruno@clisp.org>
53037
53038         Make fflush-after-ungetc POSIX compliant on BSD systems.
53039         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53040         (clear_ungetc_buffer): Implement also for other systems.
53041         (rpl_fflush): On glibc systems, invoke
53042         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53043         clear_ungetc_buffer after fetching the stream's position, not before.
53044
53045 2009-01-15  Bruno Haible  <bruno@clisp.org>
53046
53047         Make fflush-after-ungetc POSIX compliant on glibc systems.
53048         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53049         after ungetc.
53050         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53051         (rpl_fflush): On glibc systems, simply call the system's fflush
53052         function after clearing the ungetc buffer.
53053         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53054         Instead, lseek only to the end of file, then use the system's fseeko
53055         for the rest. On glibc systems, reset the EOF indicator bit.
53056
53057 2009-01-15  Jim Meyering  <meyering@redhat.com>
53058
53059         openmp.m4: revert quote-adding change, for portability to older autoconf
53060         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53061         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53062         Simon Josefsson noticed the problem when using autoconf-2.61.
53063
53064 2009-01-15  Bruno Haible  <bruno@clisp.org>
53065
53066         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53067         * tests/test-fflush2.c (ASSERT): Always fail.
53068         (main): Add two tests for fflush() after ungetc(), taking into account
53069         the Austin Group's clarification.
53070         Suggested by Eric Blake.
53071
53072 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53073
53074         mktime.m4: remove K&R-style function prototypes
53075         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53076         for the Sun C++ compiler.
53077
53078 2009-01-14  Bruno Haible  <bruno@clisp.org>
53079
53080         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53081         while including <wchar.h>.
53082         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53083         the system's <wchar.h> file.
53084         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53085
53086 2009-01-14  Bruno Haible  <bruno@clisp.org>
53087
53088         * m4/csharp.m4: Don't mention gettext on the serial number line.
53089         * m4/csharpexec.m4: Likewise.
53090         * m4/eaccess.m4: Likewise.
53091         * m4/javaexec.m4: Likewise.
53092         * m4/sig_atomic_t.m4: Likewise.
53093         * m4/tmpdir.m4: Likewise.
53094         * m4/intldir.m4: Bump gettext version.
53095         * m4/lib-ld.m4: Likewise.
53096
53097 2009-01-14  Bruno Haible  <bruno@clisp.org>
53098
53099         * lib/progname.c (set_program_name): Add more comments.
53100         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53101
53102 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53103
53104         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53105         were sys/stat.h does not define it.
53106
53107 2009-01-14  Jim Meyering  <meyering@redhat.com>
53108
53109         many *.m4 files: improve m4 quoting
53110         99% of this change was performed by running the following commands:
53111         git ls-files | grep '\.m4$' | xargs perl -pi \
53112           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53113           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53114           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53115           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53116         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53117         The remainder were to add Copyright dates, increment serial numbers,
53118         undo some changes in comments, exclude m4/intl.m4, and add quotes
53119         around the "1" in ",1" where the unusual spacing prohibited the
53120         above regexps from doing the job.  For more details, see
53121         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53122         * m4/acl.m4: Modified.
53123         * m4/afs.m4: Likewise.
53124         * m4/alloca.m4: Likewise.
53125         * m4/argp.m4: Likewise.
53126         * m4/argz.m4: Likewise.
53127         * m4/atexit.m4: Likewise.
53128         * m4/bison-i18n.m4: Likewise.
53129         * m4/bison.m4: Likewise.
53130         * m4/byteswap.m4: Likewise.
53131         * m4/c-stack.m4: Likewise.
53132         * m4/c-strtod.m4: Likewise.
53133         * m4/calloc.m4: Likewise.
53134         * m4/canonicalize-lgpl.m4: Likewise.
53135         * m4/chown.m4: Likewise.
53136         * m4/clock_time.m4: Likewise.
53137         * m4/codeset.m4: Likewise.
53138         * m4/copy-file.m4: Likewise.
53139         * m4/csharp.m4: Likewise.
53140         * m4/csharpcomp.m4: Likewise.
53141         * m4/csharpexec.m4: Likewise.
53142         * m4/d-ino.m4: Likewise.
53143         * m4/d-type.m4: Likewise.
53144         * m4/dirfd.m4: Likewise.
53145         * m4/double-slash-root.m4: Likewise.
53146         * m4/eaccess.m4: Likewise.
53147         * m4/eealloc.m4: Likewise.
53148         * m4/environ.m4: Likewise.
53149         * m4/errno_h.m4: Likewise.
53150         * m4/euidaccess.m4: Likewise.
53151         * m4/execute.m4: Likewise.
53152         * m4/fatal-signal.m4: Likewise.
53153         * m4/fchdir.m4: Likewise.
53154         * m4/fcntl_h.m4: Likewise.
53155         * m4/fileblocks.m4: Likewise.
53156         * m4/filenamecat.m4: Likewise.
53157         * m4/findprog.m4: Likewise.
53158         * m4/flexmember.m4: Likewise.
53159         * m4/fnmatch.m4: Likewise.
53160         * m4/fopen.m4: Likewise.
53161         * m4/fpending.m4: Likewise.
53162         * m4/fprintf-posix.m4: Likewise.
53163         * m4/free.m4: Likewise.
53164         * m4/frexp.m4: Likewise.
53165         * m4/frexpl.m4: Likewise.
53166         * m4/fsusage.m4: Likewise.
53167         * m4/ftruncate.m4: Likewise.
53168         * m4/gc-camellia.m4: Likewise.
53169         * m4/gc-random.m4: Likewise.
53170         * m4/gc.m4: Likewise.
53171         * m4/getaddrinfo.m4: Likewise.
53172         * m4/getcwd-abort-bug.m4: Likewise.
53173         * m4/getcwd-path-max.m4: Likewise.
53174         * m4/getdate.m4: Likewise.
53175         * m4/getdomainname.m4: Likewise.
53176         * m4/getgroups.m4: Likewise.
53177         * m4/gethostname.m4: Likewise.
53178         * m4/gethrxtime.m4: Likewise.
53179         * m4/getline.m4: Likewise.
53180         * m4/getloadavg.m4: Likewise.
53181         * m4/getndelim2.m4: Likewise.
53182         * m4/getpass.m4: Likewise.
53183         * m4/gettext.m4: Likewise.
53184         * m4/gettime.m4: Likewise.
53185         * m4/gettimeofday.m4: Likewise.
53186         * m4/gnulib-common.m4: Likewise.
53187         * m4/group-member.m4: Likewise.
53188         * m4/host-os.m4: Likewise.
53189         * m4/iconv.m4: Likewise.
53190         * m4/iconv_open.m4: Likewise.
53191         * m4/inet_ntop.m4: Likewise.
53192         * m4/inet_pton.m4: Likewise.
53193         * m4/inline.m4: Likewise.
53194         * m4/intldir.m4: Likewise.
53195         * m4/intlmacosx.m4: Likewise.
53196         * m4/intmax.m4: Likewise.
53197         * m4/intmax_t.m4: Likewise.
53198         * m4/inttypes.m4: Likewise.
53199         * m4/inttypes_h.m4: Likewise.
53200         * m4/inttypes-pri.m4: Likewise.
53201         * m4/isapipe.m4: Likewise.
53202         * m4/isnand.m4: Likewise.
53203         * m4/isnanf.m4: Likewise.
53204         * m4/isnanl.m4: Likewise.
53205         * m4/javacomp.m4: Likewise.
53206         * m4/javaexec.m4: Likewise.
53207         * m4/jm-winsz1.m4: Likewise.
53208         * m4/jm-winsz2.m4: Likewise.
53209         * m4/lchown.m4: Likewise.
53210         * m4/lcmessage.m4: Likewise.
53211         * m4/ldexpl.m4: Likewise.
53212         * m4/lib-ld.m4: Likewise.
53213         * m4/lib-link.m4: Likewise.
53214         * m4/libsigsegv.m4: Likewise.
53215         * m4/link-follow.m4: Likewise.
53216         * m4/localcharset.m4: Likewise.
53217         * m4/locale-fr.m4: Likewise.
53218         * m4/locale-ja.m4: Likewise.
53219         * m4/locale-tr.m4: Likewise.
53220         * m4/locale-zh.m4: Likewise.
53221         * m4/lock.m4: Likewise.
53222         * m4/longlong.m4: Likewise.
53223         * m4/ls-mntd-fs.m4: Likewise.
53224         * m4/lstat.m4: Likewise.
53225         * m4/malloc.m4: Likewise.
53226         * m4/mathl.m4: Likewise.
53227         * m4/mbrtowc.m4: Likewise.
53228         * m4/mbstate_t.m4: Likewise.
53229         * m4/mbswidth.m4: Likewise.
53230         * m4/memchr.m4: Likewise.
53231         * m4/memcmp.m4: Likewise.
53232         * m4/memcpy.m4: Likewise.
53233         * m4/memmem.m4: Likewise.
53234         * m4/memmove.m4: Likewise.
53235         * m4/mempcpy.m4: Likewise.
53236         * m4/memrchr.m4: Likewise.
53237         * m4/memset.m4: Likewise.
53238         * m4/minmax.m4: Likewise.
53239         * m4/mkdir-slash.m4: Likewise.
53240         * m4/mkdtemp.m4: Likewise.
53241         * m4/mktime.m4: Likewise.
53242         * m4/mmap-anon.m4: Likewise.
53243         * m4/mountlist.m4: Likewise.
53244         * m4/nanosleep.m4: Likewise.
53245         * m4/nls.m4: Likewise.
53246         * m4/nocrash.m4: Likewise.
53247         * m4/open.m4: Likewise.
53248         * m4/openat.m4: Likewise.
53249         * m4/openmp.m4: Likewise.
53250         * m4/pathmax.m4: Likewise.
53251         * m4/perl.m4: Likewise.
53252         * m4/physmem.m4: Likewise.
53253         * m4/pipe.m4: Likewise.
53254         * m4/po.m4: Likewise.
53255         * m4/poll.m4: Likewise.
53256         * m4/posixtm.m4: Likewise.
53257         * m4/posixver.m4: Likewise.
53258         * m4/printf-frexp.m4: Likewise.
53259         * m4/printf-frexpl.m4: Likewise.
53260         * m4/printf-posix.m4: Likewise.
53261         * m4/printf-posix-rpl.m4: Likewise.
53262         * m4/printf.m4: Likewise.
53263         * m4/progtest.m4: Likewise.
53264         * m4/putenv.m4: Likewise.
53265         * m4/readline.m4: Likewise.
53266         * m4/readlink.m4: Likewise.
53267         * m4/readutmp.m4: Likewise.
53268         * m4/realloc.m4: Likewise.
53269         * m4/regex.m4: Likewise.
53270         * m4/relocatable.m4: Likewise.
53271         * m4/relocatable-lib.m4: Likewise.
53272         * m4/rename-dest-slash.m4: Likewise.
53273         * m4/rename.m4: Likewise.
53274         * m4/rmdir-errno.m4: Likewise.
53275         * m4/rmdir.m4: Likewise.
53276         * m4/roundf.m4: Likewise.
53277         * m4/roundl.m4: Likewise.
53278         * m4/rpmatch.m4: Likewise.
53279         * m4/save-cwd.m4: Likewise.
53280         * m4/selinux-selinux-h.m4: Likewise.
53281         * m4/setenv.m4: Likewise.
53282         * m4/settime.m4: Likewise.
53283         * m4/sig2str.m4: Likewise.
53284         * m4/sig_atomic_t.m4: Likewise.
53285         * m4/signalblocking.m4: Likewise.
53286         * m4/signbit.m4: Likewise.
53287         * m4/sigpipe.m4: Likewise.
53288         * m4/sockets.m4: Likewise.
53289         * m4/sockpfaf.m4: Likewise.
53290         * m4/st_dm_mode.m4: Likewise.
53291         * m4/stat-time.m4: Likewise.
53292         * m4/stdbool.m4: Likewise.
53293         * m4/stdint.m4: Likewise.
53294         * m4/stdint_h.m4: Likewise.
53295         * m4/stpcpy.m4: Likewise.
53296         * m4/stpncpy.m4: Likewise.
53297         * m4/strcase.m4: Likewise.
53298         * m4/strchrnul.m4: Likewise.
53299         * m4/strcspn.m4: Likewise.
53300         * m4/strdup.m4: Likewise.
53301         * m4/strftime.m4: Likewise.
53302         * m4/strndup.m4: Likewise.
53303         * m4/strnlen.m4: Likewise.
53304         * m4/strpbrk.m4: Likewise.
53305         * m4/strptime.m4: Likewise.
53306         * m4/strsep.m4: Likewise.
53307         * m4/strtod.m4: Likewise.
53308         * m4/strtoimax.m4: Likewise.
53309         * m4/strtok_r.m4: Likewise.
53310         * m4/strtol.m4: Likewise.
53311         * m4/strtoll.m4: Likewise.
53312         * m4/strtoul.m4: Likewise.
53313         * m4/strtoull.m4: Likewise.
53314         * m4/strtoumax.m4: Likewise.
53315         * m4/strverscmp.m4: Likewise.
53316         * m4/threadlib.m4: Likewise.
53317         * m4/timegm.m4: Likewise.
53318         * m4/tm_gmtoff.m4: Likewise.
53319         * m4/tmpdir.m4: Likewise.
53320         * m4/tmpfile.m4: Likewise.
53321         * m4/tzset.m4: Likewise.
53322         * m4/uintmax_t.m4: Likewise.
53323         * m4/unlinkdir.m4: Likewise.
53324         * m4/unlocked-io.m4: Likewise.
53325         * m4/uptime.m4: Likewise.
53326         * m4/userspec.m4: Likewise.
53327         * m4/utimbuf.m4: Likewise.
53328         * m4/utime.m4: Likewise.
53329         * m4/utimes-null.m4: Likewise.
53330         * m4/utimes.m4: Likewise.
53331         * m4/vararrays.m4: Likewise.
53332         * m4/vasnprintf.m4: Likewise.
53333         * m4/vfprintf-posix.m4: Likewise.
53334         * m4/vprintf-posix.m4: Likewise.
53335         * m4/wait-process.m4: Likewise.
53336         * m4/wchar_t.m4: Likewise.
53337         * m4/wint_t.m4: Likewise.
53338         * m4/write-any-file.m4: Likewise.
53339         * m4/yield.m4: Likewise.
53340
53341 2009-01-13  Bruno Haible  <bruno@clisp.org>
53342
53343         Avoid test-copy-file.sh failures when ACL support insufficient.
53344         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53345         TESTS_ENVIRONMENT.
53346         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53347         Reported by Jim Meyering.
53348
53349 2009-01-13  Bruno Haible  <bruno@clisp.org>
53350
53351         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53352         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53353         * modules/unistdio/u8-printf-parse (Files): Likewise.
53354         * modules/unistdio/u32-printf-parse (Files): Likewise.
53355         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53356
53357 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53358
53359         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53360         and m4/inttypes_h.m4 too.
53361
53362 2009-01-12  Eric Blake  <ebb9@byu.net>
53363
53364         tests: IRIX 6.2 cc can't compile -0.0 into .data
53365         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53366         rather than at compile-time.
53367         * tests/test-floorl.c (minus_zero): Likewise.
53368         * tests/test-frexpl.c (minus_zero): Likewise.
53369         * tests/test-isnan.c (minus_zerol): Likewise.
53370         * tests/test-isnanl.h (minus_zero): Likewise.
53371         * tests/test-ldexpl.c (minus_zero): Likewise.
53372         * tests/test-roundl.c (minus_zero): Likewise.
53373         * tests/test-signbit.c (minus_zerol): Likewise.
53374         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53375         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53376         * tests/test-truncl.c (minus_zero): Likewise.
53377         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53378         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53379         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53380
53381 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53382
53383         regex: fix glibc bug 9697
53384         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53385         handling.
53386
53387 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53388
53389         regex: fix glibc bug 697
53390         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53391         being NULL also if there are no backreferences.
53392
53393 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53394
53395         regex: merge glibc changes
53396         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53397         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53398         re_string_skip_chars, re_string_reconstruct): Likewise.
53399         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53400
53401 2009-01-07  Jim Meyering  <meyering@redhat.com>
53402
53403         poll: filter through cppi
53404         * lib/poll.c: Indent cpp directives to reflect nesting.
53405
53406 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53407
53408         poll: don't return uninitialized
53409         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53410
53411 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53412
53413         avoid compile failure on AIX 6.1
53414         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53415         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53416
53417 2009-01-04  Jim Meyering  <meyering@redhat.com>
53418
53419         remove duplicate inclusion of <stdio.h>
53420         * tests/test-fprintf-posix.c: Likewise.
53421         * tests/test-printf-posix.c: Likewise.
53422         * tests/test-snprintf-posix.c: Likewise.
53423         * tests/test-sprintf-posix.c: Likewise.
53424         * tests/test-vasprintf-posix.c: Likewise.
53425         * tests/test-vfprintf-posix.c: Likewise.
53426         * tests/test-vprintf-posix.c: Likewise.
53427         * tests/test-vsnprintf-posix.c: Likewise.
53428         * tests/test-vsprintf-posix.c: Likewise.
53429
53430 2009-01-03  Jim Meyering  <meyering@redhat.com>
53431
53432         gnulib-tool: fix sed-based filtering
53433         * gnulib-tool (func_filter_filelist): Remove extra backslash
53434         in sed_fff_filter definition.
53435
53436 2009-01-02  Jim Meyering  <meyering@redhat.com>
53437
53438         strftime: avoid compilation failure on Solaris 2.6
53439         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53440         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53441         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53442         be available.  Reported by Tom G. Christensen.  Details in
53443         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53444
53445 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53446             Bruno Haible  <bruno@clisp.org>
53447
53448         Speed up gnulib-tool by doing more string processing through shell
53449         built-ins.
53450         * gnulib-tool (fast_func_append): New variable.
53451         (func_remove_prefix, func_remove_suffix): New functions.
53452         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53453         (func_filter_filelist): New function.
53454         (func_get_dependencies): Use func_remove_suffix instead of sed.
53455         (func_get_automake_snippet): Use func_filter_filelist instead of a
53456         subshell and sed invocation.
53457
53458 2009-01-01  Bruno Haible  <bruno@clisp.org>
53459
53460         Fix a security bug.
53461         * gnulib-tool (func_import, import, update): Don't allow the characters
53462         '"', '$', '`', '\' in macro arguments that become part of commands that
53463         are evaluated.
53464
53465 2009-01-01  Bruno Haible  <bruno@clisp.org>
53466
53467         * gnulib-tool (func_reset_sigpipe): Add more comments.
53468
53469 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53470
53471         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53472         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53473         already know the answer.
53474
53475 2009-01-01  Jim Meyering  <meyering@redhat.com>
53476
53477         * lib/version-etc.c (version_etc_va): Update copyright year.
53478
53479 2008-12-30  Bruno Haible  <bruno@clisp.org>
53480
53481         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53482         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53483         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53484
53485 2008-12-29  Eric Blake  <ebb9@byu.net>
53486
53487         multiarch: avoid autoconf AC_REQUIRE bug
53488         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53489         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53490         2.63 and older.
53491         Reported by Bruno Haible, and analyzed in
53492         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53493
53494 2008-12-29  Bruno Haible  <bruno@clisp.org>
53495
53496         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53497         files in subdirectories correctly.
53498         Reported by Ralf Wildenhues.
53499
53500 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53501
53502         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53503         rather than 'join FILE -', for Solaris join.
53504
53505 2008-12-29  Bruno Haible  <bruno@clisp.org>
53506
53507         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53508         quoting.
53509         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53510         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53511         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53512         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53513         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53514         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53515         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53516         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53517         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53518         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53519         * m4/nls.m4 (AM_NLS): Likewise.
53520         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53521         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53522         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53523         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53524         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53525         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53526         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53527         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53528         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53529         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53530         * m4/xsize.m4 (gl_XSIZE): Likewise.
53531         Suggested by Jim Meyering.
53532
53533 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53534
53535         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53536         * lib/parse-duration.c: use a switch instead of cascading if's.
53537
53538 2008-12-29  Eric Blake  <ebb9@byu.net>
53539
53540         wchar.h: supply WEOF on Irix 5.3
53541         * lib/wchar.in.h (wint_t): Also supply WEOF.
53542         * lib/wctype.in.h (wint_t): Likewise.
53543         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53544         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53545         Reported by Tom G. Christensen.
53546
53547 2008-12-26  Bruno Haible  <bruno@clisp.org>
53548
53549         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53550         i486, i586, i686.
53551
53552 2008-12-26  Bruno Haible  <bruno@clisp.org>
53553
53554         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53555
53556 2008-12-26  Bruno Haible  <bruno@clisp.org>
53557
53558         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53559         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53560         not __STDC_CONSTANT_MACROS.
53561         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53562
53563 2008-12-25  Bruno Haible  <bruno@clisp.org>
53564
53565         Add support for universal builds to vasnprintf.
53566         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53567         universal builds, guess no.
53568         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53569         * modules/vasprintf-posix (Depends-on): Likewise.
53570         * modules/fprintf-posix (Depends-on): Likewise.
53571         * modules/vfprintf-posix (Depends-on): Likewise.
53572         * modules/snprintf-posix (Depends-on): Likewise.
53573         * modules/vsnprintf-posix (Depends-on): Likewise.
53574         * modules/sprintf-posix (Depends-on): Likewise.
53575         * modules/vsprintf-posix (Depends-on): Likewise.
53576         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53577         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53578         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53579         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53580         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53581         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53582         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53583
53584         Add support for universal builds to <inttypes.h>.
53585         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53586         _SCNu64_PREFIX): In Apple
53587         universal builds, define directly, using _LP64.
53588         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53589         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53590         * modules/inttypes (Depends-on): Add multiarch.
53591         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53592
53593         Add support for universal builds to <stdint.h>.
53594         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53595         universal builds, define directly, using _LP64.
53596         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53597         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53598         and size_t.
53599         * modules/stdint (Depends-on): Add multiarch.
53600         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53601
53602         New module 'multiarch'.
53603         * modules/multiarch: New file.
53604         * m4/multiarch.m4: New file.
53605
53606 2008-12-25  Bruno Haible  <bruno@clisp.org>
53607
53608         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53609
53610 2008-12-25  Bruno Haible  <bruno@clisp.org>
53611
53612         * modules/btowc (License): Relicense under LGPLv2+.
53613         * modules/mbsinit (License): Likewise.
53614         * modules/mbrtowc (License): Likewise.
53615         * modules/wcrtomb (License): Likewise.
53616         * modules/streq (License): Likewise.
53617         Reported by David Lutterkort <lutter@redhat.com>.
53618
53619 2008-12-23  Bruno Haible  <bruno@clisp.org>
53620
53621         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53622
53623 2008-12-23  Bruno Haible  <bruno@clisp.org>
53624
53625         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53626         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53627         GETADDRINFO_LIB, not in LIBS.
53628         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53629         * modules/canon-host (Link): Likewise.
53630         * NEWS: Mention the change.
53631         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53632         GETADDRINFO_LIB.
53633
53634 2008-12-22  Bruno Haible  <bruno@clisp.org>
53635
53636         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53637         * doc/posix-functions/iswalpha_l.texi: Likewise.
53638         * doc/posix-functions/iswblank_l.texi: Likewise.
53639         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53640         * doc/posix-functions/iswctype_l.texi: Likewise.
53641         * doc/posix-functions/iswdigit_l.texi: Likewise.
53642         * doc/posix-functions/iswgraph_l.texi: Likewise.
53643         * doc/posix-functions/iswlower_l.texi: Likewise.
53644         * doc/posix-functions/iswprint_l.texi: Likewise.
53645         * doc/posix-functions/iswpunct_l.texi: Likewise.
53646         * doc/posix-functions/iswspace_l.texi: Likewise.
53647         * doc/posix-functions/iswupper_l.texi: Likewise.
53648         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53649         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53650         * doc/posix-functions/open_wmemstream.texi: Likewise.
53651         * doc/posix-functions/swscanf.texi: Likewise.
53652         * doc/posix-functions/towctrans_l.texi: Likewise.
53653         * doc/posix-functions/towlower.texi: Likewise.
53654         * doc/posix-functions/towlower_l.texi: Likewise.
53655         * doc/posix-functions/towupper.texi: Likewise.
53656         * doc/posix-functions/towupper_l.texi: Likewise.
53657         * doc/posix-functions/vfwprintf.texi: Likewise.
53658         * doc/posix-functions/vfwscanf.texi: Likewise.
53659         * doc/posix-functions/vswscanf.texi: Likewise.
53660         * doc/posix-functions/vwprintf.texi: Likewise.
53661         * doc/posix-functions/vwscanf.texi: Likewise.
53662         * doc/posix-functions/wcpcpy.texi: Likewise.
53663         * doc/posix-functions/wcpncpy.texi: Likewise.
53664         * doc/posix-functions/wcscasecmp.texi: Likewise.
53665         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53666         * doc/posix-functions/wcscoll_l.texi: Likewise.
53667         * doc/posix-functions/wcsdup.texi: Likewise.
53668         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53669         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53670         * doc/posix-functions/wcsnlen.texi: Likewise.
53671         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53672         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53673         * doc/posix-functions/wctrans_l.texi: Likewise.
53674         * doc/posix-functions/wctype_l.texi: Likewise.
53675         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53676         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53677         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53678         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53679         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53680         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53681         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53682         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53683         * doc/glibc-functions/wcschrnul.texi: Likewise.
53684         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53685         * doc/glibc-functions/wcstod_l.texi: Likewise.
53686         * doc/glibc-functions/wcstof_l.texi: Likewise.
53687         * doc/glibc-functions/wcstol_l.texi: Likewise.
53688         * doc/glibc-functions/wcstold_l.texi: Likewise.
53689         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53690         * doc/glibc-functions/wcstoq.texi: Likewise.
53691         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53692         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53693         * doc/glibc-functions/wcstouq.texi: Likewise.
53694         * doc/glibc-functions/wmempcpy.texi: Likewise.
53695
53696 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53697             Eric Blake  <ebb9@byu.net>
53698             Paolo Bonzini  <bonzini@gnu.org>
53699             Bruno Haible  <bruno@clisp.org>
53700
53701         Make c-stack work on Haiku.
53702         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53703         (c_stack_action): Use SA_ONSTACK flag.
53704
53705 2008-12-22  Bruno Haible  <bruno@clisp.org>
53706
53707         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53708
53709 2008-12-22  Bruno Haible  <bruno@clisp.org>
53710
53711         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53712         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53713         being overridden.
53714         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53715         New macros.
53716         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53717         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53718         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53719         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53720
53721 2008-12-22  Bruno Haible  <bruno@clisp.org>
53722
53723         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53724         from test code.
53725
53726 2008-12-22  Eric Blake  <ebb9@byu.net>
53727
53728         Avoid gcc warnings on cygwin.
53729         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53730         Avoid unused variable.
53731         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53732         Likewise.
53733
53734 2008-12-22  Bruno Haible  <bruno@clisp.org>
53735
53736         Remove HAVE_MBRTOWC conditionals.
53737         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53738         (mbscasecmp): Assume mbrtowc function.
53739         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53740         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53741         * lib/mbschr.c: Include mbuiter.h unconditionally.
53742         (mbschr): Assume mbrtowc function.
53743         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53744         (mbscspn): Assume mbrtowc function.
53745         * lib/mbslen.c: Include mbuiter.h unconditionally.
53746         (mbslen): Assume mbrtowc function.
53747         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53748         (mbsncasecmp): Assume mbrtowc function.
53749         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53750         (mbsnlen): Assume mbrtowc function.
53751         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53752         (mbspbrk): Assume mbrtowc function.
53753         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53754         (mbspcasecmp): Assume mbrtowc function.
53755         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53756         (mbsrchr): Assume mbrtowc function.
53757         * lib/mbssep.c: Include mbuiter.h unconditionally.
53758         (mbssep): Assume mbrtowc function.
53759         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53760         (mbsspn): Assume mbrtowc function.
53761         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53762         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53763         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53764         (mbstok_r): Assume mbrtowc function.
53765         * lib/propername.c: Include mbuiter.h unconditionally.
53766         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53767         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53768         (trim2): Assume mbrtowc function.
53769         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53770         (mbsnwidth): Assume mbrtowc function.
53771         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53772         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53773         fallback definitions.
53774         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53775
53776 2008-12-22  Bruno Haible  <bruno@clisp.org>
53777
53778         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53779
53780 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53781
53782         * modules/regex: Request emulations for the mb*/wc* functions we need.
53783         * m4/regex.m4: Don't look for those functions here.
53784         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53785
53786 2008-12-22  Bruno Haible  <bruno@clisp.org>
53787
53788         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53789
53790 2008-12-21  Bruno Haible  <bruno@clisp.org>
53791
53792         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53793         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53794         (Include): Remove conditionalization.
53795         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53796         (Include): Remove conditionalization.
53797         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53798         (Include): Remove conditionalization.
53799         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53800         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53801         * NEWS: Mention the change.
53802         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53803         via Sergey Poznyakoff <gray@gnu.org.ua>.
53804
53805 2008-12-21  Bruno Haible  <bruno@clisp.org>
53806
53807         * MODULES.html.sh (Extended multibyte and wide character utilities
53808         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53809         wcrtomb, wcsrtombs.
53810         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53811         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53812         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53813         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53814
53815 2008-12-21  Bruno Haible  <bruno@clisp.org>
53816
53817         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53818
53819 2008-12-21  Bruno Haible  <bruno@clisp.org>
53820
53821         * modules/wcsnrtombs-tests: New file.
53822         * tests/test-wcsnrtombs1.sh: New file.
53823         * tests/test-wcsnrtombs2.sh: New file.
53824         * tests/test-wcsnrtombs3.sh: New file.
53825         * tests/test-wcsnrtombs4.sh: New file.
53826         * tests/test-wcsnrtombs.c: New file.
53827
53828         New module 'wcsnrtombs'.
53829         * lib/wchar.in.h (wcsnrtombs): New declaration.
53830         * lib/wcsnrtombs.c: New file.
53831         * lib/wcsrtombs-state.c: New file.
53832         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53833         (internal_state): Remove variable.
53834         * m4/wcsnrtombs.m4: New file.
53835         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53836         compilation units.
53837         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53838         HAVE_WCSNRTOMBS.
53839         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53840         HAVE_WCSNRTOMBS.
53841         * modules/wcsnrtombs: New file.
53842         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53843         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53844
53845 2008-12-21  Bruno Haible  <bruno@clisp.org>
53846
53847         * modules/wcsrtombs-tests: New file.
53848         * tests/test-wcsrtombs1.sh: New file.
53849         * tests/test-wcsrtombs2.sh: New file.
53850         * tests/test-wcsrtombs3.sh: New file.
53851         * tests/test-wcsrtombs4.sh: New file.
53852         * tests/test-wcsrtombs.c: New file.
53853
53854         New module 'wcsrtombs'.
53855         * lib/wchar.in.h (wcsrtombs): New declaration.
53856         * lib/wcsrtombs.c: New file.
53857         * m4/wcsrtombs.m4: New file.
53858         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53859         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53860         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53861         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53862         * modules/wcsrtombs: New file.
53863         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
53864         bugs.
53865
53866 2008-12-21  Bruno Haible  <bruno@clisp.org>
53867
53868         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
53869         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
53870         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
53871         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
53872         if not correct.
53873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
53874         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
53875         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53876         m4/locale-zh.m4, m4/codeset.m4.
53877         * doc/posix-functions/wcrtomb.texi: Document the bug.
53878
53879 2008-12-21  Bruno Haible  <bruno@clisp.org>
53880
53881         Work around a btowc() bug on IRIX 6.5.
53882         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
53883         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
53884         REPLACE_WTOBC if not.
53885         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
53886         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
53887         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
53888
53889 2008-12-21  Bruno Haible  <bruno@clisp.org>
53890
53891         * modules/wcrtomb-tests: New file.
53892         * tests/test-wcrtomb.sh: New file.
53893         * tests/test-wcrtomb.c: New file.
53894
53895         New module 'wcrtomb'.
53896         * lib/wchar.in.h (wcrtomb): New declaration.
53897         * lib/wcrtomb.c: New file.
53898         * m4/wcrtomb.m4: New file.
53899         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
53900         HAVE_WCRTOMB.
53901         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
53902         HAVE_WCRTOMB.
53903         * modules/wcrtomb: New file.
53904         * doc/posix-functions/wcrtomb.texi: Mention the new module.
53905
53906 2008-12-21  Bruno Haible  <bruno@clisp.org>
53907
53908         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
53909         * modules/mbsrtowcs (Files): Likewise.
53910         * modules/wctob (Files): Likewise.
53911         * modules/c-strcase-tests (Files): Likewise.
53912         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53913         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53914         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53915         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53916         * modules/vasnprintf-posix-tests (Files): Likewise.
53917
53918 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53919
53920         gitlog-to-changelog: pass all command-line arguments to git-log
53921         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53922         it is sometimes convenient to filter the commits in various ways.
53923         gitlog-to-changelog only allows --since to specify a start date,
53924         but git-log itself supports many other filtering mechanisms.
53925         At the moment, I want to filter by branch name.  Rather than
53926         adding a --branch option to gitlog-to-changelog, it seems more
53927         flexible to simply pass all options directly to git-log and let
53928         git do the work.  Notice that this effectively makes --since a
53929         redundant option for gitlog-to-changelog, but removing it would
53930         require current usage to change since calls would then require
53931         an additional '--'.
53932
53933 2008-12-21  Bruno Haible  <bruno@clisp.org>
53934
53935         * modules/mbsnrtowcs-tests: New file.
53936         * tests/test-mbsnrtowcs1.sh: New file.
53937         * tests/test-mbsnrtowcs2.sh: New file.
53938         * tests/test-mbsnrtowcs3.sh: New file.
53939         * tests/test-mbsnrtowcs4.sh: New file.
53940         * tests/test-mbsnrtowcs.c: New file.
53941
53942         New module 'mbsnrtowcs'.
53943         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53944         * lib/mbsnrtowcs.c: New file.
53945         * lib/mbsrtowcs-state.c: New file.
53946         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53947         (internal_state): Remove variable.
53948         * m4/mbsnrtowcs.m4: New file.
53949         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53950         compilation units.
53951         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53952         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53953         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53954         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53955         * modules/mbsnrtowcs: New file.
53956         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53957         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53958         portability problem.
53959
53960 2008-12-21  Bruno Haible  <bruno@clisp.org>
53961
53962         Work around mbsrtowcs bug.
53963         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53964         (gl_FUNC_MBSRTOWCS): Invoke it.
53965         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53966         m4/locale-zh.m4.
53967         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53968
53969 2008-12-21  Bruno Haible  <bruno@clisp.org>
53970
53971         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53972
53973 2008-12-21  Bruno Haible  <bruno@clisp.org>
53974
53975         Update doc for AIX.
53976         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53977         16-bit wchar_t type.
53978         * doc/posix-functions/btowc.texi: Likewise.
53979         * doc/posix-functions/fgetwc.texi: Likewise.
53980         * doc/posix-functions/fgetws.texi: Likewise.
53981         * doc/posix-functions/fputwc.texi: Likewise.
53982         * doc/posix-functions/fputws.texi: Likewise.
53983         * doc/posix-functions/fwide.texi: Likewise.
53984         * doc/posix-functions/fwprintf.texi: Likewise.
53985         * doc/posix-functions/fwscanf.texi: Likewise.
53986         * doc/posix-functions/getwchar.texi: Likewise.
53987         * doc/posix-functions/getwc.texi: Likewise.
53988         * doc/posix-functions/iswalnum.texi: Likewise.
53989         * doc/posix-functions/iswalpha.texi: Likewise.
53990         * doc/posix-functions/iswblank.texi: Likewise.
53991         * doc/posix-functions/iswcntrl.texi: Likewise.
53992         * doc/posix-functions/iswctype.texi: Likewise.
53993         * doc/posix-functions/iswdigit.texi: Likewise.
53994         * doc/posix-functions/iswgraph.texi: Likewise.
53995         * doc/posix-functions/iswlower.texi: Likewise.
53996         * doc/posix-functions/iswprint.texi: Likewise.
53997         * doc/posix-functions/iswpunct.texi: Likewise.
53998         * doc/posix-functions/iswspace.texi: Likewise.
53999         * doc/posix-functions/iswupper.texi: Likewise.
54000         * doc/posix-functions/iswxdigit.texi: Likewise.
54001         * doc/posix-functions/mbrtowc.texi: Likewise.
54002         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54003         * doc/posix-functions/mbstowcs.texi: Likewise.
54004         * doc/posix-functions/mbtowc.texi: Likewise.
54005         * doc/posix-functions/putwchar.texi: Likewise.
54006         * doc/posix-functions/putwc.texi: Likewise.
54007         * doc/posix-functions/swprintf.texi: Likewise.
54008         * doc/posix-functions/tolower.texi: Likewise.
54009         * doc/posix-functions/toupper.texi: Likewise.
54010         * doc/posix-functions/towctrans.texi: Likewise.
54011         * doc/posix-functions/ungetwc.texi: Likewise.
54012         * doc/posix-functions/vswprintf.texi: Likewise.
54013         * doc/posix-functions/wcrtomb.texi: Likewise.
54014         * doc/posix-functions/wcscat.texi: Likewise.
54015         * doc/posix-functions/wcschr.texi: Likewise.
54016         * doc/posix-functions/wcscmp.texi: Likewise.
54017         * doc/posix-functions/wcscoll.texi: Likewise.
54018         * doc/posix-functions/wcscpy.texi: Likewise.
54019         * doc/posix-functions/wcscspn.texi: Likewise.
54020         * doc/posix-functions/wcsftime.texi: Likewise.
54021         * doc/posix-functions/wcslen.texi: Likewise.
54022         * doc/posix-functions/wcsncat.texi: Likewise.
54023         * doc/posix-functions/wcsncmp.texi: Likewise.
54024         * doc/posix-functions/wcsncpy.texi: Likewise.
54025         * doc/posix-functions/wcspbrk.texi: Likewise.
54026         * doc/posix-functions/wcsrchr.texi: Likewise.
54027         * doc/posix-functions/wcsrtombs.texi: Likewise.
54028         * doc/posix-functions/wcsspn.texi: Likewise.
54029         * doc/posix-functions/wcsstr.texi: Likewise.
54030         * doc/posix-functions/wcstod.texi: Likewise.
54031         * doc/posix-functions/wcstof.texi: Likewise.
54032         * doc/posix-functions/wcstoimax.texi: Likewise.
54033         * doc/posix-functions/wcstok.texi: Likewise.
54034         * doc/posix-functions/wcstold.texi: Likewise.
54035         * doc/posix-functions/wcstoll.texi: Likewise.
54036         * doc/posix-functions/wcstol.texi: Likewise.
54037         * doc/posix-functions/wcstombs.texi: Likewise.
54038         * doc/posix-functions/wcstoull.texi: Likewise.
54039         * doc/posix-functions/wcstoul.texi: Likewise.
54040         * doc/posix-functions/wcstoumax.texi: Likewise.
54041         * doc/posix-functions/wcswidth.texi: Likewise.
54042         * doc/posix-functions/wcsxfrm.texi: Likewise.
54043         * doc/posix-functions/wctob.texi: Likewise.
54044         * doc/posix-functions/wctomb.texi: Likewise.
54045         * doc/posix-functions/wctrans.texi: Likewise.
54046         * doc/posix-functions/wctype.texi: Likewise.
54047         * doc/posix-functions/wcwidth.texi: Likewise.
54048         * doc/posix-functions/wmemchr.texi: Likewise.
54049         * doc/posix-functions/wmemcmp.texi: Likewise.
54050         * doc/posix-functions/wmemcpy.texi: Likewise.
54051         * doc/posix-functions/wmemmove.texi: Likewise.
54052         * doc/posix-functions/wmemset.texi: Likewise.
54053         * doc/posix-functions/wprintf.texi: Likewise.
54054         * doc/posix-functions/wscanf.texi: Likewise.
54055
54056 2008-12-21  Bruno Haible  <bruno@clisp.org>
54057
54058         Update doc for HP-UX 11.11.
54059         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54060         in HP-UX version 11.00, not in all versions of HP-UX 11.
54061         * doc/posix-functions/fwide.texi: Likewise.
54062         * doc/posix-functions/fwprintf.texi: Likewise.
54063         * doc/posix-functions/fwscanf.texi: Likewise.
54064         * doc/posix-functions/inet_ntop.texi: Likewise.
54065         * doc/posix-functions/inet_pton.texi: Likewise.
54066         * doc/posix-functions/mbrlen.texi: Likewise.
54067         * doc/posix-functions/mbrtowc.texi: Likewise.
54068         * doc/posix-functions/mbsinit.texi: Likewise.
54069         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54070         * doc/posix-functions/swprintf.texi: Likewise.
54071         * doc/posix-functions/swscanf.texi: Likewise.
54072         * doc/posix-functions/towctrans.texi: Likewise.
54073         * doc/posix-functions/vfwprintf.texi: Likewise.
54074         * doc/posix-functions/vswprintf.texi: Likewise.
54075         * doc/posix-functions/vwprintf.texi: Likewise.
54076         * doc/posix-functions/wcrtomb.texi: Likewise.
54077         * doc/posix-functions/wcsrtombs.texi: Likewise.
54078         * doc/posix-functions/wcsstr.texi: Likewise.
54079         * doc/posix-functions/wctob.texi: Likewise.
54080         * doc/posix-functions/wctrans.texi: Likewise.
54081         * doc/posix-functions/wmemchr.texi: Likewise.
54082         * doc/posix-functions/wmemcmp.texi: Likewise.
54083         * doc/posix-functions/wmemcpy.texi: Likewise.
54084         * doc/posix-functions/wmemmove.texi: Likewise.
54085         * doc/posix-functions/wmemset.texi: Likewise.
54086         * doc/posix-functions/wprintf.texi: Likewise.
54087         * doc/posix-functions/wscanf.texi: Likewise.
54088
54089 2008-12-21  Bruno Haible  <bruno@clisp.org>
54090
54091         Work around a portability problem.
54092         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54093         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54094
54095 2008-12-20  Bruno Haible  <bruno@clisp.org>
54096
54097         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54098         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54099         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54100         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54101         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54102
54103         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54104         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54105         set.
54106         (GNULIB_defined_mbstate_t): New macro.
54107         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54108         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54109         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54110         reuses the system's mbrtowc function but works around the bugs.
54111         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54112         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54113         macros.
54114         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54115         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54116         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54117         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54118         REPLACE_MBSINIT if mbsinit needs to be overridden.
54119         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54120         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54121         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54122         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54123         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54124         m4/locale-zh.m4.
54125         (Depends): Add mbsinit.
54126         * modules/mbsinit (Depends): Add mbrtowc.
54127         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54128
54129 2008-12-20  Bruno Haible  <bruno@clisp.org>
54130
54131         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54132         so that there are no conversion errors on AIX.
54133         * tests/test-mbsrtowcs.c (main): LIkewise.
54134
54135 2008-12-20  Bruno Haible  <bruno@clisp.org>
54136
54137         Work around wctob bug on Solaris <= 9.
54138         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54139         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54140         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54141         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54142         * modules/wctob (Files): Add m4/locale-fr.m4.
54143         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54144
54145 2008-12-20  Bruno Haible  <bruno@clisp.org>
54146
54147         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54148         /dev/null.
54149         * tests/test-select-in.sh: Likewise.
54150         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54151
54152 2008-12-20  Bruno Haible  <bruno@clisp.org>
54153
54154         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54155         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54156         Cygwin 1.5.x.
54157
54158 2008-12-20  Bruno Haible  <bruno@clisp.org>
54159
54160         Ensure mbstate_t is defined on HP-UX 11.11.
54161         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54162         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54163         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54164         AC_USE_SYSTEM_EXTENSIONS.
54165         * modules/fnmatch (Depends-on): Add extensions.
54166         * modules/mbrlen (Depends-on): Likewise.
54167         * modules/mbrtowc (Depends-on): Likewise.
54168         * modules/mbsinit (Depends-on): Likewise.
54169         * modules/mbsrtowcs (Depends-on): Likewise.
54170         * modules/mbswidth (Depends-on): Likewise.
54171         * modules/quotearg (Depends-on): Likewise.
54172         * modules/strftime (Depends-on): Likewise.
54173
54174 2008-12-20  Bruno Haible  <bruno@clisp.org>
54175
54176         Ensure wctob is declared on IRIX 6.5.
54177         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54178         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54179         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54180         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54181         of HAVE_WCTOB.
54182         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54183         HAVE_WCTOB.
54184         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54185
54186 2008-12-19  Bruno Haible  <bruno@clisp.org>
54187
54188         * modules/mbsrtowcs-tests: New file.
54189         * tests/test-mbsrtowcs1.sh: New file.
54190         * tests/test-mbsrtowcs2.sh: New file.
54191         * tests/test-mbsrtowcs3.sh: New file.
54192         * tests/test-mbsrtowcs4.sh: New file.
54193         * tests/test-mbsrtowcs.c: New file.
54194
54195         New module 'mbsrtowcs'.
54196         * lib/wchar.in.h (mbsrtowcs): New declaration.
54197         * lib/mbsrtowcs.c: New file.
54198         * m4/mbsrtowcs.m4: New file.
54199         * modules/mbsrtowcs: New file.
54200         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54201         HAVE_MBSRTOWCS.
54202         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54203         HAVE_MBSRTOWCS.
54204         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54205
54206 2008-12-19  Bruno Haible  <bruno@clisp.org>
54207
54208         New module 'mbrlen'.
54209         * lib/wchar.in.h (mbrlen): New declaration.
54210         * lib/mbrlen.c: New file.
54211         * m4/mbrlen.m4: New file.
54212         * modules/mbrlen: New file.
54213         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54214         HAVE_MBRLEN.
54215         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54216         HAVE_MBRLEN.
54217         * doc/posix-functions/mbrlen.texi: Document the new module.
54218
54219 2008-12-19  Bruno Haible  <bruno@clisp.org>
54220
54221         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54222         * modules/mbrtowc (Depends-on): Add verify.
54223         Suggested by Paul Eggert.
54224
54225 2008-12-18  Bruno Haible  <bruno@clisp.org>
54226
54227         * modules/mbsinit-tests: New file.
54228         * tests/test-mbsinit.sh: New file.
54229         * tests/test-mbsinit.c: New file.
54230
54231 2008-12-18  Bruno Haible  <bruno@clisp.org>
54232
54233         * modules/mbrtowc-tests: New file.
54234         * tests/test-mbrtowc1.sh: New file.
54235         * tests/test-mbrtowc2.sh: New file.
54236         * tests/test-mbrtowc3.sh: New file.
54237         * tests/test-mbrtowc4.sh: New file.
54238         * tests/test-mbrtowc.c: New file.
54239
54240         New module 'mbrtowc'.
54241         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54242         mbsinit and mbrtowc.
54243         (mbrtowc): New declaration.
54244         * lib/mbrtowc.c: New file.
54245         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54246         * modules/mbrtowc: New file.
54247         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54248         HAVE_MBRTOWC.
54249         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54250         HAVE_MBRTOWC.
54251         * doc/posix-functions/mbrtowc.texi: Document the new module.
54252
54253 2008-12-18  Bruno Haible  <bruno@clisp.org>
54254
54255         New module 'wctob'.
54256         * lib/wchar.in.h (wctob): New declaration.
54257         * lib/wctob.c: New file.
54258         * m4/wctob.m4: New file.
54259         * modules/wctob: New file.
54260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54261         HAVE_WCTOB.
54262         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54263         * doc/posix-functions/wctob.texi: Document the new module.
54264
54265 2008-12-18  Bruno Haible  <bruno@clisp.org>
54266
54267         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54268         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54269
54270 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54271
54272         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54273         G. Christensen" <tgc@jupiterrise.com>.
54274
54275         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54276         G. Christensen" <tgc@jupiterrise.com>.
54277
54278         * lib/flock.c: Need to include string.h.  Reported by "Tom
54279         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54280         <ebb9@byu.net>.
54281
54282 2008-12-18  Bruno Haible  <bruno@clisp.org>
54283
54284         * m4/locale-ja.m4: New file, from GNU gettext.
54285
54286 2008-12-17  Bruno Haible  <bruno@clisp.org>
54287
54288         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54289         Suggested by Eric Blake.
54290
54291 2008-12-17  Bruno Haible  <bruno@clisp.org>
54292
54293         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54294
54295 2008-12-17  Bruno Haible  <bruno@clisp.org>
54296
54297         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54298         * modules/mbsinit (Depends-on): Add verify.
54299         Suggested by Paul Eggert.
54300
54301 2008-12-17  Bruno Haible  <bruno@clisp.org>
54302
54303         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54304         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54305         gl_FUNC_MBRTOWC.
54306         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54307         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54308         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54309         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54310         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54311         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54312         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54313         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54314         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54315         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54316         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54317         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54318         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54319         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54320         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54321         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54322         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54323         * modules/trim (configure.ac): Likewise.
54324
54325 2008-12-17  Bruno Haible  <bruno@clisp.org>
54326
54327         * modules/btowc-tests: New file.
54328         * tests/test-btowc1.sh: New file.
54329         * tests/test-btowc2.sh: New file.
54330         * tests/test-btowc.c: New file.
54331
54332         New module 'btowc'.
54333         * lib/wchar.in.h (btowc): New declaration.
54334         * lib/btowc.c: New file.
54335         * m4/btowc.m4: New file.
54336         * modules/btowc: New file.
54337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54338         HAVE_BTOWC.
54339         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54340         * doc/posix-functions/btowc.texi: Document the new module.
54341
54342 2008-12-17  Bruno Haible  <bruno@clisp.org>
54343
54344         New module 'mbsinit'.
54345         * lib/wchar.in.h (mbsinit): New declaration.
54346         * lib/mbsinit.c: New file.
54347         * m4/mbsinit.m4: New file.
54348         * modules/mbsinit: New file.
54349         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54350         HAVE_MBSINIT.
54351         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54352         HAVE_MBSINIT.
54353         * doc/posix-functions/mbsinit.texi: Document the new module.
54354
54355 2008-12-16  Bruno Haible  <bruno@clisp.org>
54356
54357         * lib/unistd.in.h: Add comment.
54358         * tests/test-environ.c: Don't include <stdlib.h>.
54359
54360 2008-12-16  Bruno Haible  <bruno@clisp.org>
54361
54362         * lib/parse-duration.h (parse_duration): Document return value
54363         convention.
54364         * lib/parse-duration.c: Include specification header first. Add
54365         comments.
54366         (_): Remove macro.
54367         (parse_year_month_day, parse_hour_minute_second): Move side effects
54368         outside of strchr call.
54369         (parse_non_iso8601): Move side effects outside of isspace call.
54370         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54371         call.
54372
54373 2008-12-16  Bruno Haible  <bruno@clisp.org>
54374
54375         * tests/test-parse-duration.sh: Produce no output when the test
54376         succeeds.
54377
54378 2008-12-16  Bruno Haible  <bruno@clisp.org>
54379
54380         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54381         expressions.
54382
54383 2008-12-15  Bruno Haible  <bruno@clisp.org>
54384
54385         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54386         * doc/glibc-functions/flistxattr.texi: Likewise.
54387         * doc/glibc-functions/fopencookie.texi: Likewise.
54388         * doc/glibc-functions/fremovexattr.texi: Likewise.
54389         * doc/glibc-functions/fsetxattr.texi: Likewise.
54390         * doc/glibc-functions/getxattr.texi: Likewise.
54391         * doc/glibc-functions/lgetxattr.texi: Likewise.
54392         * doc/glibc-functions/listxattr.texi: Likewise.
54393         * doc/glibc-functions/llistxattr.texi: Likewise.
54394         * doc/glibc-functions/lremovexattr.texi: Likewise.
54395         * doc/glibc-functions/lsetxattr.texi: Likewise.
54396         * doc/glibc-functions/removexattr.texi: Likewise.
54397         * doc/glibc-functions/setxattr.texi: Likewise.
54398         * doc/posix-functions/open_memstream.texi: Likewise.
54399
54400 2008-12-15  Eric Blake  <ebb9@byu.net>
54401
54402         Update doc for cygwin 1.7.
54403         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54404         functions.
54405         * doc/posix-functions/fchmodat.texi: Likewise.
54406         * doc/posix-functions/fchownat.texi: Likewise.
54407         * doc/posix-functions/fdopendir.texi: Likewise.
54408         * doc/posix-functions/fmemopen.texi: Likewise.
54409         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54410         * doc/posix-functions/fstatat.texi: Likewise.
54411         * doc/posix-functions/futimens.texi: Likewise.
54412         * doc/posix-functions/gai_strerror.texi: Likewise.
54413         * doc/posix-functions/getaddrinfo.texi: Likewise.
54414         * doc/posix-functions/getnameinfo.texi: Likewise.
54415         * doc/posix-functions/if_freenameindex.texi: Likewise.
54416         * doc/posix-functions/if_indextoname.texi: Likewise.
54417         * doc/posix-functions/if_nameindex.texi: Likewise.
54418         * doc/posix-functions/if_nametoindex.texi: Likewise.
54419         * doc/posix-functions/insque.texi: Likewise.
54420         * doc/posix-functions/linkat.texi: Likewise.
54421         * doc/posix-functions/llrint.texi: Likewise.
54422         * doc/posix-functions/llrintf.texi: Likewise.
54423         * doc/posix-functions/llrintl.texi: Likewise.
54424         * doc/posix-functions/lockf.texi: Likewise.
54425         * doc/posix-functions/lrintl.texi: Likewise.
54426         * doc/posix-functions/mkdirat.texi: Likewise.
54427         * doc/posix-functions/mkfifoat.texi: Likewise.
54428         * doc/posix-functions/mknodat.texi: Likewise.
54429         * doc/posix-functions/mq_close.texi: Likewise.
54430         * doc/posix-functions/mq_getattr.texi: Likewise.
54431         * doc/posix-functions/mq_notify.texi: Likewise.
54432         * doc/posix-functions/mq_open.texi: Likewise.
54433         * doc/posix-functions/mq_receive.texi: Likewise.
54434         * doc/posix-functions/mq_send.texi: Likewise.
54435         * doc/posix-functions/mq_setattr.texi: Likewise.
54436         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54437         * doc/posix-functions/mq_timedsend.texi: Likewise.
54438         * doc/posix-functions/mq_unlink.texi: Likewise.
54439         * doc/posix-functions/open_memstream.texi: Likewise.
54440         * doc/posix-functions/openat.texi: Likewise.
54441         * doc/posix-functions/posix_fadvise.texi: Likewise.
54442         * doc/posix-functions/posix_fallocate.texi: Likewise.
54443         * doc/posix-functions/posix_madvise.texi: Likewise.
54444         * doc/posix-functions/posix_memalign.texi: Likewise.
54445         * doc/posix-functions/posix_openpt.texi: Likewise.
54446         * doc/posix-functions/readlinkat.texi: Likewise.
54447         * doc/posix-functions/remque.texi: Likewise.
54448         * doc/posix-functions/renameat.texi: Likewise.
54449         * doc/posix-functions/rintl.texi: Likewise.
54450         * doc/posix-functions/sem_unlink.texi: Likewise.
54451         * doc/posix-functions/shm_open.texi: Likewise.
54452         * doc/posix-functions/shm_unlink.texi: Likewise.
54453         * doc/posix-functions/signgam.texi: Likewise.
54454         * doc/posix-functions/sigset.texi: Likewise.
54455         * doc/posix-functions/stpcpy.texi: Likewise.
54456         * doc/posix-functions/stpncpy.texi: Likewise.
54457         * doc/posix-functions/strerror.texi: Likewise.
54458         * doc/posix-functions/strtod.texi: Likewise.
54459         * doc/posix-functions/symlinkat.texi: Likewise.
54460         * doc/posix-functions/unlinkat.texi: Likewise.
54461         * doc/posix-functions/utimensat.texi: Likewise.
54462         * doc/glibc-functions/bindresvport.texi: Likewise.
54463         * doc/glibc-functions/dn_expand.texi: Likewise.
54464         * doc/glibc-functions/exp10.texi: Likewise.
54465         * doc/glibc-functions/exp10f.texi: Likewise.
54466         * doc/glibc-functions/fgetxattr.texi: Likewise.
54467         * doc/glibc-functions/flistxattr.texi: Likewise.
54468         * doc/glibc-functions/fopencookie.texi: Likewise.
54469         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54470         * doc/glibc-functions/fremovexattr.texi: Likewise.
54471         * doc/glibc-functions/fsetxattr.texi: Likewise.
54472         * doc/glibc-functions/getifaddrs.texi: Likewise.
54473         * doc/glibc-functions/getxattr.texi: Likewise.
54474         * doc/glibc-functions/lgetxattr.texi: Likewise.
54475         * doc/glibc-functions/listxattr.texi: Likewise.
54476         * doc/glibc-functions/llistxattr.texi: Likewise.
54477         * doc/glibc-functions/lremovexattr.texi: Likewise.
54478         * doc/glibc-functions/lsetxattr.texi: Likewise.
54479         * doc/glibc-functions/pow10.texi: Likewise.
54480         * doc/glibc-functions/pow10f.texi: Likewise.
54481         * doc/glibc-functions/rcmd_af.texi: Likewise.
54482         * doc/glibc-functions/removexattr.texi: Likewise.
54483         * doc/glibc-functions/res_init.texi: Likewise.
54484         * doc/glibc-functions/res_mkquery.texi: Likewise.
54485         * doc/glibc-functions/res_query.texi: Likewise.
54486         * doc/glibc-functions/res_querydomain.texi: Likewise.
54487         * doc/glibc-functions/res_send.texi: Likewise.
54488         * doc/glibc-functions/rresvport_af.texi: Likewise.
54489         * doc/glibc-functions/setxattr.texi: Likewise.
54490         * doc/glibc-functions/strcasestr.texi: Likewise.
54491
54492 2008-12-15  Bruno Haible  <bruno@clisp.org>
54493
54494         Fix compilation error on OSF/1 4.0.
54495         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54496         <sys/time.h>, simply delegate to the system header.
54497         Reported by Daniel Richard G. <oss@teragram.com>.
54498
54499 2008-12-15  Bruno Haible  <bruno@clisp.org>
54500
54501         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54502         * doc/posix-functions/fchmodat.texi: Likewise.
54503         * doc/posix-functions/fchownat.texi: Likewise.
54504         * doc/posix-functions/fdopendir.texi: Likewise.
54505         * doc/posix-functions/fstatat.texi: Likewise.
54506         * doc/posix-functions/mkdirat.texi: Likewise.
54507         * doc/posix-functions/unlinkat.texi: Likewise.
54508
54509 2008-12-14  Bruno Haible  <bruno@clisp.org>
54510
54511         Update doc for POSIX:2008.
54512         * doc/posix-functions/faccessat.texi: New file.
54513         * doc/posix-functions/fchmodat.texi: New file.
54514         * doc/posix-functions/fchownat.texi: New file.
54515         * doc/posix-functions/fdopendir.texi: New file.
54516         * doc/posix-functions/fstatat.texi: New file.
54517         * doc/posix-functions/futimens.texi: New file.
54518         * doc/posix-functions/linkat.texi: New file.
54519         * doc/posix-functions/mkdirat.texi: New file.
54520         * doc/posix-functions/mkfifoat.texi: New file.
54521         * doc/posix-functions/mknodat.texi: New file.
54522         * doc/posix-functions/open_wmemstream.texi: New file.
54523         * doc/posix-functions/openat.texi: New file.
54524         * doc/posix-functions/psiginfo.texi: New file.
54525         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54526         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54527         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54528         * doc/posix-functions/readlinkat.texi: New file.
54529         * doc/posix-functions/renameat.texi: New file.
54530         * doc/posix-functions/strerror_l.texi: New file.
54531         * doc/posix-functions/symlinkat.texi: New file.
54532         * doc/posix-functions/unlinkat.texi: New file.
54533         * doc/posix-functions/utimensat.texi: New file.
54534         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54535
54536 2008-12-14  Bruno Haible  <bruno@clisp.org>
54537
54538         Update doc for POSIX:2008.
54539         * doc/posix-functions/alphasort.texi: Renamed from
54540         doc/glibc-functions/alphasort.texi.
54541         * doc/posix-functions/dirfd.texi: Renamed from
54542         doc/glibc-functions/dirfd.texi.
54543         * doc/posix-functions/dprintf.texi: Renamed from
54544         doc/glibc-functions/dprintf.texi.
54545         * doc/posix-functions/duplocale.texi: Renamed from
54546         doc/glibc-functions/duplocale.texi.
54547         * doc/posix-functions/fexecve.texi: Renamed from
54548         doc/glibc-functions/fexecve.texi.
54549         * doc/posix-functions/fmemopen.texi: Renamed from
54550         doc/glibc-functions/fmemopen.texi.
54551         * doc/posix-functions/freelocale.texi: Renamed from
54552         doc/glibc-functions/freelocale.texi.
54553         * doc/posix-functions/getdate_err.texi: Renamed from
54554         doc/glibc-functions/getdate_err.texi.
54555         * doc/posix-functions/isalnum_l.texi: Renamed from
54556         doc/glibc-functions/isalnum_l.texi.
54557         * doc/posix-functions/isalpha_l.texi: Renamed from
54558         doc/glibc-functions/isalpha_l.texi.
54559         * doc/posix-functions/isblank_l.texi: Renamed from
54560         doc/glibc-functions/isblank_l.texi.
54561         * doc/posix-functions/iscntrl_l.texi: Renamed from
54562         doc/glibc-functions/iscntrl_l.texi.
54563         * doc/posix-functions/isdigit_l.texi: Renamed from
54564         doc/glibc-functions/isdigit_l.texi.
54565         * doc/posix-functions/isgraph_l.texi: Renamed from
54566         doc/glibc-functions/isgraph_l.texi.
54567         * doc/posix-functions/islower_l.texi: Renamed from
54568         doc/glibc-functions/islower_l.texi.
54569         * doc/posix-functions/isprint_l.texi: Renamed from
54570         doc/glibc-functions/isprint_l.texi.
54571         * doc/posix-functions/ispunct_l.texi: Renamed from
54572         doc/glibc-functions/ispunct_l.texi.
54573         * doc/posix-functions/isspace_l.texi: Renamed from
54574         doc/glibc-functions/isspace_l.texi.
54575         * doc/posix-functions/isupper_l.texi: Renamed from
54576         doc/glibc-functions/isupper_l.texi.
54577         * doc/posix-functions/iswalnum_l.texi: Renamed from
54578         doc/glibc-functions/iswalnum_l.texi.
54579         * doc/posix-functions/iswalpha_l.texi: Renamed from
54580         doc/glibc-functions/iswalpha_l.texi.
54581         * doc/posix-functions/iswblank_l.texi: Renamed from
54582         doc/glibc-functions/iswblank_l.texi.
54583         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54584         doc/glibc-functions/iswcntrl_l.texi.
54585         * doc/posix-functions/iswctype_l.texi: Renamed from
54586         doc/glibc-functions/iswctype_l.texi.
54587         * doc/posix-functions/iswdigit_l.texi: Renamed from
54588         doc/glibc-functions/iswdigit_l.texi.
54589         * doc/posix-functions/iswgraph_l.texi: Renamed from
54590         doc/glibc-functions/iswgraph_l.texi.
54591         * doc/posix-functions/iswlower_l.texi: Renamed from
54592         doc/glibc-functions/iswlower_l.texi.
54593         * doc/posix-functions/iswprint_l.texi: Renamed from
54594         doc/glibc-functions/iswprint_l.texi.
54595         * doc/posix-functions/iswpunct_l.texi: Renamed from
54596         doc/glibc-functions/iswpunct_l.texi.
54597         * doc/posix-functions/iswspace_l.texi: Renamed from
54598         doc/glibc-functions/iswspace_l.texi.
54599         * doc/posix-functions/iswupper_l.texi: Renamed from
54600         doc/glibc-functions/iswupper_l.texi.
54601         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54602         doc/glibc-functions/iswxdigit_l.texi.
54603         * doc/posix-functions/isxdigit_l.texi: Renamed from
54604         doc/glibc-functions/isxdigit_l.texi.
54605         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54606         doc/glibc-functions/mbsnrtowcs.texi.
54607         * doc/posix-functions/mkdtemp.texi: Renamed from
54608         doc/glibc-functions/mkdtemp.texi.
54609         * doc/posix-functions/newlocale.texi: Renamed from
54610         doc/glibc-functions/newlocale.texi.
54611         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54612         doc/glibc-functions/nl_langinfo_l.texi.
54613         * doc/posix-functions/open_memstream.texi: Renamed from
54614         doc/glibc-functions/open_memstream.texi.
54615         * doc/posix-functions/opterr.texi: Renamed from
54616         doc/glibc-functions/opterr.texi.
54617         * doc/posix-functions/optind.texi: Renamed from
54618         doc/glibc-functions/optind.texi.
54619         * doc/posix-functions/optopt.texi: Renamed from
54620         doc/glibc-functions/optopt.texi.
54621         * doc/posix-functions/psignal.texi: Renamed from
54622         doc/glibc-functions/psignal.texi.
54623         * doc/posix-functions/scandir.texi: Renamed from
54624         doc/glibc-functions/scandir.texi.
54625         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54626         doc/glibc-functions/sched_get_priority_min.texi.
54627         * doc/posix-functions/signgam.texi: Renamed from
54628         doc/glibc-functions/signgam.texi.
54629         * doc/posix-functions/stpcpy.texi: Renamed from
54630         doc/glibc-functions/stpcpy.texi.
54631         * doc/posix-functions/stpncpy.texi: Renamed from
54632         doc/glibc-functions/stpncpy.texi.
54633         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54634         doc/glibc-functions/strcasecmp_l.texi.
54635         * doc/posix-functions/strcoll_l.texi: Renamed from
54636         doc/glibc-functions/strcoll_l.texi.
54637         * doc/posix-functions/strfmon_l.texi: Renamed from
54638         doc/glibc-functions/strfmon_l.texi.
54639         * doc/posix-functions/strftime_l.texi: Renamed from
54640         doc/glibc-functions/strftime_l.texi.
54641         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54642         doc/glibc-functions/strncasecmp_l.texi.
54643         * doc/posix-functions/strndup.texi: Renamed from
54644         doc/glibc-functions/strndup.texi.
54645         * doc/posix-functions/strnlen.texi: Renamed from
54646         doc/glibc-functions/strnlen.texi.
54647         * doc/posix-functions/strsignal.texi: Renamed from
54648         doc/glibc-functions/strsignal.texi.
54649         * doc/posix-functions/strxfrm_l.texi: Renamed from
54650         doc/glibc-functions/strxfrm_l.texi.
54651         * doc/posix-functions/timer_gettime.texi: Renamed from
54652         doc/glibc-functions/timer_gettime.texi.
54653         * doc/posix-functions/tolower_l.texi: Renamed from
54654         doc/glibc-functions/tolower_l.texi.
54655         * doc/posix-functions/toupper_l.texi: Renamed from
54656         doc/glibc-functions/toupper_l.texi.
54657         * doc/posix-functions/towctrans_l.texi: Renamed from
54658         doc/glibc-functions/towctrans_l.texi.
54659         * doc/posix-functions/towlower_l.texi: Renamed from
54660         doc/glibc-functions/towlower_l.texi.
54661         * doc/posix-functions/towupper_l.texi: Renamed from
54662         doc/glibc-functions/towupper_l.texi.
54663         * doc/posix-functions/uselocale.texi: Renamed from
54664         doc/glibc-functions/uselocale.texi.
54665         * doc/posix-functions/vdprintf.texi: Renamed from
54666         doc/glibc-functions/vdprintf.texi.
54667         * doc/posix-functions/wcpcpy.texi:
54668         Renamed from doc/glibc-functions/wcpcpy.texi.
54669         * doc/posix-functions/wcpncpy.texi: Renamed from
54670         doc/glibc-functions/wcpncpy.texi.
54671         * doc/posix-functions/wcscasecmp.texi: Renamed from
54672         doc/glibc-functions/wcscasecmp.texi.
54673         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54674         doc/glibc-functions/wcscasecmp_l.texi.
54675         * doc/posix-functions/wcscoll_l.texi: Renamed from
54676         doc/glibc-functions/wcscoll_l.texi.
54677         * doc/posix-functions/wcsdup.texi: Renamed from
54678         doc/glibc-functions/wcsdup.texi.
54679         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54680         doc/glibc-functions/wcsncasecmp.texi.
54681         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54682         doc/glibc-functions/wcsncasecmp_l.texi.
54683         * doc/posix-functions/wcsnlen.texi: Renamed from
54684         doc/glibc-functions/wcsnlen.texi.
54685         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54686         doc/glibc-functions/wcsnrtombs.texi.
54687         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54688         doc/glibc-functions/wcsxfrm_l.texi.
54689         * doc/posix-functions/wctrans_l.texi: Renamed from
54690         doc/glibc-functions/wctrans_l.texi.
54691         * doc/posix-functions/wctype_l.texi: Renamed from
54692         doc/glibc-functions/wctype_l.texi.
54693         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54694         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54695         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54696         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54697         these subsections.
54698         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54699         Remove sections.
54700
54701 2008-12-14  Bruno Haible  <bruno@clisp.org>
54702
54703         Update doc for POSIX:2008.
54704         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54705
54706 2008-12-14  Bruno Haible  <bruno@clisp.org>
54707
54708         Update doc for POSIX:2008.
54709         * doc/pastposix-functions/bcmp.texi: Renamed from
54710         doc/posix-functions/bcmp.texi.
54711         * doc/pastposix-functions/bcopy.texi: Renamed from
54712         doc/posix-functions/bcopy.texi.
54713         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54714         doc/posix-functions/bsd_signal.texi.
54715         * doc/pastposix-functions/bzero.texi: Renamed from
54716         doc/posix-functions/bzero.texi.
54717         * doc/pastposix-functions/ecvt.texi: Renamed from
54718         doc/posix-functions/ecvt.texi.
54719         * doc/pastposix-functions/fcvt.texi: Renamed from
54720         doc/posix-functions/fcvt.texi.
54721         * doc/pastposix-functions/ftime.texi: Renamed from
54722         doc/posix-functions/ftime.texi.
54723         * doc/pastposix-functions/gcvt.texi: Renamed from
54724         doc/posix-functions/gcvt.texi.
54725         * doc/pastposix-functions/getcontext.texi: Renamed from
54726         doc/posix-functions/getcontext.texi.
54727         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54728         doc/posix-functions/gethostbyaddr.texi.
54729         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54730         doc/posix-functions/gethostbyname.texi.
54731         * doc/pastposix-functions/getwd.texi: Renamed from
54732         doc/posix-functions/getwd.texi.
54733         * doc/pastposix-functions/h_errno.texi: Renamed from
54734         doc/posix-functions/h_errno.texi.
54735         * doc/pastposix-functions/index.texi: Renamed from
54736         doc/posix-functions/index.texi.
54737         * doc/pastposix-functions/makecontext.texi: Renamed from
54738         doc/posix-functions/makecontext.texi.
54739         * doc/pastposix-functions/mktemp.texi: Renamed from
54740         doc/posix-functions/mktemp.texi.
54741         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54742         doc/posix-functions/pthread_attr_getstackaddr.texi.
54743         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54744         doc/posix-functions/pthread_attr_setstackaddr.texi.
54745         * doc/pastposix-functions/rindex.texi: Renamed from
54746         doc/posix-functions/rindex.texi.
54747         * doc/pastposix-functions/scalb.texi: Renamed from
54748         doc/posix-functions/scalb.texi.
54749         * doc/pastposix-functions/setcontext.texi: Renamed from
54750         doc/posix-functions/setcontext.texi.
54751         * doc/pastposix-functions/swapcontext.texi: Renamed from
54752         doc/posix-functions/swapcontext.texi.
54753         * doc/pastposix-functions/ualarm.texi: Renamed from
54754         doc/posix-functions/ualarm.texi.
54755         * doc/pastposix-functions/usleep.texi: Renamed from
54756         doc/posix-functions/usleep.texi.
54757         * doc/pastposix-functions/vfork.texi: Renamed from
54758         doc/posix-functions/vfork.texi.
54759         * doc/pastposix-functions/wcswcs.texi: Renamed from
54760         doc/posix-functions/wcswcs.texi.
54761         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54762         (Function Substitutes): Update.
54763
54764 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54765
54766         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54767         m4/strerror.m4.
54768
54769 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54770             Bruno Haible  <bruno@clisp.org>
54771
54772         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54773
54774 2008-12-13  Bruno Haible  <bruno@clisp.org>
54775
54776         * modules/strtoull (Depends-on): Remove unistd.
54777
54778 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54779
54780         * modules/strtoull (Depends-on): Add stdlib.
54781
54782 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54783
54784         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54785
54786 2008-12-10  Jim Meyering  <meyering@redhat.com>
54787
54788         gl_ASSERT: don't say assertions are disabled when they're not
54789         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54790         "checking whether to enable assertions... no", when they are in
54791         fact enabled.  This is solely a bug in the output of configure.
54792         In spite of saying "no", NDEBUG was not defined in that case.
54793         Also, as noted by Eric Blake, leave assertions enabled upon
54794         --enable-assert=INVALID.
54795
54796 2008-12-10  Bruno Haible  <bruno@clisp.org>
54797
54798         Change MODULES.html to refer to POSIX:2008 where possible.
54799         * MODULES.html.sh (POSIX2008_URL): New variable.
54800         (posix_headers): Remove sys/timeb, ucontext.
54801         (posix2001_headers): New variable.
54802         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54803         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54804         index, makecontext, mktemp, pthread_attr_getstackaddr,
54805         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54806         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54807         (posix2001_functions): New variable.
54808         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54809         otherwise.
54810
54811 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54812
54813         add missing include to parse-duration.c
54814         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54815         * modules/parse-duration (Depends-on): Add xalloc.
54816
54817         fix sed script reading maint.mk
54818         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54819         (syntax-check-rules): Use it.
54820
54821 2008-12-09  Bruno Haible  <bruno@clisp.org>
54822
54823         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54824         MacOS X 10.4/PowerPC.
54825         Reported by Simon Josefsson.
54826
54827 2008-12-08  Jim Meyering  <meyering@redhat.com>
54828
54829         work around mingw's lack of some S_IF definitions
54830         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54831         Reported by Simon Josefsson.
54832
54833 2008-12-08  Bruno Haible  <bruno@clisp.org>
54834
54835         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54836         applied to variables. Needed on MacOS X 10.4/PowerPC.
54837         Reported by Simon Josefsson.
54838
54839 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54840         and Eric Blake  <ebb9@byu.net>
54841
54842         assert: honor --enable-assert
54843         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54844         order to honor --enable-assert, rather than treating it as a
54845         synonym for --disable-assert.
54846
54847 2008-12-08  Jim Meyering  <meyering@redhat.com>
54848
54849         * lib/posixtm.c: Remove now-useless declaration of mktime.
54850
54851         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54852
54853 2008-12-07  Bruno Haible  <bruno@clisp.org>
54854
54855         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54856         test_once): Mark functions as static.
54857         * tests/test-tls.c (test_tls): Likewise.
54858
54859 2008-12-07  Bruno Haible  <bruno@clisp.org>
54860
54861         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54862         iconv_register_autodetect.
54863
54864 2008-12-07  Jim Meyering  <meyering@redhat.com>
54865
54866         posixtm.c: avoid a warning
54867         * lib/posixtm.c (posixtime): Don't initialize tm0.
54868         It's no longer needed to placate gcc4's -Wuninitialized,
54869         and the attempt to placate would elicit a new warning.
54870
54871         unicodeio.c: mark unused parameters
54872         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54873         (fallback_failure_callback): Likewise.
54874
54875 2008-12-07  Bruno Haible  <bruno@clisp.org>
54876
54877         * gnulib-tool (func_create_testdir): When building the tests
54878         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
54879         Reported by Simon Josefsson.
54880
54881 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54882
54883         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
54884
54885 2008-12-06  Bruno Haible  <bruno@clisp.org>
54886
54887         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
54888         Suggested by Eric Blake.
54889
54890 2008-12-06  Bruno Haible  <bruno@clisp.org>
54891
54892         Fix a c-stack test failure on MacOS X.
54893         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
54894         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
54895         handler for SIGBUS as well.
54896         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
54897         install a signal handler for SIGBUS as well.
54898         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
54899
54900 2008-12-06  Bruno Haible  <bruno@clisp.org>
54901
54902         Advocacy documentation.
54903         * doc/gnulib-intro.texi (Benefits): New section.
54904         * doc/gnulib.texi: Update.
54905
54906 2008-12-06  Bruno Haible  <bruno@clisp.org>
54907
54908         Document the 'manywarnings' module.
54909         * doc/manywarnings.texi: New file.
54910         * doc/gnulib.texi: Include it.
54911
54912 2008-12-05  Eric Blake  <ebb9@byu.net>
54913
54914         tests: silence some gcc warnings
54915         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54916         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54917         type mismatches.
54918
54919 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54920             Bruno Haible  <bruno@clisp.org>
54921
54922         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54923
54924 2008-11-29  Jim Meyering  <meyering@redhat.com>
54925
54926         unicodeio.c: mark unused parameters
54927         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54928         (fallback_failure_callback): Likewise.
54929
54930         fts: fix a thinko
54931         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54932         (set_stat_type): Return S_IF*-valued "type" directly.
54933         Prompted by James Youngman's spotting a related bug.
54934         Confirmed by further testing through find.
54935
54936         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54937         * lib/fts.c (D_TYPE): Define.
54938         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54939         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54940         (s_ifmt_shift_bits): New function.
54941         (set_stat_type): New function.
54942         (fts_build): When not calling fts_stat, call set_stat_type
54943         to propagate dirent.d_type info to fts_read caller.
54944         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54945         fts_statp->st_mode type information may be valid.
54946
54947 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54948
54949         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54950         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54951         <sds@gnu.org>.
54952
54953 2008-11-20  Bruno Haible  <bruno@clisp.org>
54954
54955         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54956         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54957         INCLUDE_NEXT.
54958         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54959         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54960         * modules/math (Makefile.am): Substitute
54961         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54962         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54963
54964 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54965             Bruno Haible  <bruno@clisp.org>
54966
54967         * lib/stdint.in.h: Define all type macros so that their expansion is
54968         a single typedef'ed token. Fixes a compilation failure in Boost which
54969         does "using ::int8_t;".
54970
54971 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54972
54973         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54974         gl_MANYWARN_ALL_GCC.
54975         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54976         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54977         * modules/manywarnings: New file.
54978         * MODULES.html.sh: Mention manywarnings module.
54979
54980 2008-11-18  Bruno Haible  <bruno@clisp.org>
54981
54982         * doc/gnulib-tool.texi (Unit tests): New section.
54983
54984 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54985
54986         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54987         paths like 'lib/po/foo.po'.
54988
54989 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54990
54991         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54992         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54993
54994 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54995
54996         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54997         parameter works.
54998
54999 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55000
55001         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55002
55003 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55004
55005         * modules/parse-duration-tests: New file.
55006         * tests/test-parse-duration.sh: New file.
55007         * tests/test-parse-duration.c: New file.
55008
55009         New module 'parse-duration'.
55010         * lib/parse-duration.h: New file.
55011         * lib/parse-duration.c: New file.
55012         * modules/parse-duration: New file.
55013
55014 2008-11-17  Bruno Haible  <bruno@clisp.org>
55015
55016         * tests/test-select-out.sh: Comment out the first pipe test.
55017         Reported by Simon Josefsson.
55018
55019 2008-11-17  Bruno Haible  <bruno@clisp.org>
55020
55021         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55022         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55023         gl_HOSTENT.
55024
55025 2008-11-17  Bruno Haible  <bruno@clisp.org>
55026
55027         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55028         -lnetwork and -lnet. Needed for Haiku and BeOS.
55029
55030 2008-11-16  Bruno Haible  <bruno@clisp.org>
55031
55032         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55033
55034 2008-11-16  Bruno Haible  <bruno@clisp.org>
55035
55036         Avoid test failure on Haiku.
55037         * tests/test-fsync.c: Include <errno.h>.
55038         (main): Don't require that fsync (0) fails.
55039
55040 2008-11-15  Bruno Haible  <bruno@clisp.org>
55041
55042         New module 'hostent'.
55043         * modules/hostent: New file.
55044         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55045
55046 2008-11-15  Bruno Haible  <bruno@clisp.org>
55047
55048         New module 'servent'.
55049         * modules/servent: New file.
55050         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55051
55052 2008-11-15  Bruno Haible  <bruno@clisp.org>
55053
55054         Avoid generating same test program with two different rules.
55055         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55056         test-frexp to test-frexp-nolibm.
55057         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55058         test-frexpl to test-frexpl-nolibm.
55059
55060 2008-11-15  Bruno Haible  <bruno@clisp.org>
55061
55062         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55063         $(FREXPL_LIBM).
55064
55065 2008-11-15  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/netdb.in.h: Activate the definitions also when the system's
55068         <netdb.h> has 'struct addrinfo'.
55069         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55070         EAI_OVERFLOW or AI_NUMERICSERV.
55071         * doc/posix-headers/netdb.texi: Document the problem.
55072
55073 2008-11-15  Bruno Haible  <bruno@clisp.org>
55074
55075         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55076
55077         Make the 'sched' module work on platforms where <sched.h> exists but
55078         is incomplete (such as Haiku).
55079         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55080         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55081         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55082         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55083         HAVE_STRUCT_SCHED_PARAM.
55084         * modules/sched (Depends-on): Add include_next.
55085         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55086         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55087         * doc/posix-headers/sched.texi: Document the issue.
55088
55089 2008-11-13  Jim Meyering  <meyering@redhat.com>
55090
55091         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55092         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55093         test would fail due to the difference in the Report bugs to ...
55094         line.  The expected address is empty, "<>", while the actual
55095         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55096
55097 2008-11-12  Bruno Haible  <bruno@clisp.org>
55098
55099         lstat: don't compile lstat.c on systems lacking lstat
55100         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55101         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55102         Reported by Daniel P. Berrange via Jim Meyering.
55103
55104 2008-11-12  Jim Meyering  <meyering@redhat.com>
55105
55106         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55107
55108 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55109
55110         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55111         instead.
55112
55113 2008-11-12  Bruno Haible  <bruno@clisp.org>
55114
55115         * lib/unicodeio.c: Include unistr.h.
55116         (utf8_wctomb): Remove function.
55117         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55118
55119 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55120
55121         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55122         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55123         <bruno@clisp.org>.
55124         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55125
55126 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55127
55128         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55129         * doc/gnulib.texi: Add section for warnings.
55130
55131 2008-11-11  Bruno Haible  <bruno@clisp.org>
55132
55133         * lib/sockets.h: Add a comment.
55134
55135 2008-11-11  Karl Berry  <karl@gnu.org>
55136
55137         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55138
55139 2008-11-11  Eric Blake  <ebb9@byu.net>
55140
55141         fdl.texi: avoid git symlinks
55142         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55143
55144 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55145
55146         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55147
55148 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55149
55150         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55151         (gl_WARN_ADD): Substitute $2 if literal.
55152
55153 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55154
55155         * m4/warning.m4: Remove.
55156
55157 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55158
55159         * m4/warnings.m4: Almost complete rewrite. :-)
55160
55161 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55162
55163         * modules/warnings: New module.
55164         * m4/warnings.m4: New file.
55165         * MODULES.html.sh: Mention warnings module.
55166         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55167         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55168
55169 2008-11-10  Eric Blake  <ebb9@byu.net>
55170
55171         fdl.texi: make a symlink to the latest version
55172         * doc/standards.texi: Revert today's earlier change.
55173         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55174         * doc/fdl.texi: ...and replace this with a symlink to the newer
55175         fdl-1.3.texi.
55176
55177 2008-11-10  Bruno Haible  <bruno@clisp.org>
55178
55179         * tests/test-select-fd.c (main): Accept the result file name as fourth
55180         argument.
55181         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55182         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55183
55184 2008-11-10  Bruno Haible  <bruno@clisp.org>
55185
55186         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55187         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55188         as autoconf-substituted macros.
55189         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55190         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55191         gl_NETDB_H_DEFAULTS. Set these variables.
55192         * modules/netdb (Makefile.am): Substitute these variables.
55193
55194 2008-11-10  Eric Blake  <ebb9@byu.net>
55195
55196         standards.texi: include correct file for FDL 1.3
55197         * doc/standards.texi (GNU Free Documentation License): Change
55198         include file to pull in FDL 1.3, not 1.2.
55199
55200         fdl.texi: revert accidental change to license
55201         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55202
55203 2008-11-10  Bruno Haible  <bruno@clisp.org>
55204
55205         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55206         cross-compiling guesses also when the native compile gives no result.
55207
55208 2008-11-10  Bruno Haible  <bruno@clisp.org>
55209
55210         * lib/spawni.c (__spawni): Force variable into the stack.
55211
55212 2008-11-10  Bruno Haible  <bruno@clisp.org>
55213
55214         Add support for Haiku.
55215         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55216         glibc and BeOS, but also on Haiku.
55217         * lib/fpurge.c (fpurge): Likewise.
55218         * lib/freadable.c (freadable): Likewise.
55219         * lib/freadahead.c (freadahead): Likewise.
55220         * lib/freading.c (freading): Likewise.
55221         * lib/freadptr.c (freadptr): Likewise.
55222         * lib/freadseek.c (freadptrinc): Likewise.
55223         * lib/fseeko.c (rpl_fseeko): Likewise.
55224         * lib/fseterr.c (fseterr): Likewise.
55225         * lib/fwritable.c (fwritable): Likewise.
55226         * lib/fwriting.c (fwriting): Likewise.
55227         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55228
55229 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55230
55231         * lib/config.charset: Treat Haiku like BeOS.
55232
55233 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55234
55235         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55236         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55237
55238 2008-11-08  Bruno Haible  <bruno@clisp.org>
55239
55240         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55241         AC_CACHE_CHECK.
55242
55243 2008-11-08  Bruno Haible  <bruno@clisp.org>
55244
55245         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55246
55247 2008-11-08  Bruno Haible  <bruno@clisp.org>
55248
55249         * tests/test-select-fd.c: New file.
55250         * tests/test-select-in.sh: New file.
55251         * tests/test-select-out.sh: New file.
55252         * tests/test-select-stdin.c: New file.
55253         * modules/select-tests (Files): Add the new files.
55254         (Depends-on): Add gettimeofday.
55255         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55256         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55257         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55258
55259 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55260             Bruno Haible  <bruno@clisp.org>
55261
55262         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55263
55264 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55265
55266         * build-aux/pmccabe2html: Added support for C++ source files.
55267
55268 2008-11-05  Ben Pfaff  <blp@gnu.org>
55269
55270         Fix lib/close.c build on Windows.
55271         * modules/close (Files): Add lib/w32sock.h.
55272
55273 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55274
55275         Accept Bison's NEWS format.
55276         * build-aux/announce-gen (print_news_deltas): Tweak
55277         $re_prefix.
55278
55279 2008-11-04  Bruno Haible  <bruno@clisp.org>
55280
55281         * modules/random_r (Maintainer): Add glibc.
55282
55283 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55284
55285         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55286         by karl@freefriends.org (Karl Berry).
55287         * doc/alloca.texi: Likewise.
55288         * doc/c-ctype.texi: Likewise.
55289         * doc/c-strcase.texi: Likewise.
55290         * doc/c-strcaseeq.texi: Likewise.
55291         * doc/c-strcasestr.texi: Likewise.
55292         * doc/c-strstr.texi: Likewise.
55293         * doc/c-strtod.texi: Likewise.
55294         * doc/c-strtold.texi: Likewise.
55295         * doc/ctime.texi: Likewise.
55296         * doc/error.texi: Likewise.
55297         * doc/fdl.texi: Likewise.
55298         * doc/gcd.texi: Likewise.
55299         * doc/getdate.texi: Likewise.
55300         * doc/gnulib-intro.texi: Likewise.
55301         * doc/gnulib-tool.texi: Likewise.
55302         * doc/gnulib.texi: Likewise.
55303         * doc/inet_ntoa.texi: Likewise.
55304         * doc/maintain.texi: Likewise.
55305         * doc/make-stds.texi: Likewise.
55306         * doc/quote.texi: Likewise.
55307         * doc/regexprops-generic.texi: Likewise.
55308         * doc/standards.texi: Likewise.
55309         * doc/verify.texi: Likewise.
55310         * doc/visibility.texi: Likewise.
55311         * doc/gnulib.texi (GNU Free Documentation License): Include
55312         fdl-1.3.texi instead of fdl.texi.
55313
55314 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55315
55316         * doc/fdl-1.3.texi: New file, from
55317         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55318         * modules/fdl-1.3: Add.
55319         * MODULES.html.sh: Add fdl-1.3.
55320
55321 2008-11-03  Bruno Haible  <bruno@clisp.org>
55322
55323         Make determination of absolute name of header file work with AIX xlc.
55324         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55325         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55326         preprocessing.
55327         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55328         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55329
55330 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55331
55332         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55333         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55334         <ludo@gnu.org>.
55335
55336 2008-11-02  Bruno Haible  <bruno@clisp.org>
55337
55338         Mark 'strpbrk' obsolete.
55339         * modules/strpbrk (Status, Notice): New sections.
55340         * modules/strtok_r (Depends-on): Add strpbrk.
55341
55342 2008-11-02  Bruno Haible  <bruno@clisp.org>
55343
55344         Mark 'strdup' obsolete.
55345         * modules/strdup (Status, Notice): New sections.
55346         * modules/findprog (Depends-on): Add strdup.
55347         * modules/getaddrinfo (Depends-on): Likewise.
55348         * modules/localename (Depends-on): Likewise.
55349         * modules/relocatable-lib (Depends-on): Likewise.
55350         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55351         * modules/relocatable-prog (Depends-on): Likewise.
55352         * modules/trim (Depends-on): Likewise.
55353         * modules/unictype/gen-ctype (Depends-on): Likewise.
55354         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55355
55356 2008-11-02  Bruno Haible  <bruno@clisp.org>
55357
55358         Mark 'strcspn' obsolete.
55359         * modules/strcspn (Status, Notice): New sections.
55360
55361 2008-11-02  Bruno Haible  <bruno@clisp.org>
55362
55363         Mark 'rmdir' obsolete.
55364         * modules/rmdir (Status, Notice): New sections.
55365         * modules/clean-temp (Depends-on): Add rmdir.
55366         * modules/openat (Depends-on): Likewise.
55367
55368 2008-11-02  Bruno Haible  <bruno@clisp.org>
55369
55370         Mark 'raise' obsolete.
55371         * modules/raise (Status, Notice): New sections.
55372         (Include): Specify <signal.h>.
55373         * modules/stdio (Depends-on): Add raise.
55374         * modules/write (Depends-on): Likewise.
55375
55376 2008-11-02  Bruno Haible  <bruno@clisp.org>
55377
55378         Mark 'memset' obsolete.
55379         * modules/memset (Status, Notice): New sections.
55380
55381 2008-11-02  Bruno Haible  <bruno@clisp.org>
55382
55383         Mark 'memmove' obsolete.
55384         * modules/memmove (Status, Notice): New sections.
55385         * modules/argp (Depends-on): Add memmove.
55386         * modules/argz (Depends-on): Likewise.
55387         * modules/canonicalize (Depends-on): Likewise.
55388         * modules/canonicalize-lgpl (Depends-on): Likewise.
55389         * modules/fts (Depends-on): Likewise.
55390         * modules/getcwd (Depends-on): Likewise.
55391         * modules/human (Depends-on): Likewise.
55392         * modules/regex (Depends-on): Likewise.
55393         * modules/striconveh (Depends-on): Likewise.
55394         * modules/trim (Depends-on): Likewise.
55395         * modules/unistr/u8-move (Depends-on): Likewise.
55396         * modules/unistr/u16-move (Depends-on): Likewise.
55397         * modules/unistr/u32-move (Depends-on): Likewise.
55398
55399 2008-11-02  Bruno Haible  <bruno@clisp.org>
55400
55401         Mark 'memcpy' obsolete.
55402         * modules/memcpy (Status, Notice): New sections.
55403
55404 2008-11-02  Bruno Haible  <bruno@clisp.org>
55405
55406         Mark 'memcmp' obsolete.
55407         * modules/memcmp (Status, Notice): New sections.
55408         * modules/argmatch (Depends-on): Add memchr.
55409         * modules/backupfile (Depends-on): Likewise.
55410         * modules/c-strcasestr (Depends-on): Likewise.
55411         * modules/crypto/des (Depends-on): Likewise.
55412         * modules/csharpcomp (Depends-on): Likewise.
55413         * modules/fnmatch (Depends-on): Likewise.
55414         * modules/git-merge-changelog (Depends-on): Likewise.
55415         * modules/isnand (Depends-on): Likewise.
55416         * modules/isnand-nolibm (Depends-on): Likewise.
55417         * modules/isnanf (Depends-on): Likewise.
55418         * modules/isnanf-nolibm (Depends-on): Likewise.
55419         * modules/isnanl (Depends-on): Likewise.
55420         * modules/isnanl-nolibm (Depends-on): Likewise.
55421         * modules/mbchar (Depends-on): Likewise.
55422         * modules/memcoll (Depends-on): Likewise.
55423         * modules/quotearg (Depends-on): Likewise.
55424         * modules/regex (Depends-on): Likewise.
55425         * modules/relocatable-prog (Depends-on): Likewise.
55426         * modules/same (Depends-on): Likewise.
55427         * modules/signbit (Depends-on): Likewise.
55428         * modules/strcasestr-simple (Depends-on): Likewise.
55429         * modules/unictype/gen-ctype (Depends-on): Likewise.
55430         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55431         * modules/uniname/uniname (Depends-on): Likewise.
55432         * modules/unistr/u8-cmp (Depends-on): Likewise.
55433
55434 2008-11-02  Bruno Haible  <bruno@clisp.org>
55435
55436         Mark 'memchr' obsolete.
55437         * modules/memchr (Status, Notice): New sections.
55438         * modules/argp (Depends-on): Add memchr.
55439         * modules/base64 (Depends-on): Likewise.
55440         * modules/c-strcasestr (Depends-on): Likewise.
55441         * modules/chdir-long (Depends-on): Likewise.
55442         * modules/fnmatch (Depends-on): Likewise.
55443         * modules/getsubopt (Depends-on): Likewise.
55444         * modules/git-merge-changelog (Depends-on): Likewise.
55445         * modules/glob (Depends-on): Likewise.
55446         * modules/strcasestr-simple (Depends-on): Likewise.
55447         * modules/strnlen (Depends-on): Likewise.
55448
55449 2008-11-02  Bruno Haible  <bruno@clisp.org>
55450
55451         Mark 'atexit' obsolete.
55452         * modules/atexit (Status, Notice): New sections.
55453         * modules/chdir-long (Depends-on): Add atexit.
55454         * modules/wait-process (Depends-on): Likewise.
55455
55456 2008-11-02  Bruno Haible  <bruno@clisp.org>
55457
55458         * gnulib-tool: New option --with-obsolete.
55459         (func_usage): Document it.
55460         (func_modules_transitive_closure): Drop obsolete dependencies if
55461         incobsolete is not true.
55462         (func_import): Read and save the incobsolete variable to the cache.
55463
55464 2008-11-02  Bruno Haible  <bruno@clisp.org>
55465
55466         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55467         * gnulib-tool: New option --extract-status.
55468         (func_usage): Document it.
55469         (sed_extract_prog): Recognize it.
55470         (func_get_status): New function.
55471
55472 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55473
55474         * modules/sockets (License): Change from LGPL to LGPLv2+.
55475
55476 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55477
55478         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55479
55480 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55481
55482         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55483         Mention times and sys_times.
55484         * modules/sys_times, modules/sys_times-tests: New modules.
55485         * modules/times, modules/times-tests: Likewise
55486         * m4/sys_times_h.m4: New file.
55487         * lib/sys_times.in.h: Likewise
55488         * lib/times.c: Likewise.
55489         * tests/test-sys_times.c: Likewise.
55490         * tests/test-times.c: Likewise.
55491         * doc/posix-headers/sys_times.texi: Update.
55492         * doc/posix-functions/times.texi: Update.
55493
55494 2008-10-28  Jim Meyering  <meyering@redhat.com>
55495
55496         * modules/tempname (Depends-on): Add lstat.
55497
55498         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55499
55500 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55501
55502         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55503         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55504         using idiom used elsewhere in gnulib.
55505
55506 2008-10-27  Jim Meyering  <meyering@redhat.com>
55507
55508         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55509
55510 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55511
55512         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55513         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55514         programs.
55515         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55516
55517 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55518
55519         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55520
55521 2008-10-27  Bruno Haible  <bruno@clisp.org>
55522
55523         * tests/test-lstat.c: Include <stdio.h>.
55524
55525 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55526
55527         * modules/lstat-tests: New module.
55528         * tests/test-lstat.c: New file.
55529
55530 2008-10-26  Jim Meyering  <meyering@redhat.com>
55531
55532         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55533
55534 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55535             Bruno Haible  <bruno@clisp.org>
55536
55537         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55538         * modules/configmake (Include): Add a note that the include must come
55539         after all system headers.
55540         * lib/javaversion.c: Include configmake.h after all other includes.
55541
55542 2008-10-26  Bruno Haible  <bruno@clisp.org>
55543
55544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55545         HAVE_STRUCT_RANDOM_DATA to 1.
55546         (gl_STDLIB_H): Simplify.
55547
55548 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55549
55550         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55551         substitute HAVE_STRUCT_RANDOM_DATA.
55552         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55553         random_data.
55554         * modules/stdlib (Makefile.am): Substitute
55555         HAVE_STRUCT_RANDOM_DATA.
55556
55557 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55558
55559         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55560         * doc/gnulib-intro.texi (Copyright): Likewise.
55561
55562 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55563
55564         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55565         findings.
55566
55567 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55568             Bruno Haible  <bruno@clisp.org>
55569
55570         * lib/unistd.in.h: Include <winsock2.h>.
55571         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55572         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55573         Provide dummy declarations.
55574         (gethostname): Override.
55575         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55576         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55577         gl_PREREQ_SYS_H_WINSOCK2.
55578         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55579         * doc/posix-functions/gethostname.texi: More details.
55580
55581 2008-10-25  Bruno Haible  <bruno@clisp.org>
55582
55583         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55584         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55585         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55586
55587         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55588         here ...
55589         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55590         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55591         gl_UNISTD_H_DEFAULTS.
55592
55593 2008-10-25  Eric Blake  <ebb9@byu.net>
55594
55595         signbit: avoid spurious compiler failure
55596         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55597         declarations inside function.
55598
55599 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55600             Bruno Haible  <bruno@clisp.org>
55601
55602         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55603         * modules/random_r (Depends-on): Add stdint.
55604
55605 2008-10-24  Bruno Haible  <bruno@clisp.org>
55606
55607         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55608         Eggert.
55609         * modules/strerror (License): Likewise.
55610
55611 2008-10-24  Jim Meyering  <meyering@redhat.com>
55612
55613         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55614         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55615
55616 2008-10-24  Eric Blake  <ebb9@byu.net>
55617
55618         getgroups: fix compilation when getgroups is available
55619         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55620         but with <config.h> override of getgroups disabled.
55621
55622 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55623
55624         * doc/gnulib.texi (Header files): Add note about C++ problems.
55625         Explained by Bruno Haible <bruno@clisp.org>.
55626
55627 2008-10-23  Bruno Haible  <bruno@clisp.org>
55628
55629         Define a dummy SA_NODEFER macro on Interix.
55630         * lib/signal.in.h (SA_NODEFER): Define fallback.
55631         Reported by Aleksey Cheusov <cheusov@tut.by> via
55632         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55633
55634 2008-10-23  Bruno Haible  <bruno@clisp.org>
55635
55636         * modules/freadahead (License): Change to LGPLv2+.
55637         Suggested by Simon Josefsson.
55638
55639 2008-10-23  Jim Meyering  <meyering@redhat.com>
55640
55641         random_r: new module
55642         * modules/random_r: New file.
55643         * m4/random_r.m4: New file.
55644         * lib/random_r.c: New file, from glibc.
55645         * modules/random_r-tests: New file.
55646         * tests/test-random_r.c: New file.
55647         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55648          Declare.
55649         (RAND_MAX): Define.
55650         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55651         * modules/stdlib: Substitute them, too.
55652         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55653         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55654         * doc/glibc-functions/random_r.texi: Likewise.
55655         * doc/glibc-functions/setstate_r.texi: Likewise.
55656         * doc/glibc-functions/srandom_r.texi: Likewise.
55657         * config/srclist.txt: Mention it.
55658
55659 2008-10-23  David Lutterkort  <lutter@redhat.com>
55660
55661         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55662         link requirement
55663
55664 2008-10-23  Jim Meyering  <meyering@redhat.com>
55665
55666         selinux-h: mark parameters of stub functions as intentionally unused
55667         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55668         * lib/se-context.in.h: Likewise.
55669
55670 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55671
55672         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55673
55674 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55675
55676         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55677
55678 2008-10-22  Eric Blake  <ebb9@byu.net>
55679
55680         glthread/thread: avoid compiler warning
55681         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55682         Add unreachable abort to silence compiler.
55683
55684 2008-10-22  Eric Blake  <ebb9@byu.net>
55685
55686         netdb: also supply struct addrinfo for cygwin 1.5.x
55687         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55688         older cygwin.
55689         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55690         cygwin.
55691         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55692
55693 2008-10-22  Bruno Haible  <bruno@clisp.org>
55694
55695         * users.txt: Update entry about pspp.
55696
55697 2008-10-21  Bruno Haible  <bruno@clisp.org>
55698
55699         Simplification.
55700         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55701         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55702
55703         Simplification.
55704         * lib/ioctl.c (ioctl): Don't undefine.
55705         * lib/socket.c (socket): Don't undefine.
55706
55707         Remove unused module indicator macros.
55708         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55709         GNULIB_$1 as a C macro.
55710
55711         * doc/posix-functions/close.texi: Undo last change.
55712         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55713         Windows platforms.
55714
55715 2008-10-21  Bruno Haible  <bruno@clisp.org>
55716
55717         Add gethostname() declaration to <unistd.h>.
55718         * lib/unistd.in.h (gethostname): New declaration.
55719         * lib/gethostname.c: Include <unistd.h>.
55720         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55721         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55723         and HAVE_GETHOSTNAME.
55724         * modules/gethostname (Depends-on): Add unistd.
55725         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55726         (Include): Specify <unistd.h>.
55727         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55728         HAVE_GETHOSTNAME.
55729         * tests/test-gethostname.c: Include <unistd.h> first.
55730
55731 2008-10-21  Bruno Haible  <bruno@clisp.org>
55732
55733         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55734         * modules/select-tests (Depends-on): Likewise.
55735         Reported by Simon Josefsson.
55736
55737 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55738
55739         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55740         * lib/accept.c: New file, based on winsock.c.
55741         * lib/bind.c: New file, based on winsock.c.
55742         * lib/connect.c: New file, based on winsock.c.
55743         * lib/getpeername.c: New file, based on winsock.c.
55744         * lib/getsockname.c: New file, based on winsock.c.
55745         * lib/getsockopt.c: New file, based on winsock.c.
55746         * lib/ioctl.c: New file, based on winsock.c.
55747         * lib/listen.c: New file, based on winsock.c.
55748         * lib/recv.c: New file, based on winsock.c.
55749         * lib/recvfrom.c: New file, based on winsock.c.
55750         * lib/send.c: New file, based on winsock.c.
55751         * lib/sendto.c: New file, based on winsock.c.
55752         * lib/setsockopt.c: New file, based on winsock.c.
55753         * lib/shutdown.c: New file, based on winsock.c.
55754         * lib/socket.c: New file, based on winsock.c.
55755         * lib/w32sock.h: New file, based on winsock.c.
55756         * lib/winsock.c: Remove file.
55757         * modules/accept: Likewise.
55758         * modules/bind: Likewise.
55759         * modules/connect: Likewise.
55760         * modules/getpeername: Likewise.
55761         * modules/getsockname: Likewise.
55762         * modules/getsockopt: Likewise.
55763         * modules/ioctl: Likewise.
55764         * modules/listen: Likewise.
55765         * modules/recv: Likewise.
55766         * modules/recvfrom: Likewise.
55767         * modules/send: Likewise.
55768         * modules/sendto: Likewise.
55769         * modules/setsockopt: Likewise.
55770         * modules/shutdown: Likewise.
55771         * modules/socket: Use socket.c instead of winsock.c.
55772         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55773         * doc/posix-functions/accept.texi: Doc fix.
55774         * doc/posix-functions/bind.texi: Doc fix.
55775         * doc/posix-functions/close.texi: Doc fix.
55776         * doc/posix-functions/connect.texi: Doc fix.
55777         * doc/posix-functions/getpeername.texi: Doc fix.
55778         * doc/posix-functions/getsockname.texi: Doc fix.
55779         * doc/posix-functions/getsockopt.texi: Doc fix.
55780         * doc/posix-functions/ioctl.texi: Doc fix.
55781         * doc/posix-functions/listen.texi: Doc fix.
55782         * doc/posix-functions/recv.texi: Doc fix.
55783         * doc/posix-functions/recvfrom.texi: Doc fix.
55784         * doc/posix-functions/send.texi: Doc fix.
55785         * doc/posix-functions/sendto.texi: Doc fix.
55786         * doc/posix-functions/setsockopt.texi: Doc fix.
55787         * doc/posix-functions/shutdown.texi: Doc fix.
55788         * doc/posix-functions/socket.texi: Doc fix.
55789
55790 2008-10-20  Bruno Haible  <bruno@clisp.org>
55791
55792         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55793         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55794         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55795         as an alias for SIGABRT.
55796         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55797         (sigaction): Map it to SIGABRT.
55798         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55799
55800 2008-10-20  Bruno Haible  <bruno@clisp.org>
55801
55802         * lib/fts.c: Don't include lstat.h.
55803         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55804
55805         Move the lstat() declaration to <sys/stat.h>.
55806         * lib/lstat.h: Remove file.
55807         * lib/sys_stat.in.h: Add special invocation convention.
55808         (lstat): New declaration.
55809         * lib/lstat.c (orig_lstat): New function.
55810         (rpl_lstat): Use orig_lstat instead of lstat.
55811         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55812         AC_C_INLINE. Set REPLACE_LSTAT.
55813         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55814         and REPLACE_LSTAT.
55815         * modules/lstat (Files): Remove lib/lstat.h.
55816         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55817         (Include): Specify <sys/stat.h> instead of lstat.h.
55818         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55819         REPLACE_LSTAT.
55820         * NEWS: Mention the change.
55821
55822 2008-10-20  Bruno Haible  <bruno@clisp.org>
55823
55824         * modules/posix_spawn-tests: New file.
55825         * tests/test-posix_spawn3.c: New file.
55826
55827 2008-10-20  Bruno Haible  <bruno@clisp.org>
55828
55829         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55830         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55831         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55832         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55833         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55834
55835 2008-10-20  Bruno Haible  <bruno@clisp.org>
55836
55837         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55838         of posix_spawn on AIX 5.3.
55839
55840 2008-10-20  Bruno Haible  <bruno@clisp.org>
55841
55842         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55843
55844 2008-10-20  Bruno Haible  <bruno@clisp.org>
55845
55846         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55847         of AC_LANG_PROGRAM.
55848
55849 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55850
55851         * lib/netdb.in.h: Don't define GNU specific constants until they
55852         are supported or needed.  Reported by Bruno Haible
55853         <bruno@clisp.org>.
55854
55855 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55856
55857         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55858
55859 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55860
55861         * lib/getaddrinfo.h: Remove file.
55862         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
55863         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
55864         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
55865         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
55866         * modules/netdb: Substitute GNULIB_GETADDRINFO.
55867         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
55868         * tests/test-getaddrinfo.c: Likewise.
55869         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
55870         * NEWS: Mention change.
55871
55872 2008-10-19  Bruno Haible  <bruno@clisp.org>
55873
55874         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
55875
55876 2008-10-19  Bruno Haible  <bruno@clisp.org>
55877
55878         * lib/wait-process.c: Include simply <sys/wait.h>.
55879         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
55880         WIFSTOPPED): Remove fallback definitions.
55881         * modules/wait-process (Depends-on): Add sys_wait.
55882
55883         New module 'sys_wait'.
55884         * modules/sys_wait: New file.
55885         * lib/sys_wait.in.h: New file, partially copied from
55886         lib/wait-process.c.
55887         * m4/sys_wait_h.m4: New file.
55888         * doc/posix-headers/sys_wait.texi: Mention the new module.
55889
55890 2008-10-19  Bruno Haible  <bruno@clisp.org>
55891
55892         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
55893
55894 2008-10-19  Bruno Haible  <bruno@clisp.org>
55895
55896         Assume that waitpid() fills an 'int' status, not a 'union wait'.
55897         * lib/wait-process.c (WAIT_T): Remove type.
55898         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
55899         (wait_subprocess): Update.
55900
55901 2008-10-19  Bruno Haible  <bruno@clisp.org>
55902
55903         New module 'atoll'.
55904         * modules/atoll: New file.
55905         * lib/stdlib.in.h (atoll): New declaration.
55906         * lib/atoll.c: New file, from glibc with modifications.
55907         * m4/atoll.m4: New file.
55908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
55909         HAVE_ATOLL.
55910         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55911         * doc/posix-functions/atoll.texi: Mention the new module.
55912
55913 2008-10-19  Bruno Haible  <bruno@clisp.org>
55914
55915         Add strtoull() declaration to <stdlib.h>.
55916         * lib/stdlib.in.h (strtoull): New declaration.
55917         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55918         Set HAVE_STRTOULL.
55919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55920         HAVE_STRTOULL.
55921         * modules/strtoull (Depends-on): Add stdlib.
55922         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55923         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55924         HAVE_STRTOULL.
55925
55926 2008-10-19  Bruno Haible  <bruno@clisp.org>
55927
55928         Add strtoll() declaration to <stdlib.h>.
55929         * lib/stdlib.in.h (strtoll): New declaration.
55930         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55931         Set HAVE_STRTOLL.
55932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55933         HAVE_STRTOLL.
55934         * modules/strtoll (Depends-on): Add stdlib.
55935         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55936         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55937
55938 2008-10-19  Bruno Haible  <bruno@clisp.org>
55939
55940         * modules/bcopy (Depends-on): Add strings.
55941         (Include): Specify <strings.h>.
55942
55943 2008-10-19  Bruno Haible  <bruno@clisp.org>
55944
55945         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55946
55947 2008-10-19  Bruno Haible  <bruno@clisp.org>
55948
55949         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55950         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55951         mingw.
55952
55953 2008-10-19  Bruno Haible  <bruno@clisp.org>
55954
55955         * lib/atanl.c: Don't include isnanl.h.
55956         * lib/cosl.c: Likewise.
55957         * lib/ldexpl.c: Likewise.
55958         * lib/logl.c: Likewise.
55959         * lib/sinl.c: Likewise.
55960         * lib/sqrtl.c: Likewise.
55961         * lib/tanl.c: Likewise.
55962
55963         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55964         * lib/isnanf.h: Remove file.
55965         * lib/isnand.h: Remove file.
55966         * lib/isnanl.h: Remove file.
55967         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55968         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55969         macros.
55970         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55971         HAVE_ISNANF, don't define it as a C macro.
55972         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55973         HAVE_ISNAND, don't define it as a C macro.
55974         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55975         HAVE_ISNANL, don't define it as a C macro.
55976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55977         HAVE_ISNAN[FDL].
55978         * modules/isnanf (Files): Remove lib/isnanf.h.
55979         (Depends-on): Add math.
55980         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55981         (Include): Specify <math.h> instead of isnanf.h.
55982         * modules/isnand (Files): Remove lib/isnand.h.
55983         (Depends-on): Add math.
55984         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55985         (Include): Specify <math.h> instead of isnand.h.
55986         * modules/isnanl (Files): Remove lib/isnanl.h.
55987         (Depends-on): Add math.
55988         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55989         (Include): Specify <math.h> instead of isnanl.h.
55990         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55991         HAVE_ISNAN[FDL].
55992         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55993         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55994         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55995         * NEWS: Mention the change.
55996
55997 2008-10-18  Bruno Haible  <bruno@clisp.org>
55998
55999         Add getusershell(), setusershell(), endusershell() declarations to
56000         <unistd.h>.
56001         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56002         declarations.
56003         * lib/getusershell.c: Include unistd.h.
56004         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56005         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56006         HAVE_GETUSERSHELL.
56007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56008         and HAVE_GETUSERSHELL.
56009         * modules/getusershell (Depends-on): Add unistd, extensions.
56010         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56011         (Include): Specify <unistd.h>.
56012         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56013         HAVE_GETUSERSHELL.
56014
56015 2008-10-18  Bruno Haible  <bruno@clisp.org>
56016
56017         Add a getloadavg() declaration to <stdlib.h>.
56018         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56019         getloadavg declaration.
56020         (getloadavg): New declaration.
56021         * lib/getloadavg.c: Include <stdlib.h> first.
56022         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56023         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56024         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56026         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56027         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56028         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56029         (Include): Specify <stdlib.h>.
56030         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56031         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56032
56033 2008-10-18  Bruno Haible  <bruno@clisp.org>
56034
56035         * lib/dirchownmod.c: Don't include lchmod.h.
56036
56037         Move the lchmod() declaration to <sys/stat.h>.
56038         * lib/lchmod.h: Remove file.
56039         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56040         (lchmod): New declaration, moved here from lib/lchown.h.
56041         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56042         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56043         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56044         and HAVE_LCHMOD.
56045         * modules/lchmod (Files): Remove lib/lchmod.h.
56046         (Depends-on): Add sys_stat, extensions.
56047         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56048         (Include): Specify <sys/stat.h> instead of lchmod.h.
56049         * modules/sys_stat (Depends-on): Add link-warning.
56050         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56051         definition of GL_LINK_WARNING.
56052         * NEWS: Mention the change.
56053
56054 2008-10-18  Bruno Haible  <bruno@clisp.org>
56055
56056         * lib/fchdir.c: Don't include dirfd.h.
56057         * lib/fts.c: Likewise.
56058         * lib/getcwd.c: Likewise.
56059         * lib/glob.c: Likewise.
56060
56061         Move the dirfd() declaration to <dirent.h>.
56062         * lib/dirfd.h: Remove file.
56063         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56064         (dirfd): New declaration.
56065         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56066         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56067         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56068         HAVE_DECL_DIRFD.
56069         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56070         HAVE_DECL_DIRFD.
56071         * modules/dirfd (Files): Remove lib/dirfd.h.
56072         (Depends-on): Add dirent, extensions.
56073         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56074         (Include): Specify <dirent.h> instead of dirfd.h.
56075         * modules/dirent (Depends-on): Add link-warning.
56076         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56077         definition of GL_LINK_WARNING.
56078         * NEWS: Mention the change.
56079
56080 2008-10-18  Bruno Haible  <bruno@clisp.org>
56081
56082         Move the euidaccess() declaration to <unistd.h>.
56083         * lib/euidaccess.h: Remove file.
56084         * lib/unistd.in.h (euidaccess): New declaration.
56085         * lib/euidaccess.c: Don't include euidaccess.h.
56086         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56087         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56089         and HAVE_EUIDACCESS.
56090         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56091         (Depends-on): Add unistd.
56092         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56093         (Include): Specify <unistd.h> instead of euidaccess.h.
56094         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56095         HAVE_EUIDACCESS.
56096         * NEWS: Mention the change.
56097
56098 2008-10-18  Bruno Haible  <bruno@clisp.org>
56099
56100         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56101
56102         Move the getdomainname() declaration to <unistd.h>.
56103         * lib/getdomainname.h: Remove file.
56104         * lib/unistd.in.h (getdomainname): New declaration.
56105         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56106         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56107         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56108         HAVE_GETDOMAINNAME.
56109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56110         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56111         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56112         (Depends-on): Add unistd, extensions.
56113         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56114         (Includes): Specify <unistd.h> instead of getdomainname.h.
56115         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56116         HAVE_GETDOMAINNAME.
56117         * NEWS: Mention the change.
56118
56119 2008-10-18  Bruno Haible  <bruno@clisp.org>
56120
56121         * modules/dirent: New file.
56122         * m4/dirent_h.m4: New file.
56123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56124         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56125         * modules/fchdir (Files): Remove lib/dirent.in.h.
56126         (Depends-on): Add dirent.
56127         (Makefile.am): Move rules to modules/dirent.
56128         * doc/posix-headers/dirent.texi: Mention the new module.
56129
56130 2008-10-18  Bruno Haible  <bruno@clisp.org>
56131
56132         Avoid -Wunused-parameter warnings in public gnulib header files.
56133         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56134         macro.
56135         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56136
56137 2008-10-18  Bruno Haible  <bruno@clisp.org>
56138
56139         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56140         * doc/glibc-functions/error.texi: Mention the module 'error'.
56141         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56142         * doc/glibc-functions/getdomainname.texi: Mention the module
56143         'getdomainname'.
56144         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56145         * doc/glibc-functions/getpagesize.texi: Mention the module
56146         'getpagesize'.
56147         * doc/glibc-functions/getusershell.texi: Mention the module
56148         'getusershell'.
56149         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56150         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56151         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56152         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56153         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56154         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56155         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56156         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56157         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56158         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56159         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56160         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56161         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56162         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56163
56164 2008-10-17  Bruno Haible  <bruno@clisp.org>
56165
56166         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56167         HP-UX and IRIX, use -0.0L.
56168         * tests/test-ceill.c (minus_zero): Likewise.
56169         * tests/test-floorl.c (minus_zero): Likewise.
56170         * tests/test-frexpl.c (minus_zero): Likewise.
56171         * tests/test-isnan.c (minus_zerol): Likewise.
56172         * tests/test-isnanl.h (minus_zero): Likewise.
56173         * tests/test-ldexpl.c (minus_zero): Likewise.
56174         * tests/test-roundl.c (minus_zero): Likewise.
56175         * tests/test-signbit.c (minus_zerol): Likewise.
56176         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56177         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56178         * tests/test-truncl.c (minus_zero): Likewise.
56179         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56180         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56181         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56182         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56183
56184 2008-10-17  Bruno Haible  <bruno@clisp.org>
56185
56186         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56187         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56188         that it gets activated only for gcc >= 3.0.
56189         * lib/dirent.in.h: Likewise.
56190         * lib/errno.in.h: Likewise.
56191         * lib/fcntl.in.h: Likewise.
56192         * lib/float.in.h: Likewise.
56193         * lib/iconv.in.h: Likewise.
56194         * lib/inttypes.in.h: Likewise.
56195         * lib/locale.in.h: Likewise.
56196         * lib/math.in.h: Likewise.
56197         * lib/netdb.in.h: Likewise.
56198         * lib/netinet_in.in.h: Likewise.
56199         * lib/search.in.h: Likewise.
56200         * lib/signal.in.h: Likewise.
56201         * lib/spawn.in.h: Likewise.
56202         * lib/stdarg.in.h: Likewise.
56203         * lib/stdint.in.h: Likewise.
56204         * lib/stdio.in.h: Likewise.
56205         * lib/stdlib.in.h: Likewise.
56206         * lib/string.in.h: Likewise.
56207         * lib/strings.in.h: Likewise.
56208         * lib/sys_file.in.h: Likewise.
56209         * lib/sys_ioctl.in.h: Likewise.
56210         * lib/sys_select.in.h: Likewise.
56211         * lib/sys_socket.in.h: Likewise.
56212         * lib/sys_stat.in.h: Likewise.
56213         * lib/sys_time.in.h: Likewise.
56214         * lib/sysexits.in.h: Likewise.
56215         * lib/time.in.h: Likewise.
56216         * lib/unistd.in.h: Likewise.
56217         * lib/wchar.in.h: Likewise.
56218         * lib/wctype.in.h: Likewise.
56219         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56220
56221 2008-10-17  Jim Meyering  <meyering@redhat.com>
56222
56223         ignore-value: don't depend on inline module
56224         * modules/ignore-value (Depends-on): Remove 'inline'.
56225         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56226         Suggestion from Bruno Haible.
56227
56228 2008-10-17  Bruno Haible  <bruno@clisp.org>
56229
56230         New implementation of condition variables for Win32.
56231         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56232         (gl_linked_waitqueue_t): New type.
56233         (gl_cond_t): Use it.
56234         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56235         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56236         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56237         (glthread_cond_init_func, glthread_cond_wait_func,
56238         glthread_cond_timedwait_func, glthread_cond_signal_func,
56239         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56240         Reimplemented on the basis of gl_linked_waitqueue_t.
56241         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56242         gl_waitqueue_t.
56243         (gl_rwlock_t): Update.
56244         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56245
56246 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56247
56248         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56249         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56250
56251 2008-10-17  Jim Meyering  <meyering@redhat.com>
56252
56253         ignore-value: new module
56254         * modules/ignore-value: New file.
56255         * lib/ignore-value.h: New file.
56256         * MODULES.html.sh (Compiler warning management): New section,
56257         just for this module.  More to come.
56258
56259 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56260
56261         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56262         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56263         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56264
56265 2008-10-16  Jim Meyering  <meyering@redhat.com>
56266
56267         openat-die.c: avoid 'no previous prototype' warning
56268         * lib/openat-die.c: Include "openat.h".
56269         Reported by Reuben Thomas <rrt@sc3d.org>.
56270
56271 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56272
56273         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56274         * lib/netdb.in.h: Fix typo.
56275         Reported by Bruno Haible  <bruno@clisp.org>
56276
56277         * lib/netdb.in.h: Include sys/socket.h for platforms without
56278         netdb.h, to get structures like hostent on MinGW.
56279         * modules/netdb (Depends-on): Add sys_socket.
56280
56281 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56282
56283         * modules/netdb, modules/netdb-tests: New file.
56284         * m4/netdb_h.m4: New file.
56285         * lib/netdb.in.h: Add, currently just an empty file pending
56286         definitions.
56287         * tests/test-netdb.c: New file.
56288         * doc/posix-headers/netdb.texi: Mention that we replace it if
56289         needed.
56290         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56291         netdb.
56292
56293 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56294
56295         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56296         with code.
56297
56298 2008-10-13  Bruno Haible  <bruno@clisp.org>
56299
56300         * lib/glthread/cond.c (glthread_cond_wait_func,
56301         glthread_cond_timedwait_func): Add a comment.
56302
56303 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56304
56305         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56306         * tests/test-select.c: Likewise,
56307
56308 2008-10-13  Bruno Haible  <bruno@clisp.org>
56309
56310         * lib/glthread/cond.c (glthread_cond_wait_func,
56311         glthread_cond_timedwait_func): Fix variable name.
56312         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56313
56314 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56315
56316         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56317         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56318         struct sockaddr.sa_len.
56319         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56320
56321 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56322
56323         * build-aux/pmccabe2html: Add css and css_url parameters.
56324
56325 2008-10-12  Bruno Haible  <bruno@clisp.org>
56326
56327         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56328         calling aclx_get.
56329         Reported by Rainer Tammer <tammer@tammer.net>.
56330
56331 2008-10-12  Bruno Haible  <bruno@clisp.org>
56332
56333         Use msvcrt aware primitives for creation/termination of Win32 threads.
56334         * lib/glthread/thread.c: Include <process.h>.
56335         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56336         (wrapper_func): Update signature.
56337         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56338
56339 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56340             Bruno Haible  <bruno@clisp.org>
56341
56342         Provide a Win32 implementation of the 'cond' module.
56343         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56344         * lib/glthread/cond.c (glthread_cond_init_func,
56345         glthread_cond_wait_func, glthread_cond_timedwait_func,
56346         glthread_cond_signal_func, glthread_cond_broadcast_func,
56347         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56348         * modules/cond (Dependencies): Add gettimeofday.
56349
56350 2008-10-11  Bruno Haible  <bruno@clisp.org>
56351
56352         Make sleep work on older versions of mingw.
56353         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56354         only whether it exists.
56355         * doc/posix-functions/sleep.texi: Mention the problem with older
56356         versions of mingw.
56357
56358 2008-10-11  Bruno Haible  <bruno@clisp.org>
56359
56360         New module 'shutdown'.
56361         * modules/shutdown: New file.
56362         * lib/sys_socket.in.h (shutdown): New declaration.
56363         * lib/winsock.c (shutdown): New function.
56364         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56365         GNULIB_SHUTDOWN.
56366         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56367         * doc/posix-functions/shutdown.texi: Document the new module.
56368
56369 2008-10-11  Jim Meyering  <meyering@redhat.com>
56370
56371         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56372
56373 2008-10-11  Bruno Haible  <bruno@clisp.org>
56374
56375         New module 'fclose'.
56376         * modules/fclose: New file.
56377         * lib/stdio.in.h (fclose): New declaration.
56378         * lib/fclose.c: New file.
56379         * m4/fclose.m4: New file.
56380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56381         REPLACE_FCLOSE.
56382         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56383         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56384         REPLACE_FCLOSE.
56385         * modules/close (Depends-on): fclose.
56386         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56387
56388 2008-10-11  Bruno Haible  <bruno@clisp.org>
56389
56390         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56391         set errno and don't call _close.
56392
56393 2008-10-10  Bruno Haible  <bruno@clisp.org>
56394
56395         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56396         ACL, not afterwards. Fixes test failure on Cygwin.
56397
56398 2008-10-09  Ben Pfaff  <blp@gnu.org>
56399
56400         * build-aux/announce-gen: Fix gnulib version related part of usage
56401         message.  Die with a useful error message if no tarballs are
56402         found.
56403
56404 2008-10-10  Jim Meyering  <meyering@redhat.com>
56405
56406         bootstrap: use git's --depth=N option only if it's supported
56407         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56408         recognize the --depth option.  Reported by Pádraig Brady.
56409
56410 2008-10-09  Bruno Haible  <bruno@clisp.org>
56411
56412         New module 'ioctl'.
56413         * modules/ioctl: New file.
56414         * lib/sys_socket.in.h (ioctl): Remove declaration.
56415         * lib/winsock.c: Include <sys/ioctl.h>.
56416         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56417         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56418         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56419         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56420         * doc/posix-functions/ioctl.texi: Mention the new module.
56421
56422 2008-10-09  Bruno Haible  <bruno@clisp.org>
56423
56424         New module 'sys_ioctl'.
56425         * lib/sys_ioctl.in.h: New file.
56426         * m4/sys_ioctl_h.m4: New file.
56427         * modules/sys_ioctl: New file.
56428         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56429
56430 2008-10-09  Bruno Haible  <bruno@clisp.org>
56431
56432         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56433         * lib/winsock.c: Include <stdarg.h>.
56434         (rpl_ioctl): Change to second argument 'int' and then varargs.
56435
56436 2008-10-09  Bruno Haible  <bruno@clisp.org>
56437
56438         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56439         when the sys_socket module is present and the system has <winsock2.h>.
56440
56441 2008-10-09  Bruno Haible  <bruno@clisp.org>
56442
56443         * doc/posix-functions/close.texi: Mention module 'close' instead of
56444         module 'sys_socket'.
56445
56446 2008-10-09  Bruno Haible  <bruno@clisp.org>
56447
56448         * doc/glibc-headers/sys_ioctl.texi: New file.
56449         * doc/gnulib.texi: Include it.
56450
56451 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56452             Bruno Haible  <bruno@clisp.org>
56453
56454         Combine the two replacements of 'close'.
56455         * lib/sys_socket.in.h (close): Define to a reminder to include
56456         <unistd.h>.
56457         (_gl_close_fd_maybe_socket): New declaration.
56458         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56459         * lib/winsock.c (close): Remove undefinition.
56460         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56461         needed for the gnulib module 'close'.
56462         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56463         define to an error symbol or to a warning, if suitable.
56464         * lib/close.c: Include <sys/socket.h>.
56465         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56466         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56467         UNISTD_H_HAVE_WINSOCK2_H.
56468         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56470         UNISTD_H_HAVE_WINSOCK2_H.
56471         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56472         (configure.ac): Set a module indicator.
56473         (Makefile.am): Substitute GNULIB_CLOSE.
56474         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56475         * modules/poll-tests (Depends-on): Add close.
56476         * modules/select-tests (Depends-on): Likewise.
56477
56478 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56479             Bruno Haible  <bruno@clisp.org>
56480
56481         New module 'close'.
56482         * modules/close: New file.
56483         * lib/unistd.in.h (close): Move declaration out of the
56484         FCHDIR_REPLACEMENT scope.
56485         (_gl_unregister_fd): New declaration.
56486         * lib/close.c: New file.
56487         * lib/fchdir.c (rpl_close): Remove function.
56488         * m4/close.m4: New file.
56489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56490         close.
56491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56492         REPLACE_CLOSE.
56493         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56494         REPLACE_CLOSE.
56495         * modules/fchdir (Depends-on): Add close.
56496
56497 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56498             Bruno Haible  <bruno@clisp.org>
56499
56500         * lib/fcntl.in.h (open): Simplify conditionals.
56501         (_gl_register_fd): New declaration.
56502         * lib/fchdir.c (rpl_open): Remove function.
56503         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56504         also.
56505         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56506         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56507         open.
56508
56509 2008-10-09  Jim Meyering  <meyering@redhat.com>
56510
56511         GNUmakefile: use the more name-space-friendly "_version"
56512         * top/GNUmakefile (_dummy): Update.
56513         (_version): Rename from "version".
56514
56515 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56516             Bruno Haible  <bruno@clisp.org>
56517
56518         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56519         rpl_close.
56520         (_gl_register_fd): New function, extracted from rpl_open.
56521         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56522         (rpl_open, rpl_opendir): Use _gl_register_fd.
56523
56524 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56525
56526         Fix organization of 'open' replacement.
56527         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56528         (gl_FUNC_OPEN): Use it.
56529         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56530
56531 2008-10-08  Bruno Haible  <bruno@clisp.org>
56532
56533         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56534
56535 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56536
56537         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56538         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56539         listen).
56540
56541 2008-10-08  Eric Blake  <ebb9@byu.net>
56542
56543         GNUmakefile: add 'make version' target
56544         * top/GNUmakefile (_curr-ver): Split version update rules...
56545         (version): ...into a target.
56546
56547 2008-10-07  Bruno Haible  <bruno@clisp.org>
56548
56549         Use a more portable replacement expression for -0.0L.
56550         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56551         instead of -0.0L. Fix m4 quotation.
56552
56553         * tests/test-signbit.c: Include <float.h>.
56554         (minus_zero): New variable.
56555         (test_signbitl): Use minus_zero instead of -zero.
56556         * modules/signbit-tests (Depends-on): Add float.
56557
56558         * tests/test-ceill.c: Include <float.h>.
56559         (zero): Remove variable.
56560         (minus_zero): New variable.
56561         (main): Use minus_zero instead of -zero.
56562         * modules/ceill-tests (Depends-on): Add float.
56563
56564         * tests/test-floorl.c: Include <float.h>.
56565         (zero): Remove variable.
56566         (minus_zero): New variable.
56567         (main): Use minus_zero instead of -zero.
56568         * modules/floorl-tests (Depends-on): Add float.
56569
56570         * tests/test-roundl.c: Include <float.h>.
56571         (zero): Remove variable.
56572         (minus_zero): New variable.
56573         (main): Use minus_zero instead of -zero.
56574         * modules/roundl-tests (Depends-on): Add float.
56575
56576         * tests/test-truncl.c: Include <float.h>.
56577         (zero): Remove variable.
56578         (minus_zero): New variable.
56579         (main): Use minus_zero instead of -zero.
56580         * modules/truncl-tests (Depends-on): Add float.
56581
56582         * tests/test-frexpl.c (zero): Remove variable.
56583         (minus_zero): New variable.
56584         (main): Use minus_zero instead of -zero.
56585         * modules/frexpl-tests (Depends-on): Add float.
56586
56587         * tests/test-isnan.c (zerol): Remove variable.
56588         (minus_zerol): New variable.
56589         (test_long_double): Use minus_zerol instead of -zerol.
56590         * modules/isnan-tests (Depends-on): Add float.
56591
56592         * tests/test-isnanl.h (zero): Remove variable.
56593         (minus_zero): New variable.
56594         (main): Use minus_zero instead of -zero.
56595         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56596         * modules/isnanl-tests (Depends-on): Add float.
56597
56598         * tests/test-ldexpl.c (zero): Remove variable.
56599         (minus_zero): New variable.
56600         (main): Use minus_zero instead of -zero.
56601         * modules/ldexpl-tests (Depends-on): Add float.
56602
56603         * tests/test-snprintf-posix.h (zerol): Remove variable.
56604         (minus_zerol): New variable.
56605         (test_function): Use minus_zerol instead of -zerol.
56606         * modules/snprintf-posix-tests (Depends-on): Add float.
56607         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56608
56609         * tests/test-sprintf-posix.h (zerol): Remove variable.
56610         (minus_zerol): New variable.
56611         (test_function): Use minus_zerol instead of -zerol.
56612         * modules/sprintf-posix-tests (Depends-on): Add float.
56613         * modules/vsprintf-posix-tests (Depends-on): Add float.
56614
56615         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56616         (minus_zerol): New variable.
56617         (test_function): Use minus_zerol instead of -zerol.
56618         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56619
56620         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56621         (minus_zerol): New variable.
56622         (test_function): Use minus_zerol instead of -zerol.
56623         * modules/vasprintf-posix-tests (Depends-on): Add float.
56624
56625 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56626
56627         * MODULES.html.sh (Support for building documentation): Mention
56628         pmccabe2html.  Sort entries.
56629
56630         Add pmccabe2html module, from gnupdf.
56631         * build-aux/pmccabe.css: New file.
56632         * build-aux/pmccabe2html: New file.
56633         * m4/pmccabe2html.m4: New file.
56634         * modules/pmccabe2html: New file.
56635
56636 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56637
56638         flock: new module
56639         * MODULES.html.sh: Add to list of modules.
56640         * lib/flock.c: flock implementation for Windows and Unix systems
56641         which have fcntl.
56642         * doc/glibc-functions/flock.texi: Update documentation.
56643         * lib/sys_file.in.h: <sys/file.h> header file.
56644         * m4/flock.m4: M4 macros.
56645         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56646         * modules/flock: flock module.
56647         * modules/flock-tests: flock tests module.
56648         * modules/sys_file: sys/file.h module.
56649         * tests/test-flock.c: test suite for flock.
56650
56651 2008-10-06  Jim Meyering  <meyering@redhat.com>
56652
56653         bootstrap: check for LT_INIT more portably still ;-)
56654         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56655         Spotted by Bruno Haible.
56656
56657 2008-10-06  Eric Blake  <ebb9@byu.net>
56658
56659         test-signbit: avoid tripping Irix cc bug on -0.0L
56660         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56661         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56662         entire testsuite consistent and avoids an Irix 6.2 bug.
56663
56664 2008-10-05  Bruno Haible  <bruno@clisp.org>
56665             Jim Meyering  <jim@meyering.net>
56666
56667         Add an option for ignoring EPIPE during close_stdout.
56668         * lib/closeout.h: Include <stdbool.h>.
56669         (close_stdout_set_ignore_EPIPE): New declaration.
56670         * lib/closeout.c: Include <stdbool.h>.
56671         (ignore_EPIPE): New variable.
56672         (close_stdout_set_ignore_EPIPE): New function.
56673         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56674         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56675         failure.
56676         * modules/closeout (Depends-on): Add stdbool.
56677
56678 2008-10-05  Bruno Haible  <bruno@clisp.org>
56679
56680         * modules/accept: New file.
56681         * modules/bind: New file.
56682         * modules/connect: New file.
56683         * modules/getpeername: New file.
56684         * modules/getsockname: New file.
56685         * modules/getsockopt: New file.
56686         * modules/listen: New file.
56687         * modules/recv: New file.
56688         * modules/recvfrom: New file.
56689         * modules/send: New file.
56690         * modules/sendto: New file.
56691         * modules/setsockopt: New file.
56692         * modules/socket: New file.
56693         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56694         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56695         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56696         the particular module is requested. Add a link warning when the
56697         particular module is not requested.
56698         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56699         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56700         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56701         the particular module is requested.
56702         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56703         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56704         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56705         * modules/sys_socket (Depends-on): Add link-warning.
56706         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56707         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56708         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56709         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56710         GL_LINK_WARNING.
56711         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56712         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56713         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56714         * doc/posix-functions/getpeername.texi: Mention the new module
56715         'getpeername'.
56716         * doc/posix-functions/getsockname.texi: Mention the new module
56717         'getsockname'.
56718         * doc/posix-functions/getsockopt.texi: Mention the new module
56719         'getsockopt'.
56720         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56721         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56722         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56723         * doc/posix-functions/send.texi: Mention the new module 'send'.
56724         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56725         * doc/posix-functions/setsockopt.texi: Mention the new module
56726         'setsockopt'.
56727         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56728         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56729         listen, connect, accept.
56730         * modules/select-tests (Depends-on): Likewise.
56731
56732 2008-10-05  Bruno Haible  <bruno@clisp.org>
56733
56734         * lib/winsock.c (strerror): Remove unused #undef.
56735         (rpl_close): Remove unused local variable.
56736
56737         * modules/sys_socket (Depends-on); Add errno.
56738
56739 2008-10-05  Bruno Haible  <bruno@clisp.org>
56740
56741         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56742         (select): Add a link warning when the 'select' module is not used.
56743         * modules/sys_select (Depends-on): Add link-warning.
56744         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56745         Suggested by Paolo Bonzini.
56746
56747 2008-10-05  Jim Meyering  <meyering@redhat.com>
56748
56749         bootstrap: check for LT_INIT more portably
56750         * build-aux/bootstrap: Avoid using grep -E, since it's not
56751         portable enough.  Suggestion from Bruno Haible.
56752
56753 2008-10-05  Bruno Haible  <bruno@clisp.org>
56754
56755         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56756         as being fixed by gnulib.
56757
56758 2008-10-05  Bruno Haible  <bruno@clisp.org>
56759
56760         * modules/select-tests: New file, mostly copied from
56761         modules/sys_select-tests.
56762         * tests/test-select.c: New file, mostly copied from
56763         tests/test-sys_select.c.
56764         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56765         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56766         (Makefile.am): Remove test_sys_select_LDADD.
56767
56768         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56769         to an undefined symbol, for an error message.
56770         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56771         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56772         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56773         winsock-select.c here.
56774         * modules/sys_select (Files): Remove lib/winsock-select.c.
56775         (Depends-on): Remove alloca.
56776         (Makefile.am): Substitute GNULIB_SELECT.
56777         * modules/select: New file.
56778         * doc/posix-functions/select.texi: Update.
56779
56780 2008-10-05  Bruno Haible  <bruno@clisp.org>
56781
56782         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56783         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56784         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56785         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56786         getdtablesize.
56787         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56788         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56789
56790 2008-10-05  Bruno Haible  <bruno@clisp.org>
56791
56792         * modules/getdtablesize-tests: New file.
56793         * tests/test-getdtablesize.c: New file.
56794
56795         New module 'getdtablesize'.
56796         * lib/unistd.in.h (getdtablesize): New declaration.
56797         * lib/getdtablesize.c: New file.
56798         * m4/getdtablesize.m4: New file.
56799         * modules/getdtablesize: New file.
56800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56801         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56802         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56803         HAVE_GETDTABLESIZE.
56804         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56805
56806 2008-10-05  Bruno Haible  <bruno@clisp.org>
56807
56808         * modules/sched (Makefile.am): Fix typo.
56809         Reported by Simon Josefsson.
56810
56811 2008-10-05  Jim Meyering  <meyering@redhat.com>
56812
56813         bootstrap: check for LT_INIT, too
56814         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56815         are deprecated.  Suggestion from Ralf Wildenhues.
56816
56817 2008-10-05  Bruno Haible  <bruno@clisp.org>
56818
56819         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56820         overriding them by ours.
56821         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56822
56823 2008-10-05  Jim Meyering  <meyering@redhat.com>
56824
56825         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56826         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56827         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56828
56829 2008-10-04  Bruno Haible  <bruno@clisp.org>
56830
56831         * modules/dup2 (License): Change to LGPLv2+.
56832         * modules/sleep (License): Likewise.
56833         * modules/perror (License): Likewise.
56834         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56835         Blake.
56836         * modules/signal (License): Likewise.
56837         * modules/sigprocmask (License): Likewise.
56838         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56839         Meyering.
56840
56841 2008-10-04  Bruno Haible  <bruno@clisp.org>
56842
56843         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56844         Reported by Rainer Tammer <tammer@tammer.net>.
56845
56846 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56847             Bruno Haible  <bruno@clisp.org>
56848
56849         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56850         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56851         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56852
56853 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56854
56855         filevercmp: new module
56856         * lib/filevercmp.h: New function filevercmp comparing version strings.
56857         * lib/filevercmp.c: Implementation of filevercmp function.
56858         * modules/filevercmp: Module metadata.
56859         * tests/test-filevercmp.c: Unit test for new module.
56860         * modules/filevercmp-tests: Unit test metadata.
56861         * MODULES.html.sh: Add filevercmp module.
56862
56863 2008-10-03  Bruno Haible  <bruno@clisp.org>
56864
56865         * lib/c-ctype.h: Add comment.
56866         Reported by Jim Meyering.
56867
56868 2008-10-02  Bruno Haible  <bruno@clisp.org>
56869
56870         * modules/posix_spawn-internal (Depends-on): Add 'open'.
56871
56872 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56873
56874         * build-aux/bootstrap: Allow renaming bootstrap, and change the
56875         name of bootstrap.conf accordingly.
56876
56877 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56878
56879         * build-aux/bootstrap: Install git-merge-changelog configuration
56880         items into .gitconfig if needed.
56881
56882 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56883
56884         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
56885         git repository, and initialize/update it accordingly.
56886
56887 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
56888
56889         * modules/fsync-tests: New file.
56890         * tests/test-fsync.c: New file.
56891
56892         New module 'fsync'.
56893         * lib/fsync.c: New file.
56894         * m4/fsync.m4: New file.
56895         * modules/fsync: New file.
56896         * lib/unistd.in.h (fsync): New declaration.
56897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
56898         GNULIB_FSYNC and HAVE_FSYNC.
56899         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
56900         * MODULES.html.sh (posix_functions): Add fsync.
56901         * doc/posix-functions/fsync.texi: Mention the new module.
56902
56903 2008-10-02  Jim Meyering  <meyering@redhat.com>
56904
56905         fts.c: sync with similar code from coreutils' remove.c
56906         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
56907         Guard also with "#if defined __linux__", since for now at least,
56908         this code is Linux-kernel-specific.
56909
56910 2008-10-02  Jim Meyering  <meyering@redhat.com>
56911
56912         fts: bug fixes
56913         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56914         Include <sys/vfs.h>, not <sys/statfs.h>.
56915
56916         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56917         Include <sys/vfs.h>, not <sys/statfs.h>.
56918
56919 2008-10-01  Bruno Haible  <bruno@clisp.org>
56920
56921         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56922         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56923         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56924         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56925         * doc/posix-functions/posix_spawnp.texi: Likewise.
56926         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56927         whether posix_spawn actually works.
56928         * m4/pipe.m4 (gl_PIPE): Likewise.
56929         * modules/execute (Files): Add m4/posix_spawn.m4.
56930         * modules/pipe (Files): Add m4/posix_spawn.m4.
56931         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56932
56933 2008-10-01  Jim Meyering  <meyering@redhat.com>
56934
56935         remove trailing spaces
56936         * NEWS: Likewise.
56937         * lib/poll.c (poll): Likewise.
56938         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56939         * lib/winsock.c (rpl_close): Likewise.
56940         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56941         * modules/yield: Likewise.
56942         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56943         * tests/test-sys_select.c (connect_to_socket): Likewise.
56944
56945         fts.c: adjust a new interface to be more generally useful
56946         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56947         (fts_build): Adjust caller.
56948
56949 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56950
56951         * modules/cond-tests: New file.
56952         * tests/test-cond.c: New file.
56953
56954 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56955             Bruno Haible  <bruno@clisp.org>
56956
56957         * modules/cond (Dependencies): Add errno, time.
56958         * lib/glthread/cond.h: Include <time.h>.
56959         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56960         across platforms.
56961
56962 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56963             Bruno Haible  <bruno@clisp.org>
56964
56965         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56966
56967 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56968             Bruno Haible  <bruno@clisp.org>
56969
56970         * modules/tls-tests (Depends-on): Add thread, yield.
56971         (configure.ac): Remove all checks.
56972         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56973         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56974         gl_thread_self): Remove definitions. Include glthread/thread.h and
56975         glthread/yield.h instead.
56976         (test_tls): Pass an additional NULL argument to gl_thread_join.
56977
56978 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56979             Bruno Haible  <bruno@clisp.org>
56980
56981         * modules/lock-tests (Depends-on): Add thread, yield.
56982         (configure.ac): Remove all checks.
56983         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56984         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56985         gl_thread_self): Remove definitions. Include glthread/thread.h and
56986         glthread/yield.h instead.
56987         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56988         additional NULL argument to gl_thread_join.
56989
56990 2008-09-30  Bruno Haible  <bruno@clisp.org>
56991
56992         Fix the Win32 implementation of the 'thread' module.
56993         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56994         pointer type.
56995         (gl_thread_self): Invoke gl_thread_self_func.
56996         (gl_thread_self_func): New declaration.
56997         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56998         (do_init_self_key, init_self_key): New functions.
56999         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57000         Remove some fields.
57001         (running_threads, running_lock): Remove variables.
57002         (get_current_thread_handle): New function.
57003         (gl_thread_self_func, wrapper_func, glthread_create_func,
57004         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57005         simplified.
57006
57007 2008-09-30  Bruno Haible  <bruno@clisp.org>
57008
57009         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57010         files.
57011
57012 2008-09-30  Jim Meyering  <meyering@redhat.com>
57013
57014         fts.m4: correct the test for statfs.f_type
57015         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57016         when checking for statfs.f_type.
57017
57018 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57019
57020         tests: avoid some compiler warnings
57021         * tests/test-memchr.c (main): Pass NULL indirectly.
57022         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57023
57024 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
57025
57026         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57027         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57028         exactly specified dayshifts.
57029         (dayshift): New rule.
57030         (rel): Add dayshift.
57031         (relative_time_table) [tomorrow, yesterday, today, now]:
57032         Use tDAY_SHIFT in place of tDAY_UNIT.
57033         * tests/test-getdate.c: Add tests for now-disallowed countable
57034         dayshifts, e.g., "4 yesterday ago".
57035
57036 2008-09-29  Bruno Haible  <bruno@clisp.org>
57037
57038         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57039         * tests/test-posix_spawn1.in.sh: Renamed from
57040         tests/test-posix_spawn.in.sh.
57041         * tests/test-posix_spawn2.c: New file.
57042         * tests/test-posix_spawn2.in.sh: New file.
57043         * modules/posix_spawnp-tests (Files): Update.
57044         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57045
57046 2008-09-29  Bruno Haible  <bruno@clisp.org>
57047
57048         Propagate effects of putenv/setenv/unsetenv to child processes.
57049         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57050         * lib/pipe.c (create_pipe): Likewise.
57051
57052 2008-09-29  Bruno Haible  <bruno@clisp.org>
57053
57054         Enable use of shell scripts as executables in mingw.
57055         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57056         run the program as a shell script.
57057         * lib/pipe.c (create_pipe): Likewise.
57058         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57059         resulting array.
57060
57061 2008-09-29  Eric Blake  <ebb9@byu.net>
57062
57063         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57064
57065 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57066
57067         * doc/posix-functions/accept.texi: Update mingw problems.
57068         * doc/posix-functions/bind.texi: Update mingw problems.
57069         * doc/posix-functions/close.texi: Update mingw problems.
57070         * doc/posix-functions/connect.texi: Update mingw problems.
57071         * doc/posix-functions/getpeername.texi: Update mingw problems.
57072         * doc/posix-functions/getsockname.texi: Update mingw problems.
57073         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57074         * doc/posix-functions/ioctl.texi: Update mingw problems.
57075         * doc/posix-functions/listen.texi: Update mingw problems.
57076         * doc/posix-functions/recv.texi: Update mingw problems.
57077         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57078         * doc/posix-functions/select.texi: Update mingw problems.
57079         * doc/posix-functions/send.texi: Update mingw problems.
57080         * doc/posix-functions/sendto.texi: Update mingw problems.
57081         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57082         * doc/posix-functions/socket.texi: Update mingw problems.
57083
57084 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57085             Bruno Haible  <bruno@clisp.org>
57086
57087         * lib/sys_select.in.h: Include sys/time.h.
57088         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57089         * modules/sys_select: Depend on sys_time.
57090         * tests/test-sys_select.c: Test that sys/select.h defines struct
57091         timeval fully.
57092
57093 2008-09-29  Bruno Haible  <bruno@clisp.org>
57094
57095         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57096         * lib/sys_select.in.h: Likewise.
57097
57098 2008-09-29  Bruno Haible  <bruno@clisp.org>
57099
57100         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57101
57102 2008-09-29  Bruno Haible  <bruno@clisp.org>
57103
57104         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57105         Set LIBSOCKET instead of augmenting LIBS.
57106         * modules/sockets (Link): New section.
57107         * modules/sockets-tests (test_sockets_LDADD): New variable.
57108         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57109         * modules/poll-tests (test_poll_LDADD): New variable.
57110         * NEWS: Document the change.
57111
57112 2008-09-29  Bruno Haible  <bruno@clisp.org>
57113
57114         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57115         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57116         ARPA_INET_H directly.
57117         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57118
57119 2008-09-28  Bruno Haible  <bruno@clisp.org>
57120
57121         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57122         from gl_HEADER_SYS_SOCKET.
57123         (gl_HEADER_SYS_SOCKET): Invoke it.
57124         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57125
57126 2008-09-28  Bruno Haible  <bruno@clisp.org>
57127
57128         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57129         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57130         Needed on OSF/1 4.0.
57131
57132 2008-09-28  Bruno Haible  <bruno@clisp.org>
57133
57134         Override open more carefully.
57135         * lib/open.c (orig_open): New function.
57136         (rpl_open): Use orig_open instead of open.
57137         * lib/fcntl.in.h: Add special invocation convention.
57138         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57139         (gl_FUNC_OPEN): Invoke it.
57140
57141         Override freopen more carefully.
57142         * lib/freopen.c (orig_freopen): New function.
57143         (rpl_freopen): Use orig_freopen instead of freopen.
57144         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57145         (gl_FUNC_FREOPEN): Invoke it.
57146
57147         Override fopen more carefully.
57148         * lib/fopen.c (orig_fopen): New function.
57149         (rpl_fopen): Use orig_fopen instead of fopen.
57150         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57151         (gl_FUNC_FOPEN): Invoke it.
57152         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57153
57154 2008-09-28  Bruno Haible  <bruno@clisp.org>
57155
57156         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57157         SIGPIPE.
57158
57159 2008-09-28  Bruno Haible  <bruno@clisp.org>
57160
57161         * tests/test-sigaction.c (handler, main): Disable the check whether
57162         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57163         glibc systems with LinuxThreads.
57164
57165 2008-09-28  Bruno Haible  <bruno@clisp.org>
57166
57167         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57168
57169         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57170         with AIX xlc.
57171         * lib/fcntl.in.h (open): Likewise.
57172         Reported by Rainer Tammer <tammer@tammer.net>.
57173
57174 2008-09-28  Bruno Haible  <bruno@clisp.org>
57175
57176         * modules/posix_spawnp-tests: New file.
57177         * tests/test-posix_spawn.c: New file.
57178         * tests/test-posix_spawn.in.sh: New file.
57179
57180         New module 'posix_spawnp'.
57181         * modules/posix_spawnp: New file.
57182         * lib/spawnp.c: New file, from GNU libc with modifications.
57183         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57184
57185         New module 'posix_spawn'.
57186         * modules/posix_spawn: New file.
57187         * lib/spawn.c: New file, from GNU libc with modifications.
57188         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57189
57190         New module 'posix_spawnattr_destroy'.
57191         * modules/posix_spawnattr_destroy: New file.
57192         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57193         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57194         module.
57195
57196         New module 'posix_spawnattr_setsigmask'.
57197         * modules/posix_spawnattr_setsigmask: New file.
57198         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57199         modifications.
57200         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57201         new module.
57202
57203         New module 'posix_spawnattr_getsigmask'.
57204         * modules/posix_spawnattr_getsigmask: New file.
57205         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57206         modifications.
57207         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57208         new module.
57209
57210         New module 'posix_spawnattr_setsigdefault'.
57211         * modules/posix_spawnattr_setsigdefault: New file.
57212         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57213         modifications.
57214         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57215         new module.
57216
57217         New module 'posix_spawnattr_getsigdefault'.
57218         * modules/posix_spawnattr_getsigdefault: New file.
57219         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57220         modifications.
57221         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57222         new module.
57223
57224         New module 'posix_spawnattr_setschedpolicy'.
57225         * modules/posix_spawnattr_setschedpolicy: New file.
57226         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57227         modifications.
57228         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57229         new module.
57230
57231         New module 'posix_spawnattr_getschedpolicy'.
57232         * modules/posix_spawnattr_getschedpolicy: New file.
57233         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57234         modifications.
57235         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57236         new module.
57237
57238         New module 'posix_spawnattr_setschedparam'.
57239         * modules/posix_spawnattr_setschedparam: New file.
57240         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57241         modifications.
57242         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57243         new module.
57244
57245         New module 'posix_spawnattr_getschedparam'.
57246         * modules/posix_spawnattr_getschedparam: New file.
57247         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57248         modifications.
57249         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57250         new module.
57251
57252         New module 'posix_spawnattr_setpgroup'.
57253         * modules/posix_spawnattr_setpgroup: New file.
57254         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57255         modifications.
57256         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57257         module.
57258
57259         New module 'posix_spawnattr_getpgroup'.
57260         * modules/posix_spawnattr_getpgroup: New file.
57261         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57262         modifications.
57263         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57264         module.
57265
57266         New module 'posix_spawnattr_setflags'.
57267         * modules/posix_spawnattr_setflags: New file.
57268         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57269         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57270         module.
57271
57272         New module 'posix_spawnattr_getflags'.
57273         * modules/posix_spawnattr_getflags: New file.
57274         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57275         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57276         module.
57277
57278         New module 'posix_spawnattr_init'.
57279         * modules/posix_spawnattr_init: New file.
57280         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57281         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57282         module.
57283
57284         New module 'posix_spawn_file_actions_destroy'.
57285         * modules/posix_spawn_file_actions_destroy: New file.
57286         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57287         modifications.
57288         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57289         the new module.
57290
57291         New module 'posix_spawn_file_actions_addopen'.
57292         * modules/posix_spawn_file_actions_addopen: New file.
57293         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57294         modifications.
57295         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57296         the new module.
57297
57298         New module 'posix_spawn_file_actions_adddup2'.
57299         * modules/posix_spawn_file_actions_adddup2: New file.
57300         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57301         modifications.
57302         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57303         the new module.
57304
57305         New module 'posix_spawn_file_actions_addclose'.
57306         * modules/posix_spawn_file_actions_addclose: New file.
57307         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57308         modifications.
57309         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57310         the new module.
57311
57312         New module 'posix_spawn_file_actions_init'.
57313         * modules/posix_spawn_file_actions_init: New file.
57314         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57315         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57316         new module.
57317
57318         New module 'posix_spawn-internal'.
57319         * modules/posix_spawn-internal: New file.
57320         * lib/spawn_int.h: New file, from GNU libc with modifications.
57321         * lib/spawni.c: New file, from GNU libc with modifications.
57322         * m4/posix_spawn.m4: New file.
57323
57324         New module 'spawn'.
57325         * modules/spawn: New file.
57326         * lib/spawn.in.h: New file, from GNU libc with modifications.
57327         * m4/spawn_h.m4: New file.
57328         * doc/posix-headers/spawn.texi: Mention the new module.
57329
57330 2008-09-28  Bruno Haible  <bruno@clisp.org>
57331
57332         * modules/sched-tests: New file.
57333         * tests/test-sched.c: New file.
57334
57335         New module 'sched'.
57336         * modules/sched: New file.
57337         * lib/sched.in.h: New file.
57338         * m4/sched_h.m4: New file.
57339         * doc/posix-headers/sched.texi: Mention the new module.
57340
57341 2008-09-27  Eric Blake  <ebb9@byu.net>
57342
57343         Fix previous patch, and tweak references to $0.
57344         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57345         (func_version, func_gnulib_dir): Don't call this program
57346         gnulib-tool.
57347         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57348         with using $0 in function.
57349         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57350         (func_fatal_error): Reuse the name the user invoked us with.
57351
57352 2008-09-27  Bruno Haible  <bruno@clisp.org>
57353
57354         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57355         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57356         (gl_ICONV_H): Not here.
57357         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57358         instead of assigning ICONV_H directly.
57359
57360         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57362         WCHAR_H directly.
57363
57364 2008-09-27  Bruno Haible  <bruno@clisp.org>
57365
57366         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57367         * modules/arpa_inet (Depends-on): Add link-warning.
57368         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57369         * modules/unistd (Makefile.am): Likewise.
57370
57371 2008-09-26  Bruno Haible  <bruno@clisp.org>
57372
57373         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57374         variables.
57375         (func_version): Essentially copied from gnulib-tool.
57376         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57377         func_readlink): Copied from gnulib-tool.
57378
57379 2008-09-26  Bruno Haible  <bruno@clisp.org>
57380
57381         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57382         invoking git-version-gen.
57383
57384 2008-09-26  Bruno Haible  <bruno@clisp.org>
57385
57386         * posix-modules: Update to directory names changed on 2008-01-19.
57387         Remove commas in output before splitting into words. No more need to
57388         avoid 'ftruncate' since 2007-02-19.
57389
57390 2008-09-26  Bruno Haible  <bruno@clisp.org>
57391
57392         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57393
57394 2008-09-26  Bruno Haible  <bruno@clisp.org>
57395
57396         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57397         * modules/fwriteerror (Depends-on): Add errno.
57398
57399 2008-09-26  Bruno Haible  <bruno@clisp.org>
57400
57401         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57402         * tests/test-vc-list-files-cvs.sh: Likewise.
57403
57404 2008-09-26  Bruno Haible  <bruno@clisp.org>
57405
57406         * doc/posix-headers/sys_resource.texi: Reorder items.
57407
57408 2008-09-26  Jim Meyering  <meyering@redhat.com>
57409
57410         fts: tweak inode comparison function
57411         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57412         inode numbers, as documented.
57413
57414         fts: sort dirent entries on inode number before traversing
57415         This avoids a quadratic, seek-related performance penalty when
57416         operating on a directory containing many entries (measurable at 10k;
57417         3.5 hours at 2 million entries with a cold cache) on certain types
57418         of file systems, including ext3 and ext4, but not tmpfs.
57419         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57420         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57421         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57422         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57423         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57424         (fts_build): Set the stat.st_ino member from D_INO.
57425         If it is likely to be useful, sort dirent entries on inode number.
57426
57427         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57428         and the struct statfs.f_type member.
57429         * modules/fts (Depends-on): Add d-ino.
57430
57431 2008-09-26  Bruno Haible  <bruno@clisp.org>
57432
57433         * modules/sigpipe-die (Depends-on): Add sigpipe.
57434
57435         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57436         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57437         and GNULIB_STDIO_H_SIGPIPE are set.
57438         * lib/stdio-write.c: New file.
57439         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57440         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57441         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57442         REPLACE_STDIO_WRITE_FUNCS.
57443         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57444         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57445         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57446         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57447         * modules/stdio (Files): Add lib/stdio-write.c.
57448         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57449         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57450         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57451         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57452         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57453         REPLACE_FPRINTF_POSIX.
57454         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57455         REPLACE_PRINTF_POSIX.
57456         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57457         REPLACE_VFPRINTF_POSIX.
57458         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57459         REPLACE_VPRINTF_POSIX.
57460         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57461         SIGPIPE issue.
57462         * doc/posix-functions/fputc.texi: Likewise.
57463         * doc/posix-functions/fputs.texi: Likewise.
57464         * doc/posix-functions/fwrite.texi: Likewise.
57465         * doc/posix-functions/printf.texi: Likewise.
57466         * doc/posix-functions/putc.texi: Likewise.
57467         * doc/posix-functions/putchar.texi: Likewise.
57468         * doc/posix-functions/puts.texi: Likewise.
57469         * doc/posix-functions/vfprintf.texi: Likewise.
57470         * doc/posix-functions/vprintf.texi: Likewise.
57471
57472         * modules/safe-write (Depends-on): Add write.
57473
57474         * modules/sigpipe-tests: New file.
57475         * tests/test-sigpipe.c: New file.
57476         * tests/test-sigpipe.sh: New file.
57477
57478         * modules/write: New file.
57479         * lib/unistd.in.h: Include <sys/types.h>.
57480         (write): New declaration.
57481         * lib/write.c: New file.
57482         * m4/write.m4: New file.
57483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57484         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57485         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57486         GNULIB_WRITE, REPLACE_WRITE.
57487         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57488         and the SIGPIPE issue.
57489
57490         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57491         (raise): New declaration.
57492         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57493         (ext_signal): New function.
57494         (rpl_raise): New function.
57495         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57496         GNULIB_SIGNAL_H_SIGPIPE.
57497         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57498         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57499
57500         * modules/sigpipe: New file.
57501         * m4/sigpipe.m4: New file.
57502
57503 2008-09-25  Derek Price  <derek@ximbiot.com>
57504             Bruno Haible  <bruno@clisp.org>
57505
57506         * gnulib-tool (func_import): Report all license incompatibilities, not
57507         just the first one.
57508
57509 2008-09-25  Bruno Haible  <bruno@clisp.org>
57510
57511         * gnulib-tool (func_import): When computing the edits, consider not
57512         only the Makefile.ams that exist but also those that will be generated.
57513
57514 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57515
57516         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57517         fixes gnulib-tool --test warning about duplicate dependency.
57518
57519 2008-09-25  Bruno Haible  <bruno@clisp.org>
57520
57521         * gnulib-tool: Don't ask the user to perform edits in the generated
57522         Makefile.ams.
57523         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57524         apply to the Makefile.am being generated.
57525         (func_emit_tests_Makefile_am): Execute edits that apply to the
57526         Makefile.am being generated.
57527         (func_import): Setup list of Makefile.am edits before emitting the
57528         Makefile.ams, not at the end.
57529         (func_create_testdir): Update.
57530         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57531
57532 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57533
57534         * gnulib-tool (func_import): Store the --tests-base option in the
57535         comment in gnulib-cache.m4.
57536
57537 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57538
57539         * NEWS: Document increased portability that sys_select now provides.
57540
57541         * lib/sys_select.in.h: Install select wrapper.
57542         * lib/sys_socket.in.h: Use more descriptive name when there is no
57543         select wrapper.
57544         * lib/winsock-select.c: New.
57545         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57546         Require gl_HEADER_SYS_SOCKET.
57547         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57548         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57549         * tests/test-sys_select.c: Add functional tests.
57550
57551 2008-09-24  Eric Blake  <ebb9@byu.net>
57552
57553         open, fopen: close fd leak in last patch
57554         * lib/open.c (rpl_open): Close fd before returning error.
57555         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57556         * doc/posix-functions/open.texi (open): Document that Irix also
57557         has the bug.
57558         * doc/posix-functions/fopen.texi (fopen): Likewise.
57559         Reported by Paolo Bonzini.
57560
57561 2008-09-24  Bruno Haible  <bruno@clisp.org>
57562
57563         Ensure that a filename ending in a slash cannot be used to access a
57564         non-directory.
57565         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57566         to check whether it's really a directory.
57567         * lib/fopen.c: Include fcntl.h, unistd.h.
57568         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57569         and fdopen().
57570         * modules/fopen (Depends-on): Add unistd.
57571         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57572         * tests/test-fopen.c (main): Likewise.
57573         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57574         * doc/posix-functions/fopen.texi: Likewise.
57575         Reported by Eric Blake.
57576
57577 2008-09-23  Eric Blake  <ebb9@byu.net>
57578
57579         c-stack: avoid compiler optimizations when provoking overflow
57580         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57581         recursion harder to optimize, to ensure a stack overflow occurs.
57582         * tests/test-c-stack.c (recurse): Likewise.
57583         Borrowed from libsigsegv.
57584
57585         c-stack: work around Irix sigaltstack bug
57586         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57587         whether sigaltstack uses wrong end of stack_t (copied in part from
57588         libsigsegv).
57589         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57590         Irix bug, without requiring an over-allocation.
57591         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57592         bug.
57593
57594         fopen: document mingw bug on directories
57595         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57596         not allowing a stream visiting a directory, even though reading
57597         from such a stream is not portable.
57598
57599 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57600
57601         * lib/poll.c: Rewrite.
57602         * modules/poll: Depend on alloca.
57603
57604 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57605
57606         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57607         instead define prototypes for a full set of wrappers.  Ensure
57608         that Cygwin does not use the compatibility code, which is only
57609         for MinGW.
57610         * lib/winsock.c: New.
57611         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57612         * modules/sys_socket: Add lib/winsock.c.
57613
57614         * modules/poll-tests: Add errno and perror.
57615         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57616
57617 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57618
57619         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57620
57621 2008-09-23  Bruno Haible  <bruno@clisp.org>
57622
57623         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57624         * doc/glibc-functions/*: Likewise.
57625
57626 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57627
57628         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57629         success.
57630
57631 2008-09-22  Eric Blake  <ebb9@byu.net>
57632             Bruno Haible  <bruno@clisp.org>
57633
57634         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57635         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57636         supply %A but mishandle pseudo-NaN.
57637         Reported by Simon Josefsson.
57638
57639 2008-09-21  Bruno Haible  <bruno@clisp.org>
57640
57641         * tests/test-lock.c (main): Tweak skip message.
57642         * tests/test-tls.c (main): Likewise.
57643
57644 2008-09-21  Bruno Haible  <bruno@clisp.org>
57645
57646         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57647         whether 'struct sigaction' has sa_sigaction here...
57648         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57649         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57650
57651 2008-09-21  Bruno Haible  <bruno@clisp.org>
57652
57653         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57654         section.
57655         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57656         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57657         the new section.
57658         (Support for obsolete systems lacking POSIX:2001): New section.
57659         (String handling <string.h>): Move strdup to the new section.
57660         Suggested by Simon Josefsson and Paolo Bonzini.
57661
57662 2008-09-21  Bruno Haible  <bruno@clisp.org>
57663
57664         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57665         exponents in %e and %g results on 'long double'. Needed for mingw's
57666         improved *printf functions.
57667         * tests/test-vasprintf-posix.c (test_function): Likewise.
57668         * tests/test-snprintf-posix.h (test_function): Likewise.
57669         * tests/test-sprintf-posix.h (test_function): Likewise.
57670         Reported by Eric Blake.
57671
57672 2008-09-21  Bruno Haible  <bruno@clisp.org>
57673
57674         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57675         * tests/test-sprintf-posix.h (test_function): Likewise.
57676
57677 2008-09-21  Bruno Haible  <bruno@clisp.org>
57678
57679         * modules/getpass (Depends-on): Add strdup-posix.
57680
57681         New module 'strdup-posix'.
57682         * modules/strdup-posix: New file.
57683         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57684         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57685         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57686         REPLACE_STRDUP.
57687         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57688         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57690         strdup-posix.
57691
57692         * modules/strdup (Depends-on): Remove malloc-posix.
57693
57694 2008-09-20  Bruno Haible  <bruno@clisp.org>
57695
57696         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57697         Wildenhues.
57698
57699 2008-09-20  Bruno Haible  <bruno@clisp.org>
57700
57701         Ensure that wint_t gets defined on IRIX 5.3.
57702         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57703         * lib/wctype.in.h (wint_t): Likewise.
57704         (__wctype_wint_t): Remove type.
57705         (isw*): Use wint_t instead of __wctype_wint_t.
57706         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57707         * modules/wchar (Files): Add m4/wint_t.m4.
57708         (Makefile.am): Substitute HAVE_WINT_T.
57709         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57710         * tests/test-wctype.c: Check that wint_t is defined.
57711         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57712         * doc/posix-headers/wctype.texi: Likewise.
57713         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57714
57715 2008-09-18  Bruno Haible  <bruno@clisp.org>
57716
57717         * gnulib-tool (func_exit): Update comment.
57718
57719 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57720
57721         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57722         assumes strdup exists and does not depend on strdup to return
57723         ENOMEM on out of memory conditions.
57724
57725 2008-09-18  Bruno Haible  <bruno@clisp.org>
57726
57727         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
57728         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57729         digits for the exponent.
57730
57731 2008-09-18  Jim Meyering  <meyering@redhat.com>
57732             Bruno Haible  <bruno@clisp.org>
57733
57734         * lib/vasnprintf.c (decimal_point_char): Define also if
57735         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57736
57737 2008-09-16  Bruno Haible  <bruno@clisp.org>
57738         and Eric Blake  <ebb9@byu.net>
57739
57740         vasnprintf: support Irix 5.3
57741         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57742         that mishandle long double infinity.
57743         Reported by Tom G. Christensen.
57744
57745 2008-09-16  Bruno Haible  <bruno@clisp.org>
57746
57747         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57748         Solaris 9.
57749         * doc/glibc-functions/alphasort.texi: Likewise.
57750         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57751
57752 2008-09-16  Jim Meyering  <meyering@redhat.com>
57753
57754         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57755         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57756         a umask modification leak out of a subshell.  Otherwise, the
57757         opensolaris /bin/sh would be accepted and thus cause unwarranted
57758         failures in the coreutils test suite.
57759
57760 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57761
57762         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57763         to succeed.
57764
57765 2008-09-16  Jim Meyering  <meyering@redhat.com>
57766
57767         avoid spurious test failure when library is built without ACL support
57768         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57769         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57770         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57771         * tests/test-copy-acl.sh: Likewise.
57772
57773 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57774
57775         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57776         based on character occurrence counts.
57777
57778 2008-09-15  Eric Blake  <ebb9@byu.net>
57779
57780         tests: avoid some compiler warnings
57781         * tests/test-memchr.c (main): Pass NULL indirectly.
57782         * tests/test-closein.c (main): Avoid unused variable.
57783
57784 2008-09-15  Bruno Haible  <bruno@clisp.org>
57785
57786         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57787         are missing on OpenBSD 4.0 individually.
57788         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57789
57790 2008-09-15  Bruno Haible  <bruno@clisp.org>
57791
57792         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57793         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57794         * doc/posix-functions/perror.texi: Likewise.
57795         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57796         is missing.
57797         Reported by Eric Blake.
57798
57799         * lib/errno.in.h: Use replacement values >= 2000.
57800         Reported by Eric Blake.
57801
57802 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57803
57804         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57805         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57806         limit.
57807         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57808         compareseq was aborted.
57809
57810 2008-09-14  Bruno Haible  <bruno@clisp.org>
57811
57812         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57813         yvec_edit_count.
57814         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57815         (fstrcmp_bounded): Simplify result computation accordingly.
57816
57817 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57818
57819         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57820         (fstrcmp): Define in terms of fstrcmp_bounded.
57821         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57822         lower_bound argument.
57823         Return quickly if the result is certainly < lower_bound.
57824         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57825
57826 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57827
57828         * lib/diffseq.h (EARLY_ABORT): New macro.
57829         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57830         evaluates to true.
57831
57832 2008-09-14  Bruno Haible  <bruno@clisp.org>
57833
57834         * modules/perror-tests: New file.
57835         * tests/test-perror.sh: New file.
57836         * tests/test-perror.c: New file.
57837
57838         New module 'perror'.
57839         * lib/stdio.in.h (perror): New declaration.
57840         * lib/perror.c: New file.
57841         * m4/perror.m4: New file.
57842         * modules/perror: New file.
57843         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57844         * doc/posix-functions/perror.texi: Mention the perror module.
57845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57846         REPLACE_PERROR.
57847         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57848         REPLACE_PERROR.
57849
57850 2008-09-14  Bruno Haible  <bruno@clisp.org>
57851
57852         * modules/stdio (Makefile.am): Reorder to match the order in
57853         lib/stdio.in.h.
57854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57855
57856 2008-09-13  Bruno Haible  <bruno@clisp.org>
57857
57858         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57859
57860 2008-09-13  Bruno Haible  <bruno@clisp.org>
57861
57862         Extend strerror to cover the added errno values.
57863         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
57864         (rpl_strerror): Provide error messages for the added errno values and
57865         for the WSA* values.
57866         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57867         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
57868         strerror.
57869         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
57870         * modules/strerror (Depends-on): Add errno.
57871         * doc/posix-functions/strerror.texi: Document the change.
57872         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
57873         and EOVERFLOW.
57874
57875 2008-09-13  Bruno Haible  <bruno@clisp.org>
57876
57877         * modules/EOVERFLOW: Remove file.
57878         * m4/eoverflow.m4: Remove file.
57879         * modules/EOVERFLOW-tests: Remove file.
57880         * tests/test-EOVERFLOW.c: Remove file.
57881         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
57882         * modules/ftell (Depends-on): Likewise.
57883         * modules/getdelim (Depends-on): Likewise.
57884         * modules/getugroups (Depends-on): Likewise.
57885         * modules/poll (Depends-on): Likewise.
57886         * modules/snprintf (Depends-on): Likewise.
57887         * modules/sprintf-posix (Depends-on): Likewise.
57888         * modules/vasnprintf (Depends-on): Likewise.
57889         * modules/vasprintf (Depends-on): Likewise.
57890         * modules/vfprintf-posix (Depends-on): Likewise.
57891         * modules/vsnprintf (Depends-on): Likewise.
57892         * modules/vsprintf-posix (Depends-on): Likewise.
57893         * modules/xvasprintf (Depends-on): Likewise.
57894         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57895         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
57896         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
57897         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
57898         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57899         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
57900         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
57901         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
57902         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57903         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
57904         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
57905         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
57906         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57907         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
57908         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
57909         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
57910         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57911         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57912         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57913         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57914         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57915         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57916         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57917         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57918         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57919         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57920         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57921         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57922         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57923         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57924         * MODULES.html.sh: Remove EOVERFLOW.
57925         * NEWS: Mention the change.
57926
57927 2008-09-13  Bruno Haible  <bruno@clisp.org>
57928
57929         * modules/errno-tests: New file.
57930         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57931
57932         * lib/errno.in.h: New file.
57933         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57934         * modules/errno: New file.
57935         * doc/posix-headers/errno.texi: Update documentation.
57936         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57937
57938 2008-09-13  Bruno Haible  <bruno@clisp.org>
57939
57940         * tests/test-poll.c: Use #if for native Windows, rather than testing
57941         __MSVCRT__.
57942
57943 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57944             Bruno Haible  <bruno@clisp.org>
57945
57946         * lib/glob.c: Don't include <pwd.h> on native Windows.
57947         (WINDOWS32): New macro.
57948         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57949
57950 2008-09-13  Bruno Haible  <bruno@clisp.org>
57951
57952         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57953         (ETIMEDOUT): Remove macro.
57954         (glthread_cond_timedwait_multithreaded): New declaration.
57955         (glthread_cond_timedwait): Use it.
57956         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57957         (glthread_cond_timedwait_multithreaded): New function.
57958
57959 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57960
57961         * modules/poll-tests: Do not check for io.h.
57962         * tests/test-poll.c: Check for __MSVCRT__ instead.
57963
57964 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57965
57966         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57967         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57968         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57969
57970 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57971
57972         * modules/poll-tests: New.
57973         * tests/test-poll.c: New.
57974
57975 2008-09-12  Eric Blake  <ebb9@byu.net>
57976
57977         frexp: test for NetBSD failure on -0.0
57978         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57979         not all, bugs from NetBSD 3.0 have been fixed.
57980         * doc/posix-functions/frexp.texi (frexp): Document bug.
57981         Reported by Thomas Klausner.
57982
57983         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57984         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57985         literal -0.0.
57986         Reported by Jonathan C. Patschke <jp@centtech.com>.
57987
57988 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57989
57990         * lib/glthread/cond.h: Use dummy implementation also if
57991         USE_WIN32_THREADS.
57992
57993 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57994
57995         * modules/fnmatch-posix (License): Change to LGPLv2+.
57996         * modules/fnmatch-gnu (License): Likewise.
57997
57998 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57999
58000         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58001
58002 2008-09-11  Jim Meyering  <meyering@redhat.com>
58003
58004         * users.txt: Add gtk-vnc.
58005
58006 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58007
58008         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58009         rotate amounts.
58010
58011         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58012         required for 16-bit and 8-bit rotates.
58013         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58014         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58015         UINT8_MAX instead of hard-coded constants.
58016         Suggested by Paul Eggert.
58017
58018 2008-09-07  Bruno Haible  <bruno@clisp.org>
58019
58020         * tests/test-striconveh.c (main): Check behaviour when converting from
58021         UTF-7.
58022
58023         Make striconveh work better with stateful encodings.
58024         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58025         that iconv does not increment the inptr when returning -1/EINVAL.
58026
58027 2008-09-07  Bruno Haible  <bruno@clisp.org>
58028
58029         * build-aux/config.rpath: Update according to libtool-2.2.6.
58030         * build-aux/config.libpath: Likewise.
58031
58032 2008-09-06  Bruno Haible  <bruno@clisp.org>
58033
58034         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58035         * lib/freadptr.c (freadptr): Likewise.
58036         * lib/freadseek.c (freadptrinc): Likewise.
58037         Reported by Simon Josefsson.
58038
58039 2008-09-06  Bruno Haible  <bruno@clisp.org>
58040
58041         * modules/freadptr (License): Change to LGPLv2+.
58042         * modules/freadseek (License): Likewise.
58043         Suggested by Eric Blake.
58044
58045         * modules/memchr2 (License): Change to LGPLv2+.
58046         Approved by Eric Blake.
58047
58048 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58049             Bruno Haible  <bruno@clisp.org>
58050
58051         Make gnulib-tool work with native 'sed' on AIX.
58052         * gnulib-tool (sed_noop): New variable.
58053         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58054         func_add_or_update, func_create_testdir): Use it to initialize sed
58055         script variables.
58056         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58057
58058 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58059             Bruno Haible  <bruno@clisp.org>
58060
58061         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58062         also works after #include directives.
58063
58064 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
58065
58066         getdate.y: reject an out-of-range timezone value
58067         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58068         the range [-24...+24].  When specified with only one or two digits,
58069         * tests/test-getdate.c: Tests for the fix.
58070         * doc/getdate.texi: Document this change.
58071
58072 2008-09-03  Bruno Haible  <bruno@clisp.org>
58073
58074         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58075
58076 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58077
58078         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58079         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58080         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58081         Blake <ebb9@byu.net>.
58082
58083         * tests/test-bitrotate.c: Add more test vectors.
58084
58085 2008-09-02  Eric Blake  <ebb9@byu.net>
58086
58087         vasnprintf-posix: handle large precision via %.*d
58088         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58089         when handling it ourselves.
58090         * tests/test-vasnprintf-posix.c (test_function): Add test.
58091         * tests/test-snprintf-posix.h (test_function): Likewise.
58092         * tests/test-sprintf-posix.h (test_function): Likewise.
58093         * tests/test-vasprintf-posix.c (test_function): Likewise.
58094         Reported by Alain Guibert.
58095
58096 2008-09-01  Eric Blake  <ebb9@byu.net>
58097
58098         c-stack: make configure-time check more robust
58099         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58100         successful sigaction call.
58101         Reported by Tom G. Christensen.
58102
58103 2008-09-01  Bruno Haible  <bruno@clisp.org>
58104
58105         New module 'findprog-lgpl'.
58106         * modules/findprog-lgpl: New file.
58107         * lib/findprog-lgpl.c: New file.
58108         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58109         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58110         to decide whether to use strdup or xstrdup, concatenated_filename or
58111         xconcatenated_filename.
58112
58113 2008-09-01  Bruno Haible  <bruno@clisp.org>
58114
58115         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58116         'xconcat-filename' (GPL).
58117         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58118         (License): Change to LGPLv2+.
58119         * modules/xconcat-filename: New file.
58120         * lib/concat-filename.h (concatenated_filename): Change specification.
58121         (xconcatenated_filename): New declaration.
58122         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58123         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58124         memory situations.
58125         * lib/xconcat-filename.c: New file.
58126         * NEWS: Mention the change.
58127         * lib/findprog.c: Include concat-filename.h, not filename.h.
58128         (find_in_path): Use xconcatenated_filename instead of
58129         concatenated_filename.
58130         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58131         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58132         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58133         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58134         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58135         instead of concatenated_filename.
58136         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58137         (execute_java_class): Use xconcatenated_filename instead of
58138         concatenated_filename.
58139         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58140         * modules/javacomp (Depends-on): Likewise.
58141         * modules/javaexec (Depends-on): Likewise.
58142
58143 2008-09-01  Bruno Haible  <bruno@clisp.org>
58144
58145         Split module 'filename' into 'filename' and 'concat-filename'.
58146         * modules/filename: Keep only lib/filename.h.
58147         (License): Change to LGPLv2+.
58148         * modules/concat-filename: New file, extracted from modules/filename.
58149         * lib/filename.h (concatenated_filename): Remove declaration.
58150         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58151         * lib/concat-filename.c: Include concat-filename.h.
58152         * NEWS: Mention the change.
58153
58154 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58155
58156         * lib/bitrotate.h (rotl8, rotr8): Add.
58157
58158         * modules/bitrotate (configure.ac): Need
58159         AC_REQUIRE([AC_C_INLINE]).
58160         (Description): Mention stdint.h.  Reported by Bruno Haible
58161         <bruno@clisp.org>.
58162
58163         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58164         Paolo Bonzini <bonzini@gnu.org>.
58165
58166 2008-08-31  Bruno Haible  <bruno@clisp.org>
58167
58168         Assume Solaris specific bi-arch conventions on Solaris systems.
58169         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58170         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58171         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58172         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58173         like acl_libdirstem.
58174         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58175         acl_libdirstem.
58176         * NEWS: Mention the change.
58177         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58178
58179 2008-08-31  Jim Meyering  <meyering@redhat.com>
58180
58181         * lib/strftime.h: Add comments describing the two added arguments.
58182
58183         remove duplicate #include directives
58184         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58185         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58186
58187 2008-08-31  Bruno Haible  <bruno@clisp.org>
58188
58189         New module 'sigpipe-die'.
58190         * modules/sigpipe-die: New file.
58191         * lib/sigpipe-die.h: New file.
58192         * lib/sigpipe-die.c: New file.
58193         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58194
58195 2008-08-31  Bruno Haible  <bruno@clisp.org>
58196
58197         Don't override previously installed signal handlers.
58198         * lib/fatal-signal.c (saved_sigactions): New variable.
58199         (uninstall_handlers): Reset the signal to the saved handler, not
58200         to SIG_DFL (except when ignored).
58201         (install_handlers): Save the previous handlers.
58202
58203 2008-08-30  Bruno Haible  <bruno@clisp.org>
58204
58205         * gnulib-tool (func_reset_sigpipe): New function.
58206         (func_get_automake_snippet, func_modules_transitive_closure,
58207         func_import): Invoke it before a join command that reads from stdin,
58208         to avoid "echo: write error: Broken pipe" error messages on stderr.
58209         Reported by Sam Steingold <sds@gnu.org>.
58210
58211 2008-08-30  Bruno Haible  <bruno@clisp.org>
58212
58213         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58214         Code copied from m4/open.m4.
58215         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58216         access and the filename ends in a slash. Code copied from lib/open.c.
58217         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58218         * tests/test-fopen.c (main): Check against bug with trailing slash.
58219
58220 2008-08-29  Bruno Haible  <bruno@clisp.org>
58221
58222         Avoid some "gcc -pedantic" warnings.
58223         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58224         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58225         * lib/dirent.in.h: Likewise.
58226         * lib/fcntl.in.h: Likewise.
58227         * lib/float.in.h: Likewise.
58228         * lib/iconv.in.h: Likewise.
58229         * lib/inttypes.in.h: Likewise.
58230         * lib/locale.in.h: Likewise.
58231         * lib/math.in.h: Likewise.
58232         * lib/netinet_in.in.h: Likewise.
58233         * lib/search.in.h: Likewise.
58234         * lib/signal.in.h: Likewise.
58235         * lib/stdarg.in.h: Likewise.
58236         * lib/stdint.in.h: Likewise.
58237         * lib/stdio.in.h: Likewise.
58238         * lib/stdlib.in.h: Likewise.
58239         * lib/string.in.h: Likewise.
58240         * lib/strings.in.h: Likewise.
58241         * lib/sys_select.in.h: Likewise.
58242         * lib/sys_socket.in.h: Likewise.
58243         * lib/sys_stat.in.h: Likewise.
58244         * lib/sys_time.in.h: Likewise.
58245         * lib/sysexits.in.h: Likewise.
58246         * lib/time.in.h: Likewise.
58247         * lib/unistd.in.h: Likewise.
58248         * lib/wchar.in.h: Likewise.
58249         * lib/wctype.in.h: Likewise.
58250         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58251         * modules/fchdir (Makefile.am): Likewise.
58252         * modules/fcntl (Makefile.am): Likewise.
58253         * modules/float (Makefile.am): Likewise.
58254         * modules/iconv_open (Makefile.am): Likewise.
58255         * modules/inttypes (Makefile.am): Likewise.
58256         * modules/locale (Makefile.am): Likewise.
58257         * modules/math (Makefile.am): Likewise.
58258         * modules/netinet_in (Makefile.am): Likewise.
58259         * modules/search (Makefile.am): Likewise.
58260         * modules/signal (Makefile.am): Likewise.
58261         * modules/stdarg (Makefile.am): Likewise.
58262         * modules/stdint (Makefile.am): Likewise.
58263         * modules/stdio (Makefile.am): Likewise.
58264         * modules/stdlib (Makefile.am): Likewise.
58265         * modules/string (Makefile.am): Likewise.
58266         * modules/strings (Makefile.am): Likewise.
58267         * modules/sys_select (Makefile.am): Likewise.
58268         * modules/sys_socket (Makefile.am): Likewise.
58269         * modules/sys_stat (Makefile.am): Likewise.
58270         * modules/sys_time (Makefile.am): Likewise.
58271         * modules/sysexits (Makefile.am): Likewise.
58272         * modules/time (Makefile.am): Likewise.
58273         * modules/unistd (Makefile.am): Likewise.
58274         * modules/wchar (Makefile.am): Likewise.
58275         * modules/wctype (Makefile.am): Likewise.
58276         Reported by Reuben Thomas <rrt@sc3d.org>.
58277
58278 2008-08-29  Bruno Haible  <bruno@clisp.org>
58279
58280         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58281         any more.
58282
58283 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58284
58285         * MODULES.html.sh (Misc): Add bitrotate.
58286
58287         * modules/bitrotate: New file.
58288
58289         * lib/bitrotate.h: New file.
58290
58291         * modules/bitrotate-tests: New file.
58292
58293         * tests/test-bitrotate.c: New file.
58294
58295         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58296         on the bitrotate module.
58297
58298         * lib/arctwo.c: Use new bitrotate module.
58299
58300 2008-08-29  Jim Meyering  <meyering@redhat.com>
58301
58302         bootstrap: merge changes from coreutils
58303         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58304         of copied files.  Remove a kludge, now that this is fixed.
58305         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58306         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58307         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58308
58309 2008-08-29  Bruno Haible  <bruno@clisp.org>
58310
58311         * MODULES.html.sh: Remove --cvs-urls option.
58312
58313 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58314
58315         maint.mk: adjust to file name change
58316         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58317
58318 2008-08-28  Jim Meyering  <meyering@redhat.com>
58319
58320         * modules/getndelim2 (License): Relicense to LGPLv2+.
58321         Approved by Richard Stallman for the version of 1995, and by
58322         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58323
58324 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58325
58326         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58327         dummy if one is not available.  Do not touch them if
58328         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58329         (getc_maybe_unlocked): New.
58330         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58331
58332 2008-08-26  Eric Blake  <ebb9@byu.net>
58333
58334         doc/INSTALL: resync from autoconf
58335         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58336         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58337         moving...
58338         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58339         * INSTALL: Regenerate.
58340         * INSTALL.ISO: New file.
58341         * INSTALL.UTF-8: Likewise.
58342
58343 2008-08-26  Jim Meyering  <meyering@redhat.com>
58344
58345         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58346         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58347         these definitions conditional, so that they may be overridden, too.
58348
58349 2008-08-26  Bruno Haible  <bruno@clisp.org>
58350
58351         Generate INSTALL file variants with prettier quotes.
58352         * doc/Makefile (INSTALL_PRELUDE): New macro.
58353         (INSTALL): Use it.
58354         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58355
58356 2008-08-26  Bruno Haible  <bruno@clisp.org>
58357
58358         Run makeinfo in an English locale.
58359         * doc/Makefile (MAKEINFO): New variable.
58360
58361 2008-08-26  Bruno Haible  <bruno@clisp.org>
58362
58363         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58364         Suggested by Eric Blake.
58365
58366 2008-08-25  Bruno Haible  <bruno@clisp.org>
58367
58368         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58369
58370 2008-08-25  Eric Blake  <ebb9@byu.net>
58371
58372         c-stack: test that stack overflow can be caught
58373         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58374         that platform allows handling stack overflow; at least OS/2 EMX
58375         has sigaltstack, but crashes before transferring control to
58376         handler on stack overflow.
58377         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58378         check for HAVE_STACK_OVERFLOW_HANDLING.
58379         Reported by Elbert Pol.
58380
58381 2008-08-25  Bruno Haible  <bruno@clisp.org>
58382
58383         * doc/posix-functions/strftime.texi: Fix description of strftime
58384         module.
58385
58386 2008-08-24  Bruno Haible  <bruno@clisp.org>
58387
58388         * tests/uniwidth/test-uc_width2.c: New file.
58389         * tests/uniwidth/test-uc_width2.sh: New file.
58390         * modules/uniwidth/width-tests (Files): Add the new files.
58391         (TESTS): Add uniwidth/test-uc_width2.sh.
58392         (TESTS_ENVIRONMENT): New variable.
58393         (check_PROGRAMS): Add test-uc_width2.
58394         (test_uc_width2_SOURCES): New variable.
58395
58396         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58397         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58398         not 0x00AB.
58399         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58400
58401 2008-08-22  Eric Blake  <ebb9@byu.net>
58402
58403         test-lock, test-tls: mention why a test is skipped
58404         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58405         skipped.
58406         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58407
58408         count-one-bits: relax license
58409         * modules/count-one-bits (License): Relicense to LGPLv2+.
58410         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58411
58412 2008-08-22  Andreas Schwab  <schwab@suse.de>
58413
58414         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58415         Remove spurious space in assignment.
58416
58417 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58418
58419         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58420         Paul Eggert <eggert@CS.UCLA.EDU>.
58421
58422 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58423
58424         * modules/gettext: Add m4/threadlib.m4.
58425
58426 2008-08-19  Eric Blake  <ebb9@byu.net>
58427
58428         test-c-stack: fix compilation failure on FreeBSD 5.0
58429         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58430         headers before <sys/resource.h>.
58431         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58432         the bug.
58433         Reported by Nelson H. F. Beebe.
58434
58435         strverscmp: migrate from "strverscmp.h" to <string.h>
58436         * modules/string (Makefile.am): Add new hooks.
58437         * modules/strverscmp (Files): Remove strverscmp.h.
58438         (Depends-on): Add string.
58439         (configure.ac): Add indicator.
58440         (Include): Mention new header.
58441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58442         defaults.
58443         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58444         results.
58445         * lib/strverscmp.h: Delete.
58446         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58447         * tests/test-strverscmp.c (includes): Adjust client.
58448         * lib/check-version.c (includes): Likewise.
58449         * NEWS: Document the change.
58450
58451         strverscmp: add unit test
58452         * modules/strverscmp-tests: New file.
58453         * tests/test-strverscmp.c: Likewise.
58454
58455 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58456
58457         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58458         regarding Windows crypto stuff, from Mono.
58459
58460 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58461
58462         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58463         if present, for intel RND.  Return error on failures.
58464
58465 2008-08-18  Ben Pfaff  <blp@gnu.org>
58466
58467         gitlog-to-changelog: give better diagnostic for failed pipe-open
58468         * build-aux/gitlog-to-changelog: Improve error message: suggest
58469         that the version of Git may be too old.
58470
58471 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58472
58473         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58474         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58475
58476 2008-08-18  Bruno Haible  <bruno@clisp.org>
58477
58478         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58479         pthread_in_use().
58480
58481 2008-08-18  Bruno Haible  <bruno@clisp.org>
58482
58483         * lib/glthread/threadlib.c: Include <pthread.h>.
58484
58485 2008-08-18  Bruno Haible  <bruno@clisp.org>
58486
58487         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58488         glthread_recursive_lock_* macros.
58489         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58490         Fix syntax error.
58491
58492 2008-08-18  Bruno Haible  <bruno@clisp.org>
58493
58494         * lib/glthread/thread.c: Avoid forcing a context switch right after
58495         thread creation.
58496
58497 2008-08-17  Bruno Haible  <bruno@clisp.org>
58498
58499         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58500         * lib/glthread/thread.h: Provide Win32 specific implementation.
58501         * modules/thread (Files): Add lib/glthread/thread.c.
58502         (Depends-on): Add lock.
58503         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58504
58505 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58506
58507         New module 'yield'.
58508         * modules/yield: New file.
58509         * lib/glthread/yield.h: New file.
58510         * m4/yield.m4: New file.
58511         * MODULES.html.sh (Multithreading): Add yield.
58512
58513 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58514
58515         New module 'thread'.
58516         * modules/thread: New file.
58517         * lib/glthread/thread.h: New file.
58518         * m4/thread.m4: New file.
58519         * MODULES.html.sh (Multithreading): Add thread.
58520
58521 2008-08-17  Bruno Haible  <bruno@clisp.org>
58522
58523         * lib/glthread/lock.h: Include <stdlib.h> always.
58524         * lib/glthread/tls.h: Likewise.
58525         * lib/glthread/cond.h: Likewise.
58526
58527 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58528
58529         New module 'cond'.
58530         * modules/cond: New file.
58531         * lib/glthread/cond.h: New file.
58532         * lib/glthread/cond.c: New file.
58533         * m4/cond.m4: New file.
58534         * MODULES.html.sh (Multithreading): Add cond.
58535
58536 2008-08-16  Eric Blake  <ebb9@byu.net>
58537
58538         c-stack: fix regression on Irix 5.3 from 2008-06-21
58539         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58540         sa_sigaction...
58541         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58542         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58543         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58544         * modules/signal (Makefile.am): Use the value.
58545         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58546         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58547         * doc/posix-headers/signal.texi (signal.h): Document this
58548         portability issue.
58549         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58550         Reported by Tom G. Christensen.
58551
58552 2008-08-17  Bruno Haible  <bruno@clisp.org>
58553
58554         New module 'threadlib'.
58555         * modules/threadlib: New file.
58556         * lib/glthread/threadlib.c: New file, extracted from
58557         lib/glthread/lock.c.
58558         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58559         functions.
58560         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58561         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58562         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58563         macros.
58564         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58565         (gl_DISABLE_THREADS): Remove macro.
58566         * modules/lock (Files): Remove build-aux/config.rpath.
58567         (Depends-on): Remove havelib. Add threadlib.
58568         (configure.ac-early): Remove section.
58569         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58570         * modules/tls (Depends-on): Remove lock. Add threadlib.
58571         (Link): New section, copied from threadlib.
58572         * MODULES.html.sh (Multithreading): Add threadlib.
58573
58574 2008-08-14  Bruno Haible  <bruno@clisp.org>
58575
58576         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58577         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58578         glthread_rwlock_unlock, glthread_rwlock_destroy,
58579         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58580         glthread_recursive_lock_destroy): Define as macros always.
58581         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58582         glthread_lock_lock.
58583         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58584         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58585         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58586         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58587         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58588         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58589         (glthread_recursive_lock_lock_func): Renamed from
58590         glthread_recursive_lock_lock.
58591         (glthread_recursive_lock_unlock_func): Renamed from
58592         glthread_recursive_lock_unlock.
58593         (glthread_recursive_lock_destroy_func): Renamed from
58594         glthread_recursive_lock_destroy.
58595
58596 2008-08-14  Bruno Haible  <bruno@clisp.org>
58597
58598         * lib/glthread/lock.h: Renamed from lib/lock.h.
58599         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58600         * lib/glthread/tls.h: Renamed from lib/tls.h.
58601         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58602         * lib/fstrcmp.c: Update includes.
58603         * lib/strsignal.c: Update includes.
58604         * modules/lock (Files, Makefile.am): Update.
58605         (Include): Change to "glthread/lock.h".
58606         * modules/tls (Files, Makefile.am): Update.
58607         (Include): Change to "glthread/tls.h".
58608         * tests/test-lock.c: Update includes.
58609         * tests/test-tls.c: Update includes.
58610         * NEWS: Mention the renamed header files.
58611
58612 2008-08-11  Jim Meyering  <meyering@redhat.com>
58613
58614         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58615
58616 2008-08-11  Eric Blake  <ebb9@byu.net>
58617
58618         test-c-stack: avoid C99-ism
58619         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58620         before statement.
58621         Reported by Alain Guibert.
58622
58623 2008-08-10  Jim Meyering  <meyering@redhat.com>
58624
58625         ensure that return value of uinttostr et al are not ignored
58626         * lib/inttostr.h (__GNUC_PREREQ): Define.
58627         (__attribute_warn_unused_result__): Define.
58628         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58629
58630 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58631
58632         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58633         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58634
58635 2008-08-07  Jim Meyering  <meyering@redhat.com>
58636
58637         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58638
58639         * modules/mkstemp (License): Relicense under LGPLv2+.
58640         * modules/tempname (License): Likewise.
58641
58642 2008-08-06  Bruno Haible  <bruno@clisp.org>
58643
58644         * lib/poll.c (poll): Further micro-optimization.
58645
58646 2008-08-06  Jim Meyering  <meyering@redhat.com>
58647
58648         inet_pton.c: use locale-independent tolower
58649         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58650         (inet_pton6): Use c_tolower rather than tolower.
58651         * modules/inet_pton (Depends-on): Add c-ctype.
58652
58653 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58654
58655         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58656         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58657
58658 2008-08-06  Jim Meyering  <meyering@redhat.com>
58659
58660         * modules/inet_pton (License): Relicense under LGPLv2+.
58661
58662 2008-08-03  Bruno Haible  <bruno@clisp.org>
58663
58664         Additional non-aborting API for lock and tls.
58665         * lib/lock.h: Include <errno.h>.
58666         (glthread_lock_init): New macro/function.
58667         (gl_lock_init): Define as wrapper around glthread_lock_init.
58668         (glthread_lock_lock): New macro/function.
58669         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58670         (glthread_lock_unlock): New macro/function.
58671         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58672         (glthread_lock_destroy): New macro/function.
58673         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58674         (glthread_rwlock_init): New macro/function.
58675         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58676         (glthread_rwlock_rdlock): New macro/function.
58677         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58678         (glthread_rwlock_wrlock): New macro/function.
58679         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58680         (glthread_rwlock_unlock): New macro/function.
58681         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58682         (glthread_rwlock_destroy): New macro/function.
58683         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58684         (glthread_recursive_lock_init): New macro/function.
58685         (gl_recursive_lock_init): Define as wrapper around
58686         glthread_recursive_lock_init.
58687         (glthread_recursive_lock_lock): New macro/function.
58688         (gl_recursive_lock_lock): Define as wrapper around
58689         glthread_recursive_lock_lock.
58690         (glthread_recursive_lock_unlock): New macro/function.
58691         (gl_recursive_lock_unlock): Define as wrapper around
58692         glthread_recursive_lock_unlock.
58693         (glthread_recursive_lock_destroy): New macro/function.
58694         (gl_recursive_lock_destroy): Define as wrapper around
58695         glthread_recursive_lock_destroy.
58696         (glthread_once): New macro/function.
58697         (gl_once): Define as wrapper around glthread_once.
58698         Update function declarations.
58699         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58700         glthread_rwlock_init. Return error code.
58701         (glthread_rwlock_rdlock_multithreaded): Renamed from
58702         glthread_rwlock_rdlock. Return error code.
58703         (glthread_rwlock_wrlock_multithreaded): Renamed from
58704         glthread_rwlock_wrlock. Return error code.
58705         (glthread_rwlock_unlock_multithreaded): Renamed from
58706         glthread_rwlock_unlock. Return error code.
58707         (glthread_rwlock_destroy_multithreaded): Renamed from
58708         glthread_rwlock_destroy. Return error code.
58709         (glthread_recursive_lock_init_multithreaded): Renamed from
58710         glthread_recursive_lock_init. Return error code.
58711         (glthread_recursive_lock_lock_multithreaded): Renamed from
58712         glthread_recursive_lock_lock. Return error code.
58713         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58714         glthread_recursive_lock_unlock. Return error code.
58715         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58716         glthread_recursive_lock_destroy. Return error code.
58717         (glthread_once_call): Make static.
58718         (glthread_once_multithreaded): Renamed from glthread_once.
58719         * lib/tls.h: Include <errno.h>.
58720         (glthread_tls_key_init): New macro/function.
58721         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58722         (glthread_tls_set): New macro/function.
58723         (gl_tls_set): Define as wrapper around glthread_tls_set.
58724         (glthread_tls_key_destroy): New macro/function.
58725         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58726         Update function declarations.
58727         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58728         glthread_tls_get.
58729         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58730
58731 2008-08-04  Eric Blake  <ebb9@byu.net>
58732
58733         gnumakefile: use space, not TAB, outside of targets
58734         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58735
58736 2008-08-02  Jim Meyering  <meyering@redhat.com>
58737
58738         getdate.y: avoid locale-dependent date parsing failure
58739         In Turkish locales, getdate would fail to recognize keywords
58740         containing a lowercase "i".  The solution is not to rely on
58741         locale-sensitive case-conversion.
58742         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58743         (lookup_word): Use c_toupper in place of toupper.
58744         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58745         Reported by Vefa Bicakci <bicave@superonline.com> in
58746         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58747         * modules/getdate (Depends-on): Add c-ctype.
58748
58749 2008-08-02  Bruno Haible  <bruno@clisp.org>
58750
58751         * gnulib-tool (func_import): When updating or creating a .gitignore
58752         file, prepend each added line with a slash, and ignore leading slashes
58753         from the existing lines.
58754         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58755
58756 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58757
58758         Portability fix for GNU make 3.79.1.
58759         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58760         versions do not understand.
58761
58762 2008-08-01  Bruno Haible  <bruno@clisp.org>
58763
58764         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58765         * tests/test-isnanf.h (zero): New variable.
58766         (main): Avoid literal -0.0f.
58767         * tests/test-isnand.h (zero): New variable.
58768         (main): Avoid literal -0.0.
58769         * tests/test-isnanl.h (zero): New variable.
58770         (main): Avoid literal -0.0L.
58771         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58772         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58773         -0.0, -0.0L.
58774         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58775         (test_signbitd): Avoid literal -0.0.
58776         (test_signbitl): Avoid literal -0.0L.
58777         * tests/test-ceilf1.c (zero): New variable.
58778         (main): Avoid literal -0.0f.
58779         * tests/test-ceill.c (zero): New variable.
58780         (main): Avoid literal -0.0L.
58781         * tests/test-floorf1.c (zero): New variable.
58782         (main): Avoid literal -0.0f.
58783         * tests/test-floorl.c (zero): New variable.
58784         (main): Avoid literal -0.0L.
58785         * tests/test-roundf1.c (zero): New variable.
58786         (main): Avoid literal -0.0f.
58787         * tests/test-round1.c (zero): New variable.
58788         (main): Avoid literal -0.0.
58789         * tests/test-roundl.c (zero): New variable.
58790         (main): Avoid literal -0.0L.
58791         * tests/test-truncf1.c (zero): New variable.
58792         (main): Avoid literal -0.0f.
58793         * tests/test-trunc1.c (zero): New variable.
58794         (main): Avoid literal -0.0.
58795         * tests/test-truncl.c (zero): New variable.
58796         (main): Avoid literal -0.0L.
58797         * tests/test-frexp.c (zero): New variable.
58798         (main): Avoid literal -0.0.
58799         * tests/test-frexpl.c (zero): New variable.
58800         (main): Avoid literal -0.0L.
58801         * tests/test-ldexpl.c (zero): New variable.
58802         (main): Avoid literal -0.0L.
58803         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58804         (zerod, zerol): New variables.
58805         (test_function): Avoid literals -0.0, -0.0L.
58806         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58807         (zerod, zerol): New variables.
58808         (test_function): Avoid literals -0.0, -0.0L.
58809         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58810         (zerod, zerol): New variables.
58811         (test_function): Avoid literals -0.0, -0.0L.
58812         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58813         (zerod, zerol): New variables.
58814         (test_function): Avoid literals -0.0, -0.0L.
58815         * tests/test-strtod.c (zero): New variable.
58816         (main): Avoid literal -0.0.
58817         Reported by Jonathan C. Patschke <jp@centtech.com>.
58818
58819 2008-07-31  Jim Meyering  <meyering@redhat.com>
58820
58821         sha256.h: correct definition of SHA224_DIGEST_SIZE
58822         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58823         Reported by Paulie Pena IV <paulie4@gmail.com>.
58824         Define as 224 / 8, rather than as a literal.
58825         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58826         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58827         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58828
58829 2008-07-31  Bruno Haible  <bruno@clisp.org>
58830
58831         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58832         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58833         Reported by Jonathan Patschke <jp@centtech.com>.
58834
58835 2008-07-31  Bruno Haible  <bruno@clisp.org>
58836
58837         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58838         Reported by Paolo Bonzini <bonzini@gnu.org>.
58839
58840 2008-07-30  Eric Blake  <ebb9@byu.net>
58841
58842         test-strtod: allow compilation without -lm
58843         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58844         Reported by Dennis Clarke <blastwave@gmail.com>.
58845
58846 2008-07-28  Jim Meyering  <meyering@redhat.com>
58847
58848         bootstrap: work also when there are no .po files in po/
58849         * build-aux/bootstrap (update_po_files): Complete the change
58850         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58851
58852 2008-07-27  Jim Meyering  <meyering@redhat.com>
58853
58854         * users.txt: Add zile.
58855
58856 2008-07-26  Ben Pfaff  <blp@gnu.org>
58857
58858         Add missing dependencies on new m4/exponent[fdl].m4 files.
58859         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58860         * modules/isnand-nolibm: Add m4/exponentd.m4.
58861         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58862         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
58863         m4/isnan[fdl].m4, because the macros actually used moved.
58864         Reported by Jim Meyering.
58865
58866 2008-07-14  Ben Pfaff  <blp@gnu.org>
58867
58868         Add isinf module.
58869         * lib/isinf.c: New file.
58870         * lib/math.in.h: Define isinf macro if we have decided to replace
58871         it.
58872         * m4/isinf.m4: New file.
58873         * m4/math_h.m4: Initialize and substitute variables for isinf
58874         module.
58875         * modules/isinf: New file.
58876         * modules/isinf-tests: New file.
58877         * modules/math: Add substitutions for new module.
58878         * tests/test-isinf.c: New file.
58879         * doc/posix-functions/isinf.texi: Mention new module.
58880         * MODULES.html.sh: Mention new module.
58881
58882 2008-07-14  Ben Pfaff  <blp@gnu.org>
58883
58884         Factor out some macros for use by additional modules.
58885         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
58886         exponentf.m4.
58887         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
58888         exponentd.m4.
58889         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
58890         file exponentl.m4.
58891         * m4/exponentf.m4: New file.
58892         * m4/exponentd.m4: New file.
58893         * m4/exponentl.m4: New file.
58894         * modules/isnanf: Use new file m4/exponentf.m4.
58895         * modules/isnand: Use new file m4/exponentd.m4.
58896         * modules/isnanl: Use new file m4/exponentl.m4.
58897
58898 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
58899
58900         mktime.c: normalize tp->tm_isdst value to -1/0/1.
58901         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
58902         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
58903         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
58904
58905         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
58906         readlink on platforms without PATH_MAX.
58907
58908 2008-07-21  Eric Blake  <ebb9@byu.net>
58909
58910         Warn, not fail, on stale version.
58911         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58912
58913         Don't allow installation with stale devel version number.
58914         * top/GNUmakefile (_is-install-target): New macro.
58915         (_curr-ver): Forbid installation with stale version number.
58916
58917 2008-07-20  Bruno Haible  <bruno@clisp.org>
58918
58919         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58920         TESTS_ENVIRONMENT.
58921         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58922
58923 2008-07-20  Bruno Haible  <bruno@clisp.org>
58924
58925         * lib/c-stack.h (c_stack_action): Add documentation.
58926         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58927
58928 2008-07-20  Bruno Haible  <bruno@clisp.org>
58929
58930         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58931         * modules/readlink (License): Likewise.
58932
58933 2008-07-17  Eric Blake  <ebb9@byu.net>
58934
58935         * modules/c-stack (Link): Fix typo.
58936
58937         Make c-stack use libsigsegv, when available.
58938         * modules/c-stack (Depends-on): Add libsigsegv.
58939         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58940         needed.
58941         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58942         (segv_handler, overflow_handler, c_stack_action)
58943         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58944         implementation when libsigsegv is available, but only when using
58945         the library is necessary.
58946         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58947         comment, explaining why XSI check fails on Linux.
58948         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58949         * tests/test-c-stack2.sh: Tweak skip message.
58950         * NEWS: Document new link-time requirements.
58951
58952 2008-07-16  Eric Blake  <ebb9@byu.net>
58953
58954         c-stack: Expose false positives when not using libsigsegv.
58955         * modules/c-stack-tests (Files): Expand test.
58956         * tests/test-c-stack.c (main): Add means to conditionally trigger
58957         non-overflow SIGSEGV.
58958         * tests/test-c-stack2.sh: New file.
58959
58960 2008-07-14  Bruno Haible  <bruno@clisp.org>
58961
58962         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58963         Reported by Eric Blake.
58964
58965 2008-07-14  Sam Steingold  <sds@gnu.org>
58966             Bruno Haible  <bruno@clisp.org>
58967
58968         New module libsigsegv.
58969         * modules/libsigsegv: New file.
58970         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58971         modifications.
58972         * MODULES.html.sh (Signal handling): New section.
58973
58974 2008-07-14  Bruno Haible  <bruno@clisp.org>
58975
58976         * modules/unictype/ctype-* (Description): Add the word "function".
58977         Improves the resulting doc in MODULES.html.
58978
58979 2008-07-12  Ben Pfaff  <blp@gnu.org>
58980
58981         Add longlong module.
58982         * modules/longlong: New file.
58983
58984 2008-07-12  Bruno Haible  <bruno@clisp.org>
58985
58986         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58987         to empty.
58988
58989 2008-07-10  Ben Pfaff  <blp@gnu.org>
58990
58991         Add isnan module.
58992         * doc/posix-functions/isnan.texi: Mention new module.
58993         * lib/math.in.h: Define isnan macro if we have decided to replace
58994         it.
58995         * m4/isnan.m4: New file.
58996         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58997         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58998         also.
58999         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59000         redundancy.
59001         * m4/math_h.m4: Initialize and substitute variables for isnan
59002         module.
59003         * modules/isnan: New file.
59004         * modules/isnan-tests: New file.
59005         * modules/math: Add substitutions for new module.
59006         * tests/test-isnan.c: New file.
59007         * MODULES.html.sh: Mention new module.
59008
59009 2008-07-10  Ben Pfaff  <blp@gnu.org>
59010
59011         Add isnanf module.
59012         * lib/isnanf.m4: New file.
59013         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59014         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59015         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59016         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59017         * modules/isnanf: New file.
59018         * modules/isnanf-tests: New file.
59019         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59020         files.
59021         * tests/test-isnanf-nolibm.c: factored most of its contents into
59022         new file tests/test-isnanf.h.
59023         * tests/test-isnanf.h: New file.
59024         * tests/test-isnanf.c: New file.
59025         * MODULES.html.sh: Mention new module.
59026         * doc/glibc-functions/isnanf.texi: Mention new module.
59027
59028 2008-07-10  Ben Pfaff  <blp@gnu.org>
59029
59030         Add isnand module.
59031         * lib/isnand.h: New file.
59032         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59033         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59034         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59035         functionality also.
59036         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59037         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59038         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59039         * modules/isnand: New file.
59040         * modules/isnand-tests: New file.
59041         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59042         files.
59043         * tests/test-isnand-nolibm.c: factored most of its contents into
59044         new file tests/test-isnand.h.
59045         * tests/test-isnand.h: New file.
59046         * tests/test-isnand.c: New file.
59047         * MODULES.html.sh: Mention new module.
59048
59049 2008-07-10  Ben Pfaff  <blp@gnu.org>
59050
59051         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59052         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59053         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59054         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59055         * modules/isnanf-nolibm: Update references to renamed files.
59056         * modules/isnand-nolibm: Likewise.
59057         * modules/isnanf-nolibm-tests: Likewise.
59058         * modules/isnand-nolibm-tests: Likewise.
59059         * lib/frexp.c: Likewise.
59060         * lib/isfinite.c: Likewise.
59061         * lib/signbitd.c: Likewise.
59062         * lib/signbitf.c: Likewise.
59063         * lib/vasnprintf.c: Likewise.
59064         * tests/test-ceilf1.c: Likewise.
59065         * tests/test-ceilf2.c: Likewise.
59066         * tests/test-floorf1.c: Likewise.
59067         * tests/test-floorf2.c: Likewise.
59068         * tests/test-frexp.c: Likewise.
59069         * tests/test-round1.c: Likewise.
59070         * tests/test-round2.c: Likewise.
59071         * tests/test-roundf1.c: Likewise.
59072         * tests/test-strtod.c: Likewise.
59073         * tests/test-trunc1.c: Likewise.
59074         * tests/test-trunc2.c: Likewise.
59075         * tests/test-truncf1.c: Likewise.
59076         * tests/test-truncf2.c: Likewise.
59077         * NEWS: Mention the renamed header files.
59078
59079 2008-07-11  Jim Meyering  <meyering@redhat.com>
59080
59081         vc-list-files: make the last-resort awk code more portable
59082         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59083         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59084         does not support it.
59085
59086 2008-07-10  Eric Blake  <ebb9@byu.net>
59087
59088         Work with tar's bootstrap.
59089         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59090         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59091         an m4 comment.
59092
59093 2008-07-09  Jim Meyering  <meyering@redhat.com>
59094
59095         posix-shell.m4: fix typo that made this test malfunction
59096         * m4/posix-shell.m4: Remove capitalization in variable name.
59097
59098 2008-07-08  Bruno Haible  <bruno@clisp.org>
59099
59100         * m4/onceonly.m4: Update comments.
59101         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59102
59103 2008-07-04  Jim Meyering  <meyering@redhat.com>
59104
59105         * users.txt: Add vc-dwim.
59106         (bison, coreutils): Use the gitweb URL.
59107
59108 2008-07-03  Jim Meyering  <meyering@redhat.com>
59109
59110         * users.txt: Add libffcall.  From Sam Steingold.
59111
59112 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
59113
59114         getdate.y: do not ignore TZ with relative day, month or year offset
59115         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59116         relative-date-handling, since otherwise, the latter would clobber the
59117         sole output (an updated Start value) of the tz-handling block.
59118         * tests/test-getdate.c: Tests for the fix
59119
59120 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59121
59122         Recognize 'foo_LIBRARIES += libgnu.a'.
59123         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59124         makefile snippet has already specified an installation location,
59125         also using '+='.
59126
59127 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
59128
59129         getdate.y: factor out common actions
59130         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59131         Use them in place of open-coded actions.
59132
59133 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59134
59135         Add self-test for getdate module.
59136         * modules/getdate-tests: New file.
59137         * tests/test-getdate.c: New file.
59138
59139 2008-06-29  Bruno Haible  <bruno@clisp.org>
59140
59141         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59142         .gitignore.
59143         Reported by Sylvain Beucler <beuc@beuc.net>.
59144
59145 2008-06-29  Bruno Haible  <bruno@clisp.org>
59146
59147         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59148         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59149
59150 2008-06-29  Bruno Haible  <bruno@clisp.org>
59151
59152         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59153         EXTRA_DIST.
59154         Reported by Sylvain Beucler <beuc@beuc.net>.
59155
59156 2008-06-26  Jim Meyering  <meyering@redhat.com>
59157
59158         make several modules depend on the "open" module
59159         This provides slightly increased consistency when opening-for-write
59160         the name of a non-directory spelled with a trailing slash.
59161         * modules/chdir-safer: Likewise.
59162         * modules/chown: Likewise.
59163         * modules/clean-temp: Likewise.
59164         * modules/copy-file: Likewise.
59165         * modules/fchdir: Likewise.
59166         * modules/fcntl-safer: Likewise.
59167         * modules/pipe: Likewise.
59168         * modules/utime: Likewise.
59169         Prompted by Eric Blake and Bruno Haible.
59170
59171 2008-06-24  Andreas Schwab  <schwab@suse.de>
59172
59173         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59174         literals can be used as initializers for global variables.
59175
59176 2008-06-23  Eric Blake  <ebb9@byu.net>
59177
59178         Make gnulib-cache.m4 easier to diff.
59179         * gnulib-tool (func_import): Allow newlines when reading cached
59180         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59181
59182 2008-06-23  Bruno Haible  <bruno@clisp.org>
59183
59184         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59185         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59186         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59187         m4/signalblocking.m4.
59188         (gl_PREREQ_SIGACTION): Don't invoke it.
59189         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59190         gl_PREREQ_SIG_HANDLER_H.
59191         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59192         Don't check for sigaction here.
59193
59194 2008-06-23  Bruno Haible  <bruno@clisp.org>
59195
59196         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59197         (install_handlers): Don't set the SA_RESETHAND flag.
59198
59199 2008-06-23  Bruno Haible  <bruno@clisp.org>
59200
59201         * m4/sigaction.m4: Comment fixes.
59202         * lib/signal.in.h: Likewise.
59203
59204 2008-06-23  Eric Blake  <ebb9@byu.net>
59205
59206         Fix typo.
59207         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59208
59209         Avoid SA_ namespace.
59210         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59211         Reported by Ralf Wildenhues.
59212
59213         Avoid test failure due to SA_RESTORER.
59214         * tests/test-sigaction.c (SA_MASK): New macro.
59215         (main): Avoid failing due to extension flags being set.
59216         Reported by Jim Meyering.
59217
59218         Revert use of sig-handler.h in sigprocmask.c.
59219         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59220         it requires the existence of struct sigaction.
59221         * lib/sigprocmask.c (handler_t): Restore typedef.
59222         (rpl_signal, old_handlers): Use local type.
59223
59224 2008-06-22  Bruno Haible  <bruno@clisp.org>
59225
59226         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59227         conditionally.
59228         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59229
59230 2008-06-22  Bruno Haible  <bruno@clisp.org>
59231
59232         * doc/posix-functions/siginterrupt.texi: Move note.
59233
59234         * lib/signal.in.h (SA_RESTART): New macro.
59235         * lib/sigaction.c: Update comment.
59236
59237         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59238
59239         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59240         (gl_PREREQ_SIGPROCMASK): Invoke it.
59241         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59242
59243         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59244
59245         * lib/sigprocmask.c: Update a comment.
59246
59247 2008-06-21  Eric Blake  <ebb9@byu.net>
59248
59249         Use sigaction module rather than signal().
59250         * modules/c-stack (Depends-on): Add sigaction.
59251         * modules/fatal-signal (Depends-on): Likewise.
59252         * modules/nanosleep (Depends-on): Likewise.
59253         * modules/sigprocmask (Files): Add sig-handler.h.
59254         * modules/sigaction (Files): Likewise.
59255         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59256         Eggert.
59257         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59258         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59259         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59260         (init_fatal_signals): Likewise.
59261         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59262         (siginterrupt): Delete fallback.
59263         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59264         instead.
59265         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59266         siginterrupt.
59267
59268         New module sigaction, for mingw.
59269         * modules/sigaction: New module...
59270         * modules/sigaction-tests: ...and its test.
59271         * m4/sigaction.m4: New file.
59272         * lib/sigaction.c: Likewise.
59273         * tests/test-sigaction.c: Likewise.
59274         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59275         * modules/signal (Makefile.am): Likewise.
59276         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59277         needed.
59278         * doc/posix-headers/signal.texi (signal.h): Mention provided
59279         types.
59280         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59281         that sigaction is preferable.
59282         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59283         module.
59284         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59285         sigaction.
59286
59287         Improve robustness of sigprocmask by overriding signal.
59288         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59289         is in use.
59290         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59291         (SIGKILL, SIGSTOP): Provide fallbacks.
59292         (rpl_signal): Implement.
59293         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59294         signal can be called inside handlers.
59295
59296         Fix nanosleep module on mingw.
59297         * modules/nanosleep (Depends-on): Add sys_select.
59298         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59299
59300         Fix licensing of sigprocmask.
59301         * modules/raise (License): Relicense as LGPL.
59302
59303 2008-06-21  Bruno Haible  <bruno@clisp.org>
59304
59305         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59306         result if it contains question marks.
59307         Reported by Michael Geng <linux@michaelgeng.de>.
59308
59309 2008-06-19  Bruno Haible  <bruno@clisp.org>
59310
59311         Fix CVS-ism.
59312         * doc/gnulib.texi: Include updated-stamp.texi.
59313         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59314         (updated-stamp.texi): New rule.
59315         (gnulib.info): Depend on it.
59316         * doc/.gitignore: Add updated-stamp.texi.
59317         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59318
59319 2008-06-19  Bruno Haible  <bruno@clisp.org>
59320
59321         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59322         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59323
59324 2008-06-19  Eric Blake  <ebb9@byu.net>
59325
59326         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59327         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59328         Reported by Stepan Kasal.
59329
59330 2008-06-18  Bruno Haible  <bruno@clisp.org>
59331
59332         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59333         Reported by Eric Blake.
59334
59335 2008-06-18  Eric Blake  <ebb9@byu.net>
59336
59337         Work around cygwin 1.5.25 strsignal bug.
59338         * tests/test-strsignal.c: Allow for const char *.
59339         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59340
59341 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59342
59343         * users.txt: Update URL to article and add author/date
59344         information.
59345
59346 2008-06-17  Bruno Haible  <bruno@clisp.org>
59347
59348         New macro gl_DISABLE_THREADS.
59349         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59350         if the user did not pass --enable-threads or --disable-threads option.
59351         (gl_DISABLE_THREADS): New macro.
59352         Reported by Eric Blake <ebb9@byu.net>.
59353
59354 2008-06-17  Bruno Haible  <bruno@clisp.org>
59355
59356         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59357         when the macro ignores it.
59358         Based on a patch by Eric Blake <ebb9@byu.net>.
59359
59360 2008-06-17  Bruno Haible  <bruno@clisp.org>
59361
59362         * modules/tls (License): Change to LGPLv2+.
59363         Reported by Eric Blake.
59364
59365 2008-06-17  Eric Blake  <ebb9@byu.net>
59366
59367         Simplify c-stack prerequisites.
59368         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59369         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59370         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59371         check.
59372         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59373         <sys/resource.h>.
59374
59375         Move c-stack test into testsuite.
59376         * modules/c-stack-tests: New file.
59377         * lib/c-stack.c [DEBUG]: Move test program...
59378         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59379         fail test if sigaltstack is lacking.
59380         * tests/test-c-stack.sh: New driver file.
59381
59382 2008-06-16  Eric Blake  <ebb9@byu.net>
59383
59384         Use raise module consistently.
59385         * modules/fatal-signal (Depends-on): Add raise.
59386         * modules/sigprocmask (Depends-on): Likewise.
59387         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59388         * lib/sigprocmask.c (sigprocmask): Likewise.
59389         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59390         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59391
59392         Fix compliance bug in sigpending.
59393         * lib/sigprocmask.c (sigpending): Return pending array via
59394         parameter, not return value.
59395
59396 2008-06-14  Eric Blake  <ebb9@byu.net>
59397
59398         Improve obstack-printf test code.
59399         * tests/test-obstack-printf.c (test_function): Fix comment, and
59400         simplify usage of obstack_* in macros.  Add a test for coverage.
59401         Reported by Bruno Haible.
59402
59403 2008-06-14  Bruno Haible  <bruno@clisp.org>
59404
59405         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59406         array size as a constant, not as a const variable.
59407         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59408         AC_USE_SYSTEM_EXTENSIONS.
59409         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59410         Test whether the obstack_printf function actually exists.
59411         * modules/obstack-printf (Depends-on): Add extensions.
59412         (Include): Remove obstack.h.
59413         * modules/obstack-printf-posix (Depends-on): Add extensions.
59414         (Include): Remove obstack.h.
59415
59416 2008-06-13  Eric Blake  <ebb9@byu.net>
59417
59418         Add obstack-printf and obstack-printf-posix modules.
59419         * modules/obstack-printf: New file.
59420         * modules/obstack-printf-posix: Likewise.
59421         * MODULES.html.sh (Misc): Mention them.
59422         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59423         Likewise.
59424         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59425         Likewise.
59426         * modules/stdio (Makefile.am): Accomodate new modules.
59427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59428         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59429         Declare.
59430         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59431         functions.
59432         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59433         (gl_REPLACE_OBSTACK_PRINTF): New macros
59434         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59435         * tests/test-obstack-printf.c: New file.
59436         * modules/obstack-printf-tests: Likewise.
59437         * modules/obstack-printf-posix-tests: Likewise.
59438
59439 2008-06-11  Bruno Haible  <bruno@clisp.org>
59440
59441         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59442         * lib/open.c: Include errno.h.
59443         (open): Fail when attempting to write to a file that has a trailing
59444         slash.
59445         * tests/test-open.c (main): Test against trailing slash bug.
59446         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59447
59448 2008-06-10  Bruno Haible  <bruno@clisp.org>
59449
59450         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59451         for $? to work inside the trap command, with various /bin/sh-s.
59452         * tests/test-vc-list-files-cvs.sh: Likewise.
59453
59454 2008-06-10  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/acl-internal.h: Don't include gettext.h here.
59457         * lib/set-mode-acl.c: Include gettext.h here.
59458         * lib/copy-acl.c: Likewise.
59459
59460 2008-06-10  Bruno Haible  <bruno@clisp.org>
59461
59462         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59463         * lib/wait-process.c (wait_subprocess): Likewise.
59464         * lib/execute.h (execute): Add termsigp argument.
59465         * lib/execute.c (execute): Likewise.
59466         * lib/csharpcomp.c (compile_csharp_using_pnet,
59467         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59468         * lib/csharpexec.c (execute_csharp_using_pnet,
59469         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59470         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59471         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59472         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59473         is_jikes_present): Update.
59474         * lib/javaexec.c (execute_java_class): Update.
59475         * lib/javaversion.c (execute_and_read_line): Update.
59476         * NEWS: Document the changes.
59477         Reported by Eric Blake.
59478
59479 2008-06-10  Eric Blake  <ebb9@byu.net>
59480
59481         Add missing include.
59482         * tests/test-strstr.c (includes): Add <signal.h>.
59483         * tests/test-strcasestr.c (includes): Likewise.
59484         * tests/test-memmem.c (includes): Likewise.
59485
59486 2008-06-10  Bruno Haible  <bruno@clisp.org>
59487
59488         * lib/wait-process.c (wait_subprocess): Add an assertion.
59489
59490 2008-06-10  Bruno Haible  <bruno@clisp.org>
59491
59492         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59493
59494 2008-06-10  Bruno Haible  <bruno@clisp.org>
59495
59496         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59497         using alarm().
59498         * tests/test-strcasestr.c (main): Likewise.
59499         * tests/test-strstr.c (main): Likewise.
59500
59501 2008-06-09  Bruno Haible  <bruno@clisp.org>
59502
59503         Work around the Solaris 10 ACE ACLs ABI change.
59504         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59505         declare if ACL_NO_TRIVIAL is present.
59506         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59507         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59508         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59509         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59510         define if ACL_NO_TRIVIAL is present.
59511         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59512         and use the current ABI.
59513         (file_has_acl): Use same #if condition as elsewhere.
59514         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59515         in use, and use the current ABI.
59516         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59517         Reported by Jim Meyering.
59518
59519 2008-06-09  Eric Blake  <ebb9@byu.net>
59520
59521         Work around environments that (stupidly) ignore SIGALRM.
59522         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59523         before using alarm().
59524         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59525         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59526         Reported by Ian Beckwith <ianb@erislabs.net>.
59527
59528         Produce autobuild blurb earlier in log.
59529         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59530
59531 2008-06-09  Jim Meyering  <meyering@redhat.com>
59532         and OndÅ™ej Vašík  <ovasik@redhat.com>
59533
59534         utimens.c: correct kernel bug work-around
59535         OndÅ™ej Vašík found that the invalid return value of 280 indicates
59536         failure, not success, and the kernel bug we're trying to work
59537         around affects not just the utimensat call, but also the fallback
59538         futimens call.
59539         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59540         not success.
59541         [HAVE_FUTIMENS]: Use the same work-around, here.
59542
59543 2008-06-09  Jim Meyering  <meyering@redhat.com>
59544
59545         add more guards around definition of ACE_-related code
59546         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59547         ALLOW and ACE_OWNER are also defined.
59548
59549 2008-06-08  Bruno Haible  <bruno@clisp.org>
59550
59551         * lib/acl-internal.h: Add me as co-author.
59552         * lib/file-has-acl.c: Likewise.
59553         * lib/set-mode-acl.c: Likewise.
59554         * lib/copy-acl.c: Likewise.
59555
59556 2008-06-08  Bruno Haible  <bruno@clisp.org>
59557
59558         Add support for AIX ACLs.
59559         * lib/acl-internal.h (acl_nontrivial): New declaration.
59560         * lib/file-has-acl.c (acl_nontrivial): New function.
59561         (file_has_acl): Add implementation using AIX 4 ACL API.
59562         * lib/set-mode-acl.c (qset_acl): Likewise.
59563         * lib/copy-acl.c (qcopy_acl): Likewise.
59564
59565 2008-06-08  Bruno Haible  <bruno@clisp.org>
59566
59567         Add support for HP-UX ACLs.
59568         * lib/acl-internal.h (acl_nontrivial): New declaration.
59569         * lib/file-has-acl.c (acl_nontrivial): New function.
59570         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59571         * lib/set-mode-acl.c (qset_acl): Likewise.
59572         * lib/copy-acl.c (qcopy_acl): Likewise.
59573
59574 2008-06-08  Bruno Haible  <bruno@clisp.org>
59575
59576         Add support for Cygwin ACLs.
59577         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59578         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59579         the chmod_or_fchmod call.
59580         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59581
59582 2008-06-08  Bruno Haible  <bruno@clisp.org>
59583
59584         Fix bug with setuid modes in Solaris 10+ code.
59585         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59586         succeeded, when the mode contains some special bits.
59587
59588 2008-06-08  Bruno Haible  <bruno@clisp.org>
59589
59590         Add support for Solaris 7..10 ACLs.
59591         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59592         declarations.
59593         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59594         functions.
59595         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59596         * lib/set-mode-acl.c (qset_acl): Likewise.
59597         * lib/copy-acl.c (qcopy_acl): Likewise.
59598
59599 2008-06-08  Bruno Haible  <bruno@clisp.org>
59600
59601         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59602         declaration.
59603         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59604         (acl_access_nontrivial): Remove MacOS X case.
59605         (file_has_acl): Use acl_extended_nontrivial.
59606         * lib/copy-acl.c (qcopy_acl): Likewise.
59607
59608 2008-06-08  Bruno Haible  <bruno@clisp.org>
59609
59610         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59611
59612 2008-06-08  Jim Meyering  <meyering@redhat.com>
59613
59614         * modules/acl (Maintainer): Add Bruno Haible.
59615
59616 2008-06-07  Bruno Haible  <bruno@clisp.org>
59617
59618         Improve support for Tru64 ACLs.
59619         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59620         ACL on OSF/1.
59621
59622 2008-06-07  Bruno Haible  <bruno@clisp.org>
59623
59624         Add support for MacOS X ACLs.
59625         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59626         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59627         * lib/set-mode-acl.c (qset_acl): Likewise.
59628         * lib/copy-acl.c (qcopy_acl): Likewise.
59629
59630 2008-06-07  Bruno Haible  <bruno@clisp.org>
59631
59632         Fix memory leak introduced on 2008-05-22.
59633         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59634         use.
59635
59636 2008-06-07  Bruno Haible  <bruno@clisp.org>
59637
59638         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59639         to construct an empty ACL.
59640
59641 2008-06-07  Bruno Haible  <bruno@clisp.org>
59642
59643         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59644         precisely.
59645         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59646
59647 2008-06-07  Bruno Haible  <bruno@clisp.org>
59648
59649         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59650         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59651
59652 2008-06-07  Bruno Haible  <bruno@clisp.org>
59653
59654         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59655         regardless of POSIX.
59656         * doc/posix-functions/_longjmp.texi: Likewise.
59657         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59658         SystemV platform in this case.
59659
59660 2008-06-06  Eric Blake  <ebb9@byu.net>
59661
59662         Document abort() bugs.
59663         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59664
59665         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59666         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59667         sigsetjmp.
59668         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59669         siglongjmp, but only as a macro.
59670         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59671         is obsolete.
59672         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59673
59674         Tweak documentation to cover cygwin argz bugs.
59675         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59676         argz bug fix; no code change needed since no cygwin releases
59677         occurred between the last fix and the bug being tested.
59678         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59679         module and recently fixed cygwin bugs.
59680         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59681         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59682         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59683         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59684         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59685         Likewise.
59686         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59687         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59688         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59689         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59690         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59691         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59692         Likewise.
59693
59694         Avoid gcc warning on cygwin.
59695         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59696         !ACL_NO_TRIVIAL]: Avoid unused variable.
59697
59698 2008-06-05  Eric Blake  <ebb9@byu.net>
59699
59700         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59701         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59702         git-version-gen fails to come up with a version.
59703         Reported by Simon Josefsson.
59704
59705 2008-06-05  Jim Meyering  <meyering@redhat.com>
59706             Paul Eggert  <eggert@cs.ucla.edu>
59707
59708         utimens.c: work around a probable Linux kernel bug
59709         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59710         appears to be a kernel bug that causes utimensat to return 280
59711         instead of 0, indicating success.
59712
59713 2008-06-04  Bruno Haible  <bruno@clisp.org>
59714
59715         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59716         2008-06-01 commit.
59717
59718 2008-06-04  Bruno Haible  <bruno@clisp.org>
59719
59720         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59721         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59722         (file_has_acl): Use it. Save errno afterwards.
59723         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59724
59725 2008-06-03  Bruno Haible  <bruno@clisp.org>
59726
59727         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59728         draft code. Simplify #ifs.
59729         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59730         Put Solaris code after POSIX-draft code. Fix comments regarding
59731         Solaris 10, HP-UX. Mention Cygwin.
59732         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59733
59734 2008-06-03  Eric Blake  <ebb9@byu.net>
59735
59736         Provide fallback for older kernels.
59737         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59738         Provide runtime fallback if kernel lacks support.
59739         Reported by Mike Frysinger.
59740
59741 2008-06-02  Bruno Haible  <bruno@clisp.org>
59742
59743         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59744         it exists.
59745
59746 2008-06-02  Bruno Haible  <bruno@clisp.org>
59747
59748         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59749         * lib/copy-acl.c (qcopy_acl): Update comment.
59750
59751 2008-06-02  Bruno Haible  <bruno@clisp.org>
59752
59753         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59754         like ACL APIs.
59755
59756 2008-06-02  Bruno Haible  <bruno@clisp.org>
59757
59758         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59759         * tests/test-set-mode-acl.sh: Likewise.
59760         * tests/test-copy-acl.sh: Likewise.
59761         * tests/test-copy-file.sh: Likewise.
59762
59763 2008-06-02  Bruno Haible  <bruno@clisp.org>
59764
59765         * tests/test-file-has-acl.sh: Remove unused code.
59766
59767 2008-06-01  Bruno Haible  <bruno@clisp.org>
59768
59769         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59770         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59771         messages.
59772         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59773
59774 2008-06-01  Bruno Haible  <bruno@clisp.org>
59775
59776         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59777         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59778         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59779         APIs.
59780         * modules/acl-tests (configure.ac): Remove tests now contained in
59781         m4/acl.m4.
59782
59783 2008-06-02  Jim Meyering  <meyering@redhat.com>
59784
59785         announce-gen: use a better key-server host name
59786         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59787         it may be more consistently reliable.  Suggested by Werner Koch
59788         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59789
59790 2008-06-01  Bruno Haible  <bruno@clisp.org>
59791
59792         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59793         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59794
59795 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59796
59797         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59798
59799 2008-06-01  Bruno Haible  <bruno@clisp.org>
59800
59801         New ACL tests.
59802         * tests/test-file-has-acl.sh: New file.
59803         * tests/test-file-has-acl.c: New file.
59804         * tests/test-set-mode-acl.sh: New file.
59805         * tests/test-set-mode-acl.c: New file.
59806         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59807         * tests/test-copy-acl.c: New file.
59808         * modules/acl-tests: New file, based on modules/copy-file-tests.
59809         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59810         (Depends-on): Add acl-tests.
59811         (configure.ac): Remove checks.
59812         (Makefile.am): Don't create test-sameacls program here any more.
59813
59814 2008-06-01  Bruno Haible  <bruno@clisp.org>
59815
59816         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59817         * tests/test-sameacls.c: Include progname.h.
59818         (main): Invoke set_program_name. Portability fixes for MacOS X,
59819         Solaris, HP-UX.
59820
59821 2008-06-01  Bruno Haible  <bruno@clisp.org>
59822
59823         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59824         function.
59825         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59826
59827 2008-06-01  Bruno Haible  <bruno@clisp.org>
59828
59829         * modules/rpmatch (Depends-on): Add strdup.
59830
59831 2008-06-01  Bruno Haible  <bruno@clisp.org>
59832
59833         * lib/pipe.c: Include unistd-safer.h.
59834         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59835         * modules/pipe (Depends-on): Add unistd-safer.
59836
59837 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59838
59839         * modules/autobuild (configure.ac): Call AB_INIT.
59840
59841 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59842
59843         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59844         Suggested by Bruno Haible <bruno@clisp.org>.
59845
59846 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59847
59848         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59849         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59850         <bruno@clisp.org>.
59851
59852 2008-05-29  Eric Blake  <ebb9@byu.net>
59853
59854         Prefer new POSIX 200x interfaces over futimesat.
59855         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59856         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59857         when available.
59858         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59859
59860 2008-05-28  Bruno Haible  <bruno@clisp.org>
59861
59862         * modules/stpcpy (License): Change to LGPLv2+.
59863         Requested by David Lutterkort <dlutter@redhat.com>.
59864
59865 2008-05-27  Bruno Haible  <bruno@clisp.org>
59866
59867         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
59868         current mingw.
59869         Reported by Jose E. Marchesi <jemarch@gnu.org>.
59870
59871 2008-05-27  Bruno Haible  <bruno@clisp.org>
59872
59873         * modules/iconv_open (Link): New section, from module 'iconv'.
59874         * modules/striconv (Link): Likewise.
59875         * modules/striconveh (Link): Likewise.
59876         * modules/xstriconv (Link): Likewise.
59877         * modules/unicodeio (Link): Likewise.
59878         * modules/propername (Link): Likewise.
59879         Reported by Jim Meyering.
59880
59881 2008-05-26  Jim Meyering  <meyering@redhat.com>
59882
59883         sha256: do not artificially restrict buffer length to be < 2^32
59884         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
59885         uint32_t to size_t.
59886         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
59887         to match.
59888
59889         avoid unaligned access errors, e.g., on sparc
59890         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
59891         direct access through a possibly-unaligned uint64* pointer.
59892         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
59893         direct access through a possibly-unaligned uint32* pointer.
59894         Prompted by this patch from Tom "spot" Callaway:
59895         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
59896
59897         sha512.c: fix typo in comment
59898         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
59899
59900 2008-05-25  Bruno Haible  <bruno@clisp.org>
59901
59902         * lib/set-mode-acl.c: Renamed from lib/acl.c.
59903         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
59904         (Makefile.am): Update lib_SOURCES.
59905
59906 2008-05-25  Bruno Haible  <bruno@clisp.org>
59907
59908         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
59909
59910 2008-05-25  Jim Meyering  <meyering@redhat.com>
59911
59912         useless-if-before-free: freed expr may have white-space differences
59913         * build-aux/useless-if-before-free: Recognize cases in which the
59914         freed expression differs from the tested one in embedded white
59915         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59916         $1 was used, so we can't make any regexp shy.  Improved tests now
59917         detect this.
59918
59919         useless-if-before-free: accept white space in the expression.
59920         * build-aux/useless-if-before-free: For now, any white space
59921         in the expression must be identical in the free argument.
59922
59923         useless-if-before-free: efficiency tweak
59924         * build-aux/useless-if-before-free: Make the expression-matching
59925         regexp "shy".
59926         Make the *outer* regexp shy, not the expr-matching one.
59927
59928         update code-in-comment to accept cast of free arg
59929         * build-aux/useless-if-before-free: Update regexp.
59930
59931 2008-05-25  Bruno Haible  <bruno@clisp.org>
59932
59933         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59934         * modules/copy-file-tests (Files, Makefile.am): Update.
59935         * tests/test-copy-file.c (func_test_copy): Update.
59936
59937 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59938
59939         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59940
59941 2008-05-23  Bruno Haible  <bruno@clisp.org>
59942
59943         Improve support for ACLs on OSF/1.
59944         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59945         Remove fallback for unknown flavors of ACLs.
59946
59947 2008-05-22  Bruno Haible  <bruno@clisp.org>
59948
59949         Add support for ACLs on OSF/1.
59950         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59951         replacements.
59952         (acl_free_text): New macro fallback.
59953         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59954         acl_free.
59955         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59956         acl_free_text function. Require AC_C_INLINE.
59957
59958 2008-05-22  Bruno Haible  <bruno@clisp.org>
59959
59960         Make copy_acl work on MacOS X 10.5.
59961         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59962         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59963         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59964         If MODE_INSIDE_ACL, don't assume that every system has the same text
59965         representation for ACLs as FreeBSD.
59966         * lib/copy-acl.c (copy_acl): Add support for platforms with
59967         !MODE_INSIDE_ACL.
59968         * lib/file-has-acl.c (file_has_acl): Likewise.
59969         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59970         FreeBSD, MacOS X, or IRIX, respectively.
59971
59972 2008-05-22  Bruno Haible  <bruno@clisp.org>
59973
59974         * lib/acl.h: Don't include <sys/acl.h>.
59975         (GETACLCNT): Move fallback to lib/acl-internal.h.
59976         * lib/acl-internal.h: Include <sys/acl.h> here.
59977         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59978
59979 2008-05-22  Bruno Haible  <bruno@clisp.org>
59980
59981         Split off copy_acl function to separate file.
59982         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59983         * lib/acl.c (copy_acl): Moved function to separate file.
59984         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59985         * modules/acl (Files): Add lib/copy-acl.c.
59986         (Makefiles.am): Augment lib_SOURCES.
59987
59988 2008-05-22  Bruno Haible  <bruno@clisp.org>
59989
59990         * modules/copy-file-tests: New file.
59991         * tests/test-copy-file.sh: New file.
59992         * tests/test-copy-file.c: New file.
59993         * tests/test-copy-file-sameacls.c: New file.
59994
59995 2008-05-22  Eric Blake  <ebb9@byu.net>
59996
59997         Avoid gcc warning.
59998         * tests/test-memcmp.c (main): Pass NULL indirectly.
59999
60000 2008-05-21  Bruno Haible  <bruno@clisp.org>
60001
60002         Add reference doc about ACLs.
60003         * doc/acl-resources.txt: New file.
60004         * doc/acl-cygwin.txt: New file.
60005
60006 2008-05-21  Bruno Haible  <bruno@clisp.org>
60007
60008         Avoid one more warning from gcc.
60009         * lib/vasnprintf.c (IF_LINT): Update comments.
60010         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60011
60012 2008-05-21  Jim Meyering  <meyering@redhat.com>
60013
60014         avoid a warning from gcc
60015         * lib/vasnprintf.c (IF_LINT): Define.
60016         (scale10_round_decimal_long_double):
60017         Use it to avoid a "may be used uninitialized" warning.
60018         (scale10_round_decimal_double): Likewise.
60019
60020 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60021
60022         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60023         declared.
60024
60025 2008-05-20  Bruno Haible  <bruno@clisp.org>
60026
60027         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60028         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60029
60030 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60031
60032         * modules/memcmp-tests: New file.
60033         * tests/test-memcmp.c: New file.
60034
60035 2008-05-19  Bruno Haible  <bruno@clisp.org>
60036
60037         * modules/propername (Notice, configure.ac): Put quoted "..." into
60038         --keyword option.
60039         * lib/propername.h: Update comments accordingly.
60040         Reported by Eric Blake.
60041
60042 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60043
60044         * modules/getpass-gnu (Depends-on): Add fseeko.
60045
60046 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60047
60048         * modules/base64-tests: New file.
60049
60050 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60051
60052         * lib/base64.c (base64_decode_ctx): If a decode context structure
60053         was passed in use it to ignore newlines.  If a context structure
60054         was _not_ passed in, continue to treat newlines as garbage (this
60055         is the historical behavior).  Formerly base64_decode.
60056         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60057         takes a decode context structure.
60058         * lib/base64.h (base64_decode): Macro for four-argument calls.
60059         (base64_decode_alloc): Likewise.
60060         * lib/base64.c (base64_decode_ctx): If a decode context structure
60061         was passed in use it to ignore newlines.  If a context structure
60062         was _not_ passed in, continue to treat newlines as garbage (this
60063         is the historical behavior).  Formerly base64_decode.
60064         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60065         takes a decode context structure.
60066         * lib/base64.h (base64_decode): Macro for four-argument calls.
60067         (base64_decode_alloc): Likewise.
60068
60069 2008-05-19  Jim Meyering  <meyering@redhat.com>
60070
60071         avoid a warning from gcc
60072         * lib/trim.c (IF_LINT): Define.
60073         (trim2): Use it to avoid a "may be used uninitialized" warning.
60074
60075         Fix doc typo.
60076         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60077
60078 2008-05-19  Bruno Haible  <bruno@clisp.org>
60079
60080         * doc/glibc-functions/getpass.texi: Document limits of other
60081         implementations.
60082
60083 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60084             Bruno Haible <bruno@clisp.org>
60085
60086         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60087
60088 2008-05-18  Bruno Haible  <bruno@clisp.org>
60089
60090         * modules/propername: New file, from GNU gettext.
60091         * lib/propername.h: New file, from GNU gettext.
60092         * lib/propername.c: New file, from GNU gettext.
60093         * MODULES.html.sh (Internationalization functions): Add propername.
60094
60095 2008-05-16  Jim Meyering  <meyering@redhat.com>
60096             Bruno Haible  <bruno@clisp.org>
60097
60098         Avoid some warnings from "gcc -Wshadow".
60099         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60100
60101 2008-05-15  Eric Blake  <ebb9@byu.net>
60102
60103         Extend previous patch to cygwin 1.7.0.
60104         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60105         fast implementation in cygwin >= 1.7.0.
60106         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60107         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60108
60109 2008-05-15  Bruno Haible  <bruno@clisp.org>
60110
60111         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60112         implementation in glibc >= 2.9.
60113         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60115
60116 2008-05-15  Bruno Haible  <bruno@clisp.org>
60117
60118         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60119         (Unicode string functions): Add unilbrk/*.
60120         Reported by Karl Berry.
60121
60122 2008-05-15  Eric Blake  <ebb9@byu.net>
60123
60124         Fix violation of <stdbool.h> replacement in regex.
60125         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60126         * lib/regexec.c (re_search_internal): Likewise.
60127         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60128
60129 2008-05-15  Jim Meyering  <meyering@redhat.com>
60130
60131         avoid distracting test output when git or cvs is not found
60132         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60133         * tests/test-vc-list-files-git.sh: Likewise.
60134
60135 2008-05-15  Eric Blake  <ebb9@byu.net>
60136
60137         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60138         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60139         glibc version.
60140         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60141         * doc/posix-functions/strstr.texi (strstr): Likewise.
60142         * lib/str-two-way.h (MAX): Sychronize with glibc.
60143
60144 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60145
60146         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60147         opr.ctx_type.
60148         (calc_first): Initialize constraint field.
60149         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60150         Fix grammar.
60151         (duplicate_node): Merge constraint field for all node types.
60152         (calc_eclosure_iter): Look at constraint field for all node types.
60153         * lib/regex_internal.c (create_cd_newstate): Don't look at
60154         opr.ctx_type.
60155
60156 2008-05-14  Bruno Haible  <bruno@clisp.org>
60157
60158         Help GCC to do better code generation.
60159         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60160         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60161         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60162         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60163         Declare with attribute 'malloc' if supported.
60164
60165 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60166
60167         use "echo STR|wc -c" rather than unportable "expr length STR"
60168         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60169         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60170
60171 2008-05-14  Jim Meyering  <meyering@redhat.com>
60172
60173         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60174         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60175         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60176         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60177         via Collin Lasse.
60178
60179 2008-05-14  Eric Blake  <ebb9@byu.net>
60180
60181         Avoid quadratic growth in gl_LIBSOURCES.
60182         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60183         Suggested by Bruno Haible.
60184
60185         Test xmemdup0.
60186         * modules/xmemdup0-tests: New file.
60187         * tests/test-xmemdup0.c: Likewise.
60188
60189 2008-05-13  Eric Blake  <ebb9@byu.net>
60190
60191         Split xmemdup0 into its own module.
60192         * modules/xmemdup0: New file.
60193         * lib/xmemdup0.h: Likewise.
60194         * lib/xmemdup0.c: Likewise.
60195         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60196         * lib/xalloc.h (xmemdup0): Remove.
60197         * lib/xmalloc.c (xmemdup0): Likewise.
60198
60199 2008-05-13  Eric Blake  <ebb9@byu.net>
60200             Bruno Haible  <bruno@clisp.org>
60201
60202         Reduce number of forks required during autoconf.
60203         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60204         and gl_LIBSOURCES_DIR.
60205         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60206         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60207         m4_syscmd per file.
60208         <m4_foreach_w>: Move...
60209         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60210
60211 2008-05-13  Eric Blake  <ebb9@byu.net>
60212
60213         * gnulib-tool: Fix various comment typos.
60214
60215 2008-05-12  Bruno Haible  <bruno@clisp.org>
60216
60217         Tailor the linebreaking algorithm.
60218         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60219
60220 2008-05-12  Bruno Haible  <bruno@clisp.org>
60221
60222         Update to Unicode 5.0.0.
60223         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60224         LBP_JV, LBP_JT. Redistribute values.
60225         (unilbrk_table): Change size.
60226         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60227         Unicode TR#14 rev. 22.
60228         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60229         LBP_JV, LBP_JT. Redistribute values.
60230         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60231         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60232         Update.
60233         * lib/unilbrk/lbrkprop1.h: Regenerated.
60234         * lib/unilbrk/lbrkprop2.h: Regenerated.
60235         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60236         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60237         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60238         Likewise.
60239         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60240         Likewise.
60241         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60242         result.
60243         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60244         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60245         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60246         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60247         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60248         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60249
60250 2008-05-11  Bruno Haible  <bruno@clisp.org>
60251
60252         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60253
60254 2008-05-11  Bruno Haible  <bruno@clisp.org>
60255
60256         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60257         * modules/unilbrk/gen-lbrk: New file.
60258
60259 2008-05-11  Bruno Haible  <bruno@clisp.org>
60260
60261         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60262         * m4/sha512.m4 (gl_SHA512): Likewise.
60263
60264 2008-05-11  Jim Meyering  <meyering@redhat.com>
60265
60266         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60267         * modules/crypto/sha256: New file.
60268         * modules/crypto/sha512: Likewise.
60269         * lib/sha256.c: Likewise.
60270         * lib/sha256.h: Likewise.
60271         * lib/sha512.c: Likewise.
60272         * lib/sha512.h: Likewise.
60273         * lib/u64.h: Likewise.
60274         * m4/sha256.m4: Likewise.
60275         * m4/sha512.m4: Likewise.
60276         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60277
60278 2008-05-10  Bruno Haible  <bruno@clisp.org>
60279
60280         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60281         (Input/Output <stdio.h>): Add xprintf.
60282         (Signal handling <signal.h>): Add strsignal.
60283         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60284         (Core language properties): Add func.
60285         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60286         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60287         strings.
60288         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60289         (Input/output): New section.
60290         (File system functions): Add openat-die, stat-macros.
60291         (Networking functions): Add sockets.
60292         (Unicode string functions): Add unictype/*.
60293         (Support for building libraries and executables): Add gperf.
60294         (Support for building documentation): Add agpl-3.0.
60295         (Misc): Add nocrash.
60296
60297 2008-05-10  Bruno Haible  <bruno@clisp.org>
60298
60299         * modules/unictype/gen-ctype: New file.
60300
60301 2008-05-10  Jim Meyering  <meyering@redhat.com>
60302
60303         Make chdir-safer.c more efficient on a system with no symlinks.
60304         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60305         also if ELOOP is zero.  Suggested by Bruno Haible.
60306
60307         Make chdir-safer.c slightly safer.
60308         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60309         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60310
60311         Avoid compile failure on systems without ELOOP (like mingw).
60312         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60313         Reported by Bruno Haible.
60314
60315 2008-05-10  Bruno Haible  <bruno@clisp.org>
60316
60317         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60318         (is_utf8_encoding): Use a case-insensitive comparison.
60319         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60320         streq.
60321
60322 2008-05-10  Bruno Haible  <bruno@clisp.org>
60323
60324         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60325         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60326         * lib/unilbrk/ulc-common.h (iconv_string_length,
60327         iconv_string_keeping_offsets): Remove declarations.
60328         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60329         Don't include <iconv.h>, streq.h, xsize.h.
60330         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60331         conversion.
60332         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60333         <iconv.h>, streq.h, xsize.h.
60334         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60335         conversion.
60336         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60337         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60338         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60339         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60340
60341 2008-05-10  Bruno Haible  <bruno@clisp.org>
60342
60343         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60344         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60345
60346         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60347         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60348
60349         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60350         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60351
60352         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60353         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60354
60355         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60356         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60357
60358         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60359         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60360
60361         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60362         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60363
60364         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60365         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60366
60367 2008-05-10  Bruno Haible  <bruno@clisp.org>
60368
60369         Split up 'linebreak' module.
60370         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60371         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60372         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60373         modifications.
60374         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60375         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60376         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60377         lib/linebreak.c.
60378         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60379         lib/linebreak.c.
60380         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60381         lib/linebreak.c.
60382         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60383         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60384         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60385         lib/linebreak.c.
60386         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60387         lib/linebreak.c.
60388         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60389         lib/linebreak.c.
60390         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60391         lib/linebreak.c.
60392         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60393         lib/linebreak.c.
60394         * modules/unilbrk/base: New file.
60395         * modules/unilbrk/tables: New file.
60396         * modules/unilbrk/u8-possible-linebreaks: New file.
60397         * modules/unilbrk/u16-possible-linebreaks: New file.
60398         * modules/unilbrk/u32-possible-linebreaks: New file.
60399         * modules/unilbrk/ulc-common: New file.
60400         * modules/unilbrk/ulc-possible-linebreaks: New file.
60401         * modules/unilbrk/u8-width-linebreaks: New file.
60402         * modules/unilbrk/u16-width-linebreaks: New file.
60403         * modules/unilbrk/u32-width-linebreaks: New file.
60404         * modules/unilbrk/ulc-width-linebreaks: New file.
60405         * lib/linebreak.h: Remove file.
60406         * lib/linebreak.c: Remove file.
60407         * m4/linebreak.m4: Remove file.
60408         * modules/linebreak: Remove file.
60409         * NEWS: Mention the changes.
60410
60411 2008-05-09  Eric Blake  <ebb9@byu.net>
60412
60413         Add xmemdup0.
60414         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60415         implementation.
60416         * lib/xmalloc.c (xmemdup0): New C implementation.
60417
60418 2008-05-08  Bruno Haible  <bruno@clisp.org>
60419
60420         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60421
60422 2008-05-07  Eric Blake  <ebb9@byu.net>
60423
60424         Support cross-compilation of <wctype.h>.
60425         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60426         AC_CACHE_CHECK.
60427
60428 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60429
60430         * build-aux/vc-list-files: Add support for bzr.
60431
60432 2008-05-03  Jim Meyering  <meyering@redhat.com>
60433
60434         avoid failed assertion with tight malloc
60435         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60436
60437 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60438
60439         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60440         are needed from arpa/inet.h.
60441         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60442         Reported by Bruno Haible.
60443
60444 2008-05-02  Jim Meyering  <meyering@redhat.com>
60445
60446         avoid compilation error on FreeBSD 6
60447         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60448
60449 2008-05-01  Jim Meyering  <meyering@redhat.com>
60450
60451         useless-if-before-free: correct --help's exit status description
60452         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60453         for one or more matches, etc.  Reported by Bruno Haible.
60454
60455         vc-list-files: make the stand-alone gnulib test work
60456         * modules/vc-list-files-tests (configure.ac):
60457         Define and AC_SUBST abs_aux_dir.
60458         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60459         $(abs_top_srcdir) to each script and having each of them
60460         duplicate the work of setting PATH, set PATH here, using
60461         the new variable, abs_aux_dir instead.
60462         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60463         * tests/test-vc-list-files-git.sh: Likewise.
60464         Reported by Bruno Haible.
60465
60466 2008-05-01  Bruno Haible  <bruno@clisp.org>
60467
60468         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60469         reallocation. Rename 'done' to 'found_delimiter'.
60470
60471 2008-05-01  Jim Meyering  <meyering@redhat.com>
60472
60473         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60474         * build-aux/vc-list-files: Use `...`, not $(...).
60475
60476 2008-04-30  Jim Meyering  <meyering@redhat.com>
60477
60478         add tests for vc-list-files
60479         * modules/vc-list-files-tests: New module.
60480         * tests/test-vc-list-files-cvs.sh: New file.
60481         * tests/test-vc-list-files-git.sh: New file.
60482
60483         avoid a warning from gcc
60484         * lib/getndelim2.c (IF_LINT): Define.
60485         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60486
60487         vc-list-files: work properly with build-aux/cvsu, too
60488         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60489         to all cvs-based clauses.
60490
60491         vc-list-files: work properly in the CVS+awk case, too
60492         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60493
60494         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60495         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60496         take more than one file argument, so .  Add quotes, just in case $dir
60497         ever contains a shell meta-character.  Prompted by Soren Hansen in
60498         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60499
60500 2008-04-29  Eric Blake  <ebb9@byu.net>
60501
60502         Optimize getndelim2 to use block operations when possible.
60503         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60504         freadseek, and memchr2.
60505         * lib/getndelim2.c (getndelim2): Use them for block reads.
60506
60507 2008-04-29  Bruno Haible  <bruno@clisp.org>
60508
60509         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60510         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60511         * modules/inet_ntop (Depends-on): Add extensions.
60512         * modules/inet_pton (Depends-on): Likewise.
60513         Reported by Simon Josefsson.
60514
60515 2008-04-29  Jim Meyering  <meyering@redhat.com>
60516
60517         When the is more than one match in a block, match all of them.
60518         * build-aux/useless-if-before-free: Iterate through each block
60519         until there are no more matches.
60520
60521         Fix broken useless-if-before-free script.
60522         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60523         the expression to match cast of argument to free-like function.
60524
60525 2008-04-29  Eric Blake  <ebb9@byu.net>
60526
60527         Use new header.
60528         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60529
60530 2008-04-29  Jim Meyering  <meyering@redhat.com>
60531
60532         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60533         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60534         by gnulib to exist and to declare e.g., inet_ntop.
60535         Don't include "inet_ntop.h", now removed.
60536
60537         * m4/arpa_inet_h.m4: Remove trailing blanks.
60538
60539 2008-04-29  Eric Blake  <ebb9@byu.net>
60540
60541         Silence valgrind on safe reads beyond potential array bounds.
60542         * lib/rawmemchr.valgrind: New file.
60543         * lib/strchrnul.valgrind: Likewise.
60544         * modules/rawmemchr (Files): Distribute new file.
60545         * modules/strchrnul (Files): Likewise.
60546         Suggested by Bruno Haible.
60547
60548 2008-04-29  Bruno Haible  <bruno@clisp.org>
60549
60550         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60551         (inet_ntop, inet_pton): Change portability warning's wording.
60552         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60553         Invoke gl_CHECK_NEXT_HEADERS.
60554         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60555         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60556         set ARPA_INET_H.
60557         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60558         * modules/arpa_inet (Description): No longer only for systems that
60559         lack it.
60560         (Depends-on): Add include_next.
60561         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60562         HAVE_ARPA_INET_H.
60563
60564 2008-04-29  Jim Meyering  <meyering@redhat.com>
60565
60566         * modules/mkdir (License): Re-license as LGPLv2+.
60567
60568 2008-04-29  Bruno Haible  <bruno@clisp.org>
60569
60570         * modules/rawmemchr (Maintainer): Set to Eric.
60571         * modules/strchrnul (Maintainer): Likewise.
60572
60573 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60574
60575         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60576         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60577
60578         * modules/arpa_inet (arpa/inet.h): Use them.
60579
60580 2008-04-28  Eric Blake  <ebb9@byu.net>
60581
60582         Test getndelim2.
60583         * modules/getndelim2-tests: New file.
60584         * tests/test-getndelim2.c: Likewise.
60585         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60586         stream.
60587         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60588
60589         * MODULES.html.sh: Document new module.
60590
60591 2008-04-20  Bruno Haible  <bruno@clisp.org>
60592
60593         * lib/c-stack.c (die): Use raise.
60594         * modules/c-stack (Depends-on): Add raise.
60595
60596 2008-04-28  Bruno Haible  <bruno@clisp.org>
60597
60598         Expect rpmatch to be declared.
60599         * lib/yesno.c (rpmatch): Remove declaration.
60600
60601         Declare rpmatch.
60602         * lib/stdlib.in.h (rpmatch): New declaration.
60603         * lib/rpmatch.c: Include <stdlib.h> first.
60604         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60605         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60607         HAVE_RPMATCH.
60608         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60609         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60610         (Include): Set to <stdlib.h>.
60611         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60612         HAVE_RPMATCH.
60613         * NEWS: Document the change.
60614
60615 2008-04-28  Bruno Haible  <bruno@clisp.org>
60616
60617         Change rpmatch to use nl_langinfo when appropriate.
60618         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60619         (N_): New macro.
60620         (localized_pattern): New function/macro.
60621         (try): Remove match, nomatch arguments. Copy the pattern into safe
60622         memory before caching it.
60623         (rpmatch): Use localized_pattern. Add translator comments.
60624         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60625         Suggested by Eric Blake.
60626         * modules/rpmatch (Depends-on): Add stdbool.
60627
60628 2008-04-28  Eric Blake  <ebb9@byu.net>
60629
60630         Add rawmemchr module, matching glibc.
60631         * modules/string (Makefile.am): New indicator.
60632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60633         * lib/string.in.h (rawmemchr): Declare when appropriate.
60634         * modules/rawmemchr: New file.
60635         * m4/rawmemchr.m4: Likewise.
60636         * lib/rawmemchr.c: Likewise.
60637         * modules/rawmemchr-tests: Likewise.
60638         * tests/test-rawmemchr.c: Likewise.
60639         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60640         module.
60641         * modules/strchrnul (Depends-on): Add rawmemchr.
60642         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60643
60644         Whitespace cleanup.
60645         * tests/test-strchrnul.c: Reindent.
60646         * lib/strchrnul.c: Likewise.
60647
60648         Optimize and test strchrnul.
60649         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60650         * modules/strchrnul-tests: New file.
60651         * tests/test-strchrnul.c: Likewise.
60652
60653         Remove intprops dependency.
60654         * modules/memchr (Depends-on): Remove intprops.
60655         * modules/memrchr (Depends-on): Likewise.
60656         * modules/memchr2 (Depends-on): Likewise.
60657         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60658         * lib/memrchr.c (__memrchr): Likewise.
60659         * lib/memrchr2.c (memchr2): Likewise.
60660         Reported by Simon Josefsson.
60661
60662 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60663
60664         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60665         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60666
60667 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60668
60669         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60670
60671         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60672
60673         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60674
60675         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60676         declarations.
60677         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60678
60679         * m4/inet_pton.m4: Don't check for header files.
60680
60681         * m4/inet_ntop.m4: Don't check for header files.
60682
60683 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60684
60685         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60686         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60687         trigger for cygwin).
60688         Reported by Bruno Haible  <bruno@clisp.org>.
60689
60690 2008-04-28  Bruno Haible  <bruno@clisp.org>
60691
60692         * doc/posix-functions/strdup.texi: Mention mingw problem.
60693
60694 2008-04-27  Bruno Haible  <bruno@clisp.org>
60695
60696         * modules/stat-time-tests (Depends-on): Add sleep.
60697         * tests/test-stat-time.c (force_unlink): New function.
60698         (cleanup): Use it.
60699         (test_mtime): Remove the ctime related tests.
60700         (test_ctime): New function, containing the ctime related tests.
60701         (main): Call test_ctime, except on native Windows platforms.
60702
60703 2008-04-27  Bruno Haible  <bruno@clisp.org>
60704
60705         * lib/rpmatch.c (rpmatch): Add some comments.
60706         Reported by James Youngman <jay@gnu.org>.
60707
60708 2008-04-27  Bruno Haible  <bruno@clisp.org>
60709
60710         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60711         quiet NaNs.
60712
60713 2008-04-27  Bruno Haible  <bruno@clisp.org>
60714
60715         Make test-yesno.sh work on mingw.
60716         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60717         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60718         (main): Set stdin to binary mode.
60719         * modules/yesno-tests (Depends-on): Add binary-io.
60720
60721 2008-04-27  Bruno Haible  <bruno@clisp.org>
60722
60723         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60724         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60725         argument that lie outside the IEEE 854 domain.
60726         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60727         (gl_ISFINITE): Use it.
60728         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60729
60730 2008-04-27  Bruno Haible  <bruno@clisp.org>
60731
60732         Allow local renaming in config.h.
60733         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60734
60735 2008-04-27  Bruno Haible  <bruno@clisp.org>
60736
60737         * lib/memchr.c (__memchr): Change type of 'i'.
60738         * lib/memchr2.c (memchr2): Likewise.
60739
60740 2008-04-26  Eric Blake  <ebb9@byu.net>
60741         and Bruno Haible  <bruno@clisp.org>
60742
60743         Optimize and test memrchr.
60744         * modules/memrchr (Depends-on): Add intprops.
60745         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60746         * modules/memrchr-tests: New file.
60747         * tests/test-memrchr.c: New file.
60748
60749 2008-04-26  Bruno Haible  <bruno@clisp.org>
60750
60751         Add tentative support for DragonFly BSD.
60752         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60753         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60754         fp.
60755         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60756         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60757         * lib/fpurge.c (fpurge): Likewise.
60758         * lib/freadable.c (freaadable): Likewise.
60759         * lib/freadahead.c (freadahead): Likewise.
60760         * lib/freading.c (freading): Likewise.
60761         * lib/freadptr.c (freadptr): Likewise.
60762         * lib/freadseek.c (freadptrinc): Likewise.
60763         * lib/fseeko.c (fseeko): Likewise.
60764         * lib/fseterr.c (fseterr): Likewise.
60765         * lib/fwritable.c (fwritable): Likewise.
60766         * lib/fwriting.c (fwriting): Likewise.
60767
60768 2008-04-26  Bruno Haible  <bruno@clisp.org>
60769
60770         * lib/stdio-impl.h: New file.
60771         * lib/fbufmode.c: Include stdio-impl.h.
60772         (fbufmode): Use fp_, remove redundant #defines.
60773         * lib/fflush.c: Include stdio-impl.h.
60774         (clear_ungetc_buffer): Remove redundant #defines.
60775         * lib/fpurge.c: Include stdio-impl.h.
60776         (fpurge): Remove redundant #defines.
60777         * lib/freadable.c: Include stdio-impl.h.
60778         (freadable): Remove redundant #defines.
60779         * lib/freadahead.c: Include stdio-impl.h.
60780         (freadahead): Remove redundant #defines.
60781         * lib/freading.c: Include stdio-impl.h.
60782         (freading): Remove redundant #defines.
60783         * lib/freadptr.c: Include stdio-impl.h.
60784         (freadptr): Remove redundant #defines.
60785         * lib/freadseek.c: Include stdio-impl.h.
60786         (freadptrinc): Remove redundant #defines.
60787         * lib/fseeko.c: Include stdio-impl.h.
60788         (rpl_fseeko): Remove redundant #defines.
60789         * lib/fseterr.c: Include stdio-impl.h.
60790         (fseterr): Remove redundant #defines.
60791         * lib/fwritable.c: Include stdio-impl.h.
60792         (fwritable: Remove redundant #defines.
60793         * lib/fwriting.c: Include stdio-impl.h.
60794         (fwriting): Remove redundant #defines.
60795         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60796         * modules/fflush (Files): Likewise.
60797         * modules/fpurge (Files): Likewise.
60798         * modules/freadable (Files): Likewise.
60799         * modules/freadahead (Files): Likewise.
60800         * modules/freading (Files): Likewise.
60801         * modules/freadptr (Files): Likewise.
60802         * modules/freadseek (Files): Likewise.
60803         * modules/fseeko (Files): Likewise.
60804         * modules/fseterr (Files): Likewise.
60805         * modules/fwritable (Files): Likewise.
60806         * modules/fwriting (Files): Likewise.
60807
60808 2008-04-26  Bruno Haible  <bruno@clisp.org>
60809
60810         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60811         restore_seek_optimization, update_fpos_cache): New functions, extracted
60812         from rpl_fflush.
60813         (rpl_fflush): Use them.
60814         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60815         (gl_REPLACE_FFLUSH): Use it.
60816
60817 2008-04-26  Bruno Haible  <bruno@clisp.org>
60818
60819         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60820         on Solaris.
60821         * tests/test-xstrtoimax.sh: Likewise.
60822         * tests/test-xstrtoumax.sh: Likewise.
60823         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60824
60825 2008-04-26  Bruno Haible  <bruno@clisp.org>
60826
60827         * modules/memchr-tests: New file.
60828         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60829
60830 2008-04-26  Eric Blake  <ebb9@byu.net>
60831             Bruno Haible  <bruno@clisp.org>
60832
60833         * lib/memchr.c: Include intprops.h.
60834         (__memchr): Optimize parallel detection of matching bytes. Rename local
60835         variables. Add explanatory comments.
60836
60837 2008-04-26  Bruno Haible  <bruno@clisp.org>
60838
60839         Fix module 'memchr', broken since 2000-10-28.
60840         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60841
60842 2008-04-26  Bruno Haible  <bruno@clisp.org>
60843
60844         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60845         comments.
60846
60847 2008-04-25  Eric Blake  <ebb9@byu.net>
60848
60849         Use native fstatat on cygwin 1.7.0.
60850         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60851         first.
60852
60853 2008-04-23  Eric Blake  <ebb9@byu.net>
60854
60855         Improve memchr2 performance.
60856         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60857         NUL bytes.
60858         * modules/memchr2 (Depends-on): Use intprops.h.
60859
60860 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60861
60862         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
60863         an inline function instead of a CPP macro.  Patch by Ben Pfaff
60864         <blp@cs.stanford.edu>.
60865
60866 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60867
60868         * lib/arpa_inet.in.h: New file.
60869
60870         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
60871         (Makefile.am): Sed in substitute header file.
60872
60873         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
60874         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
60875
60876         * modules/inet_ntop (configure.ac): Use
60877         gl_ARPA_INET_MODULE_INDICATOR.
60878
60879         * modules/inet_pton (configure.ac): Use
60880         gl_ARPA_INET_MODULE_INDICATOR.
60881
60882 2008-04-22  Jim Meyering  <meyering@redhat.com>
60883
60884         * modules/verify (License): Re-license as LGPLv2+.
60885
60886 2008-04-22  Simon Josefsson  <simon@josefsson.org>
60887
60888         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
60889         parameter to void* as per POSIX standard (MinGW uses char*).
60890
60891 2008-04-21  Bruno Haible  <bruno@clisp.org>
60892
60893         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60894         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60895         Define to replacements if REPLACE_ISWCNTRL is 1.
60896         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
60897         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
60898         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
60899         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
60900         what it fixes.
60901         * doc/posix-functions/iswalpha.texi: Likewise.
60902         * doc/posix-functions/iswblank.texi: Likewise.
60903         * doc/posix-functions/iswcntrl.texi: Likewise.
60904         * doc/posix-functions/iswdigit.texi: Likewise.
60905         * doc/posix-functions/iswgraph.texi: Likewise.
60906         * doc/posix-functions/iswlower.texi: Likewise.
60907         * doc/posix-functions/iswprint.texi: Likewise.
60908         * doc/posix-functions/iswpunct.texi: Likewise.
60909         * doc/posix-functions/iswspace.texi: Likewise.
60910         * doc/posix-functions/iswupper.texi: Likewise.
60911         * doc/posix-functions/iswxdigit.texi: Likewise.
60912         Reported by Alain Guibert.
60913
60914 2008-04-21  Bruno Haible  <bruno@clisp.org>
60915
60916         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60917         Patch by Alain Guibert.
60918
60919 2008-04-21  Bruno Haible  <bruno@clisp.org>
60920
60921         Fix test failures on mingw.
60922         * tests/test-xstrtol.c (print_no_progname): New function.
60923         (main): Install it in error_print_progname hook.
60924         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60925         * tests/test-xstrtoimax.sh: Likewise.
60926         * tests/test-xstrtoumax.sh: Likewise.
60927
60928 2008-04-21  Bruno Haible  <bruno@clisp.org>
60929
60930         Fix test failure on mingw.
60931         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60932
60933 2008-04-21  Bruno Haible  <bruno@clisp.org>
60934
60935         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60936         Actually assign a value.
60937
60938 2008-04-20  Bruno Haible  <bruno@clisp.org>
60939
60940         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60941         take 2.
60942         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60943         'canonicalize-lgpl' module is also used.
60944         * lib/canonicalize-lgpl.c: Undo last change.
60945         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60946
60947 2008-04-20  Bruno Haible  <bruno@clisp.org>
60948
60949         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60950         config.h. Provide _mkdir based fallback for mingw.
60951         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60952         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60953         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60954         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60955         rather than defining mkdir in config.h.
60956         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60957         (gl_SYS_STAT_H_DEFAULTS): New macro.
60958         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60959         HAVE_IO_H any more.
60960         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60961         HAVE_DECL_MKDIR and HAVE_IO_H.
60962
60963 2008-04-20  Bruno Haible  <bruno@clisp.org>
60964
60965         * lib/isapipe.c: Port to native Windows platforms.
60966
60967 2008-04-20  Bruno Haible  <bruno@clisp.org>
60968
60969         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60970
60971 2008-04-21  Eric Blake  <ebb9@byu.net>
60972
60973         Work around preprocessors that don't handle UINTMAX_MAX.
60974         * lib/memchr2.c (memchr2): Avoid embedded #if.
60975         Reported by Alain Guibert, fix suggested by Bruno Haible.
60976
60977 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60978
60979         * doc/posix-functions/strftime.texi (strftime): Explain better
60980         Windows incompatibility.  Suggested by Micah Cowan
60981         <micah@cowan.name>.
60982
60983 2008-04-20  Bruno Haible  <bruno@clisp.org>
60984
60985         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60986         unistr/u8-mblen.
60987
60988 2008-04-20  Bruno Haible  <bruno@clisp.org>
60989
60990         Fix test failure on platforms with non-GNU iconv.
60991         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60992         (U_TO_U8): Use it, rather than u16_to_u8.
60993         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60994         units at the end of the input string.
60995         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60996
60997 2008-04-20  Bruno Haible  <bruno@clisp.org>
60998
60999         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61000         when the resulting length is 0.
61001         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61002
61003 2008-04-20  Bruno Haible  <bruno@clisp.org>
61004
61005         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61006         works.
61007         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61008
61009 2008-04-20  Bruno Haible  <bruno@clisp.org>
61010
61011         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61012         * modules/tsearch-tests (configure.ac): Test for initstate function.
61013
61014 2008-04-20  Bruno Haible  <bruno@clisp.org>
61015
61016         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61017         for nlink_t if missing.
61018         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61019
61020 2008-04-19  Bruno Haible  <bruno@clisp.org>
61021
61022         Work around snprintf bug on Linux libc5.
61023         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61024         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61025         gl_SNPRINTF_SIZE1.
61026         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61027         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61028         that test failed.
61029         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61030         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61031         * modules/snprintf (Files): Add m4/printf.m4.
61032         * modules/vsnprintf (Files): Likewise.
61033         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61034         * doc/posix-functions/vsnprintf.texi: Likewise.
61035
61036 2008-04-19  Bruno Haible  <bruno@clisp.org>
61037
61038         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61039         from 0.0058 to less than 10^-7.
61040
61041 2008-04-19  Bruno Haible  <bruno@clisp.org>
61042
61043         Fix rounding when a precision is given.
61044         * lib/vasnprintf.c (is_borderline): New function.
61045         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61046         9...9x.
61047         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61048         %e, %g.
61049         * tests/test-vasprintf-posix.c (test_function): Likewise.
61050         * tests/test-snprintf-posix.h (test_function): Likewise.
61051         * tests/test-sprintf-posix.h (test_function): Likewise.
61052         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61053         * tests/test-printf-posix.h (test_function): Likewise.
61054         * tests/test-printf-posix.output: Update.
61055         Reported by John Darrington <john@darrington.wattle.id.au> via
61056         Ben Pfaff <blp@cs.stanford.edu>.
61057
61058 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61059
61060         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61061         Suggested by Bruno Haible <bruno@clisp.org>.
61062
61063 2008-04-17  Bruno Haible  <bruno@clisp.org>
61064
61065         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61066         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61067         implementation.
61068         Patch by Bruce Merry <bmerry@gmail.com>.
61069
61070 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61071
61072         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61073         doesn't work under Windows.
61074
61075 2008-04-16  Bruno Haible  <bruno@clisp.org>
61076
61077         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61078         New macros.
61079         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61080         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61081         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61082         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61083         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61084         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61085         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61086         macros.
61087         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61088         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61089         Northern Sotho, Uighur.
61090
61091 2008-04-16  Bruno Haible  <bruno@clisp.org>
61092
61093         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61094         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61095         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61096         Reported by Daniel Bergström <daniel@octocode.com>.
61097
61098 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61099             Bruno Haible  <bruno@clisp.org>
61100
61101         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61102         function.
61103         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61104         New functions, mostly extracted from gl_locale_name_default.
61105         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61106
61107 2008-04-16  Eric Blake  <ebb9@byu.net>
61108
61109         Adjust strtod detection to catch glibc 2.7 bug.
61110         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61111         Reported by John Gatewood Ham.
61112
61113 2008-04-16  Bruno Haible  <bruno@clisp.org>
61114
61115         Add tentative support for Linux libc5.
61116         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61117         * lib/fpurge.c (fpurge): Likewise.
61118         * lib/freadable.c (freadable): Likewise.
61119         * lib/freadahead.c (freadahead): Likewise.
61120         * lib/freading.c (freading): Likewise.
61121         * lib/freadptr.c (freadptr): Likewise.
61122         * lib/freadseek.c (freadptrinc): Likewise.
61123         * lib/fseeko.c (rpl_fseeko): Likewise.
61124         * lib/fseterr.c (fseterr): Likewise.
61125         * lib/fwritable.c (fwritable): Likewise.
61126         * lib/fwriting.c (fwriting): Likewise.
61127         Reported by Alain Guibert <alguibert+bts@free.fr>.
61128
61129 2008-04-15  Bruno Haible  <bruno@clisp.org>
61130
61131         * modules/mathl (configure.ac): Define module indicator.
61132
61133 2008-04-15  Bruno Haible  <bruno@clisp.org>
61134
61135         * lib/logl.c (logl): Remove unused variables.
61136
61137 2008-04-15  Bruno Haible  <bruno@clisp.org>
61138
61139         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61140         fails.
61141
61142 2008-04-15  Bruno Haible  <bruno@clisp.org>
61143
61144         * lib/trim.c (trim2): Fix argument of isspace() macro.
61145
61146 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61147
61148         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61149         to 0.
61150         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61151
61152 2008-04-14  Bruno Haible  <bruno@clisp.org>
61153
61154         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61155         AC_LANG_PROGRAM argument.
61156         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61157         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61158         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61159         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61160         * m4/math_h.m4 (gl_MATH_H): Likewise.
61161         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61162         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61163         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61164         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61165         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61166         * m4/regex.m4 (gl_REGEX): Likewise.
61167         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61168         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61169         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61170         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61171         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61172         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61173         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61174         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61175
61176 2008-04-14  Jim Meyering  <meyering@redhat.com>
61177
61178         test-strtod: fix typos: s/abs/fabs/
61179         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61180
61181 2008-04-13  Bruno Haible  <bruno@clisp.org>
61182
61183         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61184         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61185         module is also used and while not building the reloc-wrapper.
61186
61187 2008-04-13  Bruno Haible  <bruno@clisp.org>
61188
61189         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61190
61191 2008-04-13  Bruno Haible  <bruno@clisp.org>
61192
61193         Fix AIX compilation failure introduced on 2008-04-02.
61194         * tests/test-frexp.c (exp): Undefine before redefining.
61195         * tests/test-frexpl.c (exp): Likewise.
61196
61197 2008-04-13  Bruno Haible  <bruno@clisp.org>
61198
61199         Work around a HP-UX stdio bug.
61200         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61201         * tests/test-ftello.c (main): Likewise.
61202         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61203         * doc/posix-functions/ftello.texi: Likewise.
61204
61205 2008-04-13  Bruno Haible  <bruno@clisp.org>
61206
61207         Make test-signbit pass on HP-UX/hppa.
61208         * tests/test-signbit.c (minus_zerol): New variable.
61209         (test_signbitl): Use it.
61210
61211 2008-04-13  Bruno Haible  <bruno@clisp.org>
61212
61213         Make truncl work on OSF/1 4.0.
61214         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61215         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61216         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61218         HAVE_DECL_TRUNCL.
61219         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61220         HAVE_DECL_TRUNCL.
61221         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61222
61223 2008-04-13  Bruno Haible  <bruno@clisp.org>
61224
61225         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61226
61227 2008-04-13  Bruno Haible  <bruno@clisp.org>
61228
61229         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61230         expression, so as to avoid HP-UX 11 cc compiler bug.
61231
61232 2008-04-13  Bruno Haible  <bruno@clisp.org>
61233
61234         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61235
61236 2008-04-13  Bruno Haible  <bruno@clisp.org>
61237
61238         * lib/git-merge-changelog.c: Remove empty declaration outside of
61239         functions.
61240
61241 2008-04-13  Bruno Haible  <bruno@clisp.org>
61242
61243         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61244
61245 2008-04-13  Bruno Haible  <bruno@clisp.org>
61246
61247         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61248         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61249         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61250         also if it exists but lacks definitions of the SHUT_* macros.
61251         * modules/sys_socket (Description): Update.
61252         Reported by Elbert Pol <e.pol@chello.nl>.
61253
61254 2008-04-13  Bruno Haible  <bruno@clisp.org>
61255
61256         * lib/localcharset.c (OS2): Don't redefine if already defined.
61257         Reported by Elbert Pol <e.pol@chello.nl>.
61258
61259 2008-04-13  Bruno Haible  <bruno@clisp.org>
61260
61261         * lib/binary-io.h [__EMX__]: Include <io.h>.
61262         Reported by Elbert Pol <e.pol@chello.nl>.
61263
61264 2008-04-12  Bruno Haible  <bruno@clisp.org>
61265
61266         * lib/fpucw.h: Enable the definitions also for x86_64.
61267         Needed for NetBSD/x86_64.
61268         Reported by Thomas Klausner <tk@giga.or.at>.
61269
61270 2008-04-12  Bruno Haible  <bruno@clisp.org>
61271
61272         * tests/test-strtod.c: Include isnand.h.
61273         (main): Use isnand instead of isnan.
61274         Reported by Jim Meyering.
61275
61276 2008-04-12  Bruno Haible  <bruno@clisp.org>
61277
61278         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61279         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61280
61281 2008-04-12  Jim Meyering  <meyering@redhat.com>
61282
61283         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61284
61285 2008-04-12  Bruno Haible  <bruno@clisp.org>
61286
61287         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61288         Reported by Elbert Pol <e.pol@chello.nl>.
61289
61290 2008-04-12  Eric Blake  <ebb9@byu.net>
61291
61292         Work around Solaris 10 math.h bug.
61293         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61294         (gl_MATH_H_DEFAULTS): Set up default.
61295         * modules/math (Makefile.am): Replace new indicators.
61296         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61297         * tests/test-math.c (main): Test this.
61298         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61299         * doc/posix-headers/math.texi (math.h): Mention bug.
61300         Reported by Nelson H. F. Beebe and Jim Meyering.
61301
61302 2008-04-11  Bruno Haible  <bruno@clisp.org>
61303
61304         Adapt to future versions of Apple GCC.
61305         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61306         Reported by Peter O'Gorman <peter@pogma.com>.
61307
61308 2008-04-11  Bruno Haible  <bruno@clisp.org>
61309
61310         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61311
61312 2008-04-11  Bruno Haible  <bruno@clisp.org>
61313
61314         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61315
61316         * modules/getaddrinfo-tests (Makefile.am): Define
61317         test_getaddrinfo_LDADD.
61318
61319 2008-04-11  Bruno Haible  <bruno@clisp.org>
61320
61321         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61322         (init): Fix syntax error.
61323         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61324         is declared.
61325
61326 2008-04-11  Bruno Haible  <bruno@clisp.org>
61327
61328         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61329         * modules/glob (Depends-on): Add stdbool.
61330
61331 2008-04-11  Bruno Haible  <bruno@clisp.org>
61332
61333         * lib/trim.c: Include <string.h>.
61334
61335 2008-04-11  Eric Blake  <ebb9@byu.net>
61336
61337         Avoid compile failure on OS/2.
61338         * lib/regex_internal.h (internal_function): Disable optimization
61339         on OS/2 (__EMX__), where it caused compiler error.
61340         Reported by Elbert Pol.
61341
61342 2008-04-11  Bruno Haible  <bruno@clisp.org>
61343
61344         Flush the standard error stream before aborting. Needed on mingw.
61345         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61346         * tests/test-array_list.c (ASSERT): Likewise.
61347         * tests/test-array_oset.c (ASSERT): Likewise.
61348         * tests/test-avltree_list.c (ASSERT): Likewise.
61349         * tests/test-avltree_oset.c (ASSERT): Likewise.
61350         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61351         * tests/test-binary-io.c (ASSERT): Likewise.
61352         * tests/test-byteswap.c (ASSERT): Likewise.
61353         * tests/test-c-ctype.c (ASSERT): Likewise.
61354         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61355         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61356         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61357         * tests/test-c-strstr.c (ASSERT): Likewise.
61358         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61359         * tests/test-canonicalize.c (ASSERT): Likewise.
61360         * tests/test-carray_list.c (ASSERT): Likewise.
61361         * tests/test-ceilf1.c (ASSERT): Likewise.
61362         * tests/test-ceilf2.c (ASSERT): Likewise.
61363         * tests/test-ceill.c (ASSERT): Likewise.
61364         * tests/test-count-one-bits.c (ASSERT): Likewise.
61365         * tests/test-fbufmode.c (ASSERT): Likewise.
61366         * tests/test-fflush2.c (ASSERT): Likewise.
61367         * tests/test-floorf1.c (ASSERT): Likewise.
61368         * tests/test-floorf2.c (ASSERT): Likewise.
61369         * tests/test-floorl.c (ASSERT): Likewise.
61370         * tests/test-fopen.c (ASSERT): Likewise.
61371         * tests/test-fpending.c (ASSERT): Likewise.
61372         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61373         * tests/test-fpurge.c (ASSERT): Likewise.
61374         * tests/test-freadable.c (ASSERT): Likewise.
61375         * tests/test-freadahead.c (ASSERT): Likewise.
61376         * tests/test-freading.c (ASSERT): Likewise.
61377         * tests/test-freadptr.c (ASSERT): Likewise.
61378         * tests/test-freadptr2.c (ASSERT): Likewise.
61379         * tests/test-freadseek.c (ASSERT): Likewise.
61380         * tests/test-freopen.c (ASSERT): Likewise.
61381         * tests/test-frexp.c (ASSERT): Likewise.
61382         * tests/test-frexpl.c (ASSERT): Likewise.
61383         * tests/test-fseek.c (ASSERT): Likewise.
61384         * tests/test-fseeko.c (ASSERT): Likewise.
61385         * tests/test-fstrcmp.c (ASSERT): Likewise.
61386         * tests/test-ftell.c (ASSERT): Likewise.
61387         * tests/test-ftello.c (ASSERT): Likewise.
61388         * tests/test-func.c (ASSERT): Likewise.
61389         * tests/test-fwritable.c (ASSERT): Likewise.
61390         * tests/test-fwriting.c (ASSERT): Likewise.
61391         * tests/test-getdelim.c (ASSERT): Likewise.
61392         * tests/test-getline.c (ASSERT): Likewise.
61393         * tests/test-i-ring.c (ASSERT): Likewise.
61394         * tests/test-iconv-utf.c (ASSERT): Likewise.
61395         * tests/test-iconv.c (ASSERT): Likewise.
61396         * tests/test-isfinite.c (ASSERT): Likewise.
61397         * tests/test-isnand.c (ASSERT): Likewise.
61398         * tests/test-isnanf.c (ASSERT): Likewise.
61399         * tests/test-isnanl.h (ASSERT): Likewise.
61400         * tests/test-ldexpl.c (ASSERT): Likewise.
61401         * tests/test-linked_list.c (ASSERT): Likewise.
61402         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61403         * tests/test-localename.c (ASSERT): Likewise.
61404         * tests/test-lseek.c (ASSERT): Likewise.
61405         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61406         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61407         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61408         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61409         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61410         * tests/test-mbschr.c (ASSERT): Likewise.
61411         * tests/test-mbscspn.c (ASSERT): Likewise.
61412         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61413         * tests/test-mbspbrk.c (ASSERT): Likewise.
61414         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61415         * tests/test-mbsrchr.c (ASSERT): Likewise.
61416         * tests/test-mbsspn.c (ASSERT): Likewise.
61417         * tests/test-mbsstr1.c (ASSERT): Likewise.
61418         * tests/test-mbsstr2.c (ASSERT): Likewise.
61419         * tests/test-mbsstr3.c (ASSERT): Likewise.
61420         * tests/test-memchr2.c (ASSERT): Likewise.
61421         * tests/test-memmem.c (ASSERT): Likewise.
61422         * tests/test-open.c (ASSERT): Likewise.
61423         * tests/test-printf-frexp.c (ASSERT): Likewise.
61424         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61425         * tests/test-printf-posix.c (ASSERT): Likewise.
61426         * tests/test-quotearg.c (ASSERT): Likewise.
61427         * tests/test-rbtree_list.c (ASSERT): Likewise.
61428         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61429         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61430         * tests/test-round1.c (ASSERT): Likewise.
61431         * tests/test-roundf1.c (ASSERT): Likewise.
61432         * tests/test-roundl.c (ASSERT): Likewise.
61433         * tests/test-signbit.c (ASSERT): Likewise.
61434         * tests/test-sleep.c (ASSERT): Likewise.
61435         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61436         * tests/test-snprintf.c (ASSERT): Likewise.
61437         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61438         * tests/test-stat-time.c (ASSERT): Likewise.
61439         * tests/test-strcasestr.c (ASSERT): Likewise.
61440         * tests/test-strerror.c (ASSERT): Likewise.
61441         * tests/test-striconv.c (ASSERT): Likewise.
61442         * tests/test-striconveh.c (ASSERT): Likewise.
61443         * tests/test-striconveha.c (ASSERT): Likewise.
61444         * tests/test-strsignal.c (ASSERT): Likewise.
61445         * tests/test-strstr.c (ASSERT): Likewise.
61446         * tests/test-strtod.c (ASSERT): Likewise.
61447         * tests/test-trunc1.c (ASSERT): Likewise.
61448         * tests/test-trunc2.c (ASSERT): Likewise.
61449         * tests/test-truncf1.c (ASSERT): Likewise.
61450         * tests/test-truncf2.c (ASSERT): Likewise.
61451         * tests/test-truncl.c (ASSERT): Likewise.
61452         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61453         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61454         * tests/test-vasnprintf.c (ASSERT): Likewise.
61455         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61456         * tests/test-vasprintf.c (ASSERT): Likewise.
61457         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61458         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61459         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61460         * tests/test-vsnprintf.c (ASSERT): Likewise.
61461         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61462         * tests/test-wcwidth.c (ASSERT): Likewise.
61463         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61464         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61465         * tests/test-xvasprintf.c (ASSERT): Likewise.
61466         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61467         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61468         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61469         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61470         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61471         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61472         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61473         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61474         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61475         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61476         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61477         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61478         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61479         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61480         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61481         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61482         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61483         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61484         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61485         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61486         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61487         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61488         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61489         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61490         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61491         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61492         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61493         * tests/unictype/test-combining.c (ASSERT): Likewise.
61494         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61495         * tests/unictype/test-digit.c (ASSERT): Likewise.
61496         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61497         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61498         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61499         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61500         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61501         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61502         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61503         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61504         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61505         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61506         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61507         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61508         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61509         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61510         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61511         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61512         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61513         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61514         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61515         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61516         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61517         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61518         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61519         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61520         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61521         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61522         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61523         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61524         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61525         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61526         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61527         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61528         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61529         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61530         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61531         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61532         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61533         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61534         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61535         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61536         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61537         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61538         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61539         Reported by Eric Blake.
61540
61541 2008-04-11  Bruno Haible  <bruno@clisp.org>
61542
61543         * lib/wchar.in.h: Tweak comment.
61544
61545 2008-04-11  Bruno Haible  <bruno@clisp.org>
61546
61547         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61548         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61549         gl_COMMON.
61550         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61551
61552 2008-04-11  Bruno Haible  <bruno@clisp.org>
61553
61554         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61555
61556 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61557
61558         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61559         of attempting to use non-existing /dev/*random.  Based on patch
61560         from Adam Strzelecki <ono@java.pl> in
61561         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61562
61563 2008-04-08  Bruno Haible  <bruno@clisp.org>
61564
61565         Add tentative support for emx+gcc.
61566         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61567         * lib/fpurge.c (fpurge): Likewise.
61568         * lib/freadable.c (freadable): Likewise.
61569         * lib/freadahead.c (freadahead): Likewise.
61570         * lib/freading.c (freading): Likewise.
61571         * lib/freadptr.c (freadptr): Likewise.
61572         * lib/freadseek.c (freadptrinc): Likewise.
61573         * lib/fseeko.c (rpl_fseeko): Likewise.
61574         * lib/fseterr.c (fseterr): Likewise.
61575         * lib/fwritable.c (fwritable): Likewise.
61576         * lib/fwriting.c (fwriting): Likewise.
61577         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61578
61579 2008-04-09  Eric Blake  <ebb9@byu.net>
61580
61581         Avoid some autoconf warnings.
61582         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61583         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61584         * m4/afs.m4 (gl_AFS): Likewise.
61585         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61586         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61587         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61588         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61589         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61590         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61591         (AC_CHECK_DECLS_ONCE): Likewise.
61592         Rename file...
61593         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61594         gnulib-tool requires autoconf 2.59 or better.
61595         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61596
61597 2008-04-08  Eric Blake  <ebb9@byu.net>
61598
61599         Use 'git describe --match' if present (added in git 1.5.5).
61600         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61601         if possible.
61602
61603 2008-04-08  Bruno Haible  <bruno@clisp.org>
61604
61605         Add tentative support for OpenServer.
61606         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61607         _ptr, _cnt.
61608         * lib/fpurge.c (fpurge): Likewise.
61609         * lib/freadable.c (freadable): Likewise.
61610         * lib/freadahead.c (freadahead): Likewise.
61611         * lib/freading.c (freading): Likewise.
61612         * lib/freadptr.c (freadptr): Likewise.
61613         * lib/freadseek.c (freadptrinc): Likewise.
61614         * lib/fseeko.c (rpl_fseeko): Likewise.
61615         * lib/fseterr.c (fseterr): Likewise.
61616         * lib/fwritable.c (fwritable): Likewise.
61617         * lib/fwriting.c (fwriting): Likewise.
61618         Reported by Roger Cornelius <rac@tenzing.org> and
61619         Brian K. White <brian@aljex.com>.
61620
61621 2008-04-06  Jim Meyering  <meyering@redhat.com>
61622
61623         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61624
61625 2008-04-06  Bruno Haible  <bruno@clisp.org>
61626
61627         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61628         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61629         * tests/test-printf-posix.sh: Likewise.
61630         * tests/test-vfprintf-posix.sh: Likewise.
61631         * tests/test-vprintf-posix.sh: Likewise.
61632         * tests/test-xprintf-posix.sh: Likewise.
61633
61634 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61635
61636         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61637         hide error from 'ls', needed on OS/2.
61638         Report by Elbert Pol <elbert.pol@gmail.com>.
61639
61640 2008-04-04  Eric Blake  <ebb9@byu.net>
61641
61642         Make test-fseeko.c failures meaningful.
61643         * tests/test-fseeko.c: Print line number on failure.
61644         * tests/test-fseek.c: Likewise.
61645         Reported by Nelson H. F. Beebe.
61646
61647         Improve strtod bug detection check.
61648         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61649         required for Solaris 10.
61650         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61651
61652 2008-04-04  Bruno Haible  <bruno@clisp.org>
61653
61654         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61655         by m4/setenv.m4.
61656
61657 2008-04-03  Eric Blake  <ebb9@byu.net>
61658
61659         Ensure sane .version contents.
61660         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61661         version string.
61662         * build-aux/git-version-gen: Improve documentation.
61663
61664         Make GNU make output nicer.
61665         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61666         MAKECMDGOALS to enforce message for all command line targets.  Set
61667         srcdir for use in maint.mk.
61668
61669         Another maintainer tweak.
61670         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61671         a target that regenerates version.
61672
61673 2008-04-03  Jim Meyering  <meyering@redhat.com>
61674
61675         vc-list-files: don't cause coreutils "make po-check" failure
61676         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61677
61678 2008-04-03  Eric Blake  <ebb9@byu.net>
61679
61680         Allow VPATH usage of vc-list-files.
61681         * build-aux/vc-list-files (scriptversion): Add timestamp.
61682         (options): Add --help, --version, -C.
61683         (CVS): Support installed cvsu.
61684
61685 2008-04-02  Bruno Haible  <bruno@clisp.org>
61686
61687         Avoid some "statement with no effect" warnings from gcc.
61688         * tests/test-wctype.c (main): Explicitly ignore unused values.
61689         Reported by Jim Meyering.
61690
61691 2008-04-02  Jim Meyering  <meyering@redhat.com>
61692
61693         Avoid some warnings from "gcc -Wshadow".
61694         * tests/test-frexp.c (exp): Define to a different identifier.
61695         * tests/test-frexpl.c (exp): Likewise.
61696
61697 2008-04-03  Jim Meyering  <meyering@redhat.com>
61698
61699         bootstrap: remove dangling *.[ch] symlinks from lib
61700         * build-aux/bootstrap [dangling symlink removal]: Move find's
61701         -depth option to precede all others, to avoid a warning.
61702         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61703
61704 2008-04-02  Bruno Haible  <bruno@clisp.org>
61705
61706         Avoid some warnings from "gcc -Wshadow".
61707         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61708         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61709         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61710         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61711         Reported by Jim Meyering.
61712
61713 2008-04-01  Bruno Haible  <bruno@clisp.org>
61714
61715         Fix test to work on IRIX 6.5 with cc.
61716         * tests/test-math.c (numeric_equal): New function.
61717         (main): Use it.
61718
61719 2008-04-01  Bruno Haible  <bruno@clisp.org>
61720
61721         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61722
61723 2008-04-01  Bruno Haible  <bruno@clisp.org>
61724
61725         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61726         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61727         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61728         (Depends-on): Remove math.
61729
61730         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61731         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61732         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61733         (Depends-on): Remove math.
61734
61735         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61736         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61737         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61738         (Depends-on): Remove math.
61739         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61740         (Depends-on): Remove math.
61741
61742         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61743         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61744         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61745         (Depends-on): Remove math.
61746         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61747         (Depends-on): Remove math.
61748
61749         * tests/test-round1.c: Include nan.h.
61750         (main): Use NaNd instead of NAN.
61751         * modules/round-tests (Files): Add tests/nan.h.
61752
61753         * tests/test-trunc1.c: Include nan.h.
61754         (main): Use NaNd instead of NAN.
61755         * modules/trunc-tests (Files): Add tests/nan.h.
61756
61757         * tests/test-roundf1.c: Include nan.h.
61758         (main): Use NaNf instead of NAN.
61759         * modules/roundf-tests (Files): Add tests/nan.h.
61760
61761         * tests/test-truncf1.c: Include nan.h.
61762         (main): Use NaNf instead of NAN.
61763         * modules/truncf-tests (Files): Add tests/nan.h.
61764
61765         * tests/test-ceilf1.c: Include nan.h.
61766         (main): Use NaNf instead of NAN.
61767         * modules/ceilf-tests (Files): Add tests/nan.h.
61768
61769         * tests/test-floorf1.c: Include nan.h.
61770         (main): Use NaNf instead of NAN.
61771         * modules/floorf-tests (Files): Add tests/nan.h.
61772
61773         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61774         (main): Use NaNf instead of NAN.
61775         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61776
61777         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61778         (main): Use NaNd instead of NAN.
61779         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61780
61781         * tests/test-frexp.c: Include nan.h.
61782         (main): Use NaNd instead of NAN.
61783         * modules/frexp-tests (Files): Add tests/nan.h.
61784
61785         * lib/isnan.c: Don't include <math.h>.
61786         (FUNC): Don't use NAN macro.
61787         * modules/isnand-nolibm (Depends-on): Remove math.
61788         * modules/isnanf-nolibm (Depends-on): Remove math.
61789         * modules/isnanl (Depends-on): Remove math.
61790         * modules/isnanl-nolibm (Depends-on): Remove math.
61791
61792         * tests/nan.h: New file.
61793
61794 2008-04-01  Eric Blake  <ebb9@byu.net>
61795
61796         Fix typos.
61797         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61798         values to be the right type.
61799
61800         For now, cater to gnulib strtod inaccuracies.
61801         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61802         fractional results.  While not as nice from a QoI perspective, it
61803         is a quicker patch than correctly implementing decimal to binary
61804         rounding.
61805
61806 2008-03-31  Eric Blake  <ebb9@byu.net>
61807
61808         Guarantee a definition of NAN.
61809         * lib/math.in.h (NAN): Define if missing.
61810         * tests/test-math.c (main): Test it.
61811         * doc/posix-headers/math.texi (math.h): Document this.
61812         * lib/isnan.c (rpl_isnand): Use it.
61813         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61814         * tests/test-floorf1.c (NaN): Likewise.
61815         * tests/test-frexp.c (NaN): Likewise.
61816         * tests/test-isnand.c (NaN): Likewise.
61817         * tests/test-isnanf.c (NaN): Likewise.
61818         * tests/test-round1.c (NaN): Likewise.
61819         * tests/test-roundf1.c (NaN): Likewise.
61820         * tests/test-snprintf-posix.h (NaN): Likewise.
61821         * tests/test-sprintf-posix.h (NaN): Likewise.
61822         * tests/test-trunc1.c (NaN): Likewise.
61823         * tests/test-truncf1.c (NaN): Likewise.
61824         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61825         * tests/test-vasprintf-posix.c (NaN): Likewise.
61826         * modules/isnand-nolibm (Depends-on): Add math.
61827         * modules/isnanf-nolibm (Depends-on): Likewise.
61828         * modules/isnanl (Depends-on): Likewise.
61829         * modules/isnanl-nolibm (Depends-on): Likewise.
61830         * modules/snprintf-posix-tests (Depends-on): Likewise.
61831         * modules/sprintf-posix-tests (Depends-on): Likewise.
61832         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61833         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61834         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61835         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61836
61837 2008-03-31  Bruno Haible  <bruno@clisp.org>
61838
61839         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61840         * doc/posix-functions/strtod.texi: Likewise.
61841
61842 2008-03-31  Bruno Haible  <bruno@clisp.org>
61843
61844         * tests/test-strtod.c (main): Don't use C99 syntax.
61845
61846 2008-03-31  Bruno Haible  <bruno@clisp.org>
61847
61848         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61849         Reported by Eric Blake.
61850
61851 2008-03-31  Jim Meyering  <meyering@redhat.com>
61852
61853         Don't compare actual signbit return values.
61854         * tests/test-strtod.c (main): Rather, compare only their
61855         zero/non-zero nature.
61856
61857 2008-03-31  Eric Blake  <ebb9@byu.net>
61858
61859         More strtod documentation.
61860         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61861         failures as distinct bugs.
61862
61863 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61864
61865         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
61866         Problem reported by Erik Benada in
61867         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
61868
61869 2008-03-30  Bruno Haible  <bruno@clisp.org>
61870
61871         * tests/test-strtod.c: Add comments about which assertion fails on which
61872         platform.
61873         * doc/posix-functions/strtod.texi: Add info about many more platforms.
61874
61875 2008-03-30  Eric Blake  <ebb9@byu.net>
61876
61877         Test signbit behavior on zeros.
61878         * tests/test-signbit.c (test_signbitf): Add tests for zero.
61879         (test_signbitd, test_signbitl): Likewise.
61880
61881         More strtod touchups.
61882         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
61883         sign of negative underflow, for now.  Use .5, not .1.
61884         * doc/posix-functions/strtod.texi (strtod): Mention these
61885         limitations.
61886         Reported by Jim Meyering.
61887
61888 2008-03-30  Bruno Haible  <bruno@clisp.org>
61889
61890         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
61891         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
61892
61893 2008-03-30  Bruno Haible  <bruno@clisp.org>
61894
61895         Avoid failure when attempting to return empty iconv results on some
61896         platforms.
61897         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
61898         allocation, don't report ENOMEM when the resulting string is empty.
61899
61900 2008-03-30  Bruno Haible  <bruno@clisp.org>
61901
61902         Fix buffer overrun.
61903         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
61904         Don't consider the width for tmp_length. Check count against tmp_length
61905         before doing the padding. Ensure enough allocation during padding.
61906
61907 2008-03-30  Eric Blake  <ebb9@byu.net>
61908
61909         strtod touchups.
61910         * lib/strtod.c (strtod): Avoid compiler warnings.
61911         Reported by Jim Meyering.
61912
61913 2008-03-30  Bruno Haible  <bruno@clisp.org>
61914
61915         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61916         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61917         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61918         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61919         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61920         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61921         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61922         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61923
61924         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61925         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61926         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61927         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61928         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61929         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61930         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61931         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61932
61933         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61934         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61935         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61936         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61937         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61938         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61939         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61940         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61941
61942         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61943         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61944
61945         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61946         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61947
61948         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61949         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61950
61951         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61952         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61953         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61954
61955         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61956         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61957         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61958
61959         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61960         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61961         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61962
61963         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61964         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61965         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61966
61967         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61968         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61969         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61970         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61971         (Depends-on): Add EOVERFLOW.
61972         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61973         (Depends-on): Add EOVERFLOW.
61974         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61975         (Depends-on): Add EOVERFLOW.
61976         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61977         (Depends-on): Add EOVERFLOW.
61978         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61979         (Depends-on): Add EOVERFLOW.
61980         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61981         (Depends-on): Add EOVERFLOW.
61982         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61983         (Depends-on): Add EOVERFLOW.
61984         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61985         (Depends-on): Add EOVERFLOW.
61986
61987         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61988         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61989         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61990
61991         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61992         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61993         * modules/snprintf (Depends-on): Add EOVERFLOW.
61994
61995         * lib/poll.c (EOVERFLOW): Remove fallback.
61996         * modules/poll (Depends-on): Add EOVERFLOW.
61997
61998         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61999         * modules/getugroups (Depends-on): Add EOVERFLOW.
62000
62001         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62002         * modules/getdelim (Depends-on): Add EOVERFLOW.
62003
62004         * lib/ftell.c (EOVERFLOW): Remove fallback.
62005         * modules/ftell (Depends-on): Add EOVERFLOW.
62006
62007         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62008         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62009         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62010
62011         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62012
62013         * modules/EOVERFLOW-tests: New file.
62014         * tests/test-EOVERFLOW.c: New file.
62015
62016         * modules/EOVERFLOW: New file.
62017         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62018
62019 2008-03-30  Bruno Haible  <bruno@clisp.org>
62020
62021         Fix bug introduced on 2007-06-10.
62022         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62023         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62024
62025 2008-03-30  Bruno Haible  <bruno@clisp.org>
62026
62027         Improve freadseek's efficiency after ungetc.
62028         * lib/freadseek.c: Include freadahead.h.
62029         (freadptrinc): New function, extracted from freadseek.
62030         (freadseek): Use it in a loop. Use freadahead to determine the number
62031         of loop iterations.
62032         * modules/freadseek (Depends-on): Add freadahead.
62033         (configure.ac): Require AC_C_INLINE.
62034
62035 2008-03-30  Bruno Haible  <bruno@clisp.org>
62036
62037         * lib/freadseek.c (freadseek): Don't ignore the return value of
62038         freadptr.
62039
62040 2008-03-29  Eric Blake  <ebb9@byu.net>
62041
62042         Add hex float support.
62043         * modules/strtod (Depends-on): Add c-ctype.
62044         (Link): Mention POW_LIB.
62045         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62046         whitespace between 'e' and exponent.
62047         * tests/test-strtod.c (main): Enable hex float tests.
62048         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62049         now provides.
62050
62051         Document various strtod bugs, with some fixes.
62052         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62053         "-0x", "inf", "nan", and hex constants.
62054         * doc/posix-functions/atof.texi (atof): Likewise.
62055         * modules/stdlib (Makefile.am): Support strtod.
62056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62057         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62058         detect additional strtod bugs.
62059         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62060         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62061         bool where appropriate.  Parse 'inf' and 'nan'.
62062         * tests/test-strtod.c: New file.
62063         * modules/strtod (Depends-on): Add stdbool, stdlib.
62064         (configure.ac): Turn on module indicator.
62065         * modules/strtod-tests: New module.
62066
62067 2008-03-29  Eric Blake  <ebb9@byu.net>
62068
62069         Fix ftell on mingw.
62070         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62071         * modules/ftell-tests (Depends-on): Add binary-io.
62072         * modules/ftello-tests (Depends-on): Likewise.
62073         * tests/test-ftell.c (main): Enhance test to cover behavior after
62074         ungetc.  Enforce binary mode.
62075         * tests/test-ftello.c (main): Likewise.
62076
62077         Pass test-freadseek on cygwin.
62078         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62079         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62080         ungetc buffer.
62081
62082         * tests/test-fflush2.c (main): Fix typo.
62083
62084 2008-03-29  Bruno Haible  <bruno@clisp.org>
62085
62086         * tests/test-fflush2.c (main): Temporarily disable the contents of
62087         this test.
62088         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62089         Reported by Eric Blake.
62090
62091 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62092
62093         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62094         (GC_SHA224_DIGEST_SIZE): Add.
62095
62096         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62097         (gc_hash_digest_length): Likewise.
62098         (gc_hash_buffer): Likewise.
62099
62100 2008-03-25  Bruno Haible  <bruno@clisp.org>
62101
62102         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62103         detail which gettext release to use.
62104         Reported by Simon Josefsson.
62105
62106 2008-03-26  Jim Meyering  <meyering@redhat.com>
62107
62108         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62109         * modules/gnumakefile (clean-GNUmakefile): Also, use
62110         test ... && ... || : syntax rather than if-then ... fi.
62111
62112         gnumakefile: Don't double-quote-expand $(VPATH) value.
62113         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62114
62115 2008-03-24  Eric Blake  <ebb9@byu.net>
62116
62117         Alter GNUmakefile to install into top directory.
62118         * modules/maintainer-makefile: Split, and add dependency...
62119         * modules/gnumakefile: to this new module.
62120         * build-aux/GNUmakefile: Move...
62121         * top/GNUmakefile: ...here.
62122         * build-aux/maint.mk: Move...
62123         * top/maint.mk: ...here.
62124         * MODULES.html.sh (Support for maintaining...): Document new
62125         module.
62126
62127 2008-03-23  Bruno Haible  <bruno@clisp.org>
62128
62129         * gnulib-tool: New options --vc-files, --no-vc-files.
62130         (func_usage): Document them.
62131         (vc_files): New variable.
62132         (func_import): Consider vc_files.
62133         (func_create_testdir): Set vc_files to empty.
62134         Suggested by Jim Meyering and Karl Berry.
62135
62136 2008-03-23  Bruno Haible  <bruno@clisp.org>
62137
62138         Fix regex compilation error on HP-UX 11.
62139         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62140         * modules/regex (Files): Add m4/mbstate_t.m4.
62141         Reported by Ton Voon <ton.voon@altinity.com>.
62142
62143 2008-03-23  Bruno Haible  <bruno@clisp.org>
62144
62145         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62146
62147 2008-03-23  Eric Blake  <ebb9@byu.net>
62148             Bruno Haible  <bruno@clisp.org>
62149
62150         Install files from top/ in the destination directory.
62151         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62152         augmentation also for the files from top/.
62153         (func_import, func_create_testdir): Rewrite file names:
62154         top/filename -> filename.
62155
62156 2008-03-23  Bruno Haible  <bruno@clisp.org>
62157
62158         Tweak "gnulib --version" output.
62159         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62160
62161 2008-03-23  Bruno Haible  <bruno@clisp.org>
62162
62163         Tweak "gnulib --version" output.
62164         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62165         rather than contents of ChangeLog, when possible.
62166
62167 2008-03-21  Eric Blake  <ebb9@byu.net>
62168
62169         More --version tweaks.
62170         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62171         date of last ChangeLog entry.
62172
62173 2008-03-21  Jim Meyering  <meyering@redhat.com>
62174
62175         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62176
62177 2008-03-20  Eric Blake  <ebb9@byu.net>
62178
62179         VPATH fix.
62180         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62181
62182 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62183
62184         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62185         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62186
62187 2008-03-20  Eric Blake  <ebb9@byu.net>
62188
62189         Sync GNUmakefile with coreutils.
62190         * build-aux/GNUmakefile (have-Makefile): Rename...
62191         (_have-Makefile): ...to this, for namespace consideration.
62192         (GNUmakefile.cfg): Include, if present.
62193         (_autoreconf): Define a default.
62194         (_is-dist-target): New rule for rebuilds to pick up intra-release
62195         version.
62196         (maint-cfg.mk): Rename...
62197         (cfg.mk): ...to this.
62198
62199 2008-03-18  Jim Meyering  <meyering@redhat.com>
62200
62201         New script and module: mktempd
62202         * MODULES.html.sh (maint+release support): Add mktempd.
62203         * build-aux/mktempd: New file.
62204         * modules/mktempd: New file.
62205
62206 2008-03-15  Jim Meyering  <meyering@redhat.com>
62207
62208         Undo last change.
62209         * lib/sha1.c, lib/md5.c: 63 != ~63.
62210         Reported by Andreas Schwab.
62211
62212         sha1.c, md5.c: Hoist a redundant expression.
62213         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62214         "ctx->buflen" only once, before calling *_process_block.
62215         * lib/md5.c (md5_process_bytes): Likewise.
62216
62217 2008-03-14  Eric Blake  <ebb9@byu.net>
62218
62219         Bump copyright year in files generated by gnulib-tool.
62220         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62221         gnulib-tool, rather than hard-coding it.
62222
62223         Fix 'gnulib-tool --version' output to work with git.
62224         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62225         (startup): ...here.
62226         (func_version): Use it to invoke git-version-gen, rather than
62227         relying on CVS keyword expansion.  Modernize wording.
62228         (cvsdatestamp, last_checkin_date, version): Kill unused
62229         variables.
62230
62231 2008-03-12  Jim Meyering  <meyering@redhat.com>
62232
62233         Recognize optional cast of the argument to free.
62234         * build-aux/useless-if-before-free: Update regexps.
62235
62236         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62237
62238 2008-03-11  Bruno Haible  <bruno@clisp.org>
62239
62240         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62241         by a single package.
62242         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62243         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62244         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62245         Reported by Sam Steingold <sds@gnu.org>.
62246
62247 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62248
62249         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62250         repositories.
62251
62252 2008-03-11  Bruno Haible  <bruno@clisp.org>
62253
62254         Avoid conflicts between local macro definitions.
62255         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62256         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62257
62258 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62259             Bruno Haible  <bruno@clisp.org>
62260
62261         Make va_copy work with some version of xlc on AIX 5.1.
62262         * lib/stdarg.in.h: New file.
62263         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62264         On AIX, use a <stdarg.h> file substitute.
62265         * modules/stdarg (Files): Add lib/stdarg.in.h.
62266         (Depends-on): Add include_next.
62267         (Makefile.am): Build a stdarg.h substitute if requested.
62268         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62269
62270 2008-03-10  Bruno Haible  <bruno@clisp.org>
62271
62272         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62273         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62274         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62275
62276 2008-03-10  Bruno Haible  <bruno@clisp.org>
62277
62278         * modules/stdlib (Depends-on): Add include_next, remove
62279         absolute-header.
62280
62281 2008-03-09  Bruno Haible  <bruno@clisp.org>
62282
62283         * lib/freadahead.h (freadahead): Document more precisely.
62284         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62285         the sum of both buffer sizes.
62286         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62287         * NEWS: Document the change.
62288
62289 2008-03-09  Bruno Haible  <bruno@clisp.org>
62290
62291         Extend freadptr to return also the buffer size.
62292         * lib/freadptr.h (freadptr): Add sizep argument.
62293         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62294         (freadptr): Add sizep argument. Determine buffer size like freadahead
62295         does.
62296         * tests/test-freadptr.c: Don't include freadahead.h.
62297         (main): Adapt for new calling convention of freadptr.
62298         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62299         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62300         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62301         tests/test-freadptr2.sh.
62302         (Depends): Remove freadahead.
62303         (TESTS): Add test-freadptr2.sh.
62304         (check_PROGRAMS): Add test-freadptr2.
62305
62306 2008-03-09  Bruno Haible  <bruno@clisp.org>
62307
62308         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62309         Report and solution by Simon Josefsson.
62310
62311 2008-03-06  Bruno Haible  <bruno@clisp.org>
62312
62313         Make fflush after ungetc work on BSD platforms.
62314         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62315         * tests/test-fflush2.c: New file.
62316         * tests/test-fflush2.sh: New file.
62317         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62318         tests/test-fflush2.c.
62319         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62320         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62321
62322 2008-03-06  Eric Blake  <ebb9@byu.net>
62323
62324         Likewise for ftello.
62325         * modules/ftello (Dependencies): Add extensions.
62326         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62327
62328 2008-03-06  Bruno Haible  <bruno@clisp.org>
62329
62330         * modules/fseeko (Dependencies): Add extensions.
62331         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62332         Needed on glibc systems.
62333
62334 2008-03-06  Bruno Haible  <bruno@clisp.org>
62335
62336         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62337         email address.
62338         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62339
62340 2008-03-06  Bruno Haible  <bruno@clisp.org>
62341
62342         * users.txt: Add libgnupdf.
62343
62344 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62345
62346         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62347         (Header File Substitutes, Function Substitutes,
62348         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62349         (Build robot for gnulib): Fix typo.
62350
62351 2008-03-06  Bruno Haible  <bruno@clisp.org>
62352
62353         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62354         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62355
62356 2008-03-06  Bruno Haible  <bruno@clisp.org>
62357
62358         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62359         * doc/gnulib.texi: Include it.
62360
62361 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62362
62363         * modules/func (License): Change license to unlimited; there was
62364         no LGPL parts in the module anyway.
62365
62366 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62367
62368         * modules/__func__: Renamed to modules/func.
62369         * modules/__func__-tests: Renamed to modules/func-tests.
62370         * tests/test-__func__.c: Renamed to tests/test-func.c.
62371         * m4/__func__.m4: Renamed to m4/func.m4.
62372         * doc/gnulib.texi (__func__): Section renamed to func.
62373         Suggested by Eric Blake <ebb9@byu.net>.
62374
62375 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62376
62377         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62378         about __func__.  Make example self-contained.  Suggested by Eric
62379         Blake <ebb9@byu.net>.
62380
62381         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62382         Suggested by Eric Blake <ebb9@byu.net>.
62383
62384 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62385
62386         * modules/__func__: New file.
62387         * modules/__func__-tests: New file.
62388         * tests/test-__func__.c: New file.
62389         * m4/__func__.m4: New file.
62390         * doc/gnulib.texi (__func__): Document __func__ module.
62391
62392 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62393
62394         * modules/byteswap (License): Re-license as LGPLv2+.
62395
62396 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62397
62398         * doc/Makefile: Add pdf target.
62399
62400 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62401
62402         * modules/inline (License): Use 'unlimited', since there are only
62403         *.m4 files in this module.
62404
62405 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62406             Bruno Haible  <bruno@clisp.org>
62407
62408         Add support for HP C 7.1 on OpenVMS 8.3.
62409         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62410
62411 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62412
62413         Update VMS specifics.
62414         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62415
62416 2008-03-02  Jim Meyering  <meyering@redhat.com>
62417
62418         Remove the last dependency on the "free" module.
62419         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62420         Reported by Bob Proulx.
62421
62422         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62423
62424         Remove useless "if" tests before free.  Deprecate "free" module.
62425         * doc/posix-functions/free.texi: Mention that this
62426         module is no longer useful.
62427         * modules/free (Notice): Say this module is obsolete.
62428         * modules/readutmp (Depends-on): Remove free.
62429         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62430         * lib/putenv.c (putenv): Likewise.
62431         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62432         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62433         * tests/test-c-strcasestr.c (main): Likewise.
62434         * tests/test-c-strstr.c (main): Likewise.
62435         * tests/test-mbscasestr1.c (main): Likewise.
62436         * tests/test-mbscasestr2.c (main): Likewise.
62437         * tests/test-mbsstr1.c (main): Likewise.
62438         * tests/test-mbsstr2.c (main): Likewise.
62439         * tests/test-memmem.c (main): Likewise.
62440         * tests/test-strcasestr.c (main): Likewise.
62441         * tests/test-striconv.c (main): Likewise.
62442         * tests/test-striconveh.c (main): Likewise.
62443         * tests/test-striconveha.c (main): Likewise.
62444         * tests/test-strstr.c (main): Likewise.
62445
62446         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62447
62448         bootstrap: sync from coreutils again
62449         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62450
62451 2008-03-01  Jim Meyering  <meyering@redhat.com>
62452
62453         bootstrap: sync from coreutils
62454         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62455         also when the target doesn't exist.
62456
62457 2008-03-01  Eric Blake  <ebb9@byu.net>
62458
62459         Fix bugs in last patch.
62460         * lib/memchr2.c (memchr2): Fix typo.
62461         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62462         extension.
62463         Reported by Bruce Korb.
62464
62465         New module 'memchr2'.
62466         * modules/memchr2: New file.
62467         * modules/memchr2-tests: Likewise.
62468         * lib/memchr2.h: Likewise.
62469         * lib/memchr2.c: Likewise, based on memchr.c.
62470         * tests/test-memchr2.c: New test.
62471         * MODULES.html.sh (String handling): Add memchr2.
62472
62473 2008-02-29  Bruno Haible  <bruno@clisp.org>
62474
62475         * modules/freadseek-tests: New file.
62476         * tests/test-freadseek.sh: New file.
62477         * tests/test-freadseek.c: New file.
62478
62479         New module 'freadseek'.
62480         * modules/freadseek: New file.
62481         * lib/freadseek.h: New file.
62482         * lib/freadseek.c: New file.
62483         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62484
62485 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62486
62487         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62488         wydawca.
62489
62490         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62491         program_invocation_name and program_invocation_short_name are
62492         present.
62493
62494 2008-02-28  Bruno Haible  <bruno@clisp.org>
62495
62496         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62497         * tests/test-freadptr.sh: Also test non-seekable stdin.
62498
62499 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62500
62501         * build-aux/bootstrap (source_base, m4_base)
62502         (doc_base, tests_base): New variables.
62503         (gnulib_tool_options): Do not hardcode base directories, use
62504         the above variables instead.
62505
62506 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62507
62508         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62509
62510 2008-02-28  Bruno Haible  <bruno@clisp.org>
62511
62512         * modules/freadptr-tests: New file.
62513         * tests/test-freadptr.sh: New file.
62514         * tests/test-freadptr.c: New file.
62515
62516         New module 'freadptr'.
62517         * modules/freadptr: New file.
62518         * lib/freadptr.h: New file.
62519         * lib/freadptr.c: New file.
62520         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62521
62522 2008-02-26  Karl Berry  <karl@freefriends.org>
62523
62524         Sync from Libtool:
62525         * libltdl/argz.c (argz_add, argz_count): New functions.
62526         * libltdl/argz.in.h: Declare them.
62527         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62528
62529 2008-02-22  Bruno Haible  <bruno@clisp.org>
62530
62531         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62532         is a pointer type.  Needed for HP-UX 10.
62533         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62534         * doc/posix-functions/gmtime_r.texi: Likewise.
62535         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62536
62537 2008-02-24  Bruno Haible  <bruno@clisp.org>
62538
62539         * modules/environ-tests: New file.
62540         * tests/test-environ.c: New file.
62541
62542         New module 'environ'.
62543         * modules/environ: New file.
62544         * lib/unistd.in.h (environ): New declaration.
62545         * m4/environ.m4: New file.
62546         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62547         after use.
62548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62549         HAVE_DECL_ENVIRON.
62550         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62551         HAVE_DECL_ENVIRON.
62552         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62553         wrong claim that 'environ' is missing on some systems.
62554         * modules/execute (Depends-on): Add environ.
62555         * lib/execute.c (environ): Remove fallback declaration.
62556         * modules/pipe (Depends-on): Add environ.
62557         * lib/pipe.c (environ): Remove fallback declaration.
62558         * modules/setenv (Depends-on): Add environ.
62559         * lib/setenv.c (environ): Remove fallback declaration.
62560         * modules/unsetenv (Depends-on): Add environ.
62561         * lib/unsetenv.c (environ): Remove fallback declaration.
62562         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62563         m4/environ.m4.
62564         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62565         (gl_PREREQ_UNSETENV): Likewise.
62566
62567 2008-02-24  Bruno Haible  <bruno@clisp.org>
62568
62569         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62570
62571 2008-02-20  Bob Proulx  <bob@proulx.com>
62572
62573         Enable use of older two part flavor 'git describe'.
62574         * build-aux/git-version-gen: If using the older two part flavor of
62575         git version then recreate the third part now present in the
62576         newer three part flavor of git describe.
62577
62578 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62579
62580         * lib/fts.c (fts_build): Typo correction to comment.
62581
62582 2008-02-17  Bruno Haible  <bruno@clisp.org>
62583
62584         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62585         generating no-op conflicts.
62586
62587 2008-02-17  Bruno Haible  <bruno@clisp.org>
62588
62589         Speed up by 10%.
62590         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62591         result_entries, rather than an index-based loop.
62592
62593 2008-02-17  Bruno Haible  <bruno@clisp.org>
62594
62595         Speed up by 25%.
62596         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62597         'hashcode_cached'.
62598         (entry_create): New function.
62599         (entry_hashcode): Use the cached hashcode if possible.
62600         (read_changelog_file, try_split_merged_entry): Use entry_create.
62601
62602 2008-02-17  Bruno Haible  <bruno@clisp.org>
62603
62604         Speed up from O(n^2) to O(n) for long ChangeLog files.
62605         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62606         (read_changelog_file): Change implementation of entries_reversed list
62607         to rbtreehash.
62608         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62609
62610 2008-02-17  Bruno Haible  <bruno@clisp.org>
62611
62612         New option --split-merged-entry.
62613         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62614         (find_paragraph_end, try_split_merged_entry): New functions.
62615         (long_options): Add option --split-merged-entry.
62616         (usage): Document option --split-merged-entry.
62617         (main): Implement option --split-merged-entry.
62618         Reported by Eric Blake.
62619
62620 2008-02-17  Bruno Haible  <bruno@clisp.org>
62621
62622         * lib/git-merge-changelog.c: Include c-strstr.h.
62623         (main): Support the "git pull --rebase" situation.
62624         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62625         Reported by Eric Blake.
62626
62627 2008-02-16  Eric Blake  <ebb9@byu.net>
62628
62629         Avoid doubling \ in common case of "c-maybe" quoting style.
62630         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62631         eliding outer quotes.
62632         * lib/quotearg.h: Document this.
62633         * tests/test-quotearg.c (result_strings, inputs, results_g)
62634         (flag_results, locale_results): Test it by adding a new string to
62635         each test group.
62636         (compare_strings): Test new string.
62637
62638 2008-02-13  Eric Blake  <ebb9@byu.net>
62639
62640         Avoid trigraph quoting in default output.
62641         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62642         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62643         unless explicitly requested.
62644         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62645
62646 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62647
62648         Don't rely on signed integer overflowing to negative value.
62649         * lib/getugroups.c (getugroups): Include <limits.h>.
62650         Instead, compare against INT_MAX, and increment only if the test passes.
62651
62652 2008-02-13  Jim Meyering  <meyering@redhat.com>
62653         and Eric Blake  <ebb9@byu.net>
62654
62655         Avoid shadowing warning and compile errors on Linux.
62656         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62657         forwarding macros on Linux.
62658         (dcgettext): Define a stub, for Linux.
62659         (results_g, main): Avoid warnings.
62660
62661 2008-02-12  Eric Blake  <ebb9@byu.net>
62662
62663         Silence warning in last patch.
62664         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62665
62666         Quotearg part 4: add tests, fix c-maybe colon quoting.
62667         * lib/quotearg.h: Improve documentation.
62668         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62669         escapes when adding outer quotes.  When quoting trigraphs, use
62670         valid C notation.  When quoting NUL, omit extra characters if next
62671         character is not digit.  Alter prototype.
62672         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62673         callers.
62674         * modules/quotearg-tests: New module.
62675         * tests/test-quotearg.c: New test.
62676
62677 2008-02-07  Eric Blake  <ebb9@byu.net>
62678
62679         Quotearg part 3: add flag to control outer quote elision.
62680         * lib/quotearg.h (c_maybe_quoting_style): New style.
62681         (enum quoting_flags): Better documentation of flags.
62682         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62683         c-maybe style.
62684         (quotearg_buffer_restyled): Handle new flag to elide outer
62685         quotes.
62686
62687         Quotearg part 2: add flag that can control NUL elision.
62688         * lib/quotearg.h (set_quoting_flags): New prototype.
62689         * lib/quotearg.c (struct quoting_options): Add flag field.
62690         (set_quoting_flags): New function.
62691         (quotearg_buffer_restyled): Add flags parameter.
62692         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62693         (quotearg_n_options): Set the flag, since length cannot be
62694         returned.
62695         (quoting_options_from_style): Default flags correctly.
62696
62697         Quotearg part 1: more wrappers, restore quotearg_char state.
62698         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62699         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62700         (quotearg_colon_mem): New wrappers.
62701         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62702         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62703         functions.
62704         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62705         (quotearg_colon_mem): New functions.
62706
62707 2008-02-11  Bruno Haible  <bruno@clisp.org>
62708
62709         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62710         library in the current directory: it does not work with parallel make.
62711         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62712
62713 2008-02-11  Bruno Haible  <bruno@clisp.org>
62714
62715         * .gitattributes: New file.
62716
62717 2008-02-11  Jim Meyering  <meyering@redhat.com>
62718
62719         useless-if-before-free: Fix reversed exit values.
62720         * build-aux/useless-if-before-free: Use correct values
62721         for EXIT_MATCH and EXIT_NO_MATCH.
62722
62723         * build-aux/useless-if-before-free: Close stdout carefully.
62724
62725 2008-02-10  Bruno Haible  <bruno@clisp.org>
62726
62727         New module 'git-merge-changelog'.
62728         * modules/git-merge-changelog: New file.
62729         * lib/git-merge-changelog.c: New file.
62730
62731 2008-02-10  Jim Meyering  <meyering@redhat.com>
62732
62733         useless-if-before-free: New option: --list (-l).
62734
62735         useless-if-before-free: Don't exit immediately upon open failure.
62736         * build-aux/useless-if-before-free: Exit 2 for errors.
62737         Upon failure to open a file, don't exit immediately.
62738         Rather, just warn and continue with any remaining files.
62739
62740 2008-02-10  Bruno Haible  <bruno@clisp.org>
62741
62742         New abstract list operation 'node_set_value'.
62743         * lib/gl_list.h (gl_list_node_set_value): New function.
62744         (struct gl_list_implementation): New field node_set_value.
62745         * lib/gl_list.c (gl_list_node_set_value): New function.
62746         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62747         (gl_array_list_implementation): Update.
62748         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62749         (gl_carray_list_implementation): Update.
62750         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62751         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62752         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62753         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62754         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62755         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62756         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62757         Update.
62758         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62759         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62760         (gl_sublist_list_implementation): Update.
62761
62762 2008-02-10  Bruno Haible  <bruno@clisp.org>
62763
62764         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62765         Needed when ELEMENT is #defined to 'some_type *'.
62766
62767 2008-02-10  Jim Meyering  <meyering@redhat.com>
62768
62769         New script and module: useless-if-before-free
62770         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62771         * build-aux/useless-if-before-free: New file.
62772         * modules/useless-if-before-free: New file.
62773
62774         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62775
62776         xstrtol_error: Fix typo.
62777         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62778         s/exit_failure/exit_status/.
62779
62780 2008-02-09  Jim Meyering  <meyering@redhat.com>
62781
62782         New script and module: gitlog-to-changelog
62783         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62784         * modules/gitlog-to-changelog: New file.
62785         * build-aux/gitlog-to-changelog: New file.
62786
62787 2008-02-08  Jim Meyering  <meyering@redhat.com>
62788
62789         Avoid two "parameter unused" warnings.
62790         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62791         Mark "st" as used.
62792
62793         Use "git COMMAND", not "git-COMMAND".
62794         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62795         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62796         * build-aux/git-version-gen: Use "git status", not "git-status".
62797
62798 2008-02-07  Bruno Haible  <bruno@clisp.org>
62799
62800         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62801         Avoids a crash on Windows Vista.
62802         Reported by Adam Strzelecki <ono@java.pl> via
62803         Simon Josefsson <simon@josefsson.org>.
62804
62805 2008-02-06  Bruno Haible  <bruno@clisp.org>
62806
62807         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62808         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62809         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62811         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62812         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62813         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62814         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62815         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62816         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62817         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62818         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62819         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62820         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62821         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62822         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62823         left-adjust flag.
62824         * tests/test-snprintf-posix.h (test_function): Likewise.
62825         * tests/test-sprintf-posix.h (test_function): Likewise.
62826         * tests/test-vasprintf-posix.c (test_function): Likewise.
62827         * doc/posix-functions/fprintf.texi: Update.
62828         * doc/posix-functions/printf.texi: Update.
62829         * doc/posix-functions/snprintf.texi: Update.
62830         * doc/posix-functions/sprintf.texi: Update.
62831         * doc/posix-functions/vfprintf.texi: Update.
62832         * doc/posix-functions/vprintf.texi: Update.
62833         * doc/posix-functions/vsnprintf.texi: Update.
62834         * doc/posix-functions/vsprintf.texi: Update.
62835         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62836
62837 2008-02-06  Bruno Haible  <bruno@clisp.org>
62838
62839         Fix bug introduced on 2008-01-26.
62840         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62841
62842 2008-02-06  Bruno Haible  <bruno@clisp.org>
62843
62844         Fix bug introduced on 2007-06-10.
62845         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62846         !NEED_PRINTF_FLAG_ZERO.
62847
62848 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62849
62850         getloadavg: use libperfstat on AIX5
62851         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62852
62853 2008-02-03  Bruno Haible  <bruno@clisp.org>
62854
62855         * lib/diffseq.h: Add comments about required #includes.
62856         Reported by Michael Biggs <gnulib@doubleplum.net>.
62857
62858 2008-02-01  Bruno Haible  <bruno@clisp.org>
62859
62860         * users.txt: Add gnuit.
62861
62862 2008-01-31  Bruno Haible  <bruno@clisp.org>
62863
62864         * lib/md4.c (set_uint32): Mark as inline.
62865         * lib/md5.c (set_uint32): Likewise.
62866         * lib/sha1.c (set_uint32): Likewise.
62867         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
62868         * m4/md5.m4 (gl_MD5): Likewise.
62869         * m4/sha1.m4 (gl_SHA1): Likewise.
62870
62871 2008-01-31  Jim Meyering  <meyering@redhat.com>
62872
62873         Use "sizeof VAR", rather than a literal "4".
62874         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
62875         * lib/md4.c (md4_read_ctx): Likewise.
62876         * lib/sha1.c (sha1_read_ctx): Likewise.
62877
62878 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62879
62880         * tests/test-sha1.c: New file, based on test-md5.c.
62881
62882         * modules/crypto/sha1-tests: New file.
62883
62884 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62885
62886         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
62887
62888 2008-01-31  Jim Meyering  <meyering@redhat.com>
62889
62890         Prefer "sizeof v" over the equivalent "4".
62891         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
62892         * lib/md5.c (set_uint32): Likewise.
62893         * lib/sha1.c (set_uint32): Likewise.
62894
62895 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62896
62897         * lib/sha1.c (set_uint32): Mark function as static.
62898
62899 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62900
62901         md2: clarify comments to say that alignment is not required.
62902         * lib/md2.h: Remove warning about alignment in comment.
62903         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
62904         never been required.
62905
62906 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62907
62908         md4: adapt alignment constraint fix from sha1.
62909         * lib/md4.c (set_uint32): New function, from sha1.c
62910         (md4_read_ctx): Use it.
62911         (md4_finish_ctx): Doc fix.
62912         * lib/md4.h: Doc fix.
62913
62914 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62915
62916         md5: adapt alignment constraint fix from sha1.
62917         * lib/md5.c (set_uint32): New function, from sha1.c
62918         (md5_read_ctx): Use it.
62919         (md5_finish_ctx): Doc fix.
62920         * lib/md5.h: Doc fix.
62921
62922 2008-01-30  Peter Palfrader  <weasel@debian.org>
62923
62924         sha1: remove the result buffer alignment constraint
62925         * lib/sha1.c (set_uint32): New function.
62926         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62927         constraint.
62928         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62929         * lib/sha1.h: Likewise.
62930
62931 2008-01-30  Andreas Schwab  <schwab@suse.de>
62932             Bruno Haible  <bruno@clisp.org>
62933
62934         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62935         correct definition of LDBL_MIN_EXP.
62936
62937 2008-01-30  Karl Berry  <karl@gnu.org>
62938
62939         * config/srclist-update: try to preserve x bit on updates.
62940         * config/srclistvars.sh: update for karl.
62941
62942 2008-01-29  Jim Meyering  <meyering@redhat.com>
62943
62944         vasnprintf.c: Avoid warning about unused label
62945         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62946         "overflow" label definition and associated code with the
62947         same cpp condition that guards the sole use of that label.
62948
62949 2008-01-26  Bruno Haible  <bruno@clisp.org>
62950
62951         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62952         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62953         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62954         * lib/isnanl-nolibm.h (isnanl): Likewise.
62955         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62956
62957 2008-01-26  Bruno Haible  <bruno@clisp.org>
62958
62959         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62960         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62961
62962 2008-01-26  Bruno Haible  <bruno@clisp.org>
62963
62964         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62965         GCC >= 4.0 built-in.
62966         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62967
62968 2008-01-26  Bruno Haible  <bruno@clisp.org>
62969
62970         Rename isnan, applicable to 'double' only, to isnand.
62971         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62972         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62973         (configure.ac): Update.
62974         (Include): Replace "isnan.h" with "isnand.h".
62975         * m4/isnand.m4: Renamed from m4/isnan.m4.
62976         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62977         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62978         instead of isnan.c.
62979         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62980         instead of HAVE_ISNAN_IN_LIBC.
62981         (isnand): Renamed from isnan.
62982         * lib/isnand.c: New file.
62983         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62984         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62985         (Makefile.am): Update.
62986         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62987         Include isnand.h instead of isnan.h.
62988         (main): Test isnand instead of isnan.
62989         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62990         isnan-nolibm.
62991         * modules/frexp (Depends-on): Likewise.
62992         * modules/frexp-tests (Depends-on): Likewise.
62993         * modules/frexp-nolibm (Depends-on): Likewise.
62994         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62995         * modules/isfinite (Depends-on): Likewise.
62996         * modules/round-tests (Depends-on): Likewise.
62997         * modules/signbit (Depends-on): Likewise.
62998         * modules/signbit-tests (Depends-on): Likewise.
62999         * modules/snprintf-posix (Depends-on): Likewise.
63000         * modules/sprintf-posix (Depends-on): Likewise.
63001         * modules/trunc-tests (Depends-on): Likewise.
63002         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63003         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63004         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63005         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63006         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63007         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63008         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63009         * modules/vasnprintf-posix (Depends-on): Likewise.
63010         * modules/vasprintf-posix (Depends-on): Likewise.
63011         * modules/vfprintf-posix (Depends-on): Likewise.
63012         * modules/vsnprintf-posix (Depends-on): Likewise.
63013         * modules/vsprintf-posix (Depends-on): Likewise.
63014         * lib/frexp.c: Include isnand.h instead of isnan.h.
63015         (ISNAN): Set to isnand instead of isnan.
63016         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63017         (gl_isfinited): Use isnand instead of isnan.
63018         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63019         (gl_signbitd): Use isnand instead of isnan.
63020         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63021         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63022         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63023         (main): Use isnand instead of isnan.
63024         * tests/test-round1.c: Include isnand.h.
63025         (main): Use isnand instead of isnan.
63026         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63027         (ISNAN): Set to isnand instead of isnan.
63028         * tests/test-trunc1.c: Include isnand.h.
63029         (main): Use isnand instead of isnan.
63030         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63031         (equal): Use isnand instead of isnan.
63032         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63033         isnand-nolibm.
63034         * NEWS: Mention the change.
63035
63036 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63037             Bruno Haible  <bruno@clisp.org>
63038
63039         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63040         the GCC builtins for signbits are present and set
63041         REPLACE_SIGNBIT_USING_GCC if so.
63042         * lib/math.in.h (signbit): Define using GCC builtins if
63043         REPLACE_SIGNBIT_USING_GCC is set.
63044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63045         REPLACE_SIGNBIT_USING_GCC.
63046         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63047
63048 2008-01-25  Jim Meyering  <meyering@redhat.com>
63049
63050         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63051         * lib/poll.c: Include <config.h>, not "config.h".
63052         * tests/test-getaddrinfo.c: Likewise.
63053
63054 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63055
63056         * modules/sockets-tests: New file.
63057
63058 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63059
63060         * modules/sockets: New module, can be used to call WSA_Startup and
63061         WSA_Cleanup when needed.
63062
63063         * lib/sockets.h, lib/sockets.c: New files.
63064
63065         * m4/sockets.m4: New file.
63066
63067         * tests/test-sockets.c: New file.
63068
63069 2008-01-19  Bruno Haible  <bruno@clisp.org>
63070
63071         * doc/posix-headers: Renamed from doc/headers.
63072         * doc/posix-functions: Renamed from doc/functions.
63073         * doc/gnulib.texi: Update.
63074
63075 2008-01-19  Bruno Haible  <bruno@clisp.org>
63076
63077         * doc/glibc-functions/strcasestr.texi: Include contents of
63078         doc/functions/strcasestr.texi, fixing the list of platforms.
63079         * doc/functions/strcasestr.texi: Remove file.
63080
63081 2008-01-19  Bruno Haible  <bruno@clisp.org>
63082
63083         * doc/glibc-functions/memmem.texi: Include contents of
63084         doc/functions/memmem.texi.
63085         * doc/functions/memmem.texi: Remove file.
63086
63087 2008-01-18  Bruno Haible  <bruno@clisp.org>
63088
63089         * doc/glibc-functions/*.texi: New files.
63090         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63091         to use the new files.
63092
63093 2008-01-17  Bruno Haible  <bruno@clisp.org>
63094
63095         * tests/test-gethostname.c (main): Fix printf statement.
63096
63097 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63098
63099         * modules/gethostname-tests: New file.
63100
63101         * tests/test-gethostname.c: New file.
63102
63103 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63104
63105         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63106         used by the UNAME case.  Reported by Bruno Haible
63107         <bruno@clisp.org>.
63108
63109 2008-01-17  Eric Blake  <ebb9@byu.net>
63110
63111         Convert c-strcasestr to be more efficient.
63112         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63113         (Depends-on): Add c-strcase, remove malloca, strnlen.
63114         * tests/test-c-strcasestr.c (main): Enhance test.
63115         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63116
63117 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63118
63119         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63120         Use it in creating po/Makevars.
63121
63122 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63123
63124         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63125         Applications that requires it should initialize libgcrypt
63126         manually.
63127
63128 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63129
63130         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63131
63132 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63133
63134         Fix problem with getdate on mingw32 reported by Simon Josefsson
63135         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63136         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63137         tzname", when deciding whether to declare tzname.
63138         * lib/strftime.c (tzname): Likewise.
63139
63140 2008-01-15  Bruno Haible  <bruno@clisp.org>
63141
63142         Work around a MacOS X 10.5 bug in frexpl().
63143         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63144         * doc/functions/frexpl.texi: Document the bug.
63145         Reported by Elias Pipping <pipping@gentoo.org>.
63146
63147 2008-01-14  Eric Blake  <ebb9@byu.net>
63148
63149         Touch up previous patch.
63150         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63151         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63152
63153         Convert strcasestr module to use Two-Way algorithm.
63154         * modules/strcasestr-simple: New module, based on the old
63155         strcasestr, but with Two-Way rather than KMP.
63156         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63157         * lib/string.in.h (rpl_strcasestr): Declare.
63158         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63159         performance.
63160         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63161         * modules/string (Makefile.am): Support strcasestr.
63162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63163         * modules/strcasestr-tests (Depends-on): Check for alarm.
63164         * tests/test-strcasestr.c: Augment test.
63165         * lib/str-two-way.h: Clean up stray macro.
63166         * NEWS: Document new module.
63167         * MODULES.html.sh (string handling): Likewise.
63168         * doc/functions/strcasestr.texi: New file.
63169         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63170         here, since it is not a POSIX function.
63171
63172 2008-01-14  Colin Watson  <cjwatson@debian.org>
63173             Bruno Haible  <bruno@clisp.org>
63174
63175         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63176         works fine; if not, set REPLACE_STRSIGNAL.
63177         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63178         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63179         REPLACE_STRSIGNAL.
63180         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63181         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63182         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63183
63184 2008-01-14  Bruno Haible  <bruno@clisp.org>
63185
63186         * modules/strsignal (Include): Change to <string.h>.
63187
63188 2008-01-14  Colin Watson  <cjwatson@debian.org>
63189
63190         * modules/argp (Notice): Add a notice recommending to change
63191         XGETTEXT_OPTIONS.
63192         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63193
63194 2008-01-13  Colin Watson  <cjwatson@debian.org>
63195
63196         * modules/strsignal-tests: New file.
63197         * tests/test-strsignal.c: New file.
63198
63199         * lib/strsignal.c: New file, from glibc with modifications.
63200         * lib/siglist.h: New file, from glibc with modifications.
63201         * lib/string.in.h (strsignal): New declaration.
63202         * m4/strsignal.m4: New file.
63203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63204         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63205         * modules/strsignal: New file.
63206         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63207         HAVE_DECL_STRSIGNAL.
63208
63209 2008-01-13  Bruno Haible  <bruno@clisp.org>
63210
63211         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63212         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63213         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63214         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63215
63216 2008-01-13  Bruno Haible  <bruno@clisp.org>
63217
63218         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63219         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63220         * lib/argp.h (__attribute__): Likewise.
63221         * lib/c-stack.c (__attribute__): Likewise.
63222         * lib/error.h (__attribute__): Likewise.
63223         * lib/fts.c (__attribute__): Likewise.
63224         * lib/openat.h (__attribute__): Likewise.
63225         * lib/stdio.in.h (__attribute__): Likewise.
63226         * lib/string.in.h (__attribute__): Likewise.
63227         * lib/utimens.c (__attribute__): Likewise.
63228         * lib/vasnprintf.h (__attribute__): Likewise.
63229         * lib/xalloc.h (__attribute__): Likewise.
63230         * lib/xprintf.h (__attribute__): Likewise.
63231         * lib/xstrtol.h (__attribute__): Likewise.
63232         * lib/xvasprintf.h (__attribute__): Likewise.
63233
63234 2008-01-12  Bruno Haible  <bruno@clisp.org>
63235
63236         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63237         * doc/glibc-headers/a.out.texi: New file.
63238         * doc/glibc-headers/aliases.texi: New file.
63239         * doc/glibc-headers/alloca.texi: New file.
63240         * doc/glibc-headers/ar.texi: New file.
63241         * doc/glibc-headers/argp.texi: New file.
63242         * doc/glibc-headers/argz.texi: New file.
63243         * doc/glibc-headers/byteswap.texi: New file.
63244         * doc/glibc-headers/crypt.texi: New file.
63245         * doc/glibc-headers/endian.texi: New file.
63246         * doc/glibc-headers/envz.texi: New file.
63247         * doc/glibc-headers/err.texi: New file.
63248         * doc/glibc-headers/error.texi: New file.
63249         * doc/glibc-headers/execinfo.texi: New file.
63250         * doc/glibc-headers/fpu_control.texi: New file.
63251         * doc/glibc-headers/fstab.texi: New file.
63252         * doc/glibc-headers/fts.texi: New file.
63253         * doc/glibc-headers/getopt.texi: New file.
63254         * doc/glibc-headers/ieee754.texi: New file.
63255         * doc/glibc-headers/ifaddrs.texi: New file.
63256         * doc/glibc-headers/libintl.texi: New file.
63257         * doc/glibc-headers/mcheck.texi: New file.
63258         * doc/glibc-headers/mntent.texi: New file.
63259         * doc/glibc-headers/obstack.texi: New file.
63260         * doc/glibc-headers/paths.texi: New file.
63261         * doc/glibc-headers/printf.texi: New file.
63262         * doc/glibc-headers/pty.texi: New file.
63263         * doc/glibc-headers/resolv.texi: New file.
63264         * doc/glibc-headers/shadow.texi: New file.
63265         * doc/glibc-headers/sysexits.texi: New file.
63266         * doc/glibc-headers/ttyent.texi: New file.
63267
63268 2008-01-12  Jim Meyering  <meyering@redhat.com>
63269
63270         announce-gen: emit Gnulib's git-based version string.
63271         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63272         New option --gnulib-version=V, where V is expected to be
63273         the output of running git describe in the gnulib directory.
63274         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63275         not useful, and plan to stop publishing an xdelta file with each
63276         coreutils release.
63277
63278         * build-aux/announce-gen: Also check for lzma-compressed files.
63279
63280 2008-01-11  Bruno Haible  <bruno@clisp.org>
63281
63282         * tests/test-memmem.c (main): Increase maximum allowed time.
63283         * tests/test-strstr.c (main): Likewise.
63284
63285 2008-01-11  Bruno Haible  <bruno@clisp.org>
63286
63287         * doc/functions/memmem.texi: Add more precisions about platforms.
63288         * doc/functions/strstr.texi: Likewise.
63289
63290 2008-01-10  Eric Blake  <ebb9@byu.net>
63291
63292         * m4/strstr.m4: Delete cruft from copy-n-paste.
63293         Reported by Bruno Haible.
63294
63295 2008-01-10  Bruno Haible  <bruno@clisp.org>
63296
63297         Make c-strstr rely on strstr.
63298         * lib/c-strstr.c: Don't include str-kmp.h.
63299         (c_strstr): Define in terms of strstr.
63300         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63301         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63302
63303 2008-01-10  Bruno Haible  <bruno@clisp.org>
63304
63305         * doc/gnulib.texi (String Functions in C Locale): New section.
63306         * doc/c-ctype.texi: New file.
63307         * doc/c-strcase.texi: New file.
63308         * doc/c-strcaseeq.texi: New file.
63309         * doc/c-strcasestr.texi: New file.
63310         * doc/c-strstr.texi: New file.
63311         * doc/c-strtod.texi: New file.
63312         * doc/c-strtold.texi: New file.
63313
63314 2008-01-10  Eric Blake  <ebb9@byu.net>
63315
63316         * lib/relocatable.h: Fix a comment.
63317
63318 2008-01-10  Eric Blake  <ebb9@byu.net>
63319
63320         Share two-way algorithm.
63321         * lib/str-two-way.h: New file, merged from...
63322         * lib/memmem.c: ...here...
63323         * lib/strstr.c: ...and here.
63324         * modules/memmem (Files): Use it.
63325         * modules/strstr (Files): Likewise.
63326
63327         Avoid quadratic strstr implementations.
63328         * lib/strstr.c: New file.
63329         * m4/strstr.m4: Likewise.
63330         * modules/strstr: Likewise.
63331         * modules/strstr-tests: Likewise.
63332         * tests/test-strstr.c: Likewise.
63333         * lib/string.in.h (rpl_strstr): Declare.
63334         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63336         * modules/string (Makefile.am): Likewise.
63337         * MODULES.html.sh (string handling): Mention new module.
63338         * doc/functions/strstr.texi (strstr): Document the bug.
63339
63340 2008-01-10  Bruno Haible  <bruno@clisp.org>
63341
63342         * lib/relocatable.h (relocate): State whether result is freshly
63343         allocated or not.
63344         * lib/relocatable.c (relocate): Return a freshly allocated string
63345         instead of a pointer to a privately held string.
63346         Reported by Sylvain Beucler <beuc@gnu.org>.
63347
63348 2008-01-10  Colin Watson  <cjwatson@debian.org>
63349
63350         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63351         s/S_ISNLK/S_ISLNK/.
63352
63353 2008-01-09  Bruno Haible  <bruno@clisp.org>
63354
63355         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63356         and other files.
63357         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63358         if it's only a guess.
63359         * modules/memmem: Simplify by depending on memmem-simple.
63360
63361 2008-01-09  Bruno Haible  <bruno@clisp.org>
63362
63363         Work around OpenBSD 4.0 tdelete() bug.
63364         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63365         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63366         macros and don't redefine the enum values.
63367         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63368         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63369         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63370
63371 2008-01-09  Bruno Haible  <bruno@clisp.org>
63372
63373         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63374         (main): Don't perform the tests if setlocale did not install a UTF-8
63375         locale. Needed on OpenBSD 4.0.
63376         * modules/wcwidth-tests (Depends-on): Add localcharset.
63377
63378 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63379
63380         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63381         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63382         * NEWS: announce this.
63383         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63384
63385 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63386         and Eric Blake  <ebb9@byu.net>
63387
63388         Add memmem-simple module.
63389         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63390         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63391         * modules/memmem-simple: New file.
63392         * modules/memmem (Description): Tweak.
63393         * MODULES.html.sh (string handling): Mention new module.
63394         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63395         addressed by memmem-simple.
63396         * NEWS: Document the difference.
63397
63398 2008-01-09  Eric Blake  <ebb9@byu.net>
63399
63400         Give gcc some memmem optimization hints.
63401         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63402         (strcasestr): Declare as pure.
63403         * modules/memmem (Maintainer): Claim my implementation.
63404
63405 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63406
63407         Support AIX 6.1 and higher.
63408         * build-aux/config.libpath: Likewise.
63409         * build-aux/config.rpath: Likewise.
63410
63411 2008-01-08  Jim Meyering  <meyering@redhat.com>
63412             Bruno Haible  <bruno@clisp.org>
63413
63414         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63415         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63416         Reported by Peter Fales in
63417         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63418
63419 2008-01-08  Bruno Haible  <bruno@clisp.org>
63420
63421         * modules/unictype/category-of (Depends-on): Add
63422         unictype/category-none.
63423         * modules/unictype/category-and-tests (Depends-on): Add
63424         unictype/category-{L,N,Lu,Nd}.
63425         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63426         * modules/unictype/category-or-tests (Depends-on): Add
63427         unictype/category-{L,N}.
63428         * modules/unictype/category-name-tests (Depends-on): Add
63429         unictype/category-{Z,Nl}.
63430         Reported by Simon Josefsson.
63431
63432 2008-01-08  Bruno Haible  <bruno@clisp.org>
63433
63434         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63435         convention better.
63436         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63437         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63438         Reported by Peter Miller <millerp@canb.auug.org.au>.
63439
63440 2008-01-08  Eric Blake  <ebb9@byu.net>
63441
63442         Rewrite memmem to guarantee linear complexity without malloc.
63443         * lib/memmem.c (memmem): Use Two-Way rather than
63444         Knuth-Morris-Pratt, to allow O(1) space usage.
63445         (critical_factorization, two_way_short_needle)
63446         (two_way_long_needle): New functions.
63447         (knuth_morris_pratt): Delete.
63448         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63449         Add stdint.
63450         * tests/test-memmem.c (main): Add tests for periodic needle and
63451         sublinear performance.
63452         * doc/functions/memmem.texi (memmem): Document other deficiencies
63453         in cygwin and older glibc.
63454
63455 2008-01-08  Bruno Haible  <bruno@clisp.org>
63456
63457         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63458         augmentation.
63459
63460 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63461
63462         Add a configure time option: --disable-acl.
63463         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63464         AC_ARG_ENABLE(acl).
63465
63466 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63467
63468         * tests/test-localename.c: Don't include obsolete "setenv.h".
63469
63470         * modules/localename-tests (Depends-on): Need unsetenv.
63471
63472 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63473
63474         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63475
63476 2008-01-06  Colin Watson  <cjwatson@debian.org>
63477
63478         * users.txt: Add man-db.
63479
63480 2008-01-07  Bruno Haible  <bruno@clisp.org>
63481
63482         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63483         previous section name.
63484
63485 2008-01-07  Bruno Haible  <bruno@clisp.org>
63486
63487         * lib/progname.c (set_program_name): Don't strip off a leading
63488         "lt-" prefix outside a .libs directory.
63489         Suggested by Paul Eggert.
63490
63491 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63492             Bruno Haible  <bruno@clisp.org>
63493
63494         Improve memory cleanup in 'relocatable' module.
63495         * lib/relocatable.h (compute_curr_prefix): Change return type to
63496         'char *'.
63497         * lib/relocatable.c (compute_curr_prefix): Change return type to
63498         'char *'. Free curr_installdir after use.
63499         (relocate): Free curr_prefix_better after use.
63500         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63501
63502 2008-01-01  Bruno Haible  <bruno@clisp.org>
63503
63504         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63505         failure on older glibc systems.
63506         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63507
63508 2008-01-05  Eric Blake  <ebb9@byu.net>
63509
63510         Avoid quadratic system memmem.
63511         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63512         Reported by Ralf Wildenhues.
63513
63514         Fix memmem test for mingw.
63515         * modules/memmem-tests (configure.ac): Check for alarm.
63516         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63517         it.
63518         * doc/functions/memmem.texi: New file.
63519         * doc/gnulib.texi (Function Substitutes): Add memmem.
63520         Reported by Bruno Haible.
63521
63522 2008-01-04  Bruno Haible  <bruno@clisp.org>
63523
63524         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63525         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63526         gl_HEADER_STRING_H_DEFAULTS.
63527
63528 2008-01-04  Eric Blake  <ebb9@byu.net>
63529
63530         Shorten duration of memmem test.
63531         * tests/test-memmem.c (main): Use alarm to declare failure if test
63532         is taking too long.
63533         Reported by Ralf Wildenhues.
63534
63535 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63536
63537         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63538         string, needed by strerror.
63539
63540 2008-01-03  Colin Watson  <cjwatson@debian.org>
63541             Bruno Haible  <bruno@clisp.org>
63542
63543         * doc/gnulib-tool.texi (Localization): New section.
63544
63545 2008-01-02  Bruno Haible  <bruno@clisp.org>
63546
63547         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63548         variables to 'unsigned char *' type.
63549         Reported by Paul Eggert.
63550
63551 2008-01-02  Jim Meyering  <jim@meyering.net>
63552
63553         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63554
63555 2007-12-31  Jim Meyering  <jim@meyering.net>
63556
63557         Avoid use of private FTS type name.
63558         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63559
63560 2007-12-30  Karl Berry  <karl@gnu.org>
63561
63562         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63563         work around defect in Texinfo and/or the standalone Info browser.
63564
63565 2007-12-30  Bruno Haible  <bruno@clisp.org>
63566
63567         Unify 5 copies of the KMP code.
63568         * lib/str-kmp.h: New file.
63569         * lib/c-strcasestr.c: Include str-kmp.h.
63570         (knuth_morris_pratt): Remove function.
63571         (c_strcasestr): Update.
63572         * lib/c-strstr.c: Include str-kmp.h.
63573         (knuth_morris_pratt): Remove function.
63574         (c_strcasestr): Update.
63575         * lib/mbscasestr.c: Include str-kmp.h.
63576         (knuth_morris_pratt_unibyte): Remove function.
63577         * lib/mbsstr.c: Include str-kmp.h.
63578         (knuth_morris_pratt_unibyte): Remove function.
63579         * lib/strcasestr.c: Include str-kmp.h.
63580         (knuth_morris_pratt): Remove function.
63581         (strcasestr): Update.
63582         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63583         * modules/c-strstr (Files): Likewise.
63584         * modules/mbscasestr (Files): Likewise.
63585         * modules/mbsstr (Files): Likewise.
63586         * modules/strcasestr (Files): Likewise.
63587         Suggested by Paul Eggert.
63588
63589 2007-12-30  Bruno Haible  <bruno@clisp.org>
63590
63591         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63592         defined.
63593
63594 2007-12-30  Bruno Haible  <bruno@clisp.org>
63595
63596         * lib/xmalloca.h: Include xalloc.h.
63597         (xnmalloca): New macro.
63598
63599 2007-12-30  Bruno Haible  <bruno@clisp.org>
63600
63601         * lib/malloca.h (nmalloca): New macro.
63602         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63603         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63604         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63605         knuth_morris_pratt_multibyte): Likewise.
63606         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63607         knuth_morris_pratt_multibyte): Likewise.
63608         * lib/memmem.c (knuth_morris_pratt): Likewise.
63609         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63610
63611 2007-12-25  Bruno Haible  <bruno@clisp.org>
63612
63613         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63614         * lib/glob.c: Don't include openat.h.
63615         (link_exists2_p): Add back the code that deals with the
63616         !GLOB_ALTDIRFUNC case.
63617         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63618         let it do the filename concatenation.
63619         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63620         * modules/glob (Depends-on): Remove openat.
63621
63622 2007-12-31  Bruno Haible  <bruno@clisp.org>
63623
63624         * modules/dirfd (License): Change to LGPLv2+.
63625         Approved by Jim Meyering.
63626
63627 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63628
63629         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63630         when multiplying M by sizeof (size_t).
63631
63632 2007-12-10  Martin Lambers  <marlam@marlam.de>
63633
63634         Override getpagesize on mingw.
63635         * lib/getpagesize.c: New file.
63636         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63637         * modules/getpagesize (Files): Add lib/getpagesize.c.
63638         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63640         REPLACE_GETPAGESIZE.
63641         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63642
63643 2007-12-25  Bruno Haible  <bruno@clisp.org>
63644
63645         * modules/localcharset (Notice): New field.
63646         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63647         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63648
63649 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63650             Bruno Haible  <bruno@clisp.org>
63651
63652         Avoid using the syntax symbol() in formatted documentation.
63653         * MODULES.html.sh (func_module): When replacing symbol() with a
63654         hyperlink, remove the parentheses. Show an error if some remain.
63655         Recognize and render the '...' syntax.
63656         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63657         Rework. Add paragraph about GCC's inlining.
63658         * doc/alloca.texi: Likewise.
63659         * doc/error.texi: Remove parentheses from symbol reference.
63660         * doc/gnulib-intro.texi: Likewise.
63661         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63662         * modules/fnmatch (Description): Reword to say "the ... function".
63663         * modules/full-read (Description): Likewise.
63664         * modules/full-write (Description): Likewise.
63665         * modules/safe-read (Description): Likewise.
63666         * modules/safe-write (Description): Likewise.
63667         * modules/strchrnul (Description): Likewise.
63668         * modules/trim (Description): Likewise.
63669         * modules/error (Description): Remove parentheses from symbol
63670         references.
63671         * modules/verror (Description): Likewise.
63672         Reported by Karl Berry.
63673
63674 2007-12-25  Bruno Haible  <bruno@clisp.org>
63675
63676         Fixup after 2007-10-16 commit.
63677         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63678
63679 2007-12-24  Bruno Haible  <bruno@clisp.org>
63680
63681         Make --enable-relocatable work with DESTDIR.
63682         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63683         to compute installdir from destprog.
63684         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63685         also set the RELOC_DESTDIR variable.
63686         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
63687
63688 2007-12-24  Bruno Haible  <bruno@clisp.org>
63689
63690         Fix link error due to xalloc_die().
63691         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63692         of xreadlink.
63693         * lib/relocwrapper.c: Update comments.
63694         * build-aux/install-reloc: Remove xreadlink.c from file list.
63695         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63696         xreadlink.c.
63697         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
63698
63699 2007-12-24  Bruno Haible  <bruno@clisp.org>
63700
63701         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63702         * lib/setenv.h: Remove file.
63703         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63704         lib/setenv.h.
63705         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63706         (Depends-on): Add stdlib.
63707         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63708         gl_FUNC_UNSETENV.
63709         (Include): Replace setenv.h with <stdlib.h>.
63710         * modules/unsetenv: New file.
63711         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63712         * lib/unsetenv.c: Include <stdlib.h> first.
63713         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63714         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63715         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63716         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63717         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63718         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63720         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63721         * doc/functions/unsetenv.texi: Update.
63722         * modules/xsetenv (Depends-on): Add unsetenv.
63723         * modules/getdate (Depends-on): Likewise.
63724         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63725         * lib/xsetenv.c: Don't include setenv.h.
63726         * lib/getdate.y: Likewise.
63727         * lib/relocwrapper.c: Likewise.
63728         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63729         (Depends-on): Add stdlib.
63730         * NEWS: Mention the changes.
63731         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
63732
63733 2007-12-23  Bruno Haible  <bruno@clisp.org>
63734
63735         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63736         indentation.
63737
63738 2007-12-23  Bruno Haible  <bruno@clisp.org>
63739
63740         * lib/c-strcasestr.c: Add more comments.
63741         * lib/c-strstr.c: Likewise.
63742         * lib/mbscasestr.c: Likewise.
63743         * lib/mbsstr.c: Likewise.
63744         * lib/strcasestr.c: Likewise.
63745         * lib/memmem.c: Likewise.
63746
63747 2007-12-23  Bruno Haible  <bruno@clisp.org>
63748
63749         * tests/test-memmem.c: Include <string.h> first.
63750
63751 2007-12-22  Bruno Haible  <bruno@clisp.org>
63752
63753         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63754         the contents of $testsbase.
63755         Reported by Ralf Wildenhues.
63756
63757 2007-12-22  Bruno Haible  <bruno@clisp.org>
63758
63759         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63760         two variables local_ldadd_before, local_ldadd_last.
63761
63762 2007-12-20  Eric Blake  <ebb9@byu.net>
63763
63764         Work around circular library issue when cross-compiling.
63765         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63766         that progname.o does not need to pull in rpl_memcmp.
63767
63768 2007-12-19  Eric Blake  <ebb9@byu.net>
63769
63770         Fix memmem to avoid O(n^2) worst-case complexity.
63771         * lib/memmem.c (knuth_morris_pratt): New function.
63772         (memmem): Use it if first few naive iterations fail.
63773         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63774         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63775         * modules/memchr (License): Likewise.
63776         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63777         malloca.
63778         * tests/test-memmem.c: Rewrite, borrowing ideas from
63779         test-mbsstr1.c; the old version wouldn't even compile!
63780         * modules/memmem-tests: New file.
63781         * lib/string.in.h (rpl_memmem): Add declaration.
63782         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63784         REPLACE_MEMMEM.
63785
63786 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63787
63788         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63789         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63790         before any system include files, and undef after them all.  This
63791         should fix a problem on VMS reported by John E. Malmberg in
63792         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63793
63794 2007-12-17  Eric Blake  <ebb9@byu.net>
63795
63796         Revert addition of verify, for BSD/OS.
63797         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63798         can't handle large files, for the sake of obsolete platforms.
63799         * modules/fseeko (Depends-on): Remove verify.
63800         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63801         * doc/functions/ftello.texi (ftello): Likewise.
63802         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63803         Reported by Larry Jones.
63804
63805 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63806
63807         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63808         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63809
63810 2007-12-17  Jim Meyering  <meyering@redhat.com>
63811
63812         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63813         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63814         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63815         * modules/getcwd (Depends-on): Add openat.
63816         Reported by Petr Salinger.
63817
63818 2007-12-17  Bruno Haible  <bruno@clisp.org>
63819
63820         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63821         avoid a segmentation fault of the configure test on x86_64 systems.
63822
63823 2007-12-15  Jim Meyering  <meyering@redhat.com>
63824
63825         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63826
63827 2007-12-13  Eric Blake  <ebb9@byu.net>
63828
63829         Another fseek test.
63830         * tests/test-fseek.c (main): Also test ungetc handling.
63831         * tests/test-fseeko.c (main): Likewise.
63832         * modules/fseeko (Depends-on): Add verify.
63833         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63834         large.
63835         Reported by Larry Jones.
63836
63837         Fix fseeko on mingw.
63838         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63839         seek.
63840
63841         Beef up fseek tests.
63842         * tests/test-fseek.c (main): Also test eof handling.
63843         * tests/test-fseeko.c (main): Likewise.
63844         Reported by Larry Jones.
63845
63846 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63847
63848         Fix fseeko on BSD-based platforms.
63849         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63850         successful seek.
63851
63852 2007-12-12  Eric Blake  <ebb9@byu.net>
63853
63854         Allow circular dependency of separate libtests.a
63855         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63856         when use_libtests.
63857
63858 2007-12-11  Eric Blake  <ebb9@byu.net>
63859
63860         Fix bug with -0.0L in previous patch.
63861         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63862         * tests/test-isnan.c (main): Also test on zeroes.
63863         * tests/test-isnanf.c (main): Likewise.
63864         * tests/test-isnanl.h (main): Likewise.
63865
63866         Detect pseudo-denormals on x86 even when cross-compiling.
63867         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
63868         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
63869         invalid bit patterns that happen to satisfy ==.
63870
63871         Avoid link failures with separate libtests.a.
63872         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
63873         last, to satisfy circular dependencies.
63874
63875 2007-12-11  Eric Blake  <ebb9@byu.net>
63876         and Bruno Haible  <bruno@clisp.org>
63877
63878         Fix OpenBSD 4.0 <float.h> handling of long double.
63879         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
63880         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
63881         * doc/headers/float.texi (float.h): Document OpenBSD bug.
63882
63883 2007-12-11  Jim Meyering  <meyering@redhat.com>
63884
63885         * users.txt: Add libvirt.
63886
63887         Support versions of autoconf prior to 2.59c.
63888         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
63889         if it is not already defined.
63890
63891 2007-12-09  Bruno Haible  <bruno@clisp.org>
63892
63893         Let 'gnulib-tool --import' collect sources needed for the tests in
63894         tests/ rather than in lib/.
63895         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
63896         argument. If true, add rules to generate libtests.a, and put libtests.a
63897         into $(LDADD). Consider source files in subdirectories and set
63898         uses_subdirs.
63899         (func_emit_initmacro_start, func_emit_initmacro_end,
63900         func_emit_initmacro_done): Pass all arguments explicitly.
63901         (func_import): Determine two module lists main_modules,
63902         testsrelated_modules. Determine use_libtests. Determine two variables
63903         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
63904         instead of just sed_transform_lib_file. Determine two variables
63905         main_files and testsrelated_files. Compute 'files' as the union of
63906         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
63907         func_add_or_update. In the generated gnulib-comp.m4, collect the
63908         object files for tests/ in different variables than those for lib/.
63909         Substitute LIBTESTS_LIBDEPS.
63910         (func_create_testdir): Combine the uses_subdirs results from
63911         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63912
63913 2007-12-09  Bruno Haible  <bruno@clisp.org>
63914
63915         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63916         the build-aux directory.
63917
63918 2007-12-09  Bruno Haible  <bruno@clisp.org>
63919
63920         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63921         introduced on 2006-09-09.
63922
63923 2007-12-07  Jim Meyering  <meyering@redhat.com>
63924
63925         Let these macros work also with autoconf-2.59.
63926         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63927         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63928         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63929
63930 2007-12-06  Jim Meyering  <meyering@redhat.com>
63931
63932         Avoid a configure-time syntax error in gl_FUNC_ACL.
63933         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63934         function in each branch, before testing the cache variable.
63935
63936 2007-12-04  Eric Blake  <ebb9@byu.net>
63937
63938         Make scripts executable.
63939         * build-aux/config.guess: Add execute permissions.
63940         * build-aux/config.sub: Likewise.
63941         * build-aux/gendocs.sh: Likewise.
63942
63943         Fix frexp on mingw.
63944         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63945         cross-compiling.
63946         * doc/functions/frexp.texi (frexp): Document the bug.
63947
63948         Make cygwin fseeko check more reliable.
63949         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63950         version numbers, rather than unrelated feature check.
63951         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63952         * doc/functions/ftello.texi (ftello): Likewise.
63953         Reported by Bruno Haible.
63954
63955         * m4/strerror.m4: Bump version number.
63956
63957 2007-12-03  Bruno Haible  <bruno@clisp.org>
63958
63959         * doc/functions/mprotect.texi: Mention the mingw problem.
63960
63961 2007-12-03  Eric Blake  <ebb9@byu.net>
63962
63963         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63964         REPLACE_STRERROR is initialized before this macro.
63965
63966 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63967
63968         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63969         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63970         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63971         put -lsec in even for programs other than 'ls'.  This fixes a problem
63972         for gettext reported by Bruno Haible in
63973         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63974         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63975         Add support for Solaris 10.  This isn't efficient, but should get the
63976         job done for now.
63977
63978 2007-12-03  James Youngman  <jay@gnu.org>
63979
63980         * doc/regexprops-generic.texi: change "an close-group" to "a
63981         close-group" and "illegal" to "not allowed".
63982
63983 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63984
63985         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63986         pr_byname.h. Needed for the rare case when the maintainer has done
63987         "make maintainer-clean" in the source directory and then attempts a
63988         build outside the source directory.
63989         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63990         scripts_byname.h.
63991
63992 2007-12-02  Martin Lambers <marlam@marlam.de>
63993             Bruno Haible  <bruno@clisp.org>
63994
63995         * lib/getpagesize.h: Remove file.
63996         * lib/unistd.in.h: Include declaration of getpagesize here.
63997         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63998         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63999         HAVE_SYS_PARAM_H.
64000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64001         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64002         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64003         (Depends-on): Add unistd.
64004         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64005         (Include): Use <unistd.h> instead of getpagesize.h.
64006         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64007         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64008         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64009         gl_GETPAGESIZE invocation, already handled by module dependency.
64010         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64011
64012 2007-12-02  Bruno Haible  <bruno@clisp.org>
64013
64014         * modules/strings-tests: New file.
64015         * tests/test-strings.c: New file.
64016
64017         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64018         * lib/strings.in.h: New file.
64019         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64020         * m4/strings_h.m4: New file.
64021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64022         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64023         * modules/strings: New file.
64024         * modules/string (Makefile.am): Update.
64025         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64026         Reported by Karl Berry.
64027
64028 2007-12-01  Eric Blake  <ebb9@byu.net>
64029
64030         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64031         accommodate fix in cygwin 1.5.25.
64032
64033 2007-12-01  Jim Meyering  <meyering@redhat.com>
64034
64035         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64036         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64037         that would inhibit utf8-optimization of a regexp containing line-
64038         or buffer-anchors, e.g., `^', `$'.
64039
64040 2007-11-30  Bruno Haible  <bruno@clisp.org>
64041
64042         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64043         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64044         glthread_recursive_lock_init.
64045         * lib/lock.c (glthread_recursive_lock_init)
64046         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64047         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64048
64049 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64050
64051         New function qset_acl, like set_acl but with syscall semantics.
64052         * lib/acl.h (qset_acl): New decl.
64053         * lib/acl.c (qset_acl): New function.
64054         (set_acl): Use new function.  Use more-consistent diagnostics.
64055
64056 2007-11-28  Jim Meyering  <meyering@redhat.com>
64057
64058         * modules/physmem (License): Change from GPL to LGPLv2+.
64059
64060 2007-11-26  Bruno Haible  <bruno@clisp.org>
64061
64062         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64063         'long double' type has excess precision.
64064         Reported by Jim Meyering in
64065         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64066
64067 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64068
64069         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64070         Sync from <http://gnu.org/licenses>.
64071         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64072         with license text from same location.
64073         * doc/maintain.texi, doc/standards.texi:  Sync from
64074         <http://savannah.gnu.org/projects/gnustandards>.
64075
64076 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
64077         and Jim Meyering  <meyering@redhat.com>
64078
64079         Adjust getdate' grammar to accept a slightly more regular language.
64080         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64081         Before, the former was rejected.
64082         * lib/getdate.y (digits_to_date_time): New function, factored
64083         out of ...
64084         (number): ...here.  Just call digits_to_date_time.
64085         (hybrid): New non-terminal to handle an <unsigned number,
64086         signed relative offset> sequence consistently.
64087
64088 2007-11-18  Jim Meyering  <meyering@redhat.com>
64089
64090         Pull my changes from coreutils:
64091         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64092         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64093         use of $gnulib_tool_option_extras, so that it's separated from the
64094         preceding argument.
64095
64096         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64097         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64098         parent destination directories before copying a file into place.
64099
64100 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64101
64102         bootstrap: work also with 4-argument variant of AC_INIT
64103         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64104
64105 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64106
64107         Port test-getaddrinfo to Solaris.
64108         Problem reported by Bruno Haible in
64109         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64110         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64111         explanation of setting 'hints'.
64112         Don't reject an implementation merely because it returns EAI_SERVICE.
64113         (EAI_SERVICE): Define to 0 if not defined.
64114
64115 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64116
64117         The license of gnu-make and posix-shell is now "GPLed build tool".
64118         * modules/gnu-make (License): Likewise.
64119         * modules/posix-shell (License): Likewise.
64120
64121         New module posix-shell, for determining a POSIX shell
64122         or perhaps something that is close enough to a POSIX shell.
64123         * m4/posix-shell.m4: New file.
64124         * modules/posix-shell: New file.
64125
64126         * MODULES.html.sh: Mention new module.
64127
64128         New module gnu-make, for determining whether we're using GNU Make.
64129         * m4/gnu-make.m4: New file.
64130         * modules/gnu-make: New file.
64131         * MODULES.html.sh: Mention new module.
64132
64133 2007-11-14  Jim Meyering  <meyering@redhat.com>
64134
64135         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64136         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64137         use this macro to create a function _definition_.
64138         Remove useless "#undef ARGMATCH_DIE".
64139
64140 2007-11-14  Bruno Haible  <bruno@clisp.org>
64141
64142         * lib/config.charset: Update for OpenBSD 4.1.
64143         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64144
64145 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64146
64147         Document 64-bit #if problems in stdint.texi.
64148         * doc/headers/stdint.texi (stdint.h): Mention problems with
64149         64-bit-#if, and how to work around them.
64150
64151         Don't insist on 'long long int' support in the preprocessor.  It
64152         breaks too many things.  For example, PRIdMAX still uses a 'long
64153         long int' format with the latest Sun compiler, even though
64154         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64155         preprocessor problem.  This causes the latest coreutils to dump
64156         core on Solaris 10 sparc with the Sun C compiler.
64157         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64158         the troublesome expressions at configure-time, not at #if-time.
64159         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64160         preprocessor.
64161         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64162         compile-time C checks, done at 'configure'-time.
64163         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64164         * modules/inttypes (Makefile): Substitute the new symbols that
64165         gl_INTTYPES_H now generates.
64166         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64167
64168 2007-11-12  Bruno Haible  <bruno@clisp.org>
64169
64170         Tests for Unicode character classification functions.
64171
64172         * modules/unictype/bidicategory-byname-tests: New file.
64173         * modules/unictype/bidicategory-name-tests: New file.
64174         * modules/unictype/bidicategory-of-tests: New file.
64175         * modules/unictype/bidicategory-test-tests: New file.
64176         * modules/unictype/block-list-tests: New file.
64177         * modules/unictype/block-of-tests: New file.
64178         * modules/unictype/block-test-tests: New file.
64179         * modules/unictype/category-C-tests: New file.
64180         * modules/unictype/category-Cc-tests: New file.
64181         * modules/unictype/category-Cf-tests: New file.
64182         * modules/unictype/category-Cn-tests: New file.
64183         * modules/unictype/category-Co-tests: New file.
64184         * modules/unictype/category-Cs-tests: New file.
64185         * modules/unictype/category-L-tests: New file.
64186         * modules/unictype/category-Ll-tests: New file.
64187         * modules/unictype/category-Lm-tests: New file.
64188         * modules/unictype/category-Lo-tests: New file.
64189         * modules/unictype/category-Lt-tests: New file.
64190         * modules/unictype/category-Lu-tests: New file.
64191         * modules/unictype/category-M-tests: New file.
64192         * modules/unictype/category-Mc-tests: New file.
64193         * modules/unictype/category-Me-tests: New file.
64194         * modules/unictype/category-Mn-tests: New file.
64195         * modules/unictype/category-N-tests: New file.
64196         * modules/unictype/category-Nd-tests: New file.
64197         * modules/unictype/category-Nl-tests: New file.
64198         * modules/unictype/category-No-tests: New file.
64199         * modules/unictype/category-P-tests: New file.
64200         * modules/unictype/category-Pc-tests: New file.
64201         * modules/unictype/category-Pd-tests: New file.
64202         * modules/unictype/category-Pe-tests: New file.
64203         * modules/unictype/category-Pf-tests: New file.
64204         * modules/unictype/category-Pi-tests: New file.
64205         * modules/unictype/category-Po-tests: New file.
64206         * modules/unictype/category-Ps-tests: New file.
64207         * modules/unictype/category-S-tests: New file.
64208         * modules/unictype/category-Sc-tests: New file.
64209         * modules/unictype/category-Sk-tests: New file.
64210         * modules/unictype/category-Sm-tests: New file.
64211         * modules/unictype/category-So-tests: New file.
64212         * modules/unictype/category-Z-tests: New file.
64213         * modules/unictype/category-Zl-tests: New file.
64214         * modules/unictype/category-Zp-tests: New file.
64215         * modules/unictype/category-Zs-tests: New file.
64216         * modules/unictype/category-and-not-tests: New file.
64217         * modules/unictype/category-and-tests: New file.
64218         * modules/unictype/category-byname-tests: New file.
64219         * modules/unictype/category-name-tests: New file.
64220         * modules/unictype/category-none-tests: New file.
64221         * modules/unictype/category-of-tests: New file.
64222         * modules/unictype/category-or-tests: New file.
64223         * modules/unictype/category-test-withtable-tests: New file.
64224         * modules/unictype/combining-class-tests: New file.
64225         * modules/unictype/ctype-alnum-tests: New file.
64226         * modules/unictype/ctype-alpha-tests: New file.
64227         * modules/unictype/ctype-blank-tests: New file.
64228         * modules/unictype/ctype-cntrl-tests: New file.
64229         * modules/unictype/ctype-digit-tests: New file.
64230         * modules/unictype/ctype-graph-tests: New file.
64231         * modules/unictype/ctype-lower-tests: New file.
64232         * modules/unictype/ctype-print-tests: New file.
64233         * modules/unictype/ctype-punct-tests: New file.
64234         * modules/unictype/ctype-space-tests: New file.
64235         * modules/unictype/ctype-upper-tests: New file.
64236         * modules/unictype/ctype-xdigit-tests: New file.
64237         * modules/unictype/decimal-digit-tests: New file.
64238         * modules/unictype/digit-tests: New file.
64239         * modules/unictype/mirror-tests: New file.
64240         * modules/unictype/numeric-tests: New file.
64241         * modules/unictype/property-alphabetic-tests: New file.
64242         * modules/unictype/property-ascii-hex-digit-tests: New file.
64243         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64244         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64245         * modules/unictype/property-bidi-block-separator-tests: New file.
64246         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64247         * modules/unictype/property-bidi-common-separator-tests: New file.
64248         * modules/unictype/property-bidi-control-tests: New file.
64249         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64250         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64251         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64252         * modules/unictype/property-bidi-european-digit-tests: New file.
64253         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64254         * modules/unictype/property-bidi-left-to-right-tests: New file.
64255         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64256         * modules/unictype/property-bidi-other-neutral-tests: New file.
64257         * modules/unictype/property-bidi-pdf-tests: New file.
64258         * modules/unictype/property-bidi-segment-separator-tests: New file.
64259         * modules/unictype/property-bidi-whitespace-tests: New file.
64260         * modules/unictype/property-byname-tests: New file.
64261         * modules/unictype/property-combining-tests: New file.
64262         * modules/unictype/property-composite-tests: New file.
64263         * modules/unictype/property-currency-symbol-tests: New file.
64264         * modules/unictype/property-dash-tests: New file.
64265         * modules/unictype/property-decimal-digit-tests: New file.
64266         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64267         * modules/unictype/property-deprecated-tests: New file.
64268         * modules/unictype/property-diacritic-tests: New file.
64269         * modules/unictype/property-extender-tests: New file.
64270         * modules/unictype/property-format-control-tests: New file.
64271         * modules/unictype/property-grapheme-base-tests: New file.
64272         * modules/unictype/property-grapheme-extend-tests: New file.
64273         * modules/unictype/property-grapheme-link-tests: New file.
64274         * modules/unictype/property-hex-digit-tests: New file.
64275         * modules/unictype/property-hyphen-tests: New file.
64276         * modules/unictype/property-id-continue-tests: New file.
64277         * modules/unictype/property-id-start-tests: New file.
64278         * modules/unictype/property-ideographic-tests: New file.
64279         * modules/unictype/property-ids-binary-operator-tests: New file.
64280         * modules/unictype/property-ids-trinary-operator-tests: New file.
64281         * modules/unictype/property-ignorable-control-tests: New file.
64282         * modules/unictype/property-iso-control-tests: New file.
64283         * modules/unictype/property-join-control-tests: New file.
64284         * modules/unictype/property-left-of-pair-tests: New file.
64285         * modules/unictype/property-line-separator-tests: New file.
64286         * modules/unictype/property-logical-order-exception-tests: New file.
64287         * modules/unictype/property-lowercase-tests: New file.
64288         * modules/unictype/property-math-tests: New file.
64289         * modules/unictype/property-non-break-tests: New file.
64290         * modules/unictype/property-not-a-character-tests: New file.
64291         * modules/unictype/property-numeric-tests: New file.
64292         * modules/unictype/property-other-alphabetic-tests: New file.
64293         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64294         * modules/unictype/property-other-grapheme-extend-tests: New file.
64295         * modules/unictype/property-other-id-continue-tests: New file.
64296         * modules/unictype/property-other-id-start-tests: New file.
64297         * modules/unictype/property-other-lowercase-tests: New file.
64298         * modules/unictype/property-other-math-tests: New file.
64299         * modules/unictype/property-other-uppercase-tests: New file.
64300         * modules/unictype/property-paired-punctuation-tests: New file.
64301         * modules/unictype/property-paragraph-separator-tests: New file.
64302         * modules/unictype/property-pattern-syntax-tests: New file.
64303         * modules/unictype/property-pattern-white-space-tests: New file.
64304         * modules/unictype/property-private-use-tests: New file.
64305         * modules/unictype/property-punctuation-tests: New file.
64306         * modules/unictype/property-quotation-mark-tests: New file.
64307         * modules/unictype/property-radical-tests: New file.
64308         * modules/unictype/property-sentence-terminal-tests: New file.
64309         * modules/unictype/property-soft-dotted-tests: New file.
64310         * modules/unictype/property-space-tests: New file.
64311         * modules/unictype/property-terminal-punctuation-tests: New file.
64312         * modules/unictype/property-test-tests: New file.
64313         * modules/unictype/property-titlecase-tests: New file.
64314         * modules/unictype/property-unassigned-code-value-tests: New file.
64315         * modules/unictype/property-unified-ideograph-tests: New file.
64316         * modules/unictype/property-uppercase-tests: New file.
64317         * modules/unictype/property-variation-selector-tests: New file.
64318         * modules/unictype/property-white-space-tests: New file.
64319         * modules/unictype/property-xid-continue-tests: New file.
64320         * modules/unictype/property-xid-start-tests: New file.
64321         * modules/unictype/property-zero-width-tests: New file.
64322         * modules/unictype/scripts-tests: New file.
64323         * modules/unictype/syntax-c-ident-tests: New file.
64324         * modules/unictype/syntax-c-whitespace-tests: New file.
64325         * modules/unictype/syntax-java-ident-tests: New file.
64326         * modules/unictype/syntax-java-whitespace-tests: New file.
64327         * tests/unictype/test-bidi_byname.c: New file.
64328         * tests/unictype/test-bidi_name.c: New file.
64329         * tests/unictype/test-bidi_of.c: New file.
64330         * tests/unictype/test-bidi_test.c: New file.
64331         * tests/unictype/test-block_list.c: New file.
64332         * tests/unictype/test-block_of.c: New file.
64333         * tests/unictype/test-block_test.c: New file.
64334         * tests/unictype/test-categ_and.c: New file.
64335         * tests/unictype/test-categ_and_not.c: New file.
64336         * tests/unictype/test-categ_byname.c: New file.
64337         * tests/unictype/test-categ_name.c: New file.
64338         * tests/unictype/test-categ_none.c: New file.
64339         * tests/unictype/test-categ_of.c: New file.
64340         * tests/unictype/test-categ_or.c: New file.
64341         * tests/unictype/test-categ_test_withtable.c: New file.
64342         * tests/unictype/test-combining.c: New file.
64343         * tests/unictype/test-decdigit.c: New file.
64344         * tests/unictype/test-digit.c: New file.
64345         * tests/unictype/test-mirror.c: New file.
64346         * tests/unictype/test-numeric.c: New file.
64347         * tests/unictype/test-pr_byname.c: New file.
64348         * tests/unictype/test-pr_test.c: New file.
64349         * tests/unictype/test-predicate-part1.h: New file.
64350         * tests/unictype/test-predicate-part2.h: New file.
64351         * tests/unictype/test-scripts.c: New file.
64352         * tests/unictype/test-sy_c_ident.c: New file.
64353         * tests/unictype/test-sy_java_ident.c: New file.
64354
64355         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64356         for Unicode 5.0.0.
64357         * tests/unictype/test-categ_Cc.c: Likewise.
64358         * tests/unictype/test-categ_Cf.c: Likewise.
64359         * tests/unictype/test-categ_Cn.c: Likewise.
64360         * tests/unictype/test-categ_Co.c: Likewise.
64361         * tests/unictype/test-categ_Cs.c: Likewise.
64362         * tests/unictype/test-categ_L.c: Likewise.
64363         * tests/unictype/test-categ_Ll.c: Likewise.
64364         * tests/unictype/test-categ_Lm.c: Likewise.
64365         * tests/unictype/test-categ_Lo.c: Likewise.
64366         * tests/unictype/test-categ_Lt.c: Likewise.
64367         * tests/unictype/test-categ_Lu.c: Likewise.
64368         * tests/unictype/test-categ_M.c: Likewise.
64369         * tests/unictype/test-categ_Mc.c: Likewise.
64370         * tests/unictype/test-categ_Me.c: Likewise.
64371         * tests/unictype/test-categ_Mn.c: Likewise.
64372         * tests/unictype/test-categ_N.c: Likewise.
64373         * tests/unictype/test-categ_Nd.c: Likewise.
64374         * tests/unictype/test-categ_Nl.c: Likewise.
64375         * tests/unictype/test-categ_No.c: Likewise.
64376         * tests/unictype/test-categ_P.c: Likewise.
64377         * tests/unictype/test-categ_Pc.c: Likewise.
64378         * tests/unictype/test-categ_Pd.c: Likewise.
64379         * tests/unictype/test-categ_Pe.c: Likewise.
64380         * tests/unictype/test-categ_Pf.c: Likewise.
64381         * tests/unictype/test-categ_Pi.c: Likewise.
64382         * tests/unictype/test-categ_Po.c: Likewise.
64383         * tests/unictype/test-categ_Ps.c: Likewise.
64384         * tests/unictype/test-categ_S.c: Likewise.
64385         * tests/unictype/test-categ_Sc.c: Likewise.
64386         * tests/unictype/test-categ_Sk.c: Likewise.
64387         * tests/unictype/test-categ_Sm.c: Likewise.
64388         * tests/unictype/test-categ_So.c: Likewise.
64389         * tests/unictype/test-categ_Z.c: Likewise.
64390         * tests/unictype/test-categ_Zl.c: Likewise.
64391         * tests/unictype/test-categ_Zp.c: Likewise.
64392         * tests/unictype/test-categ_Zs.c: Likewise.
64393         * tests/unictype/test-ctype_alnum.c: Likewise.
64394         * tests/unictype/test-ctype_alpha.c: Likewise.
64395         * tests/unictype/test-ctype_blank.c: Likewise.
64396         * tests/unictype/test-ctype_cntrl.c: Likewise.
64397         * tests/unictype/test-ctype_digit.c: Likewise.
64398         * tests/unictype/test-ctype_graph.c: Likewise.
64399         * tests/unictype/test-ctype_lower.c: Likewise.
64400         * tests/unictype/test-ctype_print.c: Likewise.
64401         * tests/unictype/test-ctype_punct.c: Likewise.
64402         * tests/unictype/test-ctype_space.c: Likewise.
64403         * tests/unictype/test-ctype_upper.c: Likewise.
64404         * tests/unictype/test-ctype_xdigit.c: Likewise.
64405         * tests/unictype/test-decdigit.h: Likewise.
64406         * tests/unictype/test-digit.h: Likewise.
64407         * tests/unictype/test-numeric.h: Likewise.
64408         * tests/unictype/test-pr_alphabetic.c: Likewise.
64409         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64410         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64411         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64412         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64413         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64414         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64415         * tests/unictype/test-pr_bidi_control.c: Likewise.
64416         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64417         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64418         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64419         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64420         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64421         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64422         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64423         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64424         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64425         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64426         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64427         * tests/unictype/test-pr_combining.c: Likewise.
64428         * tests/unictype/test-pr_composite.c: Likewise.
64429         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64430         * tests/unictype/test-pr_dash.c: Likewise.
64431         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64432         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64433         * tests/unictype/test-pr_deprecated.c: Likewise.
64434         * tests/unictype/test-pr_diacritic.c: Likewise.
64435         * tests/unictype/test-pr_extender.c: Likewise.
64436         * tests/unictype/test-pr_format_control.c: Likewise.
64437         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64438         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64439         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64440         * tests/unictype/test-pr_hex_digit.c: Likewise.
64441         * tests/unictype/test-pr_hyphen.c: Likewise.
64442         * tests/unictype/test-pr_id_continue.c: Likewise.
64443         * tests/unictype/test-pr_id_start.c: Likewise.
64444         * tests/unictype/test-pr_ideographic.c: Likewise.
64445         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64446         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64447         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64448         * tests/unictype/test-pr_iso_control.c: Likewise.
64449         * tests/unictype/test-pr_join_control.c: Likewise.
64450         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64451         * tests/unictype/test-pr_line_separator.c: Likewise.
64452         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64453         * tests/unictype/test-pr_lowercase.c: Likewise.
64454         * tests/unictype/test-pr_math.c: Likewise.
64455         * tests/unictype/test-pr_non_break.c: Likewise.
64456         * tests/unictype/test-pr_not_a_character.c: Likewise.
64457         * tests/unictype/test-pr_numeric.c: Likewise.
64458         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64459         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64460         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64461         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64462         * tests/unictype/test-pr_other_id_start.c: Likewise.
64463         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64464         * tests/unictype/test-pr_other_math.c: Likewise.
64465         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64466         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64467         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64468         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64469         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64470         * tests/unictype/test-pr_private_use.c: Likewise.
64471         * tests/unictype/test-pr_punctuation.c: Likewise.
64472         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64473         * tests/unictype/test-pr_radical.c: Likewise.
64474         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64475         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64476         * tests/unictype/test-pr_space.c: Likewise.
64477         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64478         * tests/unictype/test-pr_titlecase.c: Likewise.
64479         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64480         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64481         * tests/unictype/test-pr_uppercase.c: Likewise.
64482         * tests/unictype/test-pr_variation_selector.c: Likewise.
64483         * tests/unictype/test-pr_white_space.c: Likewise.
64484         * tests/unictype/test-pr_xid_continue.c: Likewise.
64485         * tests/unictype/test-pr_xid_start.c: Likewise.
64486         * tests/unictype/test-pr_zero_width.c: Likewise.
64487         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64488         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64489
64490 2007-11-12  Bruno Haible  <bruno@clisp.org>
64491
64492         Unicode character classification functions.
64493         * lib/unictype.h: New file.
64494         * modules/unictype/base: New file.
64495         * modules/unictype/category-L: New file.
64496         * modules/unictype/category-Lu: New file.
64497         * modules/unictype/category-Ll: New file.
64498         * modules/unictype/category-Lt: New file.
64499         * modules/unictype/category-Lm: New file.
64500         * modules/unictype/category-Lo: New file.
64501         * modules/unictype/category-M: New file.
64502         * modules/unictype/category-Mn: New file.
64503         * modules/unictype/category-Mc: New file.
64504         * modules/unictype/category-Me: New file.
64505         * modules/unictype/category-N: New file.
64506         * modules/unictype/category-Nd: New file.
64507         * modules/unictype/category-Nl: New file.
64508         * modules/unictype/category-No: New file.
64509         * modules/unictype/category-P: New file.
64510         * modules/unictype/category-Pc: New file.
64511         * modules/unictype/category-Pd: New file.
64512         * modules/unictype/category-Ps: New file.
64513         * modules/unictype/category-Pe: New file.
64514         * modules/unictype/category-Pi: New file.
64515         * modules/unictype/category-Pf: New file.
64516         * modules/unictype/category-Po: New file.
64517         * modules/unictype/category-S: New file.
64518         * modules/unictype/category-Sm: New file.
64519         * modules/unictype/category-Sc: New file.
64520         * modules/unictype/category-Sk: New file.
64521         * modules/unictype/category-So: New file.
64522         * modules/unictype/category-Z: New file.
64523         * modules/unictype/category-Zs: New file.
64524         * modules/unictype/category-Zl: New file.
64525         * modules/unictype/category-Zp: New file.
64526         * modules/unictype/category-C: New file.
64527         * modules/unictype/category-Cc: New file.
64528         * modules/unictype/category-Cf: New file.
64529         * modules/unictype/category-Cs: New file.
64530         * modules/unictype/category-Co: New file.
64531         * modules/unictype/category-Cn: New file.
64532         * modules/unictype/category-or: New file.
64533         * modules/unictype/category-of: New file.
64534         * modules/unictype/category-test: New file.
64535         * modules/unictype/category-test-withtable: New file.
64536         * modules/unictype/category-byname: New file.
64537         * modules/unictype/category-none: New file.
64538         * modules/unictype/category-and: New file.
64539         * modules/unictype/category-and-not: New file.
64540         * modules/unictype/category-name: New file.
64541         * modules/unictype/combining-class: New file.
64542         * modules/unictype/category-all: New file.
64543         * modules/unictype/bidicategory-all: New file.
64544         * modules/unictype/bidicategory-byname: New file.
64545         * modules/unictype/bidicategory-name: New file.
64546         * modules/unictype/bidicategory-of: New file.
64547         * modules/unictype/bidicategory-test: New file.
64548         * modules/unictype/decimal-digit: New file.
64549         * modules/unictype/digit: New file.
64550         * modules/unictype/numeric: New file.
64551         * modules/unictype/mirror: New file.
64552         * modules/unictype/property-white-space: New file.
64553         * modules/unictype/property-alphabetic: New file.
64554         * modules/unictype/property-other-alphabetic: New file.
64555         * modules/unictype/property-not-a-character: New file.
64556         * modules/unictype/property-default-ignorable-code-point: New file.
64557         * modules/unictype/property-other-default-ignorable-code-point: New
64558         file.
64559         * modules/unictype/property-deprecated: New file.
64560         * modules/unictype/property-logical-order-exception: New file.
64561         * modules/unictype/property-variation-selector: New file.
64562         * modules/unictype/property-private-use: New file.
64563         * modules/unictype/property-unassigned-code-value: New file.
64564         * modules/unictype/property-uppercase: New file.
64565         * modules/unictype/property-other-uppercase: New file.
64566         * modules/unictype/property-lowercase: New file.
64567         * modules/unictype/property-other-lowercase: New file.
64568         * modules/unictype/property-titlecase: New file.
64569         * modules/unictype/property-soft-dotted: New file.
64570         * modules/unictype/property-id-start: New file.
64571         * modules/unictype/property-other-id-start: New file.
64572         * modules/unictype/property-id-continue: New file.
64573         * modules/unictype/property-other-id-continue: New file.
64574         * modules/unictype/property-xid-start: New file.
64575         * modules/unictype/property-xid-continue: New file.
64576         * modules/unictype/property-pattern-white-space: New file.
64577         * modules/unictype/property-pattern-syntax: New file.
64578         * modules/unictype/property-join-control: New file.
64579         * modules/unictype/property-grapheme-base: New file.
64580         * modules/unictype/property-grapheme-extend: New file.
64581         * modules/unictype/property-other-grapheme-extend: New file.
64582         * modules/unictype/property-grapheme-link: New file.
64583         * modules/unictype/property-bidi-control: New file.
64584         * modules/unictype/property-bidi-left-to-right: New file.
64585         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64586         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64587         * modules/unictype/property-bidi-european-digit: New file.
64588         * modules/unictype/property-bidi-eur-num-separator: New file.
64589         * modules/unictype/property-bidi-eur-num-terminator: New file.
64590         * modules/unictype/property-bidi-arabic-digit: New file.
64591         * modules/unictype/property-bidi-common-separator: New file.
64592         * modules/unictype/property-bidi-block-separator: New file.
64593         * modules/unictype/property-bidi-segment-separator: New file.
64594         * modules/unictype/property-bidi-whitespace: New file.
64595         * modules/unictype/property-bidi-non-spacing-mark: New file.
64596         * modules/unictype/property-bidi-boundary-neutral: New file.
64597         * modules/unictype/property-bidi-pdf: New file.
64598         * modules/unictype/property-bidi-embedding-or-override: New file.
64599         * modules/unictype/property-bidi-other-neutral: New file.
64600         * modules/unictype/property-hex-digit: New file.
64601         * modules/unictype/property-ascii-hex-digit: New file.
64602         * modules/unictype/property-ideographic: New file.
64603         * modules/unictype/property-unified-ideograph: New file.
64604         * modules/unictype/property-radical: New file.
64605         * modules/unictype/property-ids-binary-operator: New file.
64606         * modules/unictype/property-ids-trinary-operator: New file.
64607         * modules/unictype/property-zero-width: New file.
64608         * modules/unictype/property-space: New file.
64609         * modules/unictype/property-non-break: New file.
64610         * modules/unictype/property-iso-control: New file.
64611         * modules/unictype/property-format-control: New file.
64612         * modules/unictype/property-dash: New file.
64613         * modules/unictype/property-hyphen: New file.
64614         * modules/unictype/property-punctuation: New file.
64615         * modules/unictype/property-line-separator: New file.
64616         * modules/unictype/property-paragraph-separator: New file.
64617         * modules/unictype/property-quotation-mark: New file.
64618         * modules/unictype/property-sentence-terminal: New file.
64619         * modules/unictype/property-terminal-punctuation: New file.
64620         * modules/unictype/property-currency-symbol: New file.
64621         * modules/unictype/property-math: New file.
64622         * modules/unictype/property-other-math: New file.
64623         * modules/unictype/property-paired-punctuation: New file.
64624         * modules/unictype/property-left-of-pair: New file.
64625         * modules/unictype/property-combining: New file.
64626         * modules/unictype/property-composite: New file.
64627         * modules/unictype/property-decimal-digit: New file.
64628         * modules/unictype/property-numeric: New file.
64629         * modules/unictype/property-diacritic: New file.
64630         * modules/unictype/property-extender: New file.
64631         * modules/unictype/property-ignorable-control: New file.
64632         * modules/unictype/property-test: New file.
64633         * modules/unictype/property-byname: New file.
64634         * modules/unictype/property-all: New file.
64635         * modules/unictype/scripts: New file.
64636         * modules/unictype/scripts-all: New file.
64637         * modules/unictype/block-of: New file.
64638         * modules/unictype/block-test: New file.
64639         * modules/unictype/block-list: New file.
64640         * modules/unictype/block-all: New file.
64641         * modules/unictype/syntax-c-whitespace: New file.
64642         * modules/unictype/syntax-java-whitespace: New file.
64643         * modules/unictype/syntax-c-ident: New file.
64644         * modules/unictype/syntax-java-ident: New file.
64645         * modules/unictype/ctype-alnum: New file.
64646         * modules/unictype/ctype-alpha: New file.
64647         * modules/unictype/ctype-cntrl: New file.
64648         * modules/unictype/ctype-digit: New file.
64649         * modules/unictype/ctype-graph: New file.
64650         * modules/unictype/ctype-lower: New file.
64651         * modules/unictype/ctype-print: New file.
64652         * modules/unictype/ctype-punct: New file.
64653         * modules/unictype/ctype-space: New file.
64654         * modules/unictype/ctype-upper: New file.
64655         * modules/unictype/ctype-xdigit: New file.
64656         * modules/unictype/ctype-blank: New file.
64657         * lib/unictype/bidi_byname.c: New file.
64658         * lib/unictype/bidi_name.c: New file.
64659         * lib/unictype/bidi_of.c: New file.
64660         * lib/unictype/bidi_test.c: New file.
64661         * lib/unictype/bitmap.h: New file.
64662         * lib/unictype/block_test.c: New file.
64663         * lib/unictype/blocks.c: New file.
64664         * lib/unictype/categ_C.c: New file.
64665         * lib/unictype/categ_Cc.c: New file.
64666         * lib/unictype/categ_Cf.c: New file.
64667         * lib/unictype/categ_Cn.c: New file.
64668         * lib/unictype/categ_Co.c: New file.
64669         * lib/unictype/categ_Cs.c: New file.
64670         * lib/unictype/categ_L.c: New file.
64671         * lib/unictype/categ_Ll.c: New file.
64672         * lib/unictype/categ_Lm.c: New file.
64673         * lib/unictype/categ_Lo.c: New file.
64674         * lib/unictype/categ_Lt.c: New file.
64675         * lib/unictype/categ_Lu.c: New file.
64676         * lib/unictype/categ_M.c: New file.
64677         * lib/unictype/categ_Mc.c: New file.
64678         * lib/unictype/categ_Me.c: New file.
64679         * lib/unictype/categ_Mn.c: New file.
64680         * lib/unictype/categ_N.c: New file.
64681         * lib/unictype/categ_Nd.c: New file.
64682         * lib/unictype/categ_Nl.c: New file.
64683         * lib/unictype/categ_No.c: New file.
64684         * lib/unictype/categ_P.c: New file.
64685         * lib/unictype/categ_Pc.c: New file.
64686         * lib/unictype/categ_Pd.c: New file.
64687         * lib/unictype/categ_Pe.c: New file.
64688         * lib/unictype/categ_Pf.c: New file.
64689         * lib/unictype/categ_Pi.c: New file.
64690         * lib/unictype/categ_Po.c: New file.
64691         * lib/unictype/categ_Ps.c: New file.
64692         * lib/unictype/categ_S.c: New file.
64693         * lib/unictype/categ_Sc.c: New file.
64694         * lib/unictype/categ_Sk.c: New file.
64695         * lib/unictype/categ_Sm.c: New file.
64696         * lib/unictype/categ_So.c: New file.
64697         * lib/unictype/categ_Z.c: New file.
64698         * lib/unictype/categ_Zl.c: New file.
64699         * lib/unictype/categ_Zp.c: New file.
64700         * lib/unictype/categ_Zs.c: New file.
64701         * lib/unictype/categ_and.c: New file.
64702         * lib/unictype/categ_and_not.c: New file.
64703         * lib/unictype/categ_byname.c: New file.
64704         * lib/unictype/categ_name.c: New file.
64705         * lib/unictype/categ_none.c: New file.
64706         * lib/unictype/categ_of.c: New file.
64707         * lib/unictype/categ_or.c: New file.
64708         * lib/unictype/categ_test.c: New file.
64709         * lib/unictype/combining.c: New file.
64710         * lib/unictype/ctype_alnum.c: New file.
64711         * lib/unictype/ctype_alpha.c: New file.
64712         * lib/unictype/ctype_blank.c: New file.
64713         * lib/unictype/ctype_cntrl.c: New file.
64714         * lib/unictype/ctype_digit.c: New file.
64715         * lib/unictype/ctype_graph.c: New file.
64716         * lib/unictype/ctype_lower.c: New file.
64717         * lib/unictype/ctype_print.c: New file.
64718         * lib/unictype/ctype_punct.c: New file.
64719         * lib/unictype/ctype_space.c: New file.
64720         * lib/unictype/ctype_upper.c: New file.
64721         * lib/unictype/ctype_xdigit.c: New file.
64722         * lib/unictype/decdigit.c: New file.
64723         * lib/unictype/digit.c: New file.
64724         * lib/unictype/identsyntaxmap.h: New file.
64725         * lib/unictype/mirror.c: New file.
64726         * lib/unictype/numeric.c: New file.
64727         * lib/unictype/pr_alphabetic.c: New file.
64728         * lib/unictype/pr_ascii_hex_digit.c: New file.
64729         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64730         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64731         * lib/unictype/pr_bidi_block_separator.c: New file.
64732         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64733         * lib/unictype/pr_bidi_common_separator.c: New file.
64734         * lib/unictype/pr_bidi_control.c: New file.
64735         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64736         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64737         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64738         * lib/unictype/pr_bidi_european_digit.c: New file.
64739         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64740         * lib/unictype/pr_bidi_left_to_right.c: New file.
64741         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64742         * lib/unictype/pr_bidi_other_neutral.c: New file.
64743         * lib/unictype/pr_bidi_pdf.c: New file.
64744         * lib/unictype/pr_bidi_segment_separator.c: New file.
64745         * lib/unictype/pr_bidi_whitespace.c: New file.
64746         * lib/unictype/pr_byname.c: New file.
64747         * lib/unictype/pr_byname.gperf: New file.
64748         * lib/unictype/pr_combining.c: New file.
64749         * lib/unictype/pr_composite.c: New file.
64750         * lib/unictype/pr_currency_symbol.c: New file.
64751         * lib/unictype/pr_dash.c: New file.
64752         * lib/unictype/pr_decimal_digit.c: New file.
64753         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64754         * lib/unictype/pr_deprecated.c: New file.
64755         * lib/unictype/pr_diacritic.c: New file.
64756         * lib/unictype/pr_extender.c: New file.
64757         * lib/unictype/pr_format_control.c: New file.
64758         * lib/unictype/pr_grapheme_base.c: New file.
64759         * lib/unictype/pr_grapheme_extend.c: New file.
64760         * lib/unictype/pr_grapheme_link.c: New file.
64761         * lib/unictype/pr_hex_digit.c: New file.
64762         * lib/unictype/pr_hyphen.c: New file.
64763         * lib/unictype/pr_id_continue.c: New file.
64764         * lib/unictype/pr_id_start.c: New file.
64765         * lib/unictype/pr_ideographic.c: New file.
64766         * lib/unictype/pr_ids_binary_operator.c: New file.
64767         * lib/unictype/pr_ids_trinary_operator.c: New file.
64768         * lib/unictype/pr_ignorable_control.c: New file.
64769         * lib/unictype/pr_iso_control.c: New file.
64770         * lib/unictype/pr_join_control.c: New file.
64771         * lib/unictype/pr_left_of_pair.c: New file.
64772         * lib/unictype/pr_line_separator.c: New file.
64773         * lib/unictype/pr_logical_order_exception.c: New file.
64774         * lib/unictype/pr_lowercase.c: New file.
64775         * lib/unictype/pr_math.c: New file.
64776         * lib/unictype/pr_non_break.c: New file.
64777         * lib/unictype/pr_not_a_character.c: New file.
64778         * lib/unictype/pr_numeric.c: New file.
64779         * lib/unictype/pr_other_alphabetic.c: New file.
64780         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64781         * lib/unictype/pr_other_grapheme_extend.c: New file.
64782         * lib/unictype/pr_other_id_continue.c: New file.
64783         * lib/unictype/pr_other_id_start.c: New file.
64784         * lib/unictype/pr_other_lowercase.c: New file.
64785         * lib/unictype/pr_other_math.c: New file.
64786         * lib/unictype/pr_other_uppercase.c: New file.
64787         * lib/unictype/pr_paired_punctuation.c: New file.
64788         * lib/unictype/pr_paragraph_separator.c: New file.
64789         * lib/unictype/pr_pattern_syntax.c: New file.
64790         * lib/unictype/pr_pattern_white_space.c: New file.
64791         * lib/unictype/pr_private_use.c: New file.
64792         * lib/unictype/pr_punctuation.c: New file.
64793         * lib/unictype/pr_quotation_mark.c: New file.
64794         * lib/unictype/pr_radical.c: New file.
64795         * lib/unictype/pr_sentence_terminal.c: New file.
64796         * lib/unictype/pr_soft_dotted.c: New file.
64797         * lib/unictype/pr_space.c: New file.
64798         * lib/unictype/pr_terminal_punctuation.c: New file.
64799         * lib/unictype/pr_test.c: New file.
64800         * lib/unictype/pr_titlecase.c: New file.
64801         * lib/unictype/pr_unassigned_code_value.c: New file.
64802         * lib/unictype/pr_unified_ideograph.c: New file.
64803         * lib/unictype/pr_uppercase.c: New file.
64804         * lib/unictype/pr_variation_selector.c: New file.
64805         * lib/unictype/pr_white_space.c: New file.
64806         * lib/unictype/pr_xid_continue.c: New file.
64807         * lib/unictype/pr_xid_start.c: New file.
64808         * lib/unictype/pr_zero_width.c: New file.
64809         * lib/unictype/scripts.c: New file.
64810         * lib/unictype/sy_c_ident.c: New file.
64811         * lib/unictype/sy_c_whitespace.c: New file.
64812         * lib/unictype/sy_java_ident.c: New file.
64813         * lib/unictype/sy_java_whitespace.c: New file.
64814
64815         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64816         Unicode 5.0.0.
64817         * lib/unictype/blocks.h: Likewise.
64818         * lib/unictype/categ_C.h: Likewise.
64819         * lib/unictype/categ_Cc.h: Likewise.
64820         * lib/unictype/categ_Cf.h: Likewise.
64821         * lib/unictype/categ_Cn.h: Likewise.
64822         * lib/unictype/categ_Co.h: Likewise.
64823         * lib/unictype/categ_Cs.h: Likewise.
64824         * lib/unictype/categ_L.h: Likewise.
64825         * lib/unictype/categ_Ll.h: Likewise.
64826         * lib/unictype/categ_Lm.h: Likewise.
64827         * lib/unictype/categ_Lo.h: Likewise.
64828         * lib/unictype/categ_Lt.h: Likewise.
64829         * lib/unictype/categ_Lu.h: Likewise.
64830         * lib/unictype/categ_M.h: Likewise.
64831         * lib/unictype/categ_Mc.h: Likewise.
64832         * lib/unictype/categ_Me.h: Likewise.
64833         * lib/unictype/categ_Mn.h: Likewise.
64834         * lib/unictype/categ_N.h: Likewise.
64835         * lib/unictype/categ_Nd.h: Likewise.
64836         * lib/unictype/categ_Nl.h: Likewise.
64837         * lib/unictype/categ_No.h: Likewise.
64838         * lib/unictype/categ_P.h: Likewise.
64839         * lib/unictype/categ_Pc.h: Likewise.
64840         * lib/unictype/categ_Pd.h: Likewise.
64841         * lib/unictype/categ_Pe.h: Likewise.
64842         * lib/unictype/categ_Pf.h: Likewise.
64843         * lib/unictype/categ_Pi.h: Likewise.
64844         * lib/unictype/categ_Po.h: Likewise.
64845         * lib/unictype/categ_Ps.h: Likewise.
64846         * lib/unictype/categ_S.h: Likewise.
64847         * lib/unictype/categ_Sc.h: Likewise.
64848         * lib/unictype/categ_Sk.h: Likewise.
64849         * lib/unictype/categ_Sm.h: Likewise.
64850         * lib/unictype/categ_So.h: Likewise.
64851         * lib/unictype/categ_Z.h: Likewise.
64852         * lib/unictype/categ_Zl.h: Likewise.
64853         * lib/unictype/categ_Zp.h: Likewise.
64854         * lib/unictype/categ_Zs.h: Likewise.
64855         * lib/unictype/categ_of.h: Likewise.
64856         * lib/unictype/combining.h: Likewise.
64857         * lib/unictype/ctype_alnum.h: Likewise.
64858         * lib/unictype/ctype_alpha.h: Likewise.
64859         * lib/unictype/ctype_blank.h: Likewise.
64860         * lib/unictype/ctype_cntrl.h: Likewise.
64861         * lib/unictype/ctype_digit.h: Likewise.
64862         * lib/unictype/ctype_graph.h: Likewise.
64863         * lib/unictype/ctype_lower.h: Likewise.
64864         * lib/unictype/ctype_print.h: Likewise.
64865         * lib/unictype/ctype_punct.h: Likewise.
64866         * lib/unictype/ctype_space.h: Likewise.
64867         * lib/unictype/ctype_upper.h: Likewise.
64868         * lib/unictype/ctype_xdigit.h: Likewise.
64869         * lib/unictype/decdigit.h: Likewise.
64870         * lib/unictype/digit.h: Likewise.
64871         * lib/unictype/mirror.h: Likewise.
64872         * lib/unictype/numeric.h: Likewise.
64873         * lib/unictype/pr_alphabetic.h: Likewise.
64874         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
64875         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
64876         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
64877         * lib/unictype/pr_bidi_block_separator.h: Likewise.
64878         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
64879         * lib/unictype/pr_bidi_common_separator.h: Likewise.
64880         * lib/unictype/pr_bidi_control.h: Likewise.
64881         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
64882         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
64883         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
64884         * lib/unictype/pr_bidi_european_digit.h: Likewise.
64885         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
64886         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
64887         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
64888         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
64889         * lib/unictype/pr_bidi_pdf.h: Likewise.
64890         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
64891         * lib/unictype/pr_bidi_whitespace.h: Likewise.
64892         * lib/unictype/pr_combining.h: Likewise.
64893         * lib/unictype/pr_composite.h: Likewise.
64894         * lib/unictype/pr_currency_symbol.h: Likewise.
64895         * lib/unictype/pr_dash.h: Likewise.
64896         * lib/unictype/pr_decimal_digit.h: Likewise.
64897         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
64898         * lib/unictype/pr_deprecated.h: Likewise.
64899         * lib/unictype/pr_diacritic.h: Likewise.
64900         * lib/unictype/pr_extender.h: Likewise.
64901         * lib/unictype/pr_format_control.h: Likewise.
64902         * lib/unictype/pr_grapheme_base.h: Likewise.
64903         * lib/unictype/pr_grapheme_extend.h: Likewise.
64904         * lib/unictype/pr_grapheme_link.h: Likewise.
64905         * lib/unictype/pr_hex_digit.h: Likewise.
64906         * lib/unictype/pr_hyphen.h: Likewise.
64907         * lib/unictype/pr_id_continue.h: Likewise.
64908         * lib/unictype/pr_id_start.h: Likewise.
64909         * lib/unictype/pr_ideographic.h: Likewise.
64910         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64911         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64912         * lib/unictype/pr_ignorable_control.h: Likewise.
64913         * lib/unictype/pr_iso_control.h: Likewise.
64914         * lib/unictype/pr_join_control.h: Likewise.
64915         * lib/unictype/pr_left_of_pair.h: Likewise.
64916         * lib/unictype/pr_line_separator.h: Likewise.
64917         * lib/unictype/pr_logical_order_exception.h: Likewise.
64918         * lib/unictype/pr_lowercase.h: Likewise.
64919         * lib/unictype/pr_math.h: Likewise.
64920         * lib/unictype/pr_non_break.h: Likewise.
64921         * lib/unictype/pr_not_a_character.h: Likewise.
64922         * lib/unictype/pr_numeric.h: Likewise.
64923         * lib/unictype/pr_other_alphabetic.h: Likewise.
64924         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64925         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64926         * lib/unictype/pr_other_id_continue.h: Likewise.
64927         * lib/unictype/pr_other_id_start.h: Likewise.
64928         * lib/unictype/pr_other_lowercase.h: Likewise.
64929         * lib/unictype/pr_other_math.h: Likewise.
64930         * lib/unictype/pr_other_uppercase.h: Likewise.
64931         * lib/unictype/pr_paired_punctuation.h: Likewise.
64932         * lib/unictype/pr_paragraph_separator.h: Likewise.
64933         * lib/unictype/pr_pattern_syntax.h: Likewise.
64934         * lib/unictype/pr_pattern_white_space.h: Likewise.
64935         * lib/unictype/pr_private_use.h: Likewise.
64936         * lib/unictype/pr_punctuation.h: Likewise.
64937         * lib/unictype/pr_quotation_mark.h: Likewise.
64938         * lib/unictype/pr_radical.h: Likewise.
64939         * lib/unictype/pr_sentence_terminal.h: Likewise.
64940         * lib/unictype/pr_soft_dotted.h: Likewise.
64941         * lib/unictype/pr_space.h: Likewise.
64942         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64943         * lib/unictype/pr_titlecase.h: Likewise.
64944         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64945         * lib/unictype/pr_unified_ideograph.h: Likewise.
64946         * lib/unictype/pr_uppercase.h: Likewise.
64947         * lib/unictype/pr_variation_selector.h: Likewise.
64948         * lib/unictype/pr_white_space.h: Likewise.
64949         * lib/unictype/pr_xid_continue.h: Likewise.
64950         * lib/unictype/pr_xid_start.h: Likewise.
64951         * lib/unictype/pr_zero_width.h: Likewise.
64952         * lib/unictype/scripts.h: Likewise.
64953         * lib/unictype/scripts_byname.gperf: Likewise.
64954         * lib/unictype/sy_c_ident.h: Likewise.
64955         * lib/unictype/sy_c_whitespace.h: Likewise.
64956         * lib/unictype/sy_java_ident.h: Likewise.
64957         * lib/unictype/sy_java_whitespace.h: Likewise.
64958
64959         * lib/unictype/Makefile: New file.
64960         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64961         glibc.
64962         * lib/unictype/3level.h: New file, copied from glibc.
64963         * lib/unictype/3levelbit.h: New file.
64964
64965 2007-11-11  Bruno Haible  <bruno@clisp.org>
64966
64967         * modules/gperf: New file.
64968         * modules/iconv_open (Depends-on): Add it.
64969         (Makefile.am): Remove the GPERF definition.
64970
64971 2007-11-11  Bruno Haible  <bruno@clisp.org>
64972
64973         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64974         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64975
64976 2007-11-11  Bruno Haible  <bruno@clisp.org>
64977
64978         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64979         (usage): Remove function.
64980
64981 2007-11-11  Bruno Haible  <bruno@clisp.org>
64982
64983         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64984         gl_FUNC_CEILF_LIBS.
64985         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64986         gl_FUNC_CEIL_LIBS.
64987         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64988         gl_FUNC_CEILL_LIBS.
64989         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64990         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64991         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64992
64993 2007-11-11  Bruno Haible  <bruno@clisp.org>
64994
64995         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64996         roundf were declared but do not exist on functions.
64997         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64998         roundl were declared but do not exist on functions.
64999         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65000         HAVE_FLOORL_AND_CEILL, respectively.
65001         Needed for Sun C on Solaris 10.
65002
65003 2007-11-11  Bruno Haible  <bruno@clisp.org>
65004
65005         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65006         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65007         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65008         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65009         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65010         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65011         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65012         HAVE_DECL_ROUNDF.
65013         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65014         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65016         of HAVE_DECL_ROUND*.
65017         * modules/math (Makefile.am): Update.
65018
65019 2007-11-10  Bruno Haible  <bruno@clisp.org>
65020
65021         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65022         ptrdiff_t as m4/intl.m4.
65023
65024 2007-11-10  Jim Meyering  <meyering@redhat.com>
65025
65026         Avoid link failure for the argmatch test.
65027         * tests/test-argmatch.c (usage): Define function to avoid a link
65028         failure: argmatch_die requires a usage function.
65029
65030 2007-11-09  Bruno Haible  <bruno@clisp.org>
65031
65032         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65033         * doc/functions/vsnprintf.texi: Likewise.
65034         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65035         with a size argument < 2.
65036
65037 2007-11-09  Bruno Haible  <bruno@clisp.org>
65038
65039         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65040         buffer. Fixes an inefficiency introduced on 2007-11-03.
65041
65042 2007-11-09  Bruno Haible  <bruno@clisp.org>
65043
65044         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65045         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65046
65047 2007-11-08  Jim Meyering  <meyering@redhat.com>
65048
65049         Change cache variable name prefix "jm_" to "gl_" everywhere.
65050         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65051         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65052         * m4/uptime.m4: s/gl_/jm_/
65053
65054 2007-11-07  Bruno Haible  <bruno@clisp.org>
65055
65056         Update to GNU gettext 0.17.
65057         * m4/intl.m4: Update to GNU gettext 0.17.
65058         * m4/po.m4: Likewise.
65059         * modules/gettext (Files): Remove m4/ulonglong.m4.
65060         (configure.ac): Require gettext infrastructure from version 0.17.
65061
65062 2007-11-06  Bruno Haible  <bruno@clisp.org>
65063
65064         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65065         symbolic values are not defined in a public header.
65066         * lib/freadable.c (freadable) [QNX]: Likewise.
65067         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65068         * lib/freading.c (freading) [QNX]: Likewise.
65069         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65070         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65071         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65072         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65073         Reported by Alain Magloire.
65074
65075         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65076
65077 2007-11-05  Bruno Haible  <bruno@clisp.org>
65078
65079         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65080         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65081         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65082         Reported by Eric Blake.
65083
65084 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65085             Bruno Haible  <bruno@clisp.org>
65086
65087         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65088         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65089         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65090         (malloc): Undefine also before including <stdlib.h>.
65091         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65092         Needed on OSF/1 4.0.
65093
65094 2007-11-05  Jim Meyering  <meyering@redhat.com>
65095
65096         git-version-gen: sync from coreutils.
65097         * build-aux/git-version-gen: Add comments.
65098         Change the first '-' to '.' in the snapshot version string,
65099         e.g., 6.9-377-08144 -> 6.9.377-08144
65100         Remove first parameter.
65101         Don't declare a version "-dirty" merely because a time
65102         stamp has changed.
65103
65104 2007-11-04  Bruno Haible  <bruno@clisp.org>
65105
65106         * lib/lock.h: Protect all macro definitions containing an 'if'
65107         statement through a "do { ... } while (0)".
65108         * lib/tls.h: Likewise.
65109
65110 2007-11-04  Bruno Haible  <bruno@clisp.org>
65111
65112         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65113
65114 2007-11-04  Bruno Haible  <bruno@clisp.org>
65115
65116         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65117         * modules/fprintf-posix (Depends-on): Add nocrash.
65118         * modules/snprintf-posix (Depends-on): Likewise.
65119         * modules/sprintf-posix (Depends-on): Likewise.
65120         * modules/vasnprintf-posix (Depends-on): Likewise.
65121         * modules/vasprintf-posix (Depends-on): Likewise.
65122         * modules/vfprintf-posix (Depends-on): Likewise.
65123         * modules/vsnprintf-posix (Depends-on): Likewise.
65124         * modules/vsprintf-posix (Depends-on): Likewise.
65125         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65126         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65127         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65128         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65129         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65130         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65131         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65132
65133 2007-11-04  Bruno Haible  <bruno@clisp.org>
65134
65135         * modules/nocrash: New file.
65136         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65137         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65138
65139 2007-11-04  Bruno Haible  <bruno@clisp.org>
65140
65141         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65142         precision handling.
65143         * tests/test-vasprintf-posix.c (test_function): Likewise.
65144         * tests/test-snprintf-posix.h (test_function): Likewise.
65145         * tests/test-sprintf-posix.h (test_function): Likewise.
65146
65147         Fix *printf behaviour for large precisions on mingw and BeOS.
65148         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65149         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65150         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65151         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65152         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65153         gl_PRINTF_PRECISION and test its result. Invoke
65154         gl_PREREQ_VASNPRINTF_PRECISION.
65155         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65156         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65158         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65159         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65160         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65161         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65162         * doc/functions/fprintf.texi: Update.
65163         * doc/functions/printf.texi: Update.
65164         * doc/functions/snprintf.texi: Update.
65165         * doc/functions/sprintf.texi: Update.
65166         * doc/functions/vfprintf.texi: Update.
65167         * doc/functions/vprintf.texi: Update.
65168         * doc/functions/vsnprintf.texi: Update.
65169         * doc/functions/vsprintf.texi: Update.
65170
65171 2007-11-04  Bruno Haible  <bruno@clisp.org>
65172
65173         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65174
65175 2007-11-04  Bruno Haible  <bruno@clisp.org>
65176
65177         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65178         Reported by Sylvain Beucler <beuc@gnu.org>.
65179
65180 2007-11-03  Bruno Haible  <bruno@clisp.org>
65181
65182         * tests/test-fprintf-posix2.sh: New file.
65183         * tests/test-fprintf-posix2.c: New file.
65184         * modules/fprintf-posix-tests (Files): Add them.
65185         (TESTS): Add test-fprintf-posix2.sh.
65186         (configure.ac): Check for getrlimit and setrlimit.
65187         (check_PROGRAMS): Add test-fprintf-posix2.
65188
65189         * tests/test-printf-posix2.sh: New file.
65190         * tests/test-printf-posix2.c: New file.
65191         * modules/printf-posix-tests (Files): Add them.
65192         (TESTS): Add test-printf-posix2.sh.
65193         (configure.ac): Check for getrlimit and setrlimit.
65194         (check_PROGRAMS): Add test-printf-posix2.
65195
65196         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65197         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65198         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65199         (decode_double): New function, copied from decode_long_double.
65200         (scale10_round_decimal_decoded): New function, extracted from
65201         scale10_round_decimal_long_double.
65202         (scale10_round_decimal_long_double): Use it.
65203         (scale10_round_decimal_double): New function.
65204         (floorlog10): New function.
65205         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65207         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65208         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65209         gl_PRINTF_ENOMEM and test its result. Invoke
65210         gl_PREREQ_VASNPRINTF_ENOMEM.
65211         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65214         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65218         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65219         * modules/snprintf-posix (Depends-on): Likewise.
65220         * modules/sprintf-posix (Depends-on): Likewise.
65221         * modules/vasnprintf-posix (Depends-on): Likewise.
65222         * modules/vasprintf-posix (Depends-on): Likewise.
65223         * modules/vfprintf-posix (Depends-on): Likewise.
65224         * modules/vsnprintf-posix (Depends-on): Likewise.
65225         * modules/vsprintf-posix (Depends-on): Likewise.
65226         * doc/functions/fprintf.texi: Update.
65227         * doc/functions/printf.texi: Update.
65228         * doc/functions/snprintf.texi: Update.
65229         * doc/functions/sprintf.texi: Update.
65230         * doc/functions/vfprintf.texi: Update.
65231         * doc/functions/vprintf.texi: Update.
65232         * doc/functions/vsnprintf.texi: Update.
65233         * doc/functions/vsprintf.texi: Update.
65234
65235 2007-11-03  Bruno Haible  <bruno@clisp.org>
65236
65237         * modules/frexp-nolibm-tests: New file.
65238
65239         * modules/frexp-nolibm: New file.
65240         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65241
65242 2007-11-03  Bruno Haible  <bruno@clisp.org>
65243
65244         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65245         value is C99 compliant.
65246         Needed for OSF/1 5.1.
65247
65248 2007-11-03  Bruno Haible  <bruno@clisp.org>
65249
65250         Fix out-of-memory handling of vasnprintf.
65251         * lib/printf-parse.c: Include <errno.h>.
65252         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65253         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65254         is already set.
65255
65256 2007-11-02  Eric Blake  <ebb9@byu.net>
65257
65258         Fix tests on cygwin.
65259         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65260
65261 2007-11-01  Bruno Haible  <bruno@clisp.org>
65262
65263         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65264         warning.
65265         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65266         needed for POSIX compatibility.
65267
65268 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65269
65270         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65271         for compatibility with GNU.
65272
65273 2007-11-01  Bruno Haible  <bruno@clisp.org>
65274
65275         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65276         (putenv): Renamed from rpl_putenv. Change argument type from
65277         'const char *' to 'char *'.
65278         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65279         of defining putenv in config.h, just set REPLACE_PUTENV.
65280         * modules/putenv (Depends-on): Add stdlib.
65281         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65282         (Include): Use <stdlib.h>.
65283         * lib/stdlib.in.h (putenv): New declaration.
65284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65285         REPLACE_PUTENV.
65286         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65287         REPLACE_PUTENV.
65288         Needed for MacOS X 10.5.0.
65289         Reported by Peter O'Gorman <peter@pogma.com>.
65290
65291 2007-11-01  Jim Meyering  <meyering@redhat.com>
65292
65293         Treat an empty date string exactly like "0".
65294         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65295         if the remaining date string (to be parsed) is empty, use "0".
65296         Reported by Mischa Molhoek and discussed in this thread:
65297         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65298
65299 2007-10-31  Bruno Haible  <bruno@clisp.org>
65300
65301         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65302         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65303         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65304         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65305         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65306         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65307
65308 2007-10-31  Bruno Haible  <bruno@clisp.org>
65309
65310         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65311         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65312         (AC_TYPE_LONG_LONG_INT): Use it.
65313         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65314         it as well.
65315         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65316         to m4/longlong.m4.
65317         * modules/stdint (Files): Remove m4/ulonglong.m4.
65318         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65319         m4/ulonglong.m4.
65320         * modules/strtoumax (Files): Likewise.
65321
65322 2007-10-30  Bruno Haible  <bruno@clisp.org>
65323
65324         * modules/xvasprintf-posix: New file.
65325         Suggested by Eric Blake.
65326
65327 2007-10-30  Bruno Haible  <bruno@clisp.org>
65328
65329         * modules/xprintf-posix-tests: New file.
65330         * tests/test-xprintf-posix.sh: New file.
65331         * tests/test-xprintf-posix.c: New file.
65332         * tests/test-xfprintf-posix.c: New file.
65333
65334         * modules/xprintf-posix: New file.
65335
65336 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65337
65338         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65339         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65340         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65341
65342 2007-10-29  Bruno Haible  <bruno@clisp.org>
65343
65344         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65345         contain the special marker '_cv_'.
65346         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65347         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65348         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65349         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65350         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65351         Reported by Ralf Wildenhues.
65352
65353 2007-10-29  Bruno Haible  <bruno@clisp.org>
65354
65355         * gnulib-tool (func_import): When --lgpl is not specified, set
65356         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65357         GPLv3.
65358         Reported by Simon Josefsson.
65359
65360 2007-10-28  Bruno Haible  <bruno@clisp.org>
65361
65362         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65363         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65364         HAVE_DECL_ISFINITE.
65365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65366         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65367         HAVE_DECL_ISFINITE.
65368
65369 2007-10-28  Bruno Haible  <bruno@clisp.org>
65370
65371         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65372         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65373
65374 2007-10-28  Bruno Haible  <bruno@clisp.org>
65375
65376         Fix link errors with Sun C 5.0 on Solaris 10.
65377         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65378         function is declared but not present in the compiler's libm.
65379         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65380         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65381         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65382         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65383         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65384         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65385         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65387         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65388         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65389         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65390         HAVE_DECL_FLOORL.
65391
65392 2007-10-28  Bruno Haible  <bruno@clisp.org>
65393
65394         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65395         gl_FUNC_FLOORL. Cache the result.
65396         (gl_FUNC_FLOORL): Use it.
65397         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65398         gl_FUNC_CEILL. Cache the result.
65399         (gl_FUNC_CEILL): Use it.
65400
65401         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65402         gl_FUNC_FLOOR. Cache the result.
65403         (gl_FUNC_FLOOR): Use it.
65404         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65405         gl_FUNC_CEIL. Cache the result.
65406         (gl_FUNC_CEIL): Use it.
65407
65408         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65409         gl_FUNC_FLOORF. Cache the result.
65410         (gl_FUNC_FLOORF): Use it.
65411         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65412         gl_FUNC_CEILF. Cache the result.
65413         (gl_FUNC_CEILF): Use it.
65414
65415 2007-10-28  Bruno Haible  <bruno@clisp.org>
65416
65417         * gnulib-tool: Allow specifying the LGPL version number through
65418         --lgpl=2 or --lgpl=3.
65419         (func_usage): Document --lgpl with argument.
65420         Handle --lgpl=... arguments.
65421         (func_import): Recognize also gl_LGPL calls with an argument. When
65422         --lgpl=2 is used and the module's license is just LGPL, report an
65423         error. Set sed_transform_lib_file according to the lgpl variable. In
65424         the generated files, use --lgpl or gl_LGPL invocations with argument,
65425         if necessary.
65426         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65427         an LGPv2+ license.
65428         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65429         gl_LGPL macro.
65430
65431 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65432             Bruno Haible  <bruno@clisp.org>
65433
65434         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65435         (u16_uctomb_aux): Likewise.
65436         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65437         !HAVE_INLINE.
65438         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65439
65440 2007-10-28  Bruno Haible  <bruno@clisp.org>
65441
65442         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65443         Invoke AM_GETTEXT_OPTION if it exists.
65444         * modules/vasprintf: Likewise.
65445         * modules/verror: Likewise.
65446         * modules/xprintf: Likewise.
65447         * modules/xvasprintf: Likewise.
65448
65449 2007-10-27  Ben Pfaff  <blp@gnu.org>
65450
65451         * lib/math.in.h: Define isfinite macro and prototypes for
65452         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65453         implementations.
65454         * m4/math_h.m4: New substitutions for isfinite module.
65455         * lib/isfinite.c: New file.
65456         * m4/isfinite.m4: New file.
65457         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65458         * modules/isfinite: New file.
65459         * modules/isfinite-tests: New file.
65460         * tests/tests-isfinite.c: New file.
65461         * doc/functions/isfinite.texi: Mention isfinite module.
65462         * MODULES.html.sh: Mention new module.
65463
65464 2007-10-27  Ben Pfaff  <blp@gnu.org>
65465
65466         Ralf Wildenhues reported that Tru64 4.0D declares the round
65467         functions but does not have definitions.
65468         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65469         cannot be found in any library, set the output variable to
65470         "missing" instead of "".
65471         * m4/round.m4: Also use our substitute if we cannot find round in
65472         any library, even if it is declared.
65473         * m4/roundf.m4: Likewise for roundf.
65474         * m4/roundl.m4: Likewise for roundl.
65475         * lib/math.in.h: Undefine roundf, round, roundl before defining
65476         their replacements, to allow for hypothetical systems where these
65477         may be defined as macros but not available in libraries.
65478
65479 2007-10-27  Bruno Haible  <bruno@clisp.org>
65480
65481         * doc/gnulib.texi: Invoke @firstparagraphindent.
65482         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65483         changes in gnulib.
65484         (Source changes): New section.
65485
65486 2007-10-26  Bruno Haible  <bruno@clisp.org>
65487
65488         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65489         borrowed from autoconf.
65490
65491 2007-10-26  Bruno Haible  <bruno@clisp.org>
65492
65493         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65494         strerror returned the empty string. Needed on HP-UX 11.00.
65495
65496 2007-10-24  Micah Cowan  <micah@cowan.name>
65497
65498         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65499         * build-aux/bootstrap: Remove support for now-unnecessary option,
65500         --cvs-user, and envvars CVS_USER, CVS_RSH.
65501
65502 2007-10-24  Jim Meyering  <meyering@redhat.com>
65503
65504         Avoid diagnostics from sha1sum when there is no cached checksum.
65505         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65506         if the po.s1 file hasn't been created yet.
65507
65508         * build-aux/bootstrap: Sync from coreutils:
65509         2007-10-24  Jim Meyering  <meyering@redhat.com>
65510         Get gnulib from the git repository, not from an obsolete cvs one.
65511         * build-aux/bootstrap: Suggestion from Micah Cowan.
65512         2007-10-04  Jim Meyering  <jim@meyering.net>
65513         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65514         (update_po_files): Work also when there are no .po files in po/.
65515
65516 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         * README: Append ".git" to git and cg examples.
65519         Problem reported by Benoit Sigoure.
65520
65521 2007-10-23  Micah Cowan  <micah@cowan.name>
65522
65523         * users.txt: Add wget.
65524
65525 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65526
65527         Fix linking of some unistdio tests on FreeBSD.
65528         * modules/unistdio/u16-vsnprintf-tests
65529         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65530         * modules/unistdio/u16-vsprintf-tests
65531         (test_u16_vsnprintf1_LDADD): Likewise.
65532         * modules/unistdio/u32-vsnprintf-tests
65533         (test_u32_vsnprintf1_LDADD): Likewise.
65534         * modules/unistdio/u32-vsprintf-tests
65535         (test_u32_vsprintf1_LDADD): Likewise.
65536         * modules/unistdio/u8-vsnprintf-tests
65537         (test_u8_vsnprintf1_LDADD): Likewise.
65538         * modules/unistdio/u8-vsprintf-tests
65539         (test_u8_vsprintf1_LDADD): Likewise.
65540         * modules/unistdio/ulc-vsnprintf-tests
65541         (test_ulc_vsnprintf1_LDADD): Likewise.
65542         * modules/unistdio/ulc-vsprintf-tests
65543         (test_ulc_vsprintf1_LDADD): Likewise.
65544
65545         Fix linking of some uniconv tests on FreeBSD.
65546         * modules/uniconv/u16-conv-from-enc-tests
65547         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65548         * modules/uniconv/u16-conv-to-enc-tests
65549         (test_u16_conv_to_enc_LDADD): Likewise.
65550         * modules/uniconv/u16-strconv-from-enc-tests
65551         (test_u16_strconv_from_enc_LDADD): Likewise.
65552         * modules/uniconv/u16-strconv-to-enc-tests
65553         (test_u16_strconv_to_enc_LDADD): Likewise.
65554         * modules/uniconv/u32-conv-from-enc-tests
65555         (test_u32_conv_from_enc_LDADD): Likewise.
65556         * modules/uniconv/u32-conv-to-enc-tests
65557         (test_u32_conv_to_enc_LDADD): Likewise.
65558         * modules/uniconv/u32-strconv-from-enc-tests
65559         (test_u32_strconv_from_enc_LDADD): Likewise.
65560         * modules/uniconv/u32-strconv-to-enc-tests
65561         (test_u32_strconv_to_enc_LDADD): Likewise.
65562         * modules/uniconv/u8-conv-from-enc-tests
65563         (test_u8_conv_from_enc_LDADD): Likewise.
65564         * modules/uniconv/u8-conv-to-enc-tests
65565         (test_u8_conv_to_enc_LDADD): Likewise.
65566         * modules/uniconv/u8-strconv-from-enc-tests
65567         (test_u8_strconv_from_enc_LDADD): Likewise.
65568         * modules/uniconv/u8-strconv-to-enc-tests
65569         (test_u8_strconv_to_enc_LDADD): Likewise.
65570
65571 2007-10-22  Bruno Haible  <bruno@clisp.org>
65572
65573         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65574         size.
65575
65576 2007-10-22  Eric Blake  <ebb9@byu.net>
65577
65578         Tweak x*printf documentation.
65579         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65580         variable name and comments.
65581         Suggested by Bruno Haible.
65582
65583 2007-10-22  Bruno Haible  <bruno@clisp.org>
65584
65585         * lib/acl.c (copy_acl): Fix file name in comment.
65586
65587 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65588
65589         Fix Tru64 problem with stdbool.h.
65590         * lib/stdbool.in.h (false, true):
65591         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65592         Don't declare as an enum in this situation; it runs afoul of Tru64.
65593         Problem reported by Steven M. Schweda in
65594         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65595
65596 2007-10-22  Eric Blake  <ebb9@byu.net>
65597
65598         Also wrap vf?printf.
65599         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65600         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65601         (xvprintf, xvfprintf): New functions.
65602
65603 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65604
65605         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65606         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65607
65608         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65609         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65610
65611 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65612
65613         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65614         by Bruno Haible.
65615
65616 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65617
65618         * lib/getloadavg.c
65619         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65620         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65621
65622         * tests/test-i-ring.c: Work for C89.
65623
65624 2007-10-22  Bruno Haible  <bruno@clisp.org>
65625
65626         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65627         -1u, in preprocessor expression, so that we don't test for the bug
65628         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65629         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65630
65631 2007-10-22  Eric Blake  <ebb9@byu.net>
65632
65633         * tests/test-yesno.sh: Silence stderr during test.
65634
65635 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65636
65637         * modules/crypto/gc-camellia: New file.
65638
65639         * m4/gc-camellia.m4: New file.
65640
65641         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65642
65643         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65644
65645 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65646
65647         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65648         --help to stdout.  Reported by sms@antinode.org (Steven
65649         M. Schweda).
65650
65651 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65652
65653         * users.txt: Fix link to libksba.
65654
65655 2007-10-21  Ben Pfaff  <blp@gnu.org>
65656
65657         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65658         round.c roundf implementation that depends on floorf and ceilf to
65659         be tested unconditionally.
65660
65661 2007-10-21  Ben Pfaff  <blp@gnu.org>
65662
65663         * m4/check-libm-func.m4: Removed.
65664         * m4/check-math-lib.m4: New file.
65665         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65666         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65667         definition and lack of AC_LIBOBJ([roundf]).
65668         * m4/roundl.m4: Ditto, and similarly for roundl.
65669         * modules/round: Reference new m4 file.
65670         * modules/roundf: Ditto.
65671         * modules/roundl: Ditto.
65672         * tests/test-round2.c (main): Use ROUND instead of round.
65673         Bug report from Bruno Haible.
65674
65675 2007-10-21  Bruno Haible  <bruno@clisp.org>
65676
65677         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65678         context.
65679
65680 2007-10-21  Bruno Haible  <bruno@clisp.org>
65681
65682         * tests/test-wcwidth.c (main): Allow negative result for some control
65683         characters.
65684
65685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65686         Needed on OSF/1 5.1.
65687
65688 2007-10-21  Bruno Haible  <bruno@clisp.org>
65689
65690         * tests/test-floorf1.c: Include isnanf.h.
65691         (main): Use isnanf() instead of isnan().
65692         * tests/test-ceilf1.c: Include isnanf.h.
65693         (main): Use isnanf() instead of isnan().
65694         * tests/test-truncf1.c: Include isnanf.h.
65695         (main): Use isnanf() instead of isnan().
65696         * tests/test-roundf1.c: Include isnanf.h.
65697         (main): Use isnanf() instead of isnan().
65698
65699 2007-10-21  Eric Blake  <ebb9@byu.net>
65700
65701         * users.txt: Update URL for m4.
65702
65703 2007-10-21  Bruno Haible  <bruno@clisp.org>
65704
65705         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65706
65707 2007-10-21  Bruno Haible  <bruno@clisp.org>
65708
65709         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65710         Git's management files if the CVS files are not present.
65711
65712 2007-10-20  Bruno Haible  <bruno@clisp.org>
65713
65714         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65715         gcc-3.4.x.
65716
65717 2007-10-20  Ben Pfaff  <blp@gnu.org>
65718
65719         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65720         implementations.
65721         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65722         * lib/round.c: New file.
65723         * lib/roundf.c: New file.
65724         * lib/roundl.c: New file.
65725         * m4/round.m4: New file.
65726         * m4/roundf.m4: New file.
65727         * m4/roundl.m4: New file.
65728         * m4/check-libm-func-m4: New file.
65729         * modules/math: Replace round, roundf, roundl related @VARS@ in
65730         math.in.h.
65731         * modules/round: New file.
65732         * modules/round-tests: New file.
65733         * modules/roundf: New file.
65734         * modules/roundf-tests: New file.
65735         * modules/roundl: New file.
65736         * modules/roundl-tests: New file.
65737         * tests/test-round1.c: New file.
65738         * tests/test-round2.c: New file.
65739         * tests/test-roundf1.c: New file.
65740         * tests/test-roundf2.c: New file.
65741         * tests/test-roundl.c: New file.
65742         * doc/functions/round.texi: Mention round module.
65743         * doc/functions/roundf.texi: Mention roundf module.
65744         * doc/functions/roundl.texi: Mention roundl module.
65745         * MODULES.html.sh: Mention new modules.
65746         Thanks to Bruno Haible for suggestions.
65747
65748 2007-10-20  Jim Meyering  <meyering@redhat.com>
65749
65750         * lib/xprintf.c: Include <config.h> unconditionally.
65751
65752         Change xprintf's license to GPL.
65753         * modules/xprintf (License): s/LGPL/GPL/, since this module
65754         depends on modules (exit and exitfail) which are GPL.
65755         Suggestion from Bruno Haible.
65756
65757         xprintf fixes.
65758         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65759         Use a clearer diagnostic.
65760         Patch from Bruno Haible.
65761
65762 2007-10-20  Bruno Haible  <bruno@clisp.org>
65763
65764         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65765         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65767
65768 2007-10-20  Bruno Haible  <bruno@clisp.org>
65769
65770         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65771         precision in the comparison result > x - 1 or similar.
65772         * tests/test-ceilf2.c (correct_result_p): Likewise.
65773         * tests/test-truncf2.c (correct_result_p): Likewise.
65774         * tests/test-trunc2.c (correct_result_p): Likewise.
65775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65776
65777 2007-10-20  Bruno Haible  <bruno@clisp.org>
65778
65779         * modules/ceil: New file.
65780         * m4/ceil.m4: New file.
65781         * doc/functions/ceil.texi: Mention the 'ceil' module.
65782
65783 2007-10-20  Bruno Haible  <bruno@clisp.org>
65784
65785         * modules/floor: New file.
65786         * m4/floor.m4: New file.
65787         * doc/functions/floor.texi: Mention the 'floor' module.
65788
65789 2007-10-20  Bruno Haible  <bruno@clisp.org>
65790
65791         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65792         of %a.
65793         * modules/floorf-tests (Depends-on): Likewise.
65794         * modules/truncf-tests (Depends-on): Likewise.
65795         * modules/trunc-tests (Depends-on): Likewise.
65796         Reported by Ben Pfaff.
65797
65798 2007-10-19  Jim Meyering  <meyering@redhat.com>
65799
65800         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65801         Don't bother testing specific errno values.  Just test ferror.
65802
65803         New module: xprintf
65804         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65805
65806 2007-10-19  Bruno Haible  <bruno@clisp.org>
65807
65808         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65809         syntax.
65810         * modules/javaexec (Makefile.am): Likewise.
65811         * modules/relocatable-prog (Makefile.am): Likewise.
65812         Suggested by Jim Meyering.
65813
65814 2007-10-18  Bruno Haible  <bruno@clisp.org>
65815
65816         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65817         Reported by Jim Meyering.
65818
65819 2007-10-18  Eric Blake  <ebb9@byu.net>
65820
65821         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65822
65823 2007-10-18  Bruno Haible  <bruno@clisp.org>
65824
65825         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65826         the format string into writable memory. Needed in Fortify conditions.
65827
65828 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65829             Bruno Haible  <bruno@clisp.org>
65830
65831         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65832         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65833         * modules/trim (Depends-on): Add mbchar.
65834         (configure.ac): Add gl_FUNC_MBRTOWC.
65835         (Makefile.am): Augment lib_SOURCES.
65836
65837 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65838
65839         Modify glob.c to use fstatat and dirfd, to simplify it.
65840         Suggested by Eric Blake.
65841         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65842         Don't include <stdbool.h>; not used.
65843         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65844         (link_exists_p): Simplify implementation, since we can now assume
65845         dirfd and fstatat.
65846         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65847
65848 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65849
65850         * gnulib-tool (func_get_dependencies): Fix sed script to
65851         match only tests.
65852
65853 2007-10-17  Bruno Haible  <bruno@clisp.org>
65854
65855         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65856         allow locale names without encoding suffix.
65857         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65858         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65859
65860 2007-10-16  Bruno Haible  <bruno@clisp.org>
65861
65862         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
65863         * lib/getgroups.c (getgroups): Likewise.
65864         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
65865
65866 2007-10-16  Bruno Haible  <bruno@clisp.org>
65867
65868         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
65869         * modules/malloc-posix (License): Likewise.
65870         * modules/realloc-posix (License): Likewise.
65871         * modules/calloc-posix (License): Likewise.
65872         * modules/intprops (License): Change from GPL to LGPL, with
65873         Paul Eggert's approval.
65874
65875 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65876
65877         Merge glibc changes into lib/glob.c.
65878
65879         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
65880         2007-10-15 04:59:03 UTC.  Here are the changes:
65881
65882         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
65883
65884         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
65885
65886         * lib/glob.c: Add some branch prediction throughout.
65887
65888         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
65889
65890         [BZ #5103]
65891         * lib/glob.c (glob): Recognize patterns starting \/.
65892
65893         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
65894
65895         [BZ #3996]
65896         * lib/glob.c (attribute_hidden): Define if not defined.
65897         (glob): Unescape dirname, filename or username when needed and not
65898         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
65899         is NULL.  Handle unescaped [ in pattern without closing ].
65900         Don't pass GLOB_CHECK down to recursive glob for directories.
65901         (__glob_pattern_type): New function.
65902         (__glob_pattern_p): Implement using __glob_pattern_type.
65903         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
65904         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
65905         Remove unreachable code.
65906
65907         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
65908
65909         * lib/glob.c (glob_in_dir): Add some comments and asserts to
65910         explain why there are no leaks.
65911
65912         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65913
65914         [BZ #3253]
65915         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65916         time, rather allocate increasingly bigger arrays of pointers, if
65917         possible with alloca, if too large with malloc.
65918
65919 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65920
65921         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65922         Problem reported by H.Merijn Brand in
65923         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65924         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65925         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65926
65927 2007-10-15  Bruno Haible  <bruno@clisp.org>
65928
65929         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65930         with explicit rpl_ prefix.
65931         * lib/fopen.c (fopen): Likewise.
65932         * lib/freopen.c (freopen): Likewise.
65933         * lib/iconv.c (iconv): Likewise.
65934         * lib/iconv_close.c (iconv_close): Likewise.
65935
65936 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65937
65938         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65939
65940 2007-10-15  Bruno Haible  <bruno@clisp.org>
65941
65942         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65943         <stddef.h> instead of <stdlib.h> since we only need NULL.
65944         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65945
65946 2007-10-15  Bruno Haible  <bruno@clisp.org>
65947
65948         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65949         Replace paragraph talking about LIBOBJS.
65950         Reported by Colin Watson <cjwatson@debian.org>.
65951
65952 2007-10-15  Bruno Haible  <bruno@clisp.org>
65953
65954         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65955         <stdlib.h> before using NULL.
65956
65957 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65958
65959         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65960         Reported by Albert Chin <china@thewrittenword.com>.
65961
65962 2007-10-14  Bruno Haible  <bruno@clisp.org>
65963
65964         * modules/iconv_open-utf-tests: New file.
65965         * tests/test-iconv-utf.c: New file.
65966
65967         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65968         * modules/iconv_open-utf: New file.
65969         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65970         (iconv, iconv_close): New declarations.
65971         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65972         be defined.
65973         (iconv_open): Add special handling of conversion between UTF-8 and
65974         UTF-{16,32}{BE,LE}.
65975         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65976         * lib/iconv_close.c: New file.
65977         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65978         gl_FUNC_ICONV_OPEN.
65979         (gl_FUNC_ICONV_OPEN): Use it.
65980         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65981         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65982         and REPLACE_ICONV_UTF.
65983         * modules/iconv_open (Depends-on): Add c-strcase.
65984         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65985         ICONV_CONST.
65986         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65987
65988 2007-10-13  Albert Chin  <china@thewrittenword.com>
65989             Bruno Haible  <bruno@clisp.org>
65990
65991         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65992         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65993
65994 2007-10-13  Bruno Haible  <bruno@clisp.org>
65995
65996         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65997         defined, use the ISO C99 inline semantics.
65998         * lib/argp.h (ARGP_EI): Likewise.
65999
66000 2007-10-13  Bruno Haible  <bruno@clisp.org>
66001
66002         Handle 'inline' change in gcc 4.3.0.
66003         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66004         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66005         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66006         argp_fmtstream_point): Disable 'extern' declaration if the function
66007         definition is going to be provided inline.
66008         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66009         semantics, not the ISO C99 inline semantics.
66010         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66011         'extern' declaration if the function definition is going to be provided
66012         inline.
66013         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66014         the GNU C inline semantics, not the ISO C99 inline semantics. With
66015         GCC 4.2, avoid a warning.
66016
66017 2007-10-13  Bruno Haible  <bruno@clisp.org>
66018
66019         * lib/freading.h (freading): Enable the use of __freading for
66020         glibc >= 2.7.
66021         * lib/freading.c (freading): Likewise.
66022
66023 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66024
66025         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66026         "warning: C99 inline functions are not supported; using GNU89".
66027
66028 2007-10-12  Bruno Haible  <bruno@clisp.org>
66029
66030         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66031         of 2.
66032         * tests/test-ceilf2.c: New file.
66033         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66034
66035         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66036         * modules/ceilf-tests: Update.
66037
66038 2007-10-12  Bruno Haible  <bruno@clisp.org>
66039
66040         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66041         of 2.
66042         * tests/test-floorf2.c: New file.
66043         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66044
66045         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66046         * modules/floorf-tests: Update.
66047
66048 2007-10-12  Bruno Haible  <bruno@clisp.org>
66049
66050         * tests/test-trunc2.c: New file.
66051         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66052
66053         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66054         * modules/trunc-tests: Update.
66055
66056 2007-10-12  Bruno Haible  <bruno@clisp.org>
66057
66058         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66059         of 2.
66060         * tests/test-truncf2.c: New file.
66061         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66062
66063         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66064         * modules/truncf-tests: Update.
66065
66066 2007-10-11  Eric Blake  <ebb9@byu.net>
66067
66068         Don't claim strerror is broken on Interix.
66069         * doc/functions/strerror.texi (strerror): Known broken systems are
66070         now Solaris 8, and not Interix.
66071         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66072         Interix on cross-compile.
66073         Reported by Martin Koeppe in
66074         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66075
66076 2007-10-11  Bruno Haible  <bruno@clisp.org>
66077
66078         * modules/i-ring-tests: New file.
66079         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66080         instead of assert.
66081
66082 2007-10-11  Bruno Haible  <bruno@clisp.org>
66083
66084         * modules/filenamecat-tests: New file.
66085         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66086         * lib/filenamecat.c: Remove test code.
66087
66088 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66089
66090         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66091
66092         * lib/strerror.c: Include <string.h> always, to test interface,
66093         and to remove the need for the dummy.
66094         Include intprops.h to compute width instead of doing it ourselves
66095         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66096         (strerror): Define it to return NULL if there's no system strerror.
66097         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66098         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66099         ancient pre-strerror Unix systems well any more.  Saying "unknown
66100         system error" is enough.
66101         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66102         simpler strerror.c implementation.
66103         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66104         Simplify the tests to reflect the simpler strerror implementation.
66105         * modules/strerror (Depends-on): Add intprops.
66106
66107 2007-10-09  Eric Blake  <ebb9@byu.net>
66108
66109         Silence test-fpending.
66110         * modules/fpending-tests (Files): Add wrapper script.
66111         * tests/test-fpending.sh: New file.
66112
66113 2007-10-09  Bruno Haible  <bruno@clisp.org>
66114
66115         * MODULES.html.sh (func_module): Don't create a hyperlink for
66116         function names like 'printf_frexp'.
66117         (Misc): Add crc, memxor.
66118         (Characteristics of floating types): New section.
66119         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66120         isnanf-nolibm, signbit, trunc, truncf, truncl.
66121         (Enhancements for ISO C 99 functions): New subsection Input/output.
66122         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66123         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66124         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66125         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66126         (Enhancements for POSIX:2001 functions): Add chdir-long.
66127         (File system functions): Add areadlink, chdir-safer, read-file.
66128         Remove cycle-check.
66129         (File system as inode set): New section.
66130         (Date and time): Add gethrxtime.
66131         (Multithreading): Add openmp.
66132         (Internationalization functions): Add localename.
66133         (Unicode string functions): Add unistr/u*-mbsnlen.
66134         (Support for maintaining and releasing projects): Add git-version-gen.
66135         (Lone files): Remove directories.
66136
66137 2007-10-08  Ben Pfaff  <blp@gnu.org>
66138
66139         * lib/xmalloca.h: Fix typo in comment.
66140
66141 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66142
66143         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66144         when avoiding problems with integer overflow.  Use a portable test
66145         instead.
66146
66147 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66148
66149         * modules/dummy (License): Change to LGPLv2+.
66150         * modules/float (License): Likewise
66151         * modules/realloc (License): Likewise
66152         * modules/stdlib (License): Likewise
66153
66154 2007-10-07  Bruno Haible  <bruno@clisp.org>
66155
66156         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66157         * floor.c (TWO_MANT_DIG): Likewise.
66158         * ceil.c (TWO_MANT_DIG): Likewise.
66159         Reported by Ben Pfaff.
66160
66161 2007-10-07  Bruno Haible  <bruno@clisp.org>
66162
66163         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66164         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66165         * lib/frexp.c (FUNC): Likewise.
66166         * lib/printf-frexp.h (printf_frexp): Likewise.
66167         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66168         * lib/printf-frexp.c (FUNC): Likewise.
66169         Suggested by Jim Meyering.
66170
66171 2007-10-07  Jim Meyering  <meyering@redhat.com>
66172
66173         Make xnanosleep's integer overflow test more robust.
66174         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66175         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66176
66177 2007-10-07  Bruno Haible  <bruno@clisp.org>
66178
66179         * NEWS: Mention the license change.
66180
66181         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66182         abbreviations in the modules files.
66183
66184         Change copyright notice from GPLv2+ to GPLv3+.
66185         * README: Change copyright notice.
66186         * MODULES.html.sh: Likewise.
66187         * build-aux/bootstrap.conf: Likewise.
66188         * build-aux/config.libpath: Likewise.
66189         * build-aux/csharpcomp.sh.in: Likewise.
66190         * build-aux/csharpexec.sh.in: Likewise.
66191         * build-aux/install-reloc: Likewise.
66192         * build-aux/javacomp.sh.in: Likewise.
66193         * build-aux/javaexec.sh.in: Likewise.
66194         * build-aux/ldd.sh.in: Likewise.
66195         * build-aux/reloc-ldflags: Likewise.
66196         * build-aux/relocatable.sh.in: Likewise.
66197         * build-aux/x-to-1.in: Likewise.
66198         * check-module: Likewise.
66199         * config/srclistvars.sh: Likewise.
66200         * gnulib-tool: Likewise.
66201         * lib/acl-internal.h: Likewise.
66202         * lib/acl.c: Likewise.
66203         * lib/acl.h: Likewise.
66204         * lib/acl_entries.c: Likewise.
66205         * lib/areadlink-with-size.c: Likewise.
66206         * lib/areadlink.c: Likewise.
66207         * lib/areadlink.h: Likewise.
66208         * lib/argmatch.c: Likewise.
66209         * lib/argmatch.h: Likewise.
66210         * lib/argp-ba.c: Likewise.
66211         * lib/argp-eexst.c: Likewise.
66212         * lib/argp-fmtstream.c: Likewise.
66213         * lib/argp-fmtstream.h: Likewise.
66214         * lib/argp-fs-xinl.c: Likewise.
66215         * lib/argp-help.c: Likewise.
66216         * lib/argp-namefrob.h: Likewise.
66217         * lib/argp-parse.c: Likewise.
66218         * lib/argp-pin.c: Likewise.
66219         * lib/argp-pv.c: Likewise.
66220         * lib/argp-pvh.c: Likewise.
66221         * lib/argp-xinl.c: Likewise.
66222         * lib/argp.h: Likewise.
66223         * lib/at-func.c: Likewise.
66224         * lib/atanl.c: Likewise.
66225         * lib/backupfile.c: Likewise.
66226         * lib/backupfile.h: Likewise.
66227         * lib/basename.c: Likewise.
66228         * lib/binary-io.h: Likewise.
66229         * lib/byteswap.in.h: Likewise.
66230         * lib/c-stack.c: Likewise.
66231         * lib/c-stack.h: Likewise.
66232         * lib/c-strcasestr.c: Likewise.
66233         * lib/c-strcasestr.h: Likewise.
66234         * lib/c-strstr.c: Likewise.
66235         * lib/c-strstr.h: Likewise.
66236         * lib/c-strtod.c: Likewise.
66237         * lib/calloc.c: Likewise.
66238         * lib/canon-host.c: Likewise.
66239         * lib/canon-host.h: Likewise.
66240         * lib/canonicalize-lgpl.c: Likewise.
66241         * lib/canonicalize.c: Likewise.
66242         * lib/canonicalize.h: Likewise.
66243         * lib/ceil.c: Likewise.
66244         * lib/ceilf.c: Likewise.
66245         * lib/ceill.c: Likewise.
66246         * lib/chdir-long.c: Likewise.
66247         * lib/chdir-long.h: Likewise.
66248         * lib/chdir-safer.c: Likewise.
66249         * lib/chdir-safer.h: Likewise.
66250         * lib/chown.c: Likewise.
66251         * lib/classpath.c: Likewise.
66252         * lib/classpath.h: Likewise.
66253         * lib/clean-temp.c: Likewise.
66254         * lib/clean-temp.h: Likewise.
66255         * lib/cloexec.c: Likewise.
66256         * lib/close-stream.c: Likewise.
66257         * lib/closein.c: Likewise.
66258         * lib/closein.h: Likewise.
66259         * lib/closeout.c: Likewise.
66260         * lib/closeout.h: Likewise.
66261         * lib/concat-filename.c: Likewise.
66262         * lib/copy-file.c: Likewise.
66263         * lib/copy-file.h: Likewise.
66264         * lib/count-one-bits.h: Likewise.
66265         * lib/crc.c: Likewise.
66266         * lib/crc.h: Likewise.
66267         * lib/creat-safer.c: Likewise.
66268         * lib/csharpcomp.c: Likewise.
66269         * lib/csharpcomp.h: Likewise.
66270         * lib/csharpexec.c: Likewise.
66271         * lib/csharpexec.h: Likewise.
66272         * lib/cycle-check.c: Likewise.
66273         * lib/cycle-check.h: Likewise.
66274         * lib/diacrit.c: Likewise.
66275         * lib/diacrit.h: Likewise.
66276         * lib/diffseq.h: Likewise.
66277         * lib/dirchownmod.c: Likewise.
66278         * lib/dirent.in.h: Likewise.
66279         * lib/dirfd.c: Likewise.
66280         * lib/dirfd.h: Likewise.
66281         * lib/dirname.c: Likewise.
66282         * lib/dirname.h: Likewise.
66283         * lib/dummy.c: Likewise.
66284         * lib/dup-safer.c: Likewise.
66285         * lib/dup2.c: Likewise.
66286         * lib/eealloc.h: Likewise.
66287         * lib/error.c: Likewise.
66288         * lib/error.h: Likewise.
66289         * lib/euidaccess.c: Likewise.
66290         * lib/exclude.c: Likewise.
66291         * lib/exclude.h: Likewise.
66292         * lib/execute.c: Likewise.
66293         * lib/execute.h: Likewise.
66294         * lib/exitfail.c: Likewise.
66295         * lib/exitfail.h: Likewise.
66296         * lib/expl.c: Likewise.
66297         * lib/fatal-signal.c: Likewise.
66298         * lib/fatal-signal.h: Likewise.
66299         * lib/fbufmode.c: Likewise.
66300         * lib/fbufmode.h: Likewise.
66301         * lib/fchdir.c: Likewise.
66302         * lib/fchmodat.c: Likewise.
66303         * lib/fchownat.c: Likewise.
66304         * lib/fcntl--.h: Likewise.
66305         * lib/fcntl-safer.h: Likewise.
66306         * lib/fcntl.in.h: Likewise.
66307         * lib/fd-safer.c: Likewise.
66308         * lib/fflush.c: Likewise.
66309         * lib/file-has-acl.c: Likewise.
66310         * lib/file-set.c: Likewise.
66311         * lib/file-type.c: Likewise.
66312         * lib/file-type.h: Likewise.
66313         * lib/fileblocks.c: Likewise.
66314         * lib/filemode.c: Likewise.
66315         * lib/filemode.h: Likewise.
66316         * lib/filename.h: Likewise.
66317         * lib/filenamecat.c: Likewise.
66318         * lib/filenamecat.h: Likewise.
66319         * lib/findprog.c: Likewise.
66320         * lib/findprog.h: Likewise.
66321         * lib/float.in.h: Likewise.
66322         * lib/floor.c: Likewise.
66323         * lib/floorf.c: Likewise.
66324         * lib/floorl.c: Likewise.
66325         * lib/fopen-safer.c: Likewise.
66326         * lib/fopen.c: Likewise.
66327         * lib/fpending.c: Likewise.
66328         * lib/fpending.h: Likewise.
66329         * lib/fprintf.c: Likewise.
66330         * lib/fprintftime.h: Likewise.
66331         * lib/fpucw.h: Likewise.
66332         * lib/fpurge.c: Likewise.
66333         * lib/fpurge.h: Likewise.
66334         * lib/freadable.c: Likewise.
66335         * lib/freadable.h: Likewise.
66336         * lib/freadahead.c: Likewise.
66337         * lib/freadahead.h: Likewise.
66338         * lib/freading.c: Likewise.
66339         * lib/freading.h: Likewise.
66340         * lib/free.c: Likewise.
66341         * lib/freopen.c: Likewise.
66342         * lib/frexp.c: Likewise.
66343         * lib/frexpl.c: Likewise.
66344         * lib/fseek.c: Likewise.
66345         * lib/fseterr.c: Likewise.
66346         * lib/fseterr.h: Likewise.
66347         * lib/fstatat.c: Likewise.
66348         * lib/fstrcmp.c: Likewise.
66349         * lib/fstrcmp.h: Likewise.
66350         * lib/fsusage.c: Likewise.
66351         * lib/fsusage.h: Likewise.
66352         * lib/ftell.c: Likewise.
66353         * lib/ftello.c: Likewise.
66354         * lib/fts-cycle.c: Likewise.
66355         * lib/fts.c: Likewise.
66356         * lib/fts_.h: Likewise.
66357         * lib/full-read.c: Likewise.
66358         * lib/full-read.h: Likewise.
66359         * lib/full-write.c: Likewise.
66360         * lib/full-write.h: Likewise.
66361         * lib/fwritable.c: Likewise.
66362         * lib/fwritable.h: Likewise.
66363         * lib/fwriteerror.c: Likewise.
66364         * lib/fwriteerror.h: Likewise.
66365         * lib/fwriting.c: Likewise.
66366         * lib/fwriting.h: Likewise.
66367         * lib/gcd.c: Likewise.
66368         * lib/gcd.h: Likewise.
66369         * lib/getcwd.c: Likewise.
66370         * lib/getdate.h: Likewise.
66371         * lib/getdate.y: Likewise.
66372         * lib/getdomainname.c: Likewise.
66373         * lib/getdomainname.h: Likewise.
66374         * lib/getgroups.c: Likewise.
66375         * lib/gethostname.c: Likewise.
66376         * lib/gethrxtime.c: Likewise.
66377         * lib/gethrxtime.h: Likewise.
66378         * lib/getloadavg.c: Likewise.
66379         * lib/getndelim2.c: Likewise.
66380         * lib/getndelim2.h: Likewise.
66381         * lib/getnline.c: Likewise.
66382         * lib/getnline.h: Likewise.
66383         * lib/getopt.c: Likewise.
66384         * lib/getopt.in.h: Likewise.
66385         * lib/getopt1.c: Likewise.
66386         * lib/getopt_int.h: Likewise.
66387         * lib/getpagesize.h: Likewise.
66388         * lib/getsubopt.c: Likewise.
66389         * lib/gettime.c: Likewise.
66390         * lib/getugroups.c: Likewise.
66391         * lib/getugroups.h: Likewise.
66392         * lib/getusershell.c: Likewise.
66393         * lib/gl_anyavltree_list1.h: Likewise.
66394         * lib/gl_anyavltree_list2.h: Likewise.
66395         * lib/gl_anyhash_list1.h: Likewise.
66396         * lib/gl_anyhash_list2.h: Likewise.
66397         * lib/gl_anylinked_list1.h: Likewise.
66398         * lib/gl_anylinked_list2.h: Likewise.
66399         * lib/gl_anyrbtree_list1.h: Likewise.
66400         * lib/gl_anyrbtree_list2.h: Likewise.
66401         * lib/gl_anytree_list1.h: Likewise.
66402         * lib/gl_anytree_list2.h: Likewise.
66403         * lib/gl_anytree_oset.h: Likewise.
66404         * lib/gl_anytreehash_list1.h: Likewise.
66405         * lib/gl_anytreehash_list2.h: Likewise.
66406         * lib/gl_array_list.c: Likewise.
66407         * lib/gl_array_list.h: Likewise.
66408         * lib/gl_array_oset.c: Likewise.
66409         * lib/gl_array_oset.h: Likewise.
66410         * lib/gl_avltree_list.c: Likewise.
66411         * lib/gl_avltree_list.h: Likewise.
66412         * lib/gl_avltree_oset.c: Likewise.
66413         * lib/gl_avltree_oset.h: Likewise.
66414         * lib/gl_avltreehash_list.c: Likewise.
66415         * lib/gl_avltreehash_list.h: Likewise.
66416         * lib/gl_carray_list.c: Likewise.
66417         * lib/gl_carray_list.h: Likewise.
66418         * lib/gl_linked_list.c: Likewise.
66419         * lib/gl_linked_list.h: Likewise.
66420         * lib/gl_linkedhash_list.c: Likewise.
66421         * lib/gl_linkedhash_list.h: Likewise.
66422         * lib/gl_list.c: Likewise.
66423         * lib/gl_list.h: Likewise.
66424         * lib/gl_oset.c: Likewise.
66425         * lib/gl_oset.h: Likewise.
66426         * lib/gl_rbtree_list.c: Likewise.
66427         * lib/gl_rbtree_list.h: Likewise.
66428         * lib/gl_rbtree_oset.c: Likewise.
66429         * lib/gl_rbtree_oset.h: Likewise.
66430         * lib/gl_rbtreehash_list.c: Likewise.
66431         * lib/gl_rbtreehash_list.h: Likewise.
66432         * lib/gl_sublist.c: Likewise.
66433         * lib/gl_sublist.h: Likewise.
66434         * lib/group-member.c: Likewise.
66435         * lib/group-member.h: Likewise.
66436         * lib/hard-locale.c: Likewise.
66437         * lib/hard-locale.h: Likewise.
66438         * lib/hash-pjw.c: Likewise.
66439         * lib/hash-pjw.h: Likewise.
66440         * lib/hash-triple.c: Likewise.
66441         * lib/hash.c: Likewise.
66442         * lib/hash.h: Likewise.
66443         * lib/human.c: Likewise.
66444         * lib/human.h: Likewise.
66445         * lib/i-ring.c: Likewise.
66446         * lib/i-ring.h: Likewise.
66447         * lib/idcache.c: Likewise.
66448         * lib/imaxabs.c: Likewise.
66449         * lib/imaxdiv.c: Likewise.
66450         * lib/inet_pton.c: Likewise.
66451         * lib/inet_pton.h: Likewise.
66452         * lib/intprops.h: Likewise.
66453         * lib/inttostr.c: Likewise.
66454         * lib/inttostr.h: Likewise.
66455         * lib/inttypes.in.h: Likewise.
66456         * lib/isapipe.c: Likewise.
66457         * lib/isdir.c: Likewise.
66458         * lib/isnan.c: Likewise.
66459         * lib/isnan.h: Likewise.
66460         * lib/isnanf.c: Likewise.
66461         * lib/isnanf.h: Likewise.
66462         * lib/isnanl-nolibm.h: Likewise.
66463         * lib/isnanl.c: Likewise.
66464         * lib/isnanl.h: Likewise.
66465         * lib/javacomp.c: Likewise.
66466         * lib/javacomp.h: Likewise.
66467         * lib/javaexec.c: Likewise.
66468         * lib/javaexec.h: Likewise.
66469         * lib/javaversion.c: Likewise.
66470         * lib/javaversion.h: Likewise.
66471         * lib/javaversion.java: Likewise.
66472         * lib/lbrkprop.h: Likewise.
66473         * lib/lchmod.h: Likewise.
66474         * lib/lchown.c: Likewise.
66475         * lib/ldexpl.c: Likewise.
66476         * lib/linebreak.c: Likewise.
66477         * lib/linebreak.h: Likewise.
66478         * lib/linebuffer.c: Likewise.
66479         * lib/linebuffer.h: Likewise.
66480         * lib/locale.in.h: Likewise.
66481         * lib/logl.c: Likewise.
66482         * lib/long-options.c: Likewise.
66483         * lib/long-options.h: Likewise.
66484         * lib/lstat.c: Likewise.
66485         * lib/lstat.h: Likewise.
66486         * lib/math.in.h: Likewise.
66487         * lib/mbchar.c: Likewise.
66488         * lib/mbchar.h: Likewise.
66489         * lib/mbfile.h: Likewise.
66490         * lib/mbiter.h: Likewise.
66491         * lib/mbscasecmp.c: Likewise.
66492         * lib/mbscasestr.c: Likewise.
66493         * lib/mbschr.c: Likewise.
66494         * lib/mbscspn.c: Likewise.
66495         * lib/mbslen.c: Likewise.
66496         * lib/mbsncasecmp.c: Likewise.
66497         * lib/mbsnlen.c: Likewise.
66498         * lib/mbspbrk.c: Likewise.
66499         * lib/mbspcasecmp.c: Likewise.
66500         * lib/mbsrchr.c: Likewise.
66501         * lib/mbssep.c: Likewise.
66502         * lib/mbsspn.c: Likewise.
66503         * lib/mbsstr.c: Likewise.
66504         * lib/mbstok_r.c: Likewise.
66505         * lib/mbswidth.c: Likewise.
66506         * lib/mbswidth.h: Likewise.
66507         * lib/mbuiter.h: Likewise.
66508         * lib/memcasecmp.c: Likewise.
66509         * lib/memcasecmp.h: Likewise.
66510         * lib/memchr.c: Likewise.
66511         * lib/memcmp.c: Likewise.
66512         * lib/memcoll.c: Likewise.
66513         * lib/memcoll.h: Likewise.
66514         * lib/memcpy.c: Likewise.
66515         * lib/memrchr.c: Likewise.
66516         * lib/mkancesdirs.c: Likewise.
66517         * lib/mkdir-p.c: Likewise.
66518         * lib/mkdir-p.h: Likewise.
66519         * lib/mkdir.c: Likewise.
66520         * lib/mkdirat.c: Likewise.
66521         * lib/mkdtemp.c: Likewise.
66522         * lib/mkstemp-safer.c: Likewise.
66523         * lib/mkstemp.c: Likewise.
66524         * lib/modechange.c: Likewise.
66525         * lib/modechange.h: Likewise.
66526         * lib/mountlist.c: Likewise.
66527         * lib/mountlist.h: Likewise.
66528         * lib/mpsort.c: Likewise.
66529         * lib/nanosleep.c: Likewise.
66530         * lib/obstack.c: Likewise.
66531         * lib/obstack.h: Likewise.
66532         * lib/open-safer.c: Likewise.
66533         * lib/open.c: Likewise.
66534         * lib/openat-die.c: Likewise.
66535         * lib/openat-priv.h: Likewise.
66536         * lib/openat-proc.c: Likewise.
66537         * lib/openat.c: Likewise.
66538         * lib/openat.h: Likewise.
66539         * lib/pagealign_alloc.c: Likewise.
66540         * lib/pagealign_alloc.h: Likewise.
66541         * lib/physmem.c: Likewise.
66542         * lib/physmem.h: Likewise.
66543         * lib/pipe-safer.c: Likewise.
66544         * lib/pipe.c: Likewise.
66545         * lib/pipe.h: Likewise.
66546         * lib/posixtm.c: Likewise.
66547         * lib/posixtm.h: Likewise.
66548         * lib/posixver.c: Likewise.
66549         * lib/printf-frexp.c: Likewise.
66550         * lib/printf-frexp.h: Likewise.
66551         * lib/printf-frexpl.c: Likewise.
66552         * lib/printf-frexpl.h: Likewise.
66553         * lib/printf.c: Likewise.
66554         * lib/progname.c: Likewise.
66555         * lib/progname.h: Likewise.
66556         * lib/progreloc.c: Likewise.
66557         * lib/putenv.c: Likewise.
66558         * lib/quote.c: Likewise.
66559         * lib/quote.h: Likewise.
66560         * lib/quotearg.c: Likewise.
66561         * lib/quotearg.h: Likewise.
66562         * lib/raise.c: Likewise.
66563         * lib/readline.c: Likewise.
66564         * lib/readline.h: Likewise.
66565         * lib/readlink.c: Likewise.
66566         * lib/readtokens.c: Likewise.
66567         * lib/readtokens.h: Likewise.
66568         * lib/readtokens0.c: Likewise.
66569         * lib/readtokens0.h: Likewise.
66570         * lib/readutmp.c: Likewise.
66571         * lib/readutmp.h: Likewise.
66572         * lib/realloc.c: Likewise.
66573         * lib/relocwrapper.c: Likewise.
66574         * lib/rename-dest-slash.c: Likewise.
66575         * lib/rename.c: Likewise.
66576         * lib/rmdir.c: Likewise.
66577         * lib/rpmatch.c: Likewise.
66578         * lib/safe-read.c: Likewise.
66579         * lib/safe-read.h: Likewise.
66580         * lib/safe-write.c: Likewise.
66581         * lib/safe-write.h: Likewise.
66582         * lib/same-inode.h: Likewise.
66583         * lib/same.c: Likewise.
66584         * lib/same.h: Likewise.
66585         * lib/save-cwd.c: Likewise.
66586         * lib/save-cwd.h: Likewise.
66587         * lib/savedir.c: Likewise.
66588         * lib/savedir.h: Likewise.
66589         * lib/savewd.c: Likewise.
66590         * lib/savewd.h: Likewise.
66591         * lib/search.in.h: Likewise.
66592         * lib/setenv.c: Likewise.
66593         * lib/setenv.h: Likewise.
66594         * lib/settime.c: Likewise.
66595         * lib/sh-quote.c: Likewise.
66596         * lib/sh-quote.h: Likewise.
66597         * lib/sig2str.c: Likewise.
66598         * lib/sig2str.h: Likewise.
66599         * lib/signal.in.h: Likewise.
66600         * lib/signbitd.c: Likewise.
66601         * lib/signbitf.c: Likewise.
66602         * lib/signbitl.c: Likewise.
66603         * lib/sigprocmask.c: Likewise.
66604         * lib/sincosl.c: Likewise.
66605         * lib/sleep.c: Likewise.
66606         * lib/sprintf.c: Likewise.
66607         * lib/sqrtl.c: Likewise.
66608         * lib/stat-time.h: Likewise.
66609         * lib/stdio--.h: Likewise.
66610         * lib/stdio-safer.h: Likewise.
66611         * lib/stdlib--.h: Likewise.
66612         * lib/stdlib-safer.h: Likewise.
66613         * lib/stdlib.in.h: Likewise.
66614         * lib/stpcpy.c: Likewise.
66615         * lib/stpncpy.c: Likewise.
66616         * lib/strchrnul.c: Likewise.
66617         * lib/strcspn.c: Likewise.
66618         * lib/strerror.c: Likewise.
66619         * lib/strftime.c: Likewise.
66620         * lib/strftime.h: Likewise.
66621         * lib/striconveh.c: Likewise.
66622         * lib/striconveh.h: Likewise.
66623         * lib/striconveha.c: Likewise.
66624         * lib/striconveha.h: Likewise.
66625         * lib/stripslash.c: Likewise.
66626         * lib/strnlen1.c: Likewise.
66627         * lib/strnlen1.h: Likewise.
66628         * lib/strtod.c: Likewise.
66629         * lib/strtoimax.c: Likewise.
66630         * lib/strtok_r.c: Likewise.
66631         * lib/strtol.c: Likewise.
66632         * lib/strtoll.c: Likewise.
66633         * lib/strtoul.c: Likewise.
66634         * lib/strtoull.c: Likewise.
66635         * lib/sysexits.in.h: Likewise.
66636         * lib/tempname.c: Likewise.
66637         * lib/tempname.h: Likewise.
66638         * lib/timespec.h: Likewise.
66639         * lib/tls.c: Likewise.
66640         * lib/tls.h: Likewise.
66641         * lib/tmpdir.c: Likewise.
66642         * lib/tmpdir.h: Likewise.
66643         * lib/tmpfile-safer.c: Likewise.
66644         * lib/tmpfile.c: Likewise.
66645         * lib/trigl.c: Likewise.
66646         * lib/trigl.h: Likewise.
66647         * lib/trim.c: Likewise.
66648         * lib/trim.h: Likewise.
66649         * lib/trunc.c: Likewise.
66650         * lib/truncf.c: Likewise.
66651         * lib/truncl.c: Likewise.
66652         * lib/tsearch.c: Likewise.
66653         * lib/unicodeio.c: Likewise.
66654         * lib/unicodeio.h: Likewise.
66655         * lib/unistd--.h: Likewise.
66656         * lib/unistd-safer.h: Likewise.
66657         * lib/unistdio/ulc-fprintf.c: Likewise.
66658         * lib/unistdio/ulc-vfprintf.c: Likewise.
66659         * lib/unlinkdir.c: Likewise.
66660         * lib/unlinkdir.h: Likewise.
66661         * lib/unlocked-io.h: Likewise.
66662         * lib/unsetenv.c: Likewise.
66663         * lib/userspec.c: Likewise.
66664         * lib/utime.c: Likewise.
66665         * lib/utimecmp.c: Likewise.
66666         * lib/utimecmp.h: Likewise.
66667         * lib/utimens.c: Likewise.
66668         * lib/verify.h: Likewise.
66669         * lib/verror.c: Likewise.
66670         * lib/verror.h: Likewise.
66671         * lib/version-etc-fsf.c: Likewise.
66672         * lib/version-etc.c: Likewise.
66673         * lib/version-etc.h: Likewise.
66674         * lib/vfprintf.c: Likewise.
66675         * lib/vprintf.c: Likewise.
66676         * lib/vsprintf.c: Likewise.
66677         * lib/w32spawn.h: Likewise.
66678         * lib/wait-process.c: Likewise.
66679         * lib/wait-process.h: Likewise.
66680         * lib/wcwidth.c: Likewise.
66681         * lib/write-any-file.c: Likewise.
66682         * lib/xalloc-die.c: Likewise.
66683         * lib/xalloc.h: Likewise.
66684         * lib/xasprintf.c: Likewise.
66685         * lib/xgetcwd.c: Likewise.
66686         * lib/xgetcwd.h: Likewise.
66687         * lib/xgetdomainname.c: Likewise.
66688         * lib/xgetdomainname.h: Likewise.
66689         * lib/xgethostname.c: Likewise.
66690         * lib/xmalloc.c: Likewise.
66691         * lib/xmalloca.c: Likewise.
66692         * lib/xmalloca.h: Likewise.
66693         * lib/xmemcoll.c: Likewise.
66694         * lib/xnanosleep.c: Likewise.
66695         * lib/xreadlink.c: Likewise.
66696         * lib/xreadlink.h: Likewise.
66697         * lib/xsetenv.c: Likewise.
66698         * lib/xsetenv.h: Likewise.
66699         * lib/xstriconv.c: Likewise.
66700         * lib/xstriconv.h: Likewise.
66701         * lib/xstrndup.c: Likewise.
66702         * lib/xstrndup.h: Likewise.
66703         * lib/xstrtod.c: Likewise.
66704         * lib/xstrtod.h: Likewise.
66705         * lib/xstrtol-error.c: Likewise.
66706         * lib/xstrtol.c: Likewise.
66707         * lib/xstrtol.h: Likewise.
66708         * lib/xtime.h: Likewise.
66709         * lib/xvasprintf.c: Likewise.
66710         * lib/xvasprintf.h: Likewise.
66711         * lib/yesno.c: Likewise.
66712         * lib/yesno.h: Likewise.
66713         * posix-modules: Likewise.
66714         * tests/test-alloca-opt.c: Likewise.
66715         * tests/test-arcfour.c: Likewise.
66716         * tests/test-arctwo.c: Likewise.
66717         * tests/test-argmatch.c: Likewise.
66718         * tests/test-argp-2.sh: Likewise.
66719         * tests/test-argp.c: Likewise.
66720         * tests/test-arpa_inet.c: Likewise.
66721         * tests/test-array_list.c: Likewise.
66722         * tests/test-array_oset.c: Likewise.
66723         * tests/test-atexit.c: Likewise.
66724         * tests/test-avltree_list.c: Likewise.
66725         * tests/test-avltree_oset.c: Likewise.
66726         * tests/test-avltreehash_list.c: Likewise.
66727         * tests/test-base64.c: Likewise.
66728         * tests/test-binary-io.c: Likewise.
66729         * tests/test-byteswap.c: Likewise.
66730         * tests/test-c-ctype.c: Likewise.
66731         * tests/test-c-strcasecmp.c: Likewise.
66732         * tests/test-c-strcasestr.c: Likewise.
66733         * tests/test-c-strncasecmp.c: Likewise.
66734         * tests/test-c-strstr.c: Likewise.
66735         * tests/test-canonicalize-lgpl.c: Likewise.
66736         * tests/test-canonicalize.c: Likewise.
66737         * tests/test-carray_list.c: Likewise.
66738         * tests/test-ceilf.c: Likewise.
66739         * tests/test-ceill.c: Likewise.
66740         * tests/test-count-one-bits.c: Likewise.
66741         * tests/test-crc.c: Likewise.
66742         * tests/test-dirname.c: Likewise.
66743         * tests/test-fbufmode.c: Likewise.
66744         * tests/test-fcntl.c: Likewise.
66745         * tests/test-fflush.c: Likewise.
66746         * tests/test-floorf.c: Likewise.
66747         * tests/test-floorl.c: Likewise.
66748         * tests/test-fopen.c: Likewise.
66749         * tests/test-fprintf-posix.c: Likewise.
66750         * tests/test-fprintf-posix.h: Likewise.
66751         * tests/test-fpurge.c: Likewise.
66752         * tests/test-freadable.c: Likewise.
66753         * tests/test-freadahead.c: Likewise.
66754         * tests/test-freading.c: Likewise.
66755         * tests/test-freopen.c: Likewise.
66756         * tests/test-frexp.c: Likewise.
66757         * tests/test-frexpl.c: Likewise.
66758         * tests/test-fseek.c: Likewise.
66759         * tests/test-fseeko.c: Likewise.
66760         * tests/test-fseterr.c: Likewise.
66761         * tests/test-fstrcmp.c: Likewise.
66762         * tests/test-ftell.c: Likewise.
66763         * tests/test-ftello.c: Likewise.
66764         * tests/test-fwritable.c: Likewise.
66765         * tests/test-fwriting.c: Likewise.
66766         * tests/test-getaddrinfo.c: Likewise.
66767         * tests/test-getpass.c: Likewise.
66768         * tests/test-gettimeofday.c: Likewise.
66769         * tests/test-hmac-md5.c: Likewise.
66770         * tests/test-hmac-sha1.c: Likewise.
66771         * tests/test-iconv.c: Likewise.
66772         * tests/test-iconvme.c: Likewise.
66773         * tests/test-inttypes.c: Likewise.
66774         * tests/test-isnan.c: Likewise.
66775         * tests/test-isnanf.c: Likewise.
66776         * tests/test-isnanl-nolibm.c: Likewise.
66777         * tests/test-isnanl.c: Likewise.
66778         * tests/test-isnanl.h: Likewise.
66779         * tests/test-ldexpl.c: Likewise.
66780         * tests/test-linked_list.c: Likewise.
66781         * tests/test-linkedhash_list.c: Likewise.
66782         * tests/test-locale.c: Likewise.
66783         * tests/test-localename.c: Likewise.
66784         * tests/test-lock.c: Likewise.
66785         * tests/test-lseek.c: Likewise.
66786         * tests/test-malloca.c: Likewise.
66787         * tests/test-math.c: Likewise.
66788         * tests/test-mbscasecmp.c: Likewise.
66789         * tests/test-mbscasestr1.c: Likewise.
66790         * tests/test-mbscasestr2.c: Likewise.
66791         * tests/test-mbscasestr3.c: Likewise.
66792         * tests/test-mbscasestr4.c: Likewise.
66793         * tests/test-mbschr.c: Likewise.
66794         * tests/test-mbscspn.c: Likewise.
66795         * tests/test-mbsncasecmp.c: Likewise.
66796         * tests/test-mbspbrk.c: Likewise.
66797         * tests/test-mbspcasecmp.c: Likewise.
66798         * tests/test-mbsrchr.c: Likewise.
66799         * tests/test-mbsspn.c: Likewise.
66800         * tests/test-mbsstr1.c: Likewise.
66801         * tests/test-mbsstr2.c: Likewise.
66802         * tests/test-mbsstr3.c: Likewise.
66803         * tests/test-md5.c: Likewise.
66804         * tests/test-memmem.c: Likewise.
66805         * tests/test-netinet_in.c: Likewise.
66806         * tests/test-open.c: Likewise.
66807         * tests/test-printf-frexp.c: Likewise.
66808         * tests/test-printf-frexpl.c: Likewise.
66809         * tests/test-printf-posix.c: Likewise.
66810         * tests/test-printf-posix.h: Likewise.
66811         * tests/test-rbtree_list.c: Likewise.
66812         * tests/test-rbtree_oset.c: Likewise.
66813         * tests/test-rbtreehash_list.c: Likewise.
66814         * tests/test-read-file.c: Likewise.
66815         * tests/test-rijndael.c: Likewise.
66816         * tests/test-search.c: Likewise.
66817         * tests/test-signbit.c: Likewise.
66818         * tests/test-sleep.c: Likewise.
66819         * tests/test-snprintf-posix.c: Likewise.
66820         * tests/test-snprintf-posix.h: Likewise.
66821         * tests/test-snprintf.c: Likewise.
66822         * tests/test-sprintf-posix.c: Likewise.
66823         * tests/test-sprintf-posix.h: Likewise.
66824         * tests/test-stat-time.c: Likewise.
66825         * tests/test-stdbool.c: Likewise.
66826         * tests/test-stdint.c: Likewise.
66827         * tests/test-stdio.c: Likewise.
66828         * tests/test-stdlib.c: Likewise.
66829         * tests/test-stpncpy.c: Likewise.
66830         * tests/test-strcasestr.c: Likewise.
66831         * tests/test-striconv.c: Likewise.
66832         * tests/test-striconveh.c: Likewise.
66833         * tests/test-striconveha.c: Likewise.
66834         * tests/test-string.c: Likewise.
66835         * tests/test-sys_select.c: Likewise.
66836         * tests/test-sys_socket.c: Likewise.
66837         * tests/test-sys_stat.c: Likewise.
66838         * tests/test-sys_time.c: Likewise.
66839         * tests/test-sysexits.c: Likewise.
66840         * tests/test-time.c: Likewise.
66841         * tests/test-tls.c: Likewise.
66842         * tests/test-trunc.c: Likewise.
66843         * tests/test-truncf.c: Likewise.
66844         * tests/test-truncl.c: Likewise.
66845         * tests/test-unistd.c: Likewise.
66846         * tests/test-vasnprintf-posix.c: Likewise.
66847         * tests/test-vasnprintf-posix2.c: Likewise.
66848         * tests/test-vasnprintf.c: Likewise.
66849         * tests/test-vasprintf-posix.c: Likewise.
66850         * tests/test-vasprintf.c: Likewise.
66851         * tests/test-verify.c: Likewise.
66852         * tests/test-vfprintf-posix.c: Likewise.
66853         * tests/test-vprintf-posix.c: Likewise.
66854         * tests/test-vsnprintf-posix.c: Likewise.
66855         * tests/test-vsnprintf.c: Likewise.
66856         * tests/test-vsprintf-posix.c: Likewise.
66857         * tests/test-wchar.c: Likewise.
66858         * tests/test-wctype.c: Likewise.
66859         * tests/test-wcwidth.c: Likewise.
66860         * tests/test-xstrtol.c: Likewise.
66861         * tests/test-xvasprintf.c: Likewise.
66862         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66863         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66864         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66865         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66866         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66867         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66868         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66869         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66870         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66871         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66872         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66873         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66874         * tests/uniname/test-uninames.c: Likewise.
66875         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66876         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
66877         * tests/unistdio/test-u16-printf1.h: Likewise.
66878         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66879         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66880         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66881         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66882         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66883         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66884         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66885         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
66886         * tests/unistdio/test-u32-printf1.h: Likewise.
66887         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66888         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66889         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66890         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66891         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66892         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66893         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66894         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
66895         * tests/unistdio/test-u8-printf1.h: Likewise.
66896         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66897         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66898         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66899         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66900         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66901         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66902         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66903         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
66904         * tests/unistdio/test-ulc-printf1.h: Likewise.
66905         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66906         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66907         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66908         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66909         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66910         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66911         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66912         * tests/uniwidth/test-u16-width.c: Likewise.
66913         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66914         * tests/uniwidth/test-u32-width.c: Likewise.
66915         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66916         * tests/uniwidth/test-u8-width.c: Likewise.
66917         * tests/uniwidth/test-uc_width.c: Likewise.
66918         * config/srclist-update: Likewise.
66919         (fixlicense): Update to GPLv3+.
66920
66921         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66922         * tests/test-tsearch.c: Change copyright notice.
66923
66924         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66925         * lib/c-strcaseeq.h: Change copyright notice.
66926         * lib/streq.h: Likewise.
66927         * lib/uniconv.h: Likewise.
66928         * lib/uniconv/u-conv-from-enc.h: Likewise.
66929         * lib/uniconv/u-conv-to-enc.h: Likewise.
66930         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66931         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66932         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66933         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66934         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66935         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66936         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66937         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66938         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66939         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66940         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66941         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66942         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66943         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66944         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66945         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66946         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66947         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66948         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66949         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66950         * lib/uniname.h: Likewise.
66951         * lib/uniname/uniname.c: Likewise.
66952         * lib/unistdio.h: Likewise.
66953         * lib/unistdio/u-asnprintf.h: Likewise.
66954         * lib/unistdio/u-asprintf.h: Likewise.
66955         * lib/unistdio/u-printf-args.c: Likewise.
66956         * lib/unistdio/u-printf-args.h: Likewise.
66957         * lib/unistdio/u-printf-parse.h: Likewise.
66958         * lib/unistdio/u-snprintf.h: Likewise.
66959         * lib/unistdio/u-sprintf.h: Likewise.
66960         * lib/unistdio/u-vasprintf.h: Likewise.
66961         * lib/unistdio/u-vsnprintf.h: Likewise.
66962         * lib/unistdio/u-vsprintf.h: Likewise.
66963         * lib/unistdio/u16-asnprintf.c: Likewise.
66964         * lib/unistdio/u16-asprintf.c: Likewise.
66965         * lib/unistdio/u16-printf-parse.c: Likewise.
66966         * lib/unistdio/u16-snprintf.c: Likewise.
66967         * lib/unistdio/u16-sprintf.c: Likewise.
66968         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66969         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66970         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66971         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66972         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66973         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66974         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66975         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66976         * lib/unistdio/u16-vasnprintf.c: Likewise.
66977         * lib/unistdio/u16-vasprintf.c: Likewise.
66978         * lib/unistdio/u16-vsnprintf.c: Likewise.
66979         * lib/unistdio/u16-vsprintf.c: Likewise.
66980         * lib/unistdio/u32-asnprintf.c: Likewise.
66981         * lib/unistdio/u32-asprintf.c: Likewise.
66982         * lib/unistdio/u32-printf-parse.c: Likewise.
66983         * lib/unistdio/u32-snprintf.c: Likewise.
66984         * lib/unistdio/u32-sprintf.c: Likewise.
66985         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66986         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66987         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66988         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66989         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66990         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66991         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66992         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66993         * lib/unistdio/u32-vasnprintf.c: Likewise.
66994         * lib/unistdio/u32-vasprintf.c: Likewise.
66995         * lib/unistdio/u32-vsnprintf.c: Likewise.
66996         * lib/unistdio/u32-vsprintf.c: Likewise.
66997         * lib/unistdio/u8-asnprintf.c: Likewise.
66998         * lib/unistdio/u8-asprintf.c: Likewise.
66999         * lib/unistdio/u8-printf-parse.c: Likewise.
67000         * lib/unistdio/u8-snprintf.c: Likewise.
67001         * lib/unistdio/u8-sprintf.c: Likewise.
67002         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67003         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67004         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67005         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67006         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67007         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67008         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67009         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67010         * lib/unistdio/u8-vasnprintf.c: Likewise.
67011         * lib/unistdio/u8-vasprintf.c: Likewise.
67012         * lib/unistdio/u8-vsnprintf.c: Likewise.
67013         * lib/unistdio/u8-vsprintf.c: Likewise.
67014         * lib/unistdio/ulc-asnprintf.c: Likewise.
67015         * lib/unistdio/ulc-asprintf.c: Likewise.
67016         * lib/unistdio/ulc-printf-parse.c: Likewise.
67017         * lib/unistdio/ulc-snprintf.c: Likewise.
67018         * lib/unistdio/ulc-sprintf.c: Likewise.
67019         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67020         * lib/unistdio/ulc-vasprintf.c: Likewise.
67021         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67022         * lib/unistdio/ulc-vsprintf.c: Likewise.
67023         * lib/unistr.h: Likewise.
67024         * lib/unistr/u-cpy-alloc.h: Likewise.
67025         * lib/unistr/u-cpy.h: Likewise.
67026         * lib/unistr/u-endswith.h: Likewise.
67027         * lib/unistr/u-move.h: Likewise.
67028         * lib/unistr/u-set.h: Likewise.
67029         * lib/unistr/u-startswith.h: Likewise.
67030         * lib/unistr/u-stpcpy.h: Likewise.
67031         * lib/unistr/u-stpncpy.h: Likewise.
67032         * lib/unistr/u-strcat.h: Likewise.
67033         * lib/unistr/u-strcpy.h: Likewise.
67034         * lib/unistr/u-strcspn.h: Likewise.
67035         * lib/unistr/u-strdup.h: Likewise.
67036         * lib/unistr/u-strlen.h: Likewise.
67037         * lib/unistr/u-strncat.h: Likewise.
67038         * lib/unistr/u-strncpy.h: Likewise.
67039         * lib/unistr/u-strnlen.h: Likewise.
67040         * lib/unistr/u-strpbrk.h: Likewise.
67041         * lib/unistr/u-strspn.h: Likewise.
67042         * lib/unistr/u-strstr.h: Likewise.
67043         * lib/unistr/u-strtok.h: Likewise.
67044         * lib/unistr/u16-check.c: Likewise.
67045         * lib/unistr/u16-chr.c: Likewise.
67046         * lib/unistr/u16-cmp.c: Likewise.
67047         * lib/unistr/u16-cpy-alloc.c: Likewise.
67048         * lib/unistr/u16-cpy.c: Likewise.
67049         * lib/unistr/u16-endswith.c: Likewise.
67050         * lib/unistr/u16-mblen.c: Likewise.
67051         * lib/unistr/u16-mbsnlen.c: Likewise.
67052         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67053         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67054         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67055         * lib/unistr/u16-mbtouc.c: Likewise.
67056         * lib/unistr/u16-mbtoucr.c: Likewise.
67057         * lib/unistr/u16-move.c: Likewise.
67058         * lib/unistr/u16-next.c: Likewise.
67059         * lib/unistr/u16-prev.c: Likewise.
67060         * lib/unistr/u16-set.c: Likewise.
67061         * lib/unistr/u16-startswith.c: Likewise.
67062         * lib/unistr/u16-stpcpy.c: Likewise.
67063         * lib/unistr/u16-stpncpy.c: Likewise.
67064         * lib/unistr/u16-strcat.c: Likewise.
67065         * lib/unistr/u16-strchr.c: Likewise.
67066         * lib/unistr/u16-strcmp.c: Likewise.
67067         * lib/unistr/u16-strcpy.c: Likewise.
67068         * lib/unistr/u16-strcspn.c: Likewise.
67069         * lib/unistr/u16-strdup.c: Likewise.
67070         * lib/unistr/u16-strlen.c: Likewise.
67071         * lib/unistr/u16-strmblen.c: Likewise.
67072         * lib/unistr/u16-strmbtouc.c: Likewise.
67073         * lib/unistr/u16-strncat.c: Likewise.
67074         * lib/unistr/u16-strncmp.c: Likewise.
67075         * lib/unistr/u16-strncpy.c: Likewise.
67076         * lib/unistr/u16-strnlen.c: Likewise.
67077         * lib/unistr/u16-strpbrk.c: Likewise.
67078         * lib/unistr/u16-strrchr.c: Likewise.
67079         * lib/unistr/u16-strspn.c: Likewise.
67080         * lib/unistr/u16-strstr.c: Likewise.
67081         * lib/unistr/u16-strtok.c: Likewise.
67082         * lib/unistr/u16-to-u32.c: Likewise.
67083         * lib/unistr/u16-to-u8.c: Likewise.
67084         * lib/unistr/u16-uctomb-aux.c: Likewise.
67085         * lib/unistr/u16-uctomb.c: Likewise.
67086         * lib/unistr/u32-check.c: Likewise.
67087         * lib/unistr/u32-chr.c: Likewise.
67088         * lib/unistr/u32-cmp.c: Likewise.
67089         * lib/unistr/u32-cpy-alloc.c: Likewise.
67090         * lib/unistr/u32-cpy.c: Likewise.
67091         * lib/unistr/u32-endswith.c: Likewise.
67092         * lib/unistr/u32-mblen.c: Likewise.
67093         * lib/unistr/u32-mbsnlen.c: Likewise.
67094         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67095         * lib/unistr/u32-mbtouc.c: Likewise.
67096         * lib/unistr/u32-mbtoucr.c: Likewise.
67097         * lib/unistr/u32-move.c: Likewise.
67098         * lib/unistr/u32-next.c: Likewise.
67099         * lib/unistr/u32-prev.c: Likewise.
67100         * lib/unistr/u32-set.c: Likewise.
67101         * lib/unistr/u32-startswith.c: Likewise.
67102         * lib/unistr/u32-stpcpy.c: Likewise.
67103         * lib/unistr/u32-stpncpy.c: Likewise.
67104         * lib/unistr/u32-strcat.c: Likewise.
67105         * lib/unistr/u32-strchr.c: Likewise.
67106         * lib/unistr/u32-strcmp.c: Likewise.
67107         * lib/unistr/u32-strcpy.c: Likewise.
67108         * lib/unistr/u32-strcspn.c: Likewise.
67109         * lib/unistr/u32-strdup.c: Likewise.
67110         * lib/unistr/u32-strlen.c: Likewise.
67111         * lib/unistr/u32-strmblen.c: Likewise.
67112         * lib/unistr/u32-strmbtouc.c: Likewise.
67113         * lib/unistr/u32-strncat.c: Likewise.
67114         * lib/unistr/u32-strncmp.c: Likewise.
67115         * lib/unistr/u32-strncpy.c: Likewise.
67116         * lib/unistr/u32-strnlen.c: Likewise.
67117         * lib/unistr/u32-strpbrk.c: Likewise.
67118         * lib/unistr/u32-strrchr.c: Likewise.
67119         * lib/unistr/u32-strspn.c: Likewise.
67120         * lib/unistr/u32-strstr.c: Likewise.
67121         * lib/unistr/u32-strtok.c: Likewise.
67122         * lib/unistr/u32-to-u16.c: Likewise.
67123         * lib/unistr/u32-to-u8.c: Likewise.
67124         * lib/unistr/u32-uctomb.c: Likewise.
67125         * lib/unistr/u8-check.c: Likewise.
67126         * lib/unistr/u8-chr.c: Likewise.
67127         * lib/unistr/u8-cmp.c: Likewise.
67128         * lib/unistr/u8-cpy-alloc.c: Likewise.
67129         * lib/unistr/u8-cpy.c: Likewise.
67130         * lib/unistr/u8-endswith.c: Likewise.
67131         * lib/unistr/u8-mblen.c: Likewise.
67132         * lib/unistr/u8-mbsnlen.c: Likewise.
67133         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67134         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67135         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67136         * lib/unistr/u8-mbtouc.c: Likewise.
67137         * lib/unistr/u8-mbtoucr.c: Likewise.
67138         * lib/unistr/u8-move.c: Likewise.
67139         * lib/unistr/u8-next.c: Likewise.
67140         * lib/unistr/u8-prev.c: Likewise.
67141         * lib/unistr/u8-set.c: Likewise.
67142         * lib/unistr/u8-startswith.c: Likewise.
67143         * lib/unistr/u8-stpcpy.c: Likewise.
67144         * lib/unistr/u8-stpncpy.c: Likewise.
67145         * lib/unistr/u8-strcat.c: Likewise.
67146         * lib/unistr/u8-strchr.c: Likewise.
67147         * lib/unistr/u8-strcmp.c: Likewise.
67148         * lib/unistr/u8-strcpy.c: Likewise.
67149         * lib/unistr/u8-strcspn.c: Likewise.
67150         * lib/unistr/u8-strdup.c: Likewise.
67151         * lib/unistr/u8-strlen.c: Likewise.
67152         * lib/unistr/u8-strmblen.c: Likewise.
67153         * lib/unistr/u8-strmbtouc.c: Likewise.
67154         * lib/unistr/u8-strncat.c: Likewise.
67155         * lib/unistr/u8-strncmp.c: Likewise.
67156         * lib/unistr/u8-strncpy.c: Likewise.
67157         * lib/unistr/u8-strnlen.c: Likewise.
67158         * lib/unistr/u8-strpbrk.c: Likewise.
67159         * lib/unistr/u8-strrchr.c: Likewise.
67160         * lib/unistr/u8-strspn.c: Likewise.
67161         * lib/unistr/u8-strstr.c: Likewise.
67162         * lib/unistr/u8-strtok.c: Likewise.
67163         * lib/unistr/u8-to-u16.c: Likewise.
67164         * lib/unistr/u8-to-u32.c: Likewise.
67165         * lib/unistr/u8-uctomb-aux.c: Likewise.
67166         * lib/unistr/u8-uctomb.c: Likewise.
67167         * lib/unitypes.h: Likewise.
67168         * lib/uniwidth.h: Likewise.
67169         * lib/uniwidth/cjk.h: Likewise.
67170         * lib/uniwidth/u16-strwidth.c: Likewise.
67171         * lib/uniwidth/u16-width.c: Likewise.
67172         * lib/uniwidth/u32-strwidth.c: Likewise.
67173         * lib/uniwidth/u32-width.c: Likewise.
67174         * lib/uniwidth/u8-strwidth.c: Likewise.
67175         * lib/uniwidth/u8-width.c: Likewise.
67176         * lib/uniwidth/width.c: Likewise.
67177
67178 2007-10-07  Bruno Haible  <bruno@clisp.org>
67179
67180         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67181         The file is still under LGPL (see modules/inttypes).
67182
67183 2007-10-06  Bruno Haible  <bruno@clisp.org>
67184
67185         * modules/trunc (Dependencies): Add 'extensions'.
67186         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67187         Reported by Ben Pfaff <blp@gnu.org>.
67188
67189 2007-10-06  Bruno Haible  <bruno@clisp.org>
67190
67191         * modules/freopen-tests: New file.
67192         * tests/test-freopen.c: New file.
67193
67194         * modules/fopen-tests: New file.
67195         * tests/test-fopen.c: New file.
67196
67197         * modules/fopen: New file.
67198         * lib/fopen.c: New file.
67199         * m4/fopen.m4: New file.
67200         * modules/freopen: New file.
67201         * lib/freopen.c: New file.
67202         * m4/freopen.m4: New file.
67203         * lib/stdio.in.h (fopen, freopen): New declarations.
67204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67205         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67206         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67207         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67208         * doc/functions/fopen.texi: Mention the 'fopen' module.
67209         * doc/functions/freopen.texi: Mention the 'freopen' module.
67210
67211 2007-10-06  Bruno Haible  <bruno@clisp.org>
67212
67213         * modules/open-tests: New file.
67214         * tests/test-open.c: New file.
67215
67216         * modules/open: New file.
67217         * lib/open.c: New file.
67218         * m4/open.m4: New file.
67219         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67220         lib/open.c does.
67221         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67222         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67223         macros.
67224         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67225         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67226         REPLACE_OPEN.
67227         * doc/functions/open.texi: Mention the 'open' module.
67228
67229 2007-10-04  Bruno Haible  <bruno@clisp.org>
67230
67231         * modules/ceill-tests: New file.
67232         * tests/test-ceill.c: New file.
67233
67234         * modules/ceill: New file.
67235         * lib/ceill.c: Replace entire file.
67236         * m4/ceill.m4: New file.
67237         * lib/math.in.h (ceill): Replace declaration.
67238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67239         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67240         * doc/functions/ceill.texi: Mention the 'ceill' module.
67241         * modules/mathl (Files): Remove lib/ceill.c.
67242         (Depends-on): Add ceill.
67243
67244 2007-10-04  Bruno Haible  <bruno@clisp.org>
67245
67246         * modules/ceilf-tests: New file.
67247         * tests/test-ceilf.c: New file.
67248
67249         * modules/ceilf: New file.
67250         * lib/ceil.c: New file.
67251         * lib/ceilf.c: New file.
67252         * m4/ceilf.m4: New file.
67253         * lib/math.in.h (ceilf): New declaration.
67254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67255         HAVE_DECL_CEILF.
67256         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67257         HAVE_DECL_CEILF.
67258         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67259
67260 2007-10-04  Bruno Haible  <bruno@clisp.org>
67261
67262         * modules/floorl-tests: New file.
67263         * tests/test-floorl.c: New file.
67264
67265         * modules/floorl: New file.
67266         * lib/floorl.c: Replace entire file.
67267         * m4/floorl.m4: New file.
67268         * lib/math.in.h (floorl): Replace declaration.
67269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67270         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67271         * doc/functions/floorl.texi: Mention the 'floorl' module.
67272         * modules/mathl (Files): Remove lib/floorl.c.
67273         (Depends-on): Add floorl.
67274
67275 2007-10-04  Bruno Haible  <bruno@clisp.org>
67276
67277         * modules/floorf-tests: New file.
67278         * tests/test-floorf.c: New file.
67279
67280         * modules/floorf: New file.
67281         * lib/floor.c: New file.
67282         * lib/floorf.c: New file.
67283         * m4/floorf.m4: New file.
67284         * lib/math.in.h (floorf): New declaration.
67285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67286         HAVE_DECL_FLOORF.
67287         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67288         HAVE_DECL_FLOORF.
67289         * doc/functions/floorf.texi: Mention the 'floorf' module.
67290
67291 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67292             Bruno Haible  <bruno@clisp.org>
67293
67294         Advertise for the Git server instead of the CVS server.
67295         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67296         repository instead of the CVS one.
67297         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67298         about all VCS systems generically.
67299         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67300
67301 2007-10-04  Bruno Haible  <bruno@clisp.org>
67302
67303         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67304         means.
67305         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67306
67307 2007-10-04  Bruno Haible  <bruno@clisp.org>
67308
67309         * modules/truncl-tests: New file.
67310         * tests/test-truncl.c: New file.
67311
67312         * modules/truncl: New file.
67313         * lib/truncl.c: New file.
67314         * m4/truncl.m4: New file.
67315         * lib/math.in.h (truncl): New declaration.
67316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67317         HAVE_DECL_TRUNCL.
67318         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67319         HAVE_DECL_TRUNCL.
67320         * doc/functions/truncl.texi: Mention the 'truncl' module.
67321
67322 2007-10-04  Bruno Haible  <bruno@clisp.org>
67323
67324         * modules/truncf-tests: New file.
67325         * tests/test-truncf.c: New file.
67326
67327         * modules/truncf: New file.
67328         * lib/trunc.c: Make paramerizable through USE_* macros.
67329         * lib/truncf.c: New file.
67330         * m4/truncf.m4: New file.
67331         * lib/math.in.h (truncf): New declaration.
67332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67333         HAVE_DECL_TRUNCF.
67334         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67335         HAVE_DECL_TRUNCF.
67336         * doc/functions/truncf.texi: Mention the 'truncf' module.
67337
67338 2007-10-03  Bruno Haible  <bruno@clisp.org>
67339
67340         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67341         augmentation also for tests modules.
67342         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67343         * modules/atexit-tests (Makefile.am): Likewise.
67344         * modules/binary-io-tests (Makefile.am): Likewise.
67345         * modules/c-strcase-tests (Makefile.am): Likewise.
67346         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67347         * modules/canonicalize-tests (Makefile.am): Likewise.
67348         * modules/closein-tests (Makefile.am): Likewise.
67349         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67350         * modules/freadahead-tests (Makefile.am): Likewise.
67351         * modules/fseek-tests (Makefile.am): Likewise.
67352         * modules/fseeko-tests (Makefile.am): Likewise.
67353         * modules/ftell-tests (Makefile.am): Likewise.
67354         * modules/ftello-tests (Makefile.am): Likewise.
67355         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67356         * modules/isnanl-tests (Makefile.am): Likewise.
67357         * modules/lseek-tests (Makefile.am): Likewise.
67358         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67359         * modules/mbscasestr-tests (Makefile.am): Likewise.
67360         * modules/mbschr-tests (Makefile.am): Likewise.
67361         * modules/mbscspn-tests (Makefile.am): Likewise.
67362         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67363         * modules/mbspbrk-tests (Makefile.am): Likewise.
67364         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67365         * modules/mbsrchr-tests (Makefile.am): Likewise.
67366         * modules/mbsspn-tests (Makefile.am): Likewise.
67367         * modules/mbsstr-tests (Makefile.am): Likewise.
67368         * modules/printf-posix-tests (Makefile.am): Likewise.
67369         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67370         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67371         * modules/tsearch-tests (Makefile.am): Likewise.
67372         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67373         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67374         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67375         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67376         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67377         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67378         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67379         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67380         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67381         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67382         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67383         * modules/xstrtol-tests (Makefile.am): Likewise.
67384         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67385         * modules/yesno-tests (Makefile.am): Likewise.
67386
67387 2007-10-03  Bruno Haible  <bruno@clisp.org>
67388
67389         * modules/trunc-tests: New file.
67390         * tests/test-trunc.c: New file.
67391
67392         * modules/trunc: New file.
67393         * lib/trunc.c: New file.
67394         * m4/trunc.m4: New file.
67395         * lib/math.in.h (trunc): New declaration.
67396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67397         HAVE_DECL_TRUNC.
67398         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67399         HAVE_DECL_TRUNC.
67400         * doc/functions/trunc.texi: Mention the 'trunc' module.
67401
67402 2007-10-03  Bruno Haible  <bruno@clisp.org>
67403
67404         * tests/test-fpending.c: New file, mostly copied
67405         from coreutils/lib/t-fpending.c.
67406         * modules/fpending-tests: New file.
67407
67408 2007-10-03  Bruno Haible  <bruno@clisp.org>
67409
67410         Port the stdio extensions to QNX (untested).
67411         * lib/fseterr.c (fseterr): Add support for QNX.
67412         * lib/fbufmode.c (fbufmode): Likewise.
67413         * lib/freadable.c (freadable): Likewise.
67414         * lib/fwritable.c (fwritable): Likewise.
67415         * lib/freading.c (freading): Likewise.
67416         * lib/fwriting.c (fwriting): Likewise.
67417         * lib/freadahead.c (freadahed): Likewise.
67418         * lib/fpurge.c (fpurge): Likewise.
67419         * lib/fseeko.c (rpl_fseeko): Likewise.
67420
67421 2007-10-03  Bruno Haible  <bruno@clisp.org>
67422             Jim Meyering  <jim@meyering.net>
67423             Eric Blake  <ebb9@byu.net>
67424
67425         * doc/relocatable.texi: Use @command instead of @program.
67426
67427 2007-10-02  Jim Meyering  <jim@meyering.net>
67428
67429         Perform one more "_.h" -> ".in.h" substitution.
67430         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67431         instead of unistd_.h here, too.
67432
67433 2007-10-01  Bruno Haible  <bruno@clisp.org>
67434
67435         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67436         Needed for the alloca-opt module.
67437
67438 2007-09-30  Bruno Haible  <bruno@clisp.org>
67439
67440         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67441         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67442         alloca_.h.
67443         * lib/argz.in.h: Renamed from lib/argz_.h.
67444         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67445         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67446         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67447         byteswap_.h.
67448         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67449         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67450         dirent_.h.
67451         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67452         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67453         fcntl_.h.
67454         * lib/float.in.h: Renamed from lib/float_.h.
67455         * modules/float (Files, Makefile.am): Use float.in.h instead of
67456         float_.h.
67457         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67458         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67459         fnmatch_.h.
67460         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67461         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67462         getopt_.h.
67463         * lib/glob.in.h: Renamed from lib/glob_.h.
67464         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67465         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67466         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67467         iconv_.h.
67468         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67469         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67470         inttypes_.h.
67471         * lib/locale.in.h: Renamed from lib/locale_.h.
67472         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67473         locale_.h.
67474         * lib/math.in.h: Renamed from lib/math_.h.
67475         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67476         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67477         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67478         of netinet_in_.h. Add dependency.
67479         * lib/poll.in.h: Renamed from lib/poll_.h.
67480         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67481         * lib/search.in.h: Renamed from lib/search_.h.
67482         * modules/search (Files, Makefile.am): Use search.in.h instead of
67483         search_.h.
67484         * lib/signal.in.h: Renamed from lib/signal_.h.
67485         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67486         _signal.h.
67487         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67488         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67489         stdbool_.h.
67490         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67491         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67492         stdint_.h.
67493         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67494         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67495         stdio_.h.
67496         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67497         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67498         stdlib_.h.
67499         * lib/string.in.h: Renamed from lib/string_.h.
67500         * modules/string (Files, Makefile.am): Use string.in.h instead of
67501         string_.h.
67502         * doc/gnulib-tool.texi (Initial import): Update.
67503         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67504         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67505         of sys_select_.h. Add dependency.
67506         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67507         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67508         of sys_socket_.h.
67509         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67510         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67511         sys_stat_.h.
67512         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67513         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67514         sys_time_.h.
67515         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67516         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67517         sysexits_.h.
67518         * lib/time.in.h: Renamed from lib/time_.h.
67519         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67520         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67521         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67522         unistd_.h.
67523         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67524         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67525         wchar_.h.
67526         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67527         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67528         wctype_.h.
67529         * build-aux/bootstrap (slurp): Update.
67530         * lib/.cppi-disable: Update.
67531
67532 2007-09-30  Bruno Haible  <bruno@clisp.org>
67533
67534         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67535         Needed on BeOS.
67536
67537 2007-09-30  Bruno Haible  <bruno@clisp.org>
67538
67539         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67540
67541 2007-09-29  Bruno Haible  <bruno@clisp.org>
67542
67543         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67544
67545 2007-09-29  Bruno Haible  <bruno@clisp.org>
67546
67547         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67548         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67549         * build-aux/install-reloc: Compile also areadlink.c.
67550         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67551
67552 2007-09-29  Bruno Haible  <bruno@clisp.org>
67553
67554         * gnulib-tool (func_emit_initmacro_done): Indentation.
67555
67556 2007-09-29  Bruno Haible  <bruno@clisp.org>
67557
67558         * README: Add CVS checkout update instructions.
67559         Info from Bob Proulx <bob@proulx.com>.
67560
67561 2007-09-28  Eric Blake  <ebb9@byu.net>
67562
67563         Provide move-if-change.
67564         * build-aux/move-if-change: New file, based on best practice
67565         rather than any canonical upstream location.
67566
67567 2007-09-28  Jim Meyering  <jim@meyering.net>
67568
67569         Fix canonicalize loop-detection corner case.
67570         Do not attempt to stat the symlink values stored via seen_triple.
67571         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67572         on linux-2.6.18, (but not 2.6.22).
67573         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67574         triple_compare.  The former compares dev,ino,filename, while the latter
67575         would actually stat dirname(filename) when dev and ino were equal.
67576         * lib/hash-triple.c: Install <string.h>.
67577         (STREQ): Define.
67578         (triple_compare_ino_str): New function.
67579         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67580
67581 2007-09-28  Eric Blake  <ebb9@byu.net>
67582
67583         Enforce that AC_REPLACE_FUNCS files exist.
67584         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67585         override check for typos.
67586
67587         Fix test-closein on Solaris 10.
67588         * tests/test-closein.c (main): Don't assume stdin can be inherited
67589         closed on all systems.
67590         * tests/test-closein.sh: Likewise.
67591         Reported by Piotr Tarnowski.
67592
67593 2007-09-28  Jim Meyering  <jim@meyering.net>
67594
67595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67596
67597 2007-09-27  Jim Meyering  <jim@meyering.net>
67598
67599         canonicalize: Avoid a false-positive cycle failure.
67600         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67601         Sort.  Remove cycle-check.
67602         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67603         not cycle-check.h.
67604         (seen_triple): New function.
67605         (canonicalize_filename_mode): Use it instead of cycle-check.
67606         * tests/test-canonicalize.c: Add a test for this bug.
67607         * tests/test-canonicalize.sh: Set up and run the test.
67608
67609         New module, file-set, from coreutils.
67610         * modules/file-set: Define it.
67611         * lib/file-set.c, lib/file-set.h: Implement.
67612
67613         New module, hash-triple, from coreutils.
67614         * modules/hash-triple: Define it.
67615         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67616
67617 2007-09-25  Eric Blake  <ebb9@byu.net>
67618
67619         Fix strerror on Interix.
67620         * lib/string_.h (strerror): Declare replacement.
67621         * doc/functions/strerror.texi (strerror): Document the Interix
67622         shortcoming.
67623         * modules/string (Makefile.am): Support new hooks.
67624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67625         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67626         gl_FUNC_STRERROR_SEPARATE.
67627         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67628         * lib/strerror.c (rpl_strerror): Provide replacement.
67629         * modules/strerror (Depends-on): Add string.
67630         (configure.ac): Detect use of module.
67631         * tests/test-strerror.c: New file.
67632         * modules/strerror-tests: New test module.
67633         * modules/argp (Depends-on): Add strerror.
67634         * modules/error (Depends-on): Likewise.
67635         Reported by Martin Koeppe.
67636
67637 2007-09-24  Bruno Haible  <bruno@clisp.org>
67638
67639         * README: Update git instructions.
67640
67641 2007-09-24  Eric Blake  <ebb9@byu.net>
67642
67643         Revert fpending breakage from 2007-09-08.
67644         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67645         __fpending.c.
67646
67647 2007-09-24  Jim Meyering  <jim@meyering.net>
67648
67649         filenamecat.c: Add a test.
67650         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67651         showing how the function works when DIR is the empty string.
67652
67653 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67654
67655         * tests/test-canonicalize.sh: Turn on executable bit.
67656
67657 2007-09-19  Eric Blake  <ebb9@byu.net>
67658
67659         * README: Update CVS instructions.
67660
67661 2007-09-18  Bruno Haible  <bruno@clisp.org>
67662
67663         * modules/areadlink: New file.
67664         * lib/areadlink.h (areadlink): New declaration.
67665         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67666
67667 2007-09-17  Jim Meyering  <jim@meyering.net>
67668
67669         * lib/savewd.c (ESTALE) [!defined]: Define.
67670         Reported to be required on Interix by Martin Koeppe.
67671
67672 2007-09-17  Bruno Haible  <bruno@clisp.org>
67673
67674         * gnulib-tool (func_version): Use $version.
67675
67676 2007-09-16  Bruno Haible  <bruno@clisp.org>
67677
67678         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67679         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67680         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67681         Reported by Greg Schafer <gschafer@zip.com.au>.
67682
67683 2007-09-15  Bruno Haible  <bruno@clisp.org>
67684
67685         * gnulib-tool (sed): Try a little harder to make bash understand the
67686         alias.
67687         Reported by Bruce Korb <bruce.korb@gmail.com>.
67688
67689 2007-09-13  Eric Blake  <ebb9@byu.net>
67690
67691         * ChangeLog: Remove conflict markers.
67692
67693 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67694
67695         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67696         Reported by Bruno Haible <bruno@clisp.org>.
67697
67698 2007-09-12  Bruno Haible  <bruno@clisp.org>
67699
67700         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67701         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67702         is not defined.
67703
67704 2007-09-12  Eric Blake  <ebb9@byu.net>
67705
67706         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67707         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67708         Autoconf definition.
67709         * modules/euidaccess (Depends-on): Add extensions, for
67710         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67711         * modules/fnmatch (Depends-on): Likewise.
67712         * modules/getaddrinfo (Depends-on): Likewise.
67713         * modules/getdelim (Depends-on): Likewise.
67714         * modules/getline (Depends-on): Likewise.
67715         * modules/getsubopt (Depends-on): Likewise.
67716         * modules/gettext (Depends-on): Likewise.
67717         * modules/group-member (Depends-on): Likewise.
67718         * modules/mbchar (Depends-on): Likewise.
67719         * modules/memmem (Depends-on): Likewise.
67720         * modules/mempcpy (Depends-on): Likewise.
67721         * modules/memrchr (Depends-on): Likewise.
67722         * modules/pagealign_alloc (Depends-on): Likewise.
67723         * modules/readutmp (Depends-on): Likewise.
67724         * modules/stpcpy (Depends-on): Likewise.
67725         * modules/stpncpy (Depends-on): Likewise.
67726         * modules/strchrnul (Depends-on): Likewise.
67727         * modules/strndup (Depends-on): Likewise.
67728         * modules/strsep (Depends-on): Likewise.
67729         * modules/strverscmp (Depends-on): Likewise.
67730         * modules/vasprintf (Depends-on): Likewise.
67731         * modules/wcwidth (Depends-on): Likewise.
67732         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67733         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67734         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67735         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67736         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67737         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67738         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67739         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67740         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67741         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67742         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67743         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67744         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67745         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67746         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67747         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67748         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67749         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67750         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67751         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67752         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67753         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67754         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67755         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67756         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67757         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67758         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67759         so that lock.m4 can be used in gettext without extensions module.
67760
67761 2007-09-11  Bruno Haible  <bruno@clisp.org>
67762
67763         * m4/isc-posix.m4: Remove file.
67764         Suggested by Eric Blake.
67765
67766 2007-09-11  Eric Blake  <ebb9@byu.net>
67767
67768         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67769
67770 2007-09-10  Bruno Haible  <bruno@clisp.org>
67771
67772         * posix-modules: Fix typo in error message.
67773         Reported by Matt <mkraai@beckman.com>.
67774
67775 2007-09-09  Bruno Haible  <bruno@clisp.org>
67776
67777         * doc/functions/getdelim.texi: Update list of platforms lacking the
67778         function.
67779         * doc/functions/getline.texi: Likewise.
67780
67781 2007-09-09  Jim Meyering  <jim@meyering.net>
67782
67783         * lib/hash.c (hash_initialize): Detect calloc failure.
67784         Reported by Bruno Haible.
67785
67786 2007-09-09  Bruno Haible  <bruno@clisp.org>
67787
67788         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67789         malloc or realloc fails.
67790
67791 2007-09-09  Bruno Haible  <bruno@clisp.org>
67792
67793         * modules/getcwd (Depends-on): Add malloc-posix.
67794         * modules/glob (Depends-on): Likewise.
67795         * modules/putenv (Depends-on): Likewise.
67796         * modules/strdup (Depends-on): Likewise.
67797         * modules/getdelim (Depends-on): Add realloc-posix.
67798         * modules/read-file (Depends-on): Likewise.
67799
67800 2007-09-09  Bruno Haible  <bruno@clisp.org>
67801
67802         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67803         (gl_FUNC_MALLOC_POSIX): Require it.
67804         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67805         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67806         * modules/realloc (Files): Add m4/malloc.m4.
67807         * modules/calloc (Files): Likewise.
67808
67809 2007-09-09  Bruno Haible  <bruno@clisp.org>
67810
67811         * modules/malloc-posix: New file.
67812         * modules/malloc (Depends-on): Add malloc-posix.
67813         * lib/malloc.c: Include errno.h.
67814         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67815         and a POSIX-compatible malloc into a single function. Set ENOMEM
67816         when returning NULL.
67817         * m4/malloc.m4: New file.
67818         * doc/functions/malloc.texi: Mention the malloc-posix module.
67819         * lib/stdlib_.h (malloc): New declaration.
67820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67821         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67822         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67823         and HAVE_MALLOC_POSIX.
67824
67825 2007-09-09  Bruno Haible  <bruno@clisp.org>
67826
67827         * modules/realloc-posix: New file.
67828         * modules/realloc (Depends-on): Add realloc-posix.
67829         * lib/realloc.c: Include errno.h.
67830         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67831         and a POSIX-compatible realloc into a single function. Set ENOMEM
67832         when returning NULL.
67833         * m4/realloc.m4: New file.
67834         * doc/functions/realloc.texi: Mention the realloc-posix module.
67835         * lib/stdlib_.h (realloc): New declaration.
67836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67837         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67838         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67839         and HAVE_REALLOC_POSIX.
67840
67841 2007-09-09  Bruno Haible  <bruno@clisp.org>
67842
67843         * modules/calloc-posix: New file.
67844         * modules/calloc (Depends-on): Add calloc-posix.
67845         * lib/calloc.c: Include errno.h.
67846         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67847         and a POSIX-compatible calloc into a single function. Set ENOMEM
67848         when returning NULL.
67849         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67850         * doc/functions/calloc.texi: Mention the calloc-posix module.
67851         * lib/stdlib_.h (calloc): New declaration.
67852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67853         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67854         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67855         and HAVE_CALLOC_POSIX.
67856
67857 2007-09-09  Bruno Haible  <bruno@clisp.org>
67858
67859         Allow for modules to show an arbitrary notice.
67860         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67861         * gnulib-tool: New option --extract-notice.
67862         (func_usage): Document it.
67863         (sed_extract_prog): Update.
67864         (func_get_notice): New function.
67865         (func_modules_notice): New function.
67866         (func_import, func_create_testdir): Invoke it.
67867         Suggested by Jim Meyering.
67868
67869 2007-09-09  Bruno Haible  <bruno@clisp.org>
67870
67871         * gnulib-tool: New options --verbose, --quiet.
67872         (func_usage): Document them.
67873         (verbose): New variable.
67874         (func_execute_command): New function.
67875         (func_import): Don't show the module list and the file list if
67876         $verbose < 0.
67877         (func_create_testdir): Likewise. Use func_execute_command.
67878         (func_create_megatestdir): Use func_execute_command.
67879
67880 2007-09-08  Bruno Haible  <bruno@clisp.org>
67881
67882         * gnulib-tool (func_import): Prefer rsync over wget when available,
67883         for fetching the PO files.
67884
67885 2007-09-08  Bruno Haible  <bruno@clisp.org>
67886
67887         * posix-modules: New file. Portions copied from gnulib-tool.
67888         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
67889
67890 2007-09-08  Jim Meyering  <jim@meyering.net>
67891
67892         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
67893         * lib/fpending.h: Rename from __fpending.h.
67894         * lib/fpending.c: Rename from __fpending.c.
67895         Include "fpending.h", not "__fpending.h".
67896         * lib/__fpending.h, lib/__fpending.c: Remove files.
67897         * modules/fpending (Files): Reflect new file names.
67898         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
67899
67900 2007-09-08  Bruno Haible  <bruno@clisp.org>
67901
67902         * m4/inttypes-h.m4: Remove stub file.
67903
67904 2007-09-07  Simon Josefsson  <simon@josefsson.org>
67905
67906         * doc/headers/stdint.texi: Discuss #include_next issue.
67907
67908 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67909
67910         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67911
67912 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67913
67914         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67915         in variable name.
67916
67917 2007-09-03  Jim Meyering  <jim@meyering.net>
67918
67919         New module: git-version-gen.
67920         * modules/git-version-gen: New file.
67921
67922         Import changes from coreutils for bootstrap script.
67923
67924         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67925
67926         bootstrap: uses rsync to download the .po files
67927         * build-aux/bootstrap (po_download_command_format): New global.
67928         (download_po_files): Use rsync.
67929         (update_po_files): Don't remove .po files after download,
67930         so future rsync runs can take advantage of the copies.
67931
67932         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67933
67934         Solve the unnecessary-.po-file-regeneration problem once and for all.
67935         * build-aux/bootstrap (download_po_files): New function, renamed from
67936         get_translations.  Now, downloads, but doesn't update LINGUAS.
67937         (update_po_files): New function.
67938
67939         bootstrap: Ignore more.
67940         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67941         uniwidth to e.g., lib/.gitignore.
67942         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67943
67944         * build-aux/bootstrap: New setting: vc_ignore.
67945         (insert_sorted_if_absent): Create $file if absent.
67946         Adapt to new, possibly empty, list: $vc_ignore.
67947
67948         bootstrap: generate more ignorable names
67949         * build-aux/bootstrap (slurp): When generating ignorable names,
67950         also map .sin to .sed, .gperf to .c, and .y to .c.
67951
67952 2007-09-03  Jim Meyering  <jim@meyering.net>
67953
67954         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67955         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67956
67957 2007-09-02  Bruno Haible  <bruno@clisp.org>
67958
67959         Fix mis-recognition of 'mcs' on QNX 6.
67960         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67961         output contains the string "Mono".
67962         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67963         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67964
67965 2007-09-01  Bruno Haible  <bruno@clisp.org>
67966
67967         Fix collision between uniwidth/* and linebreak modules.
67968         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67969         u32_width): Remove declarations.
67970         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67971         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67972         streq3, streq2, streq1, streq0): Remove functions.
67973         (STREQ): Remove macro.
67974         (is_cjk_encoding): Remove function.
67975         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67976         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67977         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67978         * NEWS: Document the change.
67979
67980 2007-09-01  Bruno Haible  <bruno@clisp.org>
67981
67982         * lib/streq.h: Add double-inclusion guard.
67983
67984 2007-09-01  Karl Berry  <karl@gnu.org>
67985
67986         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67987
67988 2007-08-28  Jim Meyering  <jim@meyering.net>
67989
67990         Rename mreadlink_with_size to areadlink_with_size.
67991         * NEWS: Document the change.
67992         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67993         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67994         * lib/mreadlink.h: Rename this to...
67995         * lib/areadlink.h: ...this.
67996         * modules/mreadlink-with-size: Rename this to...
67997         * modules/areadlink-with-size: ...this.
67998         * lib/canonicalize.c: Reflect the renaming.
67999         * modules/canonicalize: Likewise.
68000
68001 2007-08-26  Bruno Haible  <bruno@clisp.org>
68002
68003         * gnulib-tool (func_import): When deciding which files to remove,
68004         consider also dangling symbolic links.
68005         Reported by Eric Blake.
68006
68007 2007-08-26  Bruno Haible  <bruno@clisp.org>
68008
68009         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68010
68011 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68012
68013         * lib/readline.c: Don't include getline.h, the prototype is now
68014         found in stdio.h.
68015
68016 2007-08-23  Jim Meyering  <jim@meyering.net>
68017
68018         Getdelim touchup.
68019         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68020         around the funlockfile call, since funlockfile never sets errno.
68021         Don't set errno upon failed realloc.
68022
68023 2007-08-22  Eric Blake  <ebb9@byu.net>
68024
68025         Getline touchups.
68026         * lib/getdelim.c (getdelim): Revert regression that required *n to
68027         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68028         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68029         getdelim, rather than whether implementation is missing.
68030         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68031         * lib/stdio_.h (getline): Also declare if replacement is
68032         required.
68033         * doc/functions/getdelim.texi: New file.
68034         * doc/functions/getline.texi: Likewise.
68035         * doc/gnulib.texi (Function Substitutes): Add new files.
68036         Reported by Bruno Haible.
68037
68038 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68039
68040         * users.txt: Add Guile.
68041
68042 2007-08-22  Eric Blake  <ebb9@byu.net>
68043
68044         * tests/test-getdelim.c (main): Use remove, not unlink.
68045         * tests/test-getline.c (main): Likewise.
68046
68047         Move getline and getdelim into stdio.h, per POSIX 200x.
68048         * modules/getline (Files): Remove getline.h.
68049         (Depends-on): Add stdio.
68050         (configure.ac): Add module indicator.
68051         * modules/getdelim (Files): Remove getdelim.h.
68052         (Depends-on): Add stdio.
68053         (configure.ac): Add module indicator.
68054         * modules/stdio (Makefile.am): Work with new indicators.
68055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68056         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68057         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68058         * lib/getdelim.h: Delete.
68059         * lib/getline.h: Delete.
68060         * lib/stdio_.h (getdelim, getline): Declare.
68061         * modules/getdelim-tests: New module.
68062         * modules/getline-tests: Likewise.
68063         * tests/test-getdelim.c: New file.
68064         * tests/test-getline.c: Likewise.
68065         * NEWS: Document the change.
68066         * lib/getline.c: Update choice of header.
68067         * lib/csharpcomp.c: Likewise.
68068         * lib/getpass.c: Likewise.
68069         * lib/javacomp.c: Likewise.
68070         * lib/javaversion.c: Likewise.
68071         * lib/yesno.c: Likewise.
68072         * lib/getdelim.c: Likewise.
68073         (getdelim): Set errno on failure, and avoid memory leak.
68074
68075 2007-08-19  Bruno Haible  <bruno@clisp.org>
68076
68077         * modules/closein (Depends-on): Add freadahead.
68078         * lib/closein.c: Include freadahead.h.
68079         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68080         is zero.
68081
68082 2007-08-19  Bruno Haible  <bruno@clisp.org>
68083
68084         * modules/freadahead-tests: New file.
68085         * tests/test-freadahead.sh: New file.
68086         * tests/test-freadahead.c: New file.
68087
68088         * modules/freadahead: New file.
68089         * lib/freadahead.h: New file.
68090         * lib/freadahead.c: New file.
68091         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68092         fbufmode, fpurge, freadable, fwritable.
68093
68094 2007-08-19  Eric Blake  <ebb9@byu.net>
68095
68096         Test yesno in combination with closein.
68097         * lib/yesno.c (yesno): Document use of stdin.
68098         * modules/yesno-tests (Files): New module.
68099         * tests/test-yesno.c (main): New file.
68100         * tests/test-yesno.sh: Likewise.
68101
68102 2007-08-19  Bruno Haible  <bruno@clisp.org>
68103
68104         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68105         * lib/fseeko.c (rpl_fseeko): Likewise.
68106         * lib/fseterr.c (fseterr): Likewise.
68107
68108 2007-08-19  Bruno Haible  <bruno@clisp.org>
68109
68110         * tests/test-lseek.c (main): Disable a test for BeOS.
68111         * doc/functions/lseek.texi: Document the BeOS bug.
68112
68113 2007-08-19  Bruno Haible  <bruno@clisp.org>
68114             Eric Blake  <ebb9@byu.net>
68115
68116         * lib/lseek.c: Include <sys/stat.h>.
68117         (rpl_lseek): Add workaround code also for Unix platforms.
68118         Needed for BeOS.
68119         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68120         * doc/functions/lseek.texi: Document BeOS definiency.
68121
68122 2007-08-18  Bruno Haible  <bruno@clisp.org>
68123
68124         * modules/fstrcmp-tests: New file.
68125         * tests/test-fstrcmp.c: New file.
68126
68127 2007-08-18  Bruno Haible  <bruno@clisp.org>
68128
68129         * modules/fstrcmp: New file, from GNU gettext with modifications.
68130         * lib/fstrcmp.h: New file, from GNU gettext.
68131         * lib/fstrcmp.c: New file, from GNU gettext.
68132         * MODULES.html.sh (String handling): Add fstrcmp.
68133
68134 2007-08-18  Bruno Haible  <bruno@clisp.org>
68135
68136         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68137         'bool'.
68138         (diag, compareseq): Remove const from the ctxt argument.
68139         (USE_HEURISTIC): Undefine at the end.
68140
68141 2007-08-18  Jim Meyering  <jim@meyering.net>
68142
68143         New file: lib/idcache.h
68144         * NEWS: Mention the addition.
68145         * modules/idcache (Files): Add lib/idcache.h
68146         * lib/idcache.c: Include "idcache.h".
68147         Don't include <sys/types.h>.
68148         Add a FIXME comment.
68149         Move file-scoped "static" declarations to the top.
68150         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68151
68152 2007-08-17  Bruno Haible  <bruno@clisp.org>
68153         and Paul Eggert  <eggert@cs.ucla.edu>
68154
68155         * MODULES.html.sh: Add diffseq.
68156         * modules/diffseq: New file.
68157         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68158         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68159
68160 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68161
68162         Import changes from coreutils for bootstrap script.
68163
68164         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68165
68166         * build-aux/bootstrap (slurp): Work even in environments where
68167         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68168         current code does not slurp files whose names start with ".", and
68169         this looks like it might be a troublesome area.
68170
68171         2007-07-11  Jim Meyering  <jim@meyering.net>
68172
68173         If there's a GPL vN copyright comment, require that N == 3.
68174
68175         2007-07-08  Jim Meyering  <jim@meyering.net>
68176
68177         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68178         * build-aux/bootstrap (mam_template): Move definition out of loop.
68179
68180         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68181
68182         * build-aux/bootstrap (symlink_to_dir): Rename function from
68183         symlink_to_gnulib.  Add a directory parameter.  Update all
68184         callers.
68185         (cp_mark_as_generated): Also check for -- and link to -- files in
68186         gl/.
68187
68188         2007-07-08  Jim Meyering  <jim@meyering.net>
68189
68190         Adapt to deeper hierarchy in gnulib.
68191         * build-aux/bootstrap (symlink_to_dir): If the destination
68192         directory doesn't exist, create it. This is required at least for
68193         "lib/uniwidth/cjk.h".
68194
68195         2007-05-15  Jim Meyering  <jim@meyering.net>
68196
68197         * build-aux/bootstrap: Now that generated Makefile.am files
68198         are no longer under version control, they must be created at
68199         bootstrap time.
68200
68201 2007-08-14  Ben Pfaff  <blp@gnu.org>
68202
68203         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68204
68205 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68206
68207         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68208         given the changes below.
68209         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68210         even on hosts that have padding bits beyond the supported 64.
68211
68212 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68213
68214         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68215         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68216         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68217         depends on it.
68218         (xstrtol_error): Remove.
68219         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68220         but with a different signature.
68221         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68222         * lib/xstrtol-error.c: Include exitfail.h.
68223         (xstrtol_fatal): New function, with a different signature from the
68224         old xstrtol_error, so that the caller need not worry about passing
68225         in an exit status, or about storage management of the option argument.
68226         (xstrtol_error): Now a static function.  Redo signature to
68227         implement xstrtol_fatal.  Output the correct number of hyphens in
68228         front of the option so that the caller need not worry about
68229         storage management.
68230         (N_): New macro.
68231         (_): Remove; not used now.
68232         * modules/xstrtol: Depend on getopt.
68233         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68234         of old STRTOL_FATAL_ERROR macro.
68235         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68236         of test program.
68237         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68238         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68239
68240 2007-08-08  Eric Blake  <ebb9@byu.net>
68241
68242         * lib/xstrtol-error.c: Add missing include.
68243
68244         Move xstrtol messages into gnulib domain, when --pobase is used.
68245         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68246         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68247         * modules/xstrtol (Files): Distribute new file.
68248         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68249         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68250         * tests/test-xstrtol.c: ...into new file.
68251         * tests/test-xstrtoul.c: Also test xstrtoul.
68252         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68253         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68254         * tests/test-xstrtol.sh: Drive the tests.
68255         * tests/test-xstrtoimax.sh: Likewise.
68256         * tests/test-xstrtoumax.sh: Likewise.
68257         * modules/xstrtol-tests: New module.
68258         * modules/xstrtoimax-tests: Likewise.
68259         * modules/xstrtoumax-tests: Likewise.
68260
68261 2007-08-08  Jim Meyering  <jim@meyering.net>
68262
68263         New function: mfile_name_concat.
68264         * lib/filenamecat.c (mfile_name_concat): New function, just like
68265         file_name_concat, but return NULL upon failure rather than exiting
68266         with a diagnostic.
68267         * lib/filenamecat.h: Declare it.
68268
68269 2007-08-07  Bruno Haible  <bruno@clisp.org>
68270
68271         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68272         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68273         warning from gcc.
68274         Reported by Eric Blake.
68275
68276 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68277
68278         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68279         * modules/crypto/arcfour (License): Likewise.
68280         * modules/crypto/des-tests (License): Likewise.
68281         * modules/crypto/gc-arctwo-tests (License): Likewise.
68282         * modules/crypto/gc-des-tests (License): Likewise.
68283         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68284         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68285         * modules/crypto/gc-md2-tests (License): Likewise.
68286         * modules/crypto/gc-md4-tests (License): Likewise.
68287         * modules/crypto/gc-md5-tests (License): Likewise.
68288         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68289         * modules/crypto/gc-rijndael-tests (License): Likewise.
68290         * modules/crypto/gc-sha1-tests (License): Likewise.
68291         * modules/crypto/gc-tests (License): Likewise.
68292         * modules/crypto/hmac-md5 (License): Likewise.
68293         * modules/crypto/hmac-sha1 (License): Likewise.
68294         * modules/crypto/md2-tests (License): Likewise.
68295         * modules/crypto/md4-tests (License): Likewise.
68296         * modules/crypto/md5 (License): Likewise.
68297         * modules/crypto/rijndael (License): Likewise.
68298         * modules/crypto/sha1 (License): Likewise.
68299         * modules/memxor (License): Likewise.
68300
68301 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68302         and Bruno Haible  <bruno@clisp.org>
68303
68304         * NEWS: Describe interface changes to human, xstrtol.
68305         * lib/human.h: Include <xstrtol.h>.
68306         (human_options): Return enum strtol_error, not int.  Remove
68307         bool arg; take int * instead.
68308         * lib/human.c: Don't include "gettext.h".
68309         (_): Remove; no longer used.
68310         Don't include <xstrtol.h>, since human.h does it.
68311         (human_options): Adjust to abovementioned interface changes.
68312         Do not report error to stderr; that's now the caller's
68313         responsibility.
68314         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68315         interface change.
68316         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68317         Str, Argument_type_string.  All uses changed.  Put " argument"
68318         in diagnostics to make them clearer.  Change wording of suffix
68319         message for clarity.
68320         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68321         Argument_type_string.
68322         (STRTOL_FATAL_WARN): Remove; no longer used.
68323         * modules/human (Depends-on): Remove gettext-h.
68324
68325 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68326
68327         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68328
68329 2007-07-31  Bruno Haible  <bruno@clisp.org>
68330
68331         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68332         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68333         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68334
68335 2007-07-31  Bruno Haible  <bruno@clisp.org>
68336
68337         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68338         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68339
68340 2007-07-30  Bruno Haible  <bruno@clisp.org>
68341
68342         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68343         * modules/c-ctype (License): Likewise.
68344         * modules/c-strcase (License): Likewise.
68345         * modules/check-version (License): Likewise.
68346         * modules/iconv (License): Likewise.
68347         * modules/iconv_open (License): Likewise.
68348         * modules/read-file (License): Likewise.
68349         * modules/striconv (License): Likewise.
68350         * modules/strverscmp (License): Likewise.
68351         * modules/vasprintf (License): Likewise.
68352         * modules/crypto/des (License): Likewise.
68353         * modules/crypto/gc (License): Likewise.
68354         * modules/crypto/gc-arcfour (License): Likewise.
68355         * modules/crypto/gc-arctwo (License): Likewise.
68356         * modules/crypto/gc-des (License): Likewise.
68357         * modules/crypto/gc-hmac-md5 (License): Likewise.
68358         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68359         * modules/crypto/gc-md2 (License): Likewise.
68360         * modules/crypto/gc-md4 (License): Likewise.
68361         * modules/crypto/gc-md5 (License): Likewise.
68362         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68363         * modules/crypto/gc-random (License): Likewise.
68364         * modules/crypto/gc-rijndael (License): Likewise.
68365         * modules/crypto/gc-sha1 (License): Likewise.
68366         * modules/crypto/md2 (License): Likewise.
68367         * modules/crypto/md4 (License): Likewise.
68368
68369 2007-07-30  Jim Meyering  <jim@meyering.net>
68370
68371         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68372         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68373         it has valid stat data.  This bug would cause du not to count the
68374         sizes of inaccessible directories.
68375         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68376         in <http://bugzilla.redhat.com/250077>.
68377
68378 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68379             Bruno Haible  <bruno@clisp.org>
68380
68381         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68382         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68383         #include_next, gives a diagnostic about it, but reports no error in
68384         the exit code.
68385         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68386
68387 2007-07-24  Ben Pfaff  <blp@gnu.org>
68388
68389         Improve name: "count-one-bits" is better than "popcount".
68390         * MODULES.html.sh: Update name.
68391         * lib/popcount.h: Renamed lib/count-one-bits.h.
68392         (popcount): Renamed count_one_bits.
68393         (popcountl): Renamed count_one_bits_l.
68394         (popcountll): Renamed count_one_bits_ll.
68395         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68396         * modules/popcount: Renamed module/count-one-bits.
68397         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68398         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68399
68400 2007-07-23  Ben Pfaff  <blp@gnu.org>
68401
68402         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68403         better code generation, and add U to large constants to avoid
68404         warnings, in non-GCC case.
68405         Suggested by Bruno Haible.
68406
68407 2007-07-23  Ben Pfaff  <blp@gnu.org>
68408
68409         * lib/popcount.h: Use verify_true instead of if...abort.
68410         * modules/popcount: Depend on verify module.
68411         Suggested by Jim Meyering.
68412
68413 2007-07-23  Bruno Haible  <bruno@clisp.org>
68414
68415         * gnulib-tool (func_import): Create a .cvsignore file also when the
68416         directory is not yet in CVS but the toplevel directory is. When
68417         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68418         Reported by Karl Berry.
68419
68420 2007-07-22  Ben Pfaff  <blp@gnu.org>
68421
68422         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68423         case.
68424         Suggested by Eric Blake.
68425
68426 2007-07-22  Ben Pfaff  <blp@gnu.org>
68427
68428         New module: popcount.
68429         * MODULES.html.sh: Add popcount.
68430         * modules/popcount: New file.
68431         * modules/popcount-tests: New file.
68432         * tests/test-popcount.c: New file.
68433         * lib/popcount.h: New file.
68434         * m4/popcount.m4: New file.
68435
68436 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68437
68438         * build-aux/announce-gen: Update to GPLv3.
68439
68440         * build-aux/config.guess: Update from config.
68441
68442 2007-07-21  Bruno Haible  <bruno@clisp.org>
68443
68444         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68445         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68446
68447 2007-07-20  Jim Meyering  <jim@meyering.net>
68448
68449         * check-module: Diagnose a self-dependency.
68450
68451 2007-07-19  Bruno Haible  <bruno@clisp.org>
68452
68453         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68454         empty.
68455         Reported by Eric Blake.
68456
68457 2007-07-18  Bruno Haible  <bruno@clisp.org>
68458
68459         * gnulib-tool: New options --po-base, --po-domain.
68460         (func_usage): Document them.
68461         (pobase, po_domain): New variables.
68462         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68463         DEFAULT_TEXT_DOMAIN.
68464         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68465         (func_import): Consider pobase and po_domain. Create a po/ directory.
68466         (func_create_testdir): Set pobase and po_domain to empty.
68467         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68468         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68469
68470 2007-07-18  Bruno Haible  <bruno@clisp.org>
68471
68472         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68473         EXTRA_DIST augmentation for files in build-aux/.
68474
68475 2007-07-16  Bruno Haible  <bruno@clisp.org>
68476
68477         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68478         * modules/getdelim (License): Likewise.
68479
68480 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68481
68482         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68483         * modules/d-type (License): Likewise.
68484         * modules/extensions (License): Likewise.
68485         * modules/fnmatch (License): Likewise.
68486         * modules/fseeko (License): Likewise.
68487         * modules/getaddrinfo (License): Likewise.
68488         * modules/getline (License): Likewise.
68489         * modules/getlogin_r (License): Likewise.
68490         * modules/getpass (License): Likewise.
68491         * modules/gettimeofday (License): Likewise.
68492         * modules/glob (License): Likewise.
68493         * modules/inet_ntop (License): Likewise.
68494         * modules/malloc (License): Likewise.
68495         * modules/malloca (License): Likewise.
68496         * modules/memmem (License): Likewise.
68497         * modules/mempcpy (License): Likewise.
68498         * modules/memset (License): Likewise.
68499         * modules/minmax (License): Likewise.
68500         * modules/mktime (License): Likewise.
68501         * modules/netinet_in (License): Likewise.
68502         * modules/pathmax (License): Likewise.
68503         * modules/poll (License): Likewise.
68504         * modules/regex (License): Likewise.
68505         * modules/snprintf (License): Likewise.
68506         * modules/stdbool (License): Likewise.
68507         * modules/stdint (License): Likewise.
68508         * modules/stdio (License): Likewise.
68509         * modules/strcase (License): Likewise.
68510         * modules/strcasestr (License): Likewise.
68511         * modules/strdup (License): Likewise.
68512         * modules/string (License): Likewise.
68513         * modules/strndup (License): Likewise.
68514         * modules/strnlen (License): Likewise.
68515         * modules/strpbrk (License): Likewise.
68516         * modules/strptime (License): Likewise.
68517         * modules/strsep (License): Likewise.
68518         * modules/sys_select (License): Likewise.
68519         * modules/sys_socket (License): Likewise.
68520         * modules/sys_stat (License): Likewise.
68521         * modules/sys_time (License): Likewise.
68522         * modules/time (License): Likewise.
68523         * modules/time_r (License): Likewise.
68524         * modules/timegm (License): Likewise.
68525         * modules/unistd (License): Likewise.
68526         * modules/vsnprintf (License): Likewise.
68527         * modules/wctype (License): Likewise.
68528
68529 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68530
68531         * modules/argz (License): LGPLv2+.
68532
68533 2007-07-15  Karl Berry  <karl@gnu.org>
68534
68535         * doc/gnulib.texi: revise node structure per new fdl.texi.
68536
68537 2007-07-14  Bruno Haible  <bruno@clisp.org>
68538
68539         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68540         the output file.
68541         * lib/uniname/uninames.h: Regenerated.
68542
68543 2007-07-14  Karl Berry  <karl@gnu.org>
68544
68545         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68546         omitting sectioning and index commands.
68547
68548 2007-07-13  Bruno Haible  <bruno@clisp.org>
68549
68550         New gnulib-tool option --more-symlinks.
68551         * gnulib-tool (func_usage): Document --more-symlinks.
68552         (do_copyrights): New variable.
68553         Recognize option --more-symlinks.
68554         (func_import): Don't add a copyright notice transform to
68555         sed_transform_lib_file if do_copyrights is empty.
68556
68557 2007-07-13  Bruno Haible  <bruno@clisp.org>
68558
68559         * lib/vasnprintf.c (decimal_point_char): Define also if
68560         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68561         && !NEED_PRINTF_DIRECTIVE_A.
68562         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68563         Gary V. Vaughan <gary@gnu.org>.
68564
68565 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68566
68567         * lib/inttypes_.h: Undo previous change, since it was fixed
68568         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68569
68570 2007-07-13  Bruno Haible  <bruno@clisp.org>
68571
68572         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68573         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68574
68575 2007-07-13  Jim Meyering  <jim@meyering.net>
68576
68577         df: Don't fail for Tru64's "file-on-file mount".
68578         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68579         so we fall through and use statfs instead.  Details here:
68580         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68581         Reported by Albert Chin.
68582
68583 2007-07-13  Bruno Haible  <bruno@clisp.org>
68584
68585         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68586         * modules/configmake (License): Likewise.
68587         * modules/gettext (License): Likewise.
68588         * modules/gettext-h (License): Likewise.
68589         * modules/include_next (License): Likewise.
68590         * modules/link-warning (License): Likewise.
68591         * modules/localcharset (License): Likewise.
68592         * modules/localename (License): Likewise.
68593         * modules/lock (License): Likewise.
68594         * modules/relocatable-lib-lgpl (License): Likewise.
68595         * modules/size_max (License): Likewise.
68596         * modules/vasnprintf (License): Likewise.
68597         * modules/wchar (License): Likewise.
68598         * modules/xsize (License): Likewise.
68599
68600 2007-07-13  Bruno Haible  <bruno@clisp.org>
68601
68602         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68603         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68604
68605 2007-07-12  Bruno Haible  <bruno@clisp.org>
68606
68607         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68608         in the modules files.
68609
68610 2007-07-11  Karl Berry  <karl@gnu.org>
68611
68612         * MODULES.html.sh (func_module): use
68613          sed -e '\|^'"${includefile}"'$|d'
68614          instead of /.../d, to avoid errors on $includefile's containing /.
68615
68616 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68617
68618         * gnulib-tool (func_import): Avoid duplication of --avoid
68619         statements
68620         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68621         names to `_' in variable names.
68622
68623 2007-07-10  Eric Blake  <ebb9@byu.net>
68624
68625         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68626         * NEWS: Document this change.
68627
68628 2007-07-08  Bruno Haible  <bruno@clisp.org>
68629
68630         Update to Unicode 5.0.
68631         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68632         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68633         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68634         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68635         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68636         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68637         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68638         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68639         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68640         U+10A3F, U+1D242..U+1D244.
68641         (nonspacing_table_ind): Update.
68642         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68643         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68644
68645 2007-07-08  Bruno Haible  <bruno@clisp.org>
68646
68647         Update to Unicode 5.0.
68648         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68649         code transform. Extend the name index field of unicode_name_to_code and
68650         unicode_code_to_name from 16 to 24 bits.
68651         * lib/uniname/uniname.c (unicode_character_name,
68652         unicode_name_character): Add the range 0x12xxx to the code transform.
68653         * lib/uniname/uninames.h: Regenerated.
68654         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68655
68656 2007-07-07  Bruno Haible  <bruno@clisp.org>
68657
68658         * modules/wcwidth-tests: New file.
68659         * tests/test-wcwidth.c: New file.
68660
68661         Work around MacOS X wcwidth() bug.
68662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68663         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68664         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68665         original wcwidth in non-UTF-8 locales.
68666         * modules/wcwidth (Depends-on): Add localcharset, streq,
68667         uniwidth/width.
68668         * doc/functions/wcwidth.texi: Update.
68669
68670 2007-07-07  Bruno Haible  <bruno@clisp.org>
68671
68672         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68673         (wcwidth): New declaration.
68674         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68675         macros.
68676         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68677         here. Prepare for creating <wchar.h> unconditionally.
68678         * modules/wchar (Depends-on): Add link-warning.
68679         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68680         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68681         * lib/wcwidth.h: Remove file.
68682         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68683         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68684         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68685         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68686         (Include): Replace wcwidth.h with <wchar.h>.
68687         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68688         * lib/mbchar.h: Don't include wcwidth.h.
68689         * lib/mbswidth.c: Likewise.
68690         * NEWS: Mention the change.
68691
68692 2007-07-07  Bruno Haible  <bruno@clisp.org>
68693
68694         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68695         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68696         definition with an external declaration.
68697         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68698         defined as a function. Remove AC_C_INLINE requirement.
68699         * modules/wcwidth (Files): Add lib/wcwidth.c.
68700         (Makefile.am): Remove redundant statement.
68701
68702 2007-07-07  Bruno Haible  <bruno@clisp.org>
68703
68704         * MODULES.html.sh (Unicode string functions): Add the new modules.
68705
68706         * tests/uniwidth/test-u32-strwidth.c: New file.
68707         * modules/uniwidth/u32-strwidth-tests: New file.
68708
68709         * lib/uniwidth/u32-strwidth.c: New file.
68710         * modules/uniwidth/u32-strwidth: New file.
68711
68712         * tests/uniwidth/test-u16-strwidth.c: New file.
68713         * modules/uniwidth/u16-strwidth-tests: New file.
68714
68715         * lib/uniwidth/u16-strwidth.c: New file.
68716         * modules/uniwidth/u16-strwidth: New file.
68717
68718         * tests/uniwidth/test-u8-strwidth.c: New file.
68719         * modules/uniwidth/u8-strwidth-tests: New file.
68720
68721         * lib/uniwidth/u8-strwidth.c: New file.
68722         * modules/uniwidth/u8-strwidth: New file.
68723
68724         * tests/uniwidth/test-u32-width.c: New file.
68725         * modules/uniwidth/u32-width-tests: New file.
68726
68727         * lib/uniwidth/u32-width.c: New file.
68728         * modules/uniwidth/u32-width: New file.
68729
68730         * tests/uniwidth/test-u16-width.c: New file.
68731         * modules/uniwidth/u16-width-tests: New file.
68732
68733         * lib/uniwidth/u16-width.c: New file.
68734         * modules/uniwidth/u16-width: New file.
68735
68736         * tests/uniwidth/test-u8-width.c: New file.
68737         * modules/uniwidth/u8-width-tests: New file.
68738
68739         * lib/uniwidth/u8-width.c: New file.
68740         * modules/uniwidth/u8-width: New file.
68741
68742         * tests/uniwidth/test-uc_width.c: New file.
68743         * modules/uniwidth/width-tests: New file.
68744
68745         * lib/uniwidth/width.c: New file, from GNU libiconv.
68746         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68747         * modules/uniwidth/width: New file.
68748
68749         * lib/uniwidth.h: New file, from GNU libiconv.
68750         * modules/uniwidth/base: New file.
68751
68752 2007-07-07  Bruno Haible  <bruno@clisp.org>
68753
68754         * lib/uniname.h: New file, from GNU gettext.
68755         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68756         * lib/uniname/uninames.h: New file, from GNU gettext.
68757         * lib/uniname/uniname.c: New file, from GNU gettext.
68758         * tests/uniname/test-uninames.sh: New file.
68759         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68760         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68761         * modules/uniname/base: New file.
68762         * modules/uniname/uniname: New file.
68763         * modules/uniname/uniname-tests: New file.
68764         * MODULES.html.sh (Unicode string functions): Add the new modules.
68765
68766 2007-07-06  Bruno Haible  <bruno@clisp.org>
68767
68768         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68769
68770 2007-07-06  Bruno Haible  <bruno@clisp.org>
68771
68772         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68773         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68774         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68775         include <sys/time.h>.
68776         Reported by Eric Blake.
68777
68778 2007-07-06  Eric Blake  <ebb9@byu.net>
68779
68780         Fix testing canonicalize on cygwin.
68781         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68782         Revert patch from 2007-06-19.
68783         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68784         canonicalize module is also in use.
68785         * tests/test-canonicalize.c: New file.
68786         * tests/test-canonicalize.sh: Likewise.
68787         * modules/canonicalize-tests: Likewise.
68788
68789 2007-07-06  Jim Meyering  <jim@meyering.net>
68790
68791         * lib/getugroups.c (getugroups): Detect getgrent failure.
68792         Adjust comment to reflect reality: this function may return -1.
68793
68794 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68795
68796         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68797         the new TP address.
68798         (usage): Fix typo
68799         (gnulib_mk): New variable.
68800
68801 2007-07-05  Jim Meyering  <jim@meyering.net>
68802
68803         Don't let endgrent clobber errno, no matter how improbable.
68804         * lib/getugroups.c (getugroups): Save and restore errno around
68805         endgrent call.
68806
68807         Close the group DB even when failing with 2^31 or more members.
68808         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68809
68810 2007-07-04  Jim Meyering  <jim@meyering.net>
68811
68812         * lib/getugroups.h: New file.
68813         * lib/getugroups.c: Include "getugroups.h".
68814         Remove uses of "register" keyword.
68815         Move local variable, "cp", down into scope where used.
68816         Give "username" parameter the "const" attribute.
68817         * modules/getugroups (Files): Add lib/getugroups.h
68818
68819 2007-07-04  Karl Berry  <karl@gnu.org>
68820
68821         * MODULES.html.sh (func_all_modules): Complete rename of
68822         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68823
68824 2007-07-02  Bruno Haible  <bruno@clisp.org>
68825
68826         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68827         mode, when inttypes.h comes from gnulib.
68828         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68829
68830 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68831
68832         * NEWS: Mention lgpl module name change.
68833
68834         * modules/lgpl-2.1: Renamed from lgpl.
68835
68836         * NEWS: Mention gpl module name change.
68837
68838         * modules/gpl-3.0: New file, based on gpl-2.0.
68839
68840         * modules/gpl-2.0: Renamed from gpl.
68841
68842         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68843         doc/gpl-2.0.texi.
68844
68845 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68846
68847         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68848         #define __STDC_LIMIT_MACROS temporarily while including
68849         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68850         Problem reported by Joel E. Denny in
68851         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68852
68853 2007-07-01  Bruno Haible  <bruno@clisp.org>
68854
68855         * lib/unistdio.h: New file.
68856         * lib/unistdio/u-asnprintf.h: New file.
68857         * lib/unistdio/u-asprintf.h: New file.
68858         * lib/unistdio/u-printf-args.c: New file.
68859         * lib/unistdio/u-printf-args.h: New file.
68860         * lib/unistdio/u-printf-parse.h: New file.
68861         * lib/unistdio/u-snprintf.h: New file.
68862         * lib/unistdio/u-sprintf.h: New file.
68863         * lib/unistdio/u-vasprintf.h: New file.
68864         * lib/unistdio/u-vsnprintf.h: New file.
68865         * lib/unistdio/u-vsprintf.h: New file.
68866         * lib/unistdio/ulc-asnprintf.c: New file.
68867         * lib/unistdio/ulc-asprintf.c: New file.
68868         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
68869         * lib/unistdio/ulc-printf-parse.c: New file.
68870         * lib/unistdio/ulc-snprintf.c: New file.
68871         * lib/unistdio/ulc-sprintf.c: New file.
68872         * lib/unistdio/ulc-vasnprintf.c: New file.
68873         * lib/unistdio/ulc-vasprintf.c: New file.
68874         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
68875         * lib/unistdio/ulc-vsnprintf.c: New file.
68876         * lib/unistdio/ulc-vsprintf.c: New file.
68877         * lib/unistdio/u8-asnprintf.c: New file.
68878         * lib/unistdio/u8-asprintf.c: New file.
68879         * lib/unistdio/u8-printf-parse.c: New file.
68880         * lib/unistdio/u8-snprintf.c: New file.
68881         * lib/unistdio/u8-sprintf.c: New file.
68882         * lib/unistdio/u8-vasnprintf.c: New file.
68883         * lib/unistdio/u8-vasprintf.c: New file.
68884         * lib/unistdio/u8-vsnprintf.c: New file.
68885         * lib/unistdio/u8-vsprintf.c: New file.
68886         * lib/unistdio/u8-u8-asnprintf.c: New file.
68887         * lib/unistdio/u8-u8-asprintf.c: New file.
68888         * lib/unistdio/u8-u8-snprintf.c: New file.
68889         * lib/unistdio/u8-u8-sprintf.c: New file.
68890         * lib/unistdio/u8-u8-vasnprintf.c: New file.
68891         * lib/unistdio/u8-u8-vasprintf.c: New file.
68892         * lib/unistdio/u8-u8-vsnprintf.c: New file.
68893         * lib/unistdio/u8-u8-vsprintf.c: New file.
68894         * lib/unistdio/u16-asnprintf.c: New file.
68895         * lib/unistdio/u16-asprintf.c: New file.
68896         * lib/unistdio/u16-printf-parse.c: New file.
68897         * lib/unistdio/u16-snprintf.c: New file.
68898         * lib/unistdio/u16-sprintf.c: New file.
68899         * lib/unistdio/u16-vasnprintf.c: New file.
68900         * lib/unistdio/u16-vasprintf.c: New file.
68901         * lib/unistdio/u16-vsnprintf.c: New file.
68902         * lib/unistdio/u16-vsprintf.c: New file.
68903         * lib/unistdio/u16-u16-asnprintf.c: New file.
68904         * lib/unistdio/u16-u16-asprintf.c: New file.
68905         * lib/unistdio/u16-u16-snprintf.c: New file.
68906         * lib/unistdio/u16-u16-sprintf.c: New file.
68907         * lib/unistdio/u16-u16-vasnprintf.c: New file.
68908         * lib/unistdio/u16-u16-vasprintf.c: New file.
68909         * lib/unistdio/u16-u16-vsnprintf.c: New file.
68910         * lib/unistdio/u16-u16-vsprintf.c: New file.
68911         * lib/unistdio/u32-asnprintf.c: New file.
68912         * lib/unistdio/u32-asprintf.c: New file.
68913         * lib/unistdio/u32-printf-parse.c: New file.
68914         * lib/unistdio/u32-snprintf.c: New file.
68915         * lib/unistdio/u32-sprintf.c: New file.
68916         * lib/unistdio/u32-vasnprintf.c: New file.
68917         * lib/unistdio/u32-vasprintf.c: New file.
68918         * lib/unistdio/u32-vsnprintf.c: New file.
68919         * lib/unistdio/u32-vsprintf.c: New file.
68920         * lib/unistdio/u32-u32-asnprintf.c: New file.
68921         * lib/unistdio/u32-u32-asprintf.c: New file.
68922         * lib/unistdio/u32-u32-snprintf.c: New file.
68923         * lib/unistdio/u32-u32-sprintf.c: New file.
68924         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68925         * lib/unistdio/u32-u32-vasprintf.c: New file.
68926         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68927         * lib/unistdio/u32-u32-vsprintf.c: New file.
68928         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68929         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68930         * tests/unistdio/test-ulc-printf1.h: New file.
68931         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68932         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68933         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68934         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68935         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68936         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68937         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68938         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68939         * tests/unistdio/test-u8-asnprintf1.c: New file.
68940         * tests/unistdio/test-u8-asnprintf1.h: New file.
68941         * tests/unistdio/test-u8-printf1.h: New file.
68942         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68943         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68944         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68945         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68946         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68947         * tests/unistdio/test-u8-vasprintf1.c: New file.
68948         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68949         * tests/unistdio/test-u8-vsprintf1.c: New file.
68950         * tests/unistdio/test-u16-asnprintf1.c: New file.
68951         * tests/unistdio/test-u16-asnprintf1.h: New file.
68952         * tests/unistdio/test-u16-printf1.h: New file.
68953         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68954         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68955         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68956         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68957         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68958         * tests/unistdio/test-u16-vasprintf1.c: New file.
68959         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68960         * tests/unistdio/test-u16-vsprintf1.c: New file.
68961         * tests/unistdio/test-u32-asnprintf1.c: New file.
68962         * tests/unistdio/test-u32-asnprintf1.h: New file.
68963         * tests/unistdio/test-u32-printf1.h: New file.
68964         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68965         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68966         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68967         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68968         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68969         * tests/unistdio/test-u32-vasprintf1.c: New file.
68970         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68971         * tests/unistdio/test-u32-vsprintf1.c: New file.
68972         * modules/unistdio/base: New file.
68973         * modules/unistdio/u-printf-args: New file.
68974         * modules/unistdio/ulc-asnprintf: New file.
68975         * modules/unistdio/ulc-asprintf: New file.
68976         * modules/unistdio/ulc-fprintf: New file.
68977         * modules/unistdio/ulc-printf-parse: New file.
68978         * modules/unistdio/ulc-snprintf: New file.
68979         * modules/unistdio/ulc-sprintf: New file.
68980         * modules/unistdio/ulc-vasnprintf: New file.
68981         * modules/unistdio/ulc-vasprintf: New file.
68982         * modules/unistdio/ulc-vfprintf: New file.
68983         * modules/unistdio/ulc-vsnprintf: New file.
68984         * modules/unistdio/ulc-vsprintf: New file.
68985         * modules/unistdio/u8-asnprintf: New file.
68986         * modules/unistdio/u8-asprintf: New file.
68987         * modules/unistdio/u8-printf-parse: New file.
68988         * modules/unistdio/u8-snprintf: New file.
68989         * modules/unistdio/u8-sprintf: New file.
68990         * modules/unistdio/u8-vasnprintf: New file.
68991         * modules/unistdio/u8-vasprintf: New file.
68992         * modules/unistdio/u8-vsnprintf: New file.
68993         * modules/unistdio/u8-vsprintf: New file.
68994         * modules/unistdio/u8-u8-asnprintf: New file.
68995         * modules/unistdio/u8-u8-asprintf: New file.
68996         * modules/unistdio/u8-u8-snprintf: New file.
68997         * modules/unistdio/u8-u8-sprintf: New file.
68998         * modules/unistdio/u8-u8-vasnprintf: New file.
68999         * modules/unistdio/u8-u8-vasprintf: New file.
69000         * modules/unistdio/u8-u8-vsnprintf: New file.
69001         * modules/unistdio/u8-u8-vsprintf: New file.
69002         * modules/unistdio/u16-asnprintf: New file.
69003         * modules/unistdio/u16-asprintf: New file.
69004         * modules/unistdio/u16-printf-parse: New file.
69005         * modules/unistdio/u16-snprintf: New file.
69006         * modules/unistdio/u16-sprintf: New file.
69007         * modules/unistdio/u16-vasnprintf: New file.
69008         * modules/unistdio/u16-vasprintf: New file.
69009         * modules/unistdio/u16-vsnprintf: New file.
69010         * modules/unistdio/u16-vsprintf: New file.
69011         * modules/unistdio/u16-u16-asnprintf: New file.
69012         * modules/unistdio/u16-u16-asprintf: New file.
69013         * modules/unistdio/u16-u16-snprintf: New file.
69014         * modules/unistdio/u16-u16-sprintf: New file.
69015         * modules/unistdio/u16-u16-vasnprintf: New file.
69016         * modules/unistdio/u16-u16-vasprintf: New file.
69017         * modules/unistdio/u16-u16-vsnprintf: New file.
69018         * modules/unistdio/u16-u16-vsprintf: New file.
69019         * modules/unistdio/u32-asnprintf: New file.
69020         * modules/unistdio/u32-asprintf: New file.
69021         * modules/unistdio/u32-printf-parse: New file.
69022         * modules/unistdio/u32-snprintf: New file.
69023         * modules/unistdio/u32-sprintf: New file.
69024         * modules/unistdio/u32-vasnprintf: New file.
69025         * modules/unistdio/u32-vasprintf: New file.
69026         * modules/unistdio/u32-vsnprintf: New file.
69027         * modules/unistdio/u32-vsprintf: New file.
69028         * modules/unistdio/u32-u32-asnprintf: New file.
69029         * modules/unistdio/u32-u32-asprintf: New file.
69030         * modules/unistdio/u32-u32-snprintf: New file.
69031         * modules/unistdio/u32-u32-sprintf: New file.
69032         * modules/unistdio/u32-u32-vasnprintf: New file.
69033         * modules/unistdio/u32-u32-vasprintf: New file.
69034         * modules/unistdio/u32-u32-vsnprintf: New file.
69035         * modules/unistdio/u32-u32-vsprintf: New file.
69036         * modules/unistdio/ulc-asnprintf-tests: New file.
69037         * modules/unistdio/ulc-vasnprintf-tests: New file.
69038         * modules/unistdio/ulc-vasprintf-tests: New file.
69039         * modules/unistdio/ulc-vsnprintf-tests: New file.
69040         * modules/unistdio/ulc-vsprintf-tests: New file.
69041         * modules/unistdio/u8-asnprintf-tests: New file.
69042         * modules/unistdio/u8-vasnprintf-tests: New file.
69043         * modules/unistdio/u8-vasprintf-tests: New file.
69044         * modules/unistdio/u8-vsnprintf-tests: New file.
69045         * modules/unistdio/u8-vsprintf-tests: New file.
69046         * modules/unistdio/u16-asnprintf-tests: New file.
69047         * modules/unistdio/u16-vasnprintf-tests: New file.
69048         * modules/unistdio/u16-vasprintf-tests: New file.
69049         * modules/unistdio/u16-vsnprintf-tests: New file.
69050         * modules/unistdio/u16-vsprintf-tests: New file.
69051         * modules/unistdio/u32-asnprintf-tests: New file.
69052         * modules/unistdio/u32-vasnprintf-tests: New file.
69053         * modules/unistdio/u32-vasprintf-tests: New file.
69054         * modules/unistdio/u32-vsnprintf-tests: New file.
69055         * modules/unistdio/u32-vsprintf-tests: New file.
69056         * MODULES.html.sh (Unicode string functions): Add the new modules.
69057
69058 2007-07-01  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/sprintf.c (sprintf): Limit the available length estimation,
69061         to avoid address wraparound.
69062         * lib/vsprintf.c (vsprintf): Likewise.
69063         * modules/sprintf-posix (Dependencies): Add stdint.
69064         * modules/vsprintf-posix (Dependencies): Likewise.
69065
69066 2007-07-01  Bruno Haible  <bruno@clisp.org>
69067
69068         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69069         Windows PATH as well. Conservative double-quoting. Comments.
69070
69071 2007-07-01  Bruno Haible  <bruno@clisp.org>
69072             Eric Blake  <ebb9@byu.net>
69073             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69074
69075         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69076         empty components in $PATH, denoting '.'.
69077
69078 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69079
69080         * gnulib-tool: Fix indentation.
69081         (func_create_megatestdir): Likewise.
69082         Report by Bruno Haible.
69083
69084 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69085
69086         Sync from Automake.
69087         * build-aux/gnupload: Fix shell portability issues with for loops.
69088         Report by Karl Berry.
69089
69090 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69091
69092         * build-aux/maint.mk (POURL): Use translationproject.org.
69093
69094 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69095             Bruno Haible  <bruno@clisp.org>
69096
69097         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69098         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69099         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69100         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69101         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69102
69103 2007-06-27  Bruno Haible  <bruno@clisp.org>
69104
69105         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69106         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69107
69108 2007-06-26  Karl Berry  <karl@gnu.org>
69109
69110         * MODULES.html.sh: remove xreadlink-with-size.
69111
69112 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69113
69114         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69115         method that I hope also handles the double-include problem noted
69116         by Bruno Haible in
69117         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69118
69119 2007-06-23  Bruno Haible  <bruno@clisp.org>
69120
69121         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69122         Don't let the 'mostlyclean' target fail if the last subdirectory could
69123         not be removed.
69124         Reported by Karl Berry.
69125
69126 2007-06-23  Bruno Haible  <bruno@clisp.org>
69127
69128         * gnulib-tool (echo): Add a speedier workaround for ksh.
69129         * tests/test-echo.sh: Likewise.
69130
69131 2007-06-23  Bruno Haible  <bruno@clisp.org>
69132
69133         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69134         * tests/test-echo.sh: Likewise.
69135
69136 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69137
69138         * gnulib-tool (IFS): Initialize early, so we don't set it to
69139         empty later.
69140         (self_abspathname): Rewrite algorithm to set it, reindent.
69141         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69142         (func_create_megatestdir): Merge some sed scripts.
69143
69144 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69145
69146         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69147         exposed by Sun Studio 11 cc on Solaris 8.
69148
69149 2007-06-22  Bruno Haible  <bruno@clisp.org>
69150
69151         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69152         backslashes.
69153         * tests/test-echo.sh: New file.
69154
69155 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69156
69157         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69158         simplify `sed_replace_build_aux' scripts, they are portable but
69159         echoing them with `echo' is not.
69160         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69161
69162 2007-06-21  Karl Berry  <karl@gnu.org>
69163
69164         * config/srclist.txt: guess we can't handle the licenses via
69165         srclist at the moment.
69166
69167 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * MODULES.html.sh: Add include_next.
69170         * modules/include_next: New file.
69171
69172 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69175         INCLUDE_NEXT.
69176         (gl_CHECK_NEXT_HEADERS): New macro.
69177         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69178         the obsolescent gl_ABSOLUTE_HEADER.
69179         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69180         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69181         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69182         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69183         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69184         * m4/math_h.m4 (gl_MATH_H): Likewise.
69185         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69186         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69187         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69188         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69189         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69190         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69191         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69192         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69193         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69194         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69195         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69196         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69197         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69198         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69199         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69200         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69201         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69202         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69203         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69204         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69205         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69206         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69207         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69208         * lib/float_.h: Likewise.
69209         * lib/inttypes_.h: Likewise.
69210         * lib/math_.h: Likewise.
69211         * lib/search_.h: Likewise.
69212         * lib/signal_.h: Likewise.
69213         * lib/stdint_.h: Likewise.
69214         * lib/stdio_.h: Likewise.
69215         * lib/stdlib_.h: Likewise.
69216         * lib/string_.h: Likewise.
69217         * lib/sys_stat_.h: Likewise.
69218         * lib/sys_time_.h: Likewise.
69219         * lib/time_.h: Likewise.
69220         * lib/unistd_.h: Likewise.
69221         * lib/wchar_.h: Likewise.
69222         * lib/wctype_.h: Likewise.
69223         * lib/dirent_.h: Likewise.
69224         * lib/iconv_.h: Likewise.
69225         * lib/locale_.h: Likewise.
69226         * lib/netinet_in_.h: Likewise.
69227         * lib/sys_select_.h: Likewise.
69228         * lib/sys_socket_.h: Likewise.
69229         * lib/sysexits_.h: Likewise.
69230         * modules/fcntl (Depends-on): Depend on include_next, not
69231         absolute_header.
69232         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69233         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69234         * modules/fchdir: Likewise.
69235         * modules/float: Likewise.
69236         * modules/iconv_open: Likewise.
69237         * modules/inttypes: Likewise.
69238         * modules/locale: Likewise.
69239         * modules/math: Likewise.
69240         * modules/netinet_in: Likewise.
69241         * modules/search: Likewise.
69242         * modules/signal: Likewise.
69243         * modules/stdint: Likewise.
69244         * modules/stdio: Likewise.
69245         * modules/stdlib: Likewise.
69246         * modules/string: Likewise.
69247         * modules/sys_select: Likewise.
69248         * modules/sys_socket: Likewise.
69249         * modules/sys_stat: Likewise.
69250         * modules/sys_time: Likewise.
69251         * modules/sysexits: Likewise.
69252         * modules/time: Likewise.
69253         * modules/unistd: Likewise.
69254         * modules/wchar: Likewise.
69255         * modules/wctype: Likewise.
69256         * modules/sys_stat: Change maintainer to "all".
69257         * modules/unistd: Likewise.
69258
69259 2007-06-20  Karl Berry  <karl@gnu.org>
69260
69261         * config/srclist.txt: track www changes in license files.
69262
69263 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69264
69265         * build-aux/bootstrap: Remove stray dot.
69266         Make sure build_aux settings are honored when linking
69267         gnulib_extra_files.
69268
69269 2007-06-19  Eric Blake  <ebb9@byu.net>
69270
69271         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69272         Allow compilation on cygwin.
69273
69274 2007-06-19  Jim Meyering  <jim@meyering.net>
69275
69276         xreadlink-with-size: Remove module.  No longer used.
69277         Ex-callers now use xreadlink or mreadlink-with-size.
69278         * modules/xreadlink-with-size: Remove module.
69279         * lib/xreadlink-with-size.c: Remove file.
69280         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69281         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69282         just before the function definition *is* accurate.
69283
69284         Eliminate one way canonicalize_filename_mode could exit.
69285         * lib/canonicalize.c (canonicalize_filename_mode):
69286         Use mreadlink_with_size, not xreadlink_with_size.
69287
69288 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69289
69290         Detect porting problems to FreeBSD/arm, which has time_t wider than
69291         long int.  Original problem reported for GNU diff by Xin Li in
69292         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69293         * modules/getdate (Depends-on): Add intprops, verify.
69294         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69295         is an integer type no wider than long int.
69296
69297 2007-06-18  Jim Meyering  <jim@meyering.net>
69298
69299         New module: mreadlink-with-size.
69300         * MODULES.html.sh: Add mreadlink-with-size.
69301         * modules/mreadlink-with-size: New module
69302         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69303         not xreadlink-with-size.
69304         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69305
69306 2007-06-16  Bruno Haible  <bruno@clisp.org>
69307
69308         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69309         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69310         Reported by Gary V. Vaughan <gary@gnu.org>.
69311
69312 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69313
69314         Revamp lchown so that it lives in unistd.h where it belongs.
69315         * lib/lchown.h: Remove.
69316         * lib/dirchownmod.c: Don't include lib/lchown.h.
69317         * lib/fchownat.c: Likewise.
69318         * lib/openat.c: Likewise.
69319         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69320         does not follow symlinks.
69321         (EOPNOTSUPP): Define if not defined.
69322         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69323         is defined to 0.
69324         (lchown): New decl.
69325         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69326         Do not check for lchown decl.
69327         Set REPLACE_LCHOWN.
69328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69329         REPLACE_LCHOWN.
69330         * modules/chown: Make it clear it follows symlinks.
69331         * modules/lchown: Make it clear it doesn't follow symlinks.
69332         (Files): Remove lib/lchown.h
69333         (Depends-on): Add unistd.
69334         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69335         (Include): Include <unistd.h>, not "lchown.h".
69336         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69337         REPLACE_LCHOWN.
69338
69339 2007-06-15  Jim Meyering  <jim@meyering.net>
69340
69341         Change license (GPL to LGPL) of fsusage and dependents.
69342         * modules/fsusage (License): Change to LGPL.
69343         * modules/full-read (License): Likewise.
69344         * modules/full-write (License): Likewise.
69345         * modules/safe-read (License): Likewise.
69346         * modules/safe-write (License): Likewise.
69347
69348 2007-06-14  Ben Pfaff  <blp@gnu.org>
69349
69350         Missing part of allocsa -> malloca transition.
69351         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69352         gl_MALLOCA.
69353
69354 2007-06-12  Bruno Haible  <bruno@clisp.org>
69355
69356         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69357         to ia64, x86_64, i386.
69358         Reported by Eric Blake.
69359
69360 2007-06-12  Bruno Haible  <bruno@clisp.org>
69361
69362         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69363         cross-compiling to x86_64.
69364
69365 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69366
69367         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69368         glitch reported by Ralf Wildenhues in
69369         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69370
69371         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69372         Vin Shelton.
69373
69374 2007-06-11  Bruno Haible  <bruno@clisp.org>
69375
69376         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69377         replacement string.
69378         Reported by Eric Blake.
69379
69380 2007-06-10  Bruno Haible  <bruno@clisp.org>
69381
69382         Prepare vasnprintf code for use with Unicode strings.
69383         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69384         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69385         TYPE_U32_STRING.
69386         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69387         a_u32_string variants.
69388         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69389         * lib/printf-args.c: Don't include config.h and the specification
69390         header if PRINTF_FETCHARGS is already defined.
69391         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69392         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69393         TYPE_U16_STRING, TYPE_U32_STRING.
69394         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69395         u16_directive, u16_directives, u32_directive, u32_directives): New
69396         types.
69397         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69398         New declarations.
69399         * lib/printf-parse.c: Don't include config.h and the specification
69400         header if PRINTF_PARSE is already defined. Eliminate the set of
69401         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69402         them now. Include c-ctype.h.
69403         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69404         directive and CHAR_T_ONLY_ASCII.
69405         * lib/vasnprintf.c: Don't include config.h and the specification header
69406         if VASNPRINTF is already defined.
69407         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69408         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69409         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69410         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69411         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69412         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69413         code accordingly.
69414         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69415         pad_ourselves also in this case, with the 'c' and 's' directives, and
69416         with a different notion of "width".
69417         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69418
69419 2007-06-10  Bruno Haible  <bruno@clisp.org>
69420
69421         * modules/unistr/u32-mbsnlen: New file.
69422         * lib/unistr/u32-mbsnlen.c: New file.
69423
69424         * modules/unistr/u16-mbsnlen: New file.
69425         * lib/unistr/u16-mbsnlen.c: New file.
69426
69427         * modules/unistr/u8-mbsnlen: New file.
69428         * lib/unistr/u8-mbsnlen.c: New file.
69429
69430         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69431         declarations.
69432
69433 2007-06-10  Bruno Haible  <bruno@clisp.org>
69434
69435         * lib/string_.h (mbsnlen): New declaration.
69436         * lib/mbsnlen.c: New file.
69437         * m4/mbsnlen.m4: New file.
69438         * modules/mbsnlen: New file.
69439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69440         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69441         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69442
69443 2007-06-10  Bruno Haible  <bruno@clisp.org>
69444
69445         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69446
69447 2007-06-10  Bruno Haible  <bruno@clisp.org>
69448
69449         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69450         * lib/mbuiter.h: Likewise.
69451
69452 2007-06-10  Bruno Haible  <bruno@clisp.org>
69453
69454         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69455         declaration.
69456
69457 2007-06-10  Karl Berry  <karl@gnu.org>
69458
69459         * config/srclist.txt: remove gettext entries, Bruno prefers
69460         to update individually.
69461
69462 2007-06-10  Bruno Haible  <bruno@clisp.org>
69463
69464         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69465         'maxlen'. Ensure only length + width bytes are allocated, not
69466         length + 1 + width.
69467
69468 2007-06-09  Bruno Haible  <bruno@clisp.org>
69469
69470         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69471         (CHAR_T): Remove macro.
69472         (VASNPRINTF): Update.
69473
69474 2007-06-09  Bruno Haible  <bruno@clisp.org>
69475
69476         * MODULES.html.sh (Unicode string functions): Add the new modules.
69477
69478         * modules/uniconv/u32-conv-to-enc: New file.
69479         * lib/uniconv/u32-conv-to-enc.c: New file.
69480         * modules/uniconv/u32-conv-to-enc-tests: New file.
69481         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69482
69483         * modules/uniconv/u16-conv-to-enc: New file.
69484         * lib/uniconv/u16-conv-to-enc.c: New file.
69485         * lib/uniconv/u-conv-to-enc.h: New file.
69486         * modules/uniconv/u16-conv-to-enc-tests: New file.
69487         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69488
69489         * modules/uniconv/u8-conv-to-enc: New file.
69490         * lib/uniconv/u8-conv-to-enc.c: New file.
69491         * modules/uniconv/u8-conv-to-enc-tests: New file.
69492         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69493
69494         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69495         u32_conv_to_encoding): New declarations.
69496
69497 2007-06-09  Bruno Haible  <bruno@clisp.org>
69498
69499         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69500
69501 2007-06-09  Bruno Haible  <bruno@clisp.org>
69502
69503         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69504         * modules/malloca: Renamed from modules/allocsa, updated.
69505         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69506         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69507         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69508         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69509         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69510         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69511         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69512         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69513         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69514         * modules/c-strcasestr (Depends-on): Update.
69515         * lib/c-strcasestr.c: Update.
69516         * modules/c-strstr (Depends-on): Update.
69517         * lib/c-strstr.c: Update.
69518         * modules/canonicalize-lgpl (Depends-on): Update.
69519         * lib/canonicalize-lgpl.c: Update.
69520         * modules/clean-temp (Depends-on): Update.
69521         * lib/clean-temp.c: Update.
69522         * modules/csharpcomp (Depends-on): Update.
69523         * lib/csharpcomp.c: Update.
69524         * modules/csharpexec (Depends-on): Update.
69525         * lib/csharpexec.c: Update.
69526         * modules/javacomp (Depends-on): Update.
69527         * lib/javacomp.c: Update.
69528         * modules/javaexec (Depends-on): Update.
69529         * lib/javaexec.c: Update.
69530         * modules/mbscasestr (Depends-on): Update.
69531         * lib/mbscasestr.c: Update.
69532         * modules/mbsstr (Depends-on): Update.
69533         * lib/mbsstr.c: Update.
69534         * modules/setenv (Depends-on): Update.
69535         * lib/setenv.c: Update.
69536         * modules/strcasestr (Depends-on): Update.
69537         * lib/strcasestr.c: Update.
69538         * modules/striconveha (Depends-on): Update.
69539         * lib/striconveha.c: Update.
69540         * modules/relocatable-prog-wrapper (Files): Update.
69541         * lib/relocwrapper.c: Update.
69542         * build-aux/install-reloc: Update.
69543         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69544
69545 2007-06-08  Bruno Haible  <bruno@clisp.org>
69546
69547         Port to uClibc.
69548         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69549         * lib/fpurge.c (fpurge): Likewise.
69550         * lib/freading.c (freading): Likewise.
69551         * lib/fseeko.c (rpl_fseeko): Likewise.
69552         * lib/fseterr.c (fseterr): Likewise.
69553         * lib/fwriting.c (fwriting): Likewise.
69554         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69555
69556 2007-06-08  Bruno Haible  <bruno@clisp.org>
69557
69558         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69559         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69560         * modules/gettext (Files): Add m4/intlmacosx.m4.
69561
69562 2007-06-07  Bruno Haible  <bruno@clisp.org>
69563
69564         * modules/localename-tests: New file.
69565         * tests/test-localename.c: New file.
69566
69567         New module 'localename'.
69568         * lib/localename.h: New file.
69569         * lib/localename.c: New file, from GNU gettext.
69570         * m4/localename.m4: New file.
69571         * modules/localename: New file.
69572
69573 2007-06-07  Bruno Haible  <bruno@clisp.org>
69574
69575         Work around the lack of <wchar.h> on some builds of uClibc.
69576         * doc/headers/wchar.texi: Update.
69577         * lib/wchar_.h: Include <wchar.h> only if it exists.
69578         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69579         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69580         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69581         doesn't exist.
69582         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69583         * modules/mbfile (Depends-on): Add wchar.
69584         * modules/mbiter (Depends-on): Likewise.
69585         * modules/mbuiter (Depends-on): Likewise.
69586         Reported by Simon Josefsson.
69587
69588 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69589
69590         Work around problem reported by Steven M. Schweda in
69591         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69592         Tru64 5.1B with the Compaq compiler environment installed declares
69593         an 'isblank' function but does not define it in the C library.
69594         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69595         * lib/regex_internal.h (isblank): Likewise.
69596         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69597         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69598
69599 2007-06-05  Bruno Haible  <bruno@clisp.org>
69600
69601         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69602         ia64.
69603         * modules/printf-safe: New file.
69604         * modules/fprintf-posix (Depends-on): Add printf-safe.
69605         * modules/printf-posix (Depends-on): Likewise.
69606         * modules/snprintf-posix (Depends-on): Likewise.
69607         * modules/sprintf-posix (Depends-on): Likewise.
69608         * modules/vasnprintf-posix (Depends-on): Likewise.
69609         * modules/vasprintf-posix (Depends-on): Likewise.
69610         * modules/vfprintf-posix (Depends-on): Likewise.
69611         * modules/vprintf-posix (Depends-on): Likewise.
69612         * modules/vsnprintf-posix (Depends-on): Likewise.
69613         * modules/vsprintf-posix (Depends-on): Likewise.
69614         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69615         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69616         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69617         "no" on i386, x86_64, ia64.
69618         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69619         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69620         on i386, x86_64, ia64.
69621         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69622         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69623         on i386, x86_64, ia64.
69624         * tests/test-vasnprintf-posix.c: Include float.h.
69625         (LDBL80_WORDS): New macro.
69626         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69627         on i386, x86_64, ia64.
69628         * tests/test-vasprintf-posix.c: Include float.h.
69629         (LDBL80_WORDS): New macro.
69630         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69631         on i386, x86_64, ia64.
69632         * tests/test-snprintf-posix.c: Include float.h.
69633         * tests/test-sprintf-posix.c: Likewise.
69634         * tests/test-vsnprintf-posix.c: Likewise.
69635         * tests/test-vsprintf-posix.c: Likewise.
69636
69637 2007-06-05  Bruno Haible  <bruno@clisp.org>
69638
69639         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69640         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69641         non-IEEE numbers on i386, x86_64, ia64.
69642         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69643         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69644         * tests/test-isnanl.h: Include float.h.
69645         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69646
69647 2007-06-05  Bruno Haible  <bruno@clisp.org>
69648
69649         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69650         also the %a / %A. Handle the %a / %A code before this extra handling.
69651
69652 2007-06-05  Bruno Haible  <bruno@clisp.org>
69653
69654         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69655         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69656
69657 2007-06-05  Bruno Haible  <bruno@clisp.org>
69658
69659         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69660         typo in variable name.
69661
69662 2007-06-05  Eric Blake  <ebb9@byu.net>
69663
69664         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69665         Reported by Simon Josefsson.
69666
69667 2007-06-04  Bruno Haible  <bruno@clisp.org>
69668
69669         Avoid test failures on some PowerPC platforms.
69670         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69671         Define differently for PowerPC.
69672         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69673         Reported by Gary V. Vaughan <gary@gnu.org>.
69674
69675 2007-06-02  Bruno Haible  <bruno@clisp.org>
69676
69677         Fix test-stdint failure on FreeBSD/ia64.
69678         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69679         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69680         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69681         * doc/headers/stdint.texi: Update.
69682
69683 2007-06-01  Bruno Haible  <bruno@clisp.org>
69684
69685         * tests/test-binary-io.c (main): Pass a third argument to open().
69686         Reported by Gary V. Vaughan <gary@gnu.org>.
69687
69688 2007-06-01  Bruno Haible  <bruno@clisp.org>
69689
69690         * doc/functions/frexpl.texi: Update for mingw.
69691
69692 2007-06-01  Bruno Haible  <bruno@clisp.org>
69693
69694         * tests/test-lseek.c (main): Disable test of errno for invalid third
69695         argument.
69696         * doc/functions/lseek.texi: Update.
69697         Reported by Gary V. Vaughan <gary@gnu.org>.
69698
69699 2007-05-28  Bruno Haible  <bruno@clisp.org>
69700
69701         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69702
69703 2007-05-31  Eric Blake  <ebb9@byu.net>
69704
69705         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69706         cross compiling.
69707
69708 2007-05-30  Eric Blake  <ebb9@byu.net>
69709         and Bruno Haible  <bruno@clisp.org>
69710
69711         Work around mingw test failures exposed by m4-1.4.9b.
69712         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69713         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69714         moment.
69715
69716 2007-05-30  Bruno Haible  <bruno@clisp.org>
69717
69718         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69719         assuming that they are closed. Needed on HP-UX 11.
69720
69721 2007-05-29  Bruno Haible  <bruno@clisp.org>
69722
69723         Fix a problem with #include_next.
69724         * lib/dirent_.h: Split the double-inclusion guard.
69725         * lib/fcntl_.h: Likewise.
69726         * lib/float_.h: Likewise.
69727         * lib/iconv_.h: Likewise.
69728         * lib/inttypes_.h: Likewise.
69729         * lib/locale_.h: Likewise.
69730         * lib/math_.h: Likewise.
69731         * lib/netinet_in_.h: Likewise.
69732         * lib/search_.h: Likewise.
69733         * lib/signal_.h: Likewise.
69734         * lib/stdint_.h: Likewise.
69735         * lib/stdio_.h: Likewise.
69736         * lib/stdlib_.h: Likewise.
69737         * lib/string_.h: Likewise.
69738         * lib/sys_select_.h: Likewise.
69739         * lib/sys_socket_.h: Likewise.
69740         * lib/sys_stat_.h: Likewise.
69741         * lib/sys_time_.h: Likewise.
69742         * lib/sysexits_.h: Likewise.
69743         * lib/time_.h: Likewise.
69744         * lib/unistd_.h: Likewise.
69745         * lib/wchar_.h: Likewise.
69746         * lib/wctype_.h: Likewise.
69747
69748 2007-05-29  Bruno Haible  <bruno@clisp.org>
69749
69750         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69751         for the moment.
69752
69753 2007-05-29  Bruno Haible  <bruno@clisp.org>
69754
69755         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69756         invocation.
69757         Reported by Eric Blake.
69758
69759 2007-05-29  Bruno Haible  <bruno@clisp.org>
69760
69761         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69762         compiling case.
69763
69764 2007-05-29  Eric Blake  <ebb9@byu.net>
69765             Bruno Haible  <bruno@clisp.org>
69766
69767         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69768         cross compiles.
69769
69770 2007-05-28  Eric Blake  <ebb9@byu.net>
69771
69772         * modules/closein-tests (test_closein_LDADD): Support test on
69773         cygwin with libtool.
69774
69775 2007-05-28  Bruno Haible  <bruno@clisp.org>
69776
69777         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69778         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69779         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69780         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69781         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69782         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69783         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69784         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69785         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69786
69787 2007-05-28  Eric Blake  <ebb9@byu.net>
69788
69789         Unconditionally include <config.h> in unit tests.
69790         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69791         * tests/test-allocsa.c, tests/test-arcfour.c,
69792         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69793         tests/test-array_list.c, tests/test-array_oset.c,
69794         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69795         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69796         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69797         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69798         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69799         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69800         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69801         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69802         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69803         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69804         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69805         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69806         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69807         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69808         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69809         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69810         test-md5.c, test-memmem.c, test-printf-posix.c,
69811         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69812         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69813         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69814         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69815         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69816         test-vasnprintf-posix2.c, test-vasnprintf.c,
69817         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69818         test-vfprintf-posix.c, test-vprintf-posix.c,
69819         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69820         test-xvasprintf.c: Likewise.
69821
69822 2007-05-28  Bruno Haible  <bruno@clisp.org>
69823
69824         * gnulib-tool (func_import): Remember the --with-tests command-line
69825         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69826         Reported by Eric Blake.
69827
69828 2007-05-28  Bruno Haible  <bruno@clisp.org>
69829
69830         * modules/ftell-tests: New file.
69831         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69832         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69833
69834         * lib/ftell.c: New file.
69835         * modules/ftell: New file.
69836         * m4/ftell.m4: New file.
69837         * doc/functions/ftell.texi: Update.
69838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69839         REPLACE_FTELL.
69840         * lib/stdio_.h (rpl_ftell): New declaration.
69841         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69842         REPLACE_FTELL.
69843
69844 2007-05-28  Eric Blake  <ebb9@byu.net>
69845
69846         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69847
69848 2007-05-28  Bruno Haible  <bruno@clisp.org>
69849
69850         * modules/fseek-tests: New file.
69851         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69852         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69853
69854         * lib/fseek.c: New file.
69855         * modules/fseek: New file.
69856         * m4/fseek.m4: New file.
69857         * doc/functions/fseek.texi: Update.
69858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69859         REPLACE_FSEEK.
69860         * lib/stdio_.h (rpl_fseek): New declaration.
69861         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69862         REPLACE_FSEEK.
69863
69864 2007-05-28  Bruno Haible  <bruno@clisp.org>
69865
69866         * lib/stdio_.h (fflush): More comments.
69867
69868 2007-05-28  Bruno Haible  <bruno@clisp.org>
69869
69870         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
69871         runtime test.
69872
69873 2007-05-28  Eric Blake  <ebb9@byu.net>
69874
69875         Improve lseek module.
69876         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
69877         * lib/unistd_.h (lseek): Scale back link warning message.
69878         * tests/test-lseek.c: Beef up test.
69879         * tests/test-lseek.sh: Exercise more facets of lseek.
69880         Reported by Bruno Haible.
69881
69882 2007-05-28  Bruno Haible  <bruno@clisp.org>
69883
69884         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
69885         to define.
69886
69887 2007-05-27  Bruno Haible  <bruno@clisp.org>
69888
69889         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
69890
69891 2007-05-27  Bruno Haible  <bruno@clisp.org>
69892
69893         * modules/openmp: New file.
69894         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
69895         Noah Misch.
69896
69897 2007-05-26  Bruno Haible  <bruno@clisp.org>
69898
69899         * modules/chdir-long (Depends-on): Add fchdir.
69900         * modules/chdir-safer (Depends-on): Likewise.
69901         * modules/fts (Depends-on): Likewise.
69902         * modules/fts-lgpl (Depends-on): Likewise.
69903         * modules/openat (Depends-on): Likewise.
69904         * modules/savewd (Depends-on): Likewise.
69905
69906 2007-05-24  Eric Blake  <ebb9@byu.net>
69907
69908         Fix lseek on mingw.
69909         * modules/lseek: New module.
69910         * m4/lseek.m4: New file.
69911         * lib/lseek.c: New file.
69912         * modules/lseek-tests: New file.
69913         * tests/test-lseek.c: New file.
69914         * tests/test-lseek.sh: New file.
69915         * MODULES.html.sh: Document lseek module.
69916         * modules/fflush (Depends-on): Add lseek, fseeko.
69917         * modules/fseeko (Depends-on): Likewise.
69918         * modules/ftello (Depends-on): Likewise.
69919         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69920         broken.
69921         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69922         broken.
69923         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69924         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69925         * lib/ftello.c (rpl_ftello): Likewise.
69926         * tests/test-fseeko.c (main): Test this.
69927         * tests/test-fseeko.sh: Likewise.
69928         * tests/test-ftello.c (main): Likewise.
69929         * tests/test-ftello.sh: Likewise.
69930         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69931         implies replacing fseek.
69932         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69933         HAVE_FTELLO.
69934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69935         * modules/unistd (Makefile.am): Likewise.
69936         * lib/unistd_.h (lseek): Declare a replacement.
69937         * doc/functions/lseek.texi (lseek): Document this fix.
69938         * doc/functions/fseek.texi (fseek): Likewise.
69939         * doc/functions/ftell.texi (ftell): Likewise.
69940
69941 2007-05-24  Bruno Haible  <bruno@clisp.org>
69942
69943         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69944         in the printed representation of a NaN.
69945         * tests/test-vasprintf-posix.c (test_function): Likewise.
69946         * tests/test-snprintf-posix.h (test_function): Likewise.
69947         * tests/test-sprintf-posix.h (test_function): Likewise.
69948         Reported by Eric Blake.
69949
69950 2007-05-23  Eric Blake  <ebb9@byu.net>
69951
69952         Fix fseeko/ftello on cygwin 1.5.24.
69953         * doc/functions/fseeko.texi (fseeko): Document the fix.
69954         * doc/functions/ftello.texi (ftello): Document the fix.
69955         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69956         * doc/functions/stdout.text (stdout): New file.
69957         * doc/functions/stderr.text (stderr): New file.
69958         * doc/gnulib.texi (Function Substitutes): Use new files.
69959         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69960         prior to 1.7.0.
69961         * tests/test-ftello.c (main): Likewise for ftello.
69962         * tests/test-fseeko.sh: New file.
69963         * tests/test-ftello.sh: New file.
69964         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69965         with seekable stdin.
69966         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69967         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69968         (gl_REPLACE_FSEEKO): New macro.
69969         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69970         * modules/fseeko (Files): Distribute fseeko.c.
69971         * modules/ftello (Files): Distribute ftello.c.
69972         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69973         mode.
69974         * lib/ftello.c (rpl_ftello): New file.
69975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69976         fseeko, ftello.
69977         (gl_STDIN_LARGE_OFFSET): New macro.
69978         * modules/stdio (Makefile.am): Perform the replacement.
69979         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69980
69981 2007-05-23  Bruno Haible  <bruno@clisp.org>
69982
69983         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69984         GNULIB_POSIXCHECK is defined.
69985
69986 2007-05-21  Bruno Haible  <bruno@clisp.org>
69987
69988         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69989         Check also the output for NaN arguments. When cross-compiling, guess
69990         no on IRIX.
69991         * lib/vasnprintf.c: Update comments.
69992         * tests/test-vasnprintf-posix.c (strisnan): New function.
69993         (test_function): Use it.
69994         * tests/test-vasprintf-posix.c (strisnan): New function.
69995         (test_function): Use it.
69996         * tests/test-snprintf-posix.h (strisnan): New function.
69997         (test_function): Use it.
69998         * tests/test-sprintf-posix.h (strisnan): New function.
69999         (test_function): Use it.
70000         Reported by Eric Blake.
70001
70002 2007-05-20  Bruno Haible  <bruno@clisp.org>
70003
70004         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70005         numbers that fails on BeOS.
70006         * doc/functions/frexpl.texi: Update.
70007
70008 2007-05-20  Jim Meyering  <jim@meyering.net>
70009
70010         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70011         forced upon us by glibc-2.6.
70012
70013 2007-05-20  Bruno Haible  <bruno@clisp.org>
70014
70015         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70016         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70017         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70018         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70019         NEED_PRINTF_INFINITE.
70020         (is_infinitel): New function.
70021         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70023         gl_PREREQ_VASNPRINTF_INFINITE.
70024         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70025         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70026         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70027         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70028         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70029         gl_PREREQ_VASNPRINTF_INFINITE.
70030         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70031         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70032         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70034         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70035         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70036         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70037         * doc/functions/fprintf.texi: Update.
70038         * doc/functions/printf.texi: Update.
70039         * doc/functions/snprintf.texi: Update.
70040         * doc/functions/sprintf.texi: Update.
70041         * doc/functions/vfprintf.texi: Update.
70042         * doc/functions/vprintf.texi: Update.
70043         * doc/functions/vsnprintf.texi: Update.
70044         * doc/functions/vsprintf.texi: Update.
70045
70046 2007-05-20  Bruno Haible  <bruno@clisp.org>
70047
70048         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70049         was not found in libc.
70050         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70051
70052 2007-05-20  Bruno Haible  <bruno@clisp.org>
70053
70054         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70055         printed as "-nan" instead of "nan".
70056         * tests/test-vasprintf-posix.c (test_function): Likewise.
70057         * tests/test-snprintf-posix.h (test_function): Likewise.
70058         * tests/test-sprintf-posix.h (test_function): Likewise.
70059         Needed for HP-UX 11.
70060
70061 2007-05-20  Jim Meyering  <jim@meyering.net>
70062
70063         Fix buggy test for the fchownat-deref bug.
70064         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70065         symlink required for the run-test.  Without it, this test would
70066         always declare that fchownat doesn't work, and client code would
70067         unnecessarily use the replacement function with fixed libc.
70068         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70069         Reported by Greg Schafer.
70070
70071 2007-05-19  Bruno Haible  <bruno@clisp.org>
70072
70073         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70074         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70075         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70076         Needed for IRIX 6.5 and Solaris 2.5.1.
70077
70078 2007-05-19  Bruno Haible  <bruno@clisp.org>
70079
70080         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70081         (test_function): Skip tests involving -0.0 on platforms where
70082         -0.0 = 0.0.
70083         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70084         (test_function): Skip tests involving -0.0 on platforms where
70085         -0.0 = 0.0.
70086         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70087         (test_function): Skip tests involving -0.0 on platforms where
70088         -0.0 = 0.0.
70089         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70090         (test_function): Skip tests involving -0.0 on platforms where
70091         -0.0 = 0.0.
70092         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70093         tests.
70094         * tests/test-printf-posix.h (test_function): Likewise.
70095         * tests/test-printf-posix.output: Remove all -0.0 related results.
70096         Needed for IRIX 6.5.
70097
70098 2007-05-19  Bruno Haible  <bruno@clisp.org>
70099
70100         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70101         printed as "nan0x7fffffff" instead of "nan".
70102         * tests/test-vasprintf-posix.c (test_function): Likewise.
70103         * tests/test-snprintf-posix.h (test_function): Likewise.
70104         * tests/test-sprintf-posix.h (test_function): Likewise.
70105         * tests/test-fprintf-posix.h (NaN): Remove macro.
70106         (test_function): Remove all NaN related tests.
70107         * tests/test-printf-posix.h (NaN): Remove macro.
70108         (test_function): Remove all NaN related tests.
70109         * tests/test-printf-posix.output: Remove all NaN related results.
70110         Needed for IRIX 6.5.
70111
70112 2007-05-19  Bruno Haible  <bruno@clisp.org>
70113
70114         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70115         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70116
70117 2007-05-19  Bruno Haible  <bruno@clisp.org>
70118
70119         * lib/float_.h: New file.
70120         * m4/float_h.m4: New file.
70121         * modules/float: New file.
70122         * modules/isnanl (Dependencies): Add float.
70123         * modules/isnanl-nolibm (Dependencies): Likewise.
70124         * modules/mathl (Dependencies): Likewise.
70125         * modules/printf-frexpl (Dependencies): Likewise.
70126         * modules/signbit (Dependencies): Likewise.
70127         * modules/vasnprintf (Dependencies): Likewise.
70128         * doc/headers/float.texi: Update.
70129
70130 2007-05-19  Jim Meyering  <jim@meyering.net>
70131
70132         * lib/utimens.c (gl_futimens): Rename from futimens,
70133         now that glibc-2.6 declares futimens.
70134         * lib/utimens.h: Likewise.
70135
70136 2007-05-19  Bruno Haible  <bruno@clisp.org>
70137
70138         Avoid test failures on mingw.
70139         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70140         * tests/test-printf-posix.sh: Likewise.
70141         * tests/test-vfprintf-posix.sh: Likewise.
70142         * tests/test-vprintf-posix.sh: Likewise.
70143
70144 2007-05-19  Bruno Haible  <bruno@clisp.org>
70145
70146         Fix *printf result for NaN, Inf, -0.0 on mingw.
70147         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70148         * lib/vasnprintf.c: Include math.h and isnan.h.
70149         (is_infinite_or_zero): New function.
70150         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70151         values in the %f, %F, %e, %E, %g, %G directives.
70152         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70153         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70154         gl_PRINTF_INFINITE and test its result. Invoke
70155         gl_PREREQ_VASNPRINTF_INFINITE.
70156         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70157         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70158         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70159         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70160         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70162         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70163         * doc/functions/fprintf.texi: Update.
70164         * doc/functions/printf.texi: Update.
70165         * doc/functions/snprintf.texi: Update.
70166         * doc/functions/sprintf.texi: Update.
70167         * doc/functions/vfprintf.texi: Update.
70168         * doc/functions/vprintf.texi: Update.
70169         * doc/functions/vsnprintf.texi: Update.
70170         * doc/functions/vsprintf.texi: Update.
70171
70172 2007-05-19  Bruno Haible  <bruno@clisp.org>
70173
70174         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70175         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70176         Instead of multiplying with 10^k, set extra_zeroes to k.
70177         (scale10_round_long_double): Remove function.
70178
70179 2007-05-18  Bruno Haible  <bruno@clisp.org>
70180
70181         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70182         introduced on 2007-05-06.
70183
70184 2007-05-18  Bruno Haible  <bruno@clisp.org>
70185
70186         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70187         %g directives.
70188         * tests/test-vasprintf-posix.c (test_function): Likewise.
70189         * tests/test-snprintf-posix.h (test_function): Likewise.
70190         * tests/test-sprintf-posix.h (test_function): Likewise.
70191
70192 2007-05-18  Bruno Haible  <bruno@clisp.org>
70193
70194         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70195         (strmatch): New function.
70196         (test_function): Test the %f directive on numbers of various exponents.
70197         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70198         (strmatch): New function.
70199         (test_function): Test the %f directive on numbers of various exponents.
70200         * tests/test-snprintf-posix.h (strmatch): New function.
70201         (test_function): Test the %f directive on numbers of various exponents.
70202         * tests/test-sprintf-posix.h (strmatch): New function.
70203         (test_function): Test the %f directive on numbers of various exponents.
70204         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70205         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70206         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70207         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70208
70209 2007-05-18  Bruno Haible  <bruno@clisp.org>
70210
70211         Add support for 'long double' number output.
70212         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70213         * lib/vasnprintf.c: Include math.h and float+.h.
70214         (mp_limb_t): New type.
70215         (GMP_LIMB_BITS): New macro.
70216         (mp_twolimb_t): New type.
70217         (GMP_TWOLIMB_BITS): New macro.
70218         (mpn_t): New type.
70219         (multiply, divide, convert_to_decimal, decode_long_double,
70220         scale10_round_long_double, scale10_round_decimal_long_double,
70221         floorlog10l): New functions.
70222         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70223         for the %f, %F, %e, %E, %g, %G directives.
70224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70225         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70226         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70227         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70228         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70229         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70230         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70231         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70232         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70233         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70234         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70235         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70236         * modules/snprintf-posix (Depends-on): Likewise.
70237         * modules/sprintf-posix (Depends-on): Likewise.
70238         * modules/vasnprintf-posix (Depends-on): Likewise.
70239         * modules/vasprintf-posix (Depends-on): Likewise.
70240         * modules/vfprintf-posix (Depends-on): Likewise.
70241         * modules/vsnprintf-posix (Depends-on): Likewise.
70242         * modules/vsprintf-posix (Depends-on): Likewise.
70243         * modules/vasnprintf (Files): Add lib/float+.h.
70244         * doc/functions/fprintf.texi: Update.
70245         * doc/functions/printf.texi: Update.
70246         * doc/functions/snprintf.texi: Update.
70247         * doc/functions/sprintf.texi: Update.
70248         * doc/functions/vfprintf.texi: Update.
70249         * doc/functions/vprintf.texi: Update.
70250         * doc/functions/vsnprintf.texi: Update.
70251         * doc/functions/vsprintf.texi: Update.
70252
70253 2007-05-18  Bruno Haible  <bruno@clisp.org>
70254
70255         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70256
70257 2007-05-18  Bruno Haible  <bruno@clisp.org>
70258
70259         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70260         for printing 64-bit integers. Needed for mingw.
70261
70262 2007-05-18  Bruno Haible  <bruno@clisp.org>
70263
70264         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70265         gl_FUNC_FREXPL_WORKS.
70266         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70267
70268 2007-05-18  Bruno Haible  <bruno@clisp.org>
70269
70270         * modules/frexpl-nolibm-tests: New file.
70271
70272         * modules/frexpl-nolibm: New file.
70273         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70274
70275 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70276
70277         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70278         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70279         GCC 4.2, which otherwise issues a lot of warnings.
70280         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70281         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70282         Likewise.
70283         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70284         * modules/iconv_open (iconv.h): Likewise.
70285         * modules/locale (locale.h): Likewise.
70286         * modules/netinet_in (netinet/in.h): Likewise.
70287         * modules/sys_select (sys_select.h): Likewise.
70288         * modules/sys_socket (sys/socket.h): Likewise.
70289         * modules/sys_stat (sys/stat.h): Likewise.
70290         * modules/sysexits (sysexits.h): Likewise.
70291         * modules/unistd (unistd.h): Likewise.
70292
70293 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70294
70295         * modules/closein-tests (Makefile.am): Distribute
70296         `test-closein.sh'.
70297
70298 2007-05-17  Bruno Haible  <bruno@clisp.org>
70299
70300         * tests/test-printf-posix.output: Renamed from
70301         tests/test-fprintf-posix.out.
70302         * modules/fprintf-posix-tests: Update.
70303         * modules/printf-posix-tests: Update.
70304         * modules/vfprintf-posix-tests: Update.
70305         * modules/vprintf-posix-tests: Update.
70306         * tests/test-fprintf-posix.sh: Update.
70307         * tests/test-printf-posix.sh: Update.
70308         * tests/test-vfprintf-posix.sh: Update.
70309         * tests/test-vprintf-posix.sh: Update.
70310         Reported by Ralf Wildenhues.
70311
70312 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70313
70314         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70315         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70316         GCC 4.2, which otherwise issues a lot of warnings.
70317         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70318         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70319         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70320         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70321         it should no longer be needed.
70322         * lib/string_.h: Likewise.
70323         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70324         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70325         * modules/inttypes (inttypes.h): Likewise.
70326         * modules/math (math.h): Likewise.
70327         * modules/search (search.h): Likewise.
70328         * modules/signal (signal.h): Likewise.
70329         * modules/stdint (stdint.h): Likewise.
70330         * modules/stdio (stdio.h): Likewise.
70331         * modules/stdlib (stdlib.h): Likewise.
70332         * modules/string (string.h): Likewise.
70333         * modules/sys_time (sys/time.h): Likewise.
70334         * modules/time (time.h): Likewise.
70335         * modules/wchar (wchar.h): Likewise.
70336         * modules/wctype (wtype.h): Likewise.
70337
70338 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70339
70340         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70341
70342 2007-05-13  Bruno Haible  <bruno@clisp.org>
70343
70344         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70345         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70346         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70347         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70348         (gl_PREREQ_STRTOK_R): Don't require it here.
70349
70350 2007-05-13  Bruno Haible  <bruno@clisp.org>
70351
70352         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70353         when used in C++ mode.
70354
70355 2007-05-12  Bruno Haible  <bruno@clisp.org>
70356
70357         * lib/linebuffer.h: Tweak doc.
70358         * lib/linebuffer.c: Likewise.
70359
70360 2007-05-12  James Youngman  <jay@gnu.org>
70361
70362         * lib/linebuffer.c (readlinebuffer_delim): New function,
70363         like readlinebuffer, but use a caller-specified delimiter.
70364         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70365         as the delimiter.
70366         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70367
70368 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70369
70370         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70371         * modules/openat (Files): Remove openat-die.c.
70372         (Depends-on): Add openat-die.
70373         * modules/openat-die: New module.
70374
70375 2007-05-06  Bruno Haible  <bruno@clisp.org>
70376
70377         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70378         Update with info about Cygwin.
70379         * doc/functions/fprintf.texi: Update.
70380         * doc/functions/printf.texi: Update.
70381         * doc/functions/snprintf.texi: Update.
70382         * doc/functions/sprintf.texi: Update.
70383         * doc/functions/vfprintf.texi: Update.
70384         * doc/functions/vprintf.texi: Update.
70385         * doc/functions/vsnprintf.texi: Update.
70386         * doc/functions/vsprintf.texi: Update.
70387         Reported by Eric Blake.
70388
70389 2007-05-06  Bruno Haible  <bruno@clisp.org>
70390
70391         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70392         padding ourselves for the floating-point directives.
70393         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70394         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70396         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70397         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70398         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70399         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70400         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70401         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70402         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70403         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70404         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70405         * tests/test-snprintf-posix.h (test_function): Also check the width
70406         and some flags in the %f directive.
70407         * tests/test-sprintf-posix.h (test_function): Likewise.
70408         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70409         * tests/test-vasprintf-posix.c (test_function): Likewise.
70410         * doc/functions/fprintf.texi: Update.
70411         * doc/functions/printf.texi: Update.
70412         * doc/functions/snprintf.texi: Update.
70413         * doc/functions/sprintf.texi: Update.
70414         * doc/functions/vfprintf.texi: Update.
70415         * doc/functions/vprintf.texi: Update.
70416         * doc/functions/vsnprintf.texi: Update.
70417         * doc/functions/vsprintf.texi: Update.
70418
70419 2007-05-06  Bruno Haible  <bruno@clisp.org>
70420
70421         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70422         pass the ' flag character to sprintf or snprintf.
70423         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70424         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70425         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70426         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70427         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70428         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70429         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70432         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70435         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70436         flag.
70437         * tests/test-sprintf-posix.h (test_function): Likewise.
70438         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70439         * tests/test-vasprintf-posix.c (test_function): Likewise.
70440         * doc/functions/fprintf.texi: Update.
70441         * doc/functions/printf.texi: Update.
70442         * doc/functions/snprintf.texi: Update.
70443         * doc/functions/sprintf.texi: Update.
70444         * doc/functions/vfprintf.texi: Update.
70445         * doc/functions/vprintf.texi: Update.
70446         * doc/functions/vsnprintf.texi: Update.
70447         * doc/functions/vsprintf.texi: Update.
70448
70449 2007-05-01  Bruno Haible  <bruno@clisp.org>
70450
70451         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70452
70453 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70454
70455         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70456         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70457
70458 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70459
70460         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70461         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70462         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70463
70464 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70465
70466         * lib/argp-help.c (struct hol_entry): New member `ord'.
70467         (HOL_ENTRY_PTRCMP): Use ord for comparison
70468         (hol_sort): Initialize ord.
70469
70470 2007-05-01  Bruno Haible  <bruno@clisp.org>
70471
70472         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70473         Reported by Eric Blake.
70474         * doc/gnulib.texi (Function Substitutes): Update.
70475
70476 2007-05-01  Bruno Haible  <bruno@clisp.org>
70477
70478         * doc/functions.texi: Remove file, now redundant through
70479         doc/functions/*.texi.
70480
70481 2007-05-01  Bruno Haible  <bruno@clisp.org>
70482
70483         * modules/argp (Depends-on): Add sleep.
70484
70485 2007-05-01  Bruno Haible  <bruno@clisp.org>
70486
70487         * modules/sleep-tests: New file.
70488         * tests/test-sleep.c: New file.
70489
70490         * modules/sleep: New file.
70491         * lib/sleep.c: New file.
70492         * m4/sleep.m4: New file.
70493         * lib/unistd_.h (sleep): New declaration.
70494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70495         HAVE_SLEEP.
70496         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70497         * doc/functions/sleep.texi: Document the sleep module.
70498
70499 2007-05-01  Bruno Haible  <bruno@clisp.org>
70500
70501         * lib/sigprocmask.h: Remove file.
70502         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70503         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70504         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70505         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70506         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70507         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70508         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70509         HAVE_SIGSET_T as a shell variable.
70510         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70511         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70512         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70513         (Depends-on): Add signal. Remove verify.
70514         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70515         (Include): Mention <signal.h> instead of sigprocmask.h.
70516         * NEWS: Mention the change.
70517         * lib/fatal-signal.c: Don't include sigprocmask.h.
70518
70519 2007-05-01  Bruno Haible  <bruno@clisp.org>
70520
70521         * modules/signal: New file.
70522         * lib/signal_.h: New file.
70523         * m4/signal_h.m4: New file.
70524
70525 2007-05-01  Bruno Haible  <bruno@clisp.org>
70526
70527         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70528         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70529         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70530         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70531
70532 2007-05-01  Bruno Haible  <bruno@clisp.org>
70533
70534         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70535         configure time.
70536         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70537         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70538         * modules/sys_stat (Makefile.am): Substitute their values into
70539         sys/stat.h.
70540
70541 2007-05-01  Bruno Haible  <bruno@clisp.org>
70542
70543         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70544         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70545         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70546
70547 2007-05-01  Bruno Haible  <bruno@clisp.org>
70548
70549         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70550         'assert' module here.
70551
70552 2007-05-01  Bruno Haible  <bruno@clisp.org>
70553
70554         * doc/functions/*.texi: New files.
70555         * doc/functions/google-ranking.txt: New file.
70556         * doc/gnulib.texi (Function Substitutes): New chapter.
70557         (ctime, inet_ntoa): Remove sections.
70558         * doc/ctime.texi: Remove file.
70559         * doc/inet_ntoa.texi: Remove file.
70560         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70561         dependencies.
70562         (%.info): New rule, specifying a --reference-limit.
70563
70564 2007-05-01  Bruno Haible  <bruno@clisp.org>
70565
70566         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70567
70568 2007-05-01  Bruno Haible  <bruno@clisp.org>
70569
70570         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70571         the portability of 'mkdir' to mingw systems.
70572
70573 2007-05-01  Bruno Haible  <bruno@clisp.org>
70574
70575         * doc/headers/google-ranking.txt: New file.
70576
70577 2007-04-30  Eric Blake  <ebb9@byu.net>
70578
70579         Prefer fseeko to fseek.
70580         * modules/getpass (Depends-on): Add fseeko.
70581         * lib/getpass.c (getpass): Use fseeko, not fseek.
70582
70583 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70584
70585         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70586         assumes the sorting is stable, while most qsort implementations
70587         are not.  Use argument addresses to ensure they never compare as
70588         equal.
70589
70590         * tests/test-argp-2.sh (usage-indent test): Fix output
70591         (func_compare): Restore diff options
70592         * tests/test-argp.c: Restore #include "progname.h"
70593
70594 2007-04-29  Bruno Haible  <bruno@clisp.org>
70595
70596         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70597         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70598         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70599         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70600         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70601         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70602         (TESTS, check_PROGRAMS): Add test-snprintf.
70603         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70604         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70605         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70606         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70607         assertions that fail on HP-UX, OSF/1, or IRIX.
70608         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70609
70610 2007-04-29  Bruno Haible  <bruno@clisp.org>
70611
70612         * MODULES.html.sh (posix_functions): Remove 'contents'.
70613
70614 2007-04-29  Karl Berry  <karl@gnu.org>
70615
70616         * config/srclist.txt (gendocs_template_min): new entry.
70617
70618 2007-04-29  Bruno Haible  <bruno@clisp.org>
70619
70620         Work around fpurge bug on BSD systems.
70621         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70622         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70623         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70624         fpurge to rpl_fpurge if the system already has this function.
70625         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70626         the case where the system already has this function. Correct invariants
70627         on BSD systems.
70628         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70629         BSD systems.
70630
70631 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70632
70633         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70634         proposed by Sven Verdoolaege.
70635
70636         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70637         options.
70638         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70639         (usage and help tests): Update
70640
70641 2007-04-29  Bruno Haible  <bruno@clisp.org>
70642
70643         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70644         Print more information in case of failure. Disable a test on BeOS.
70645
70646 2007-04-29  Bruno Haible  <bruno@clisp.org>
70647
70648         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70649         This helps debugging on systems on which no gdb is available.
70650
70651 2007-04-29  Bruno Haible  <bruno@clisp.org>
70652
70653         * lib/freading.h: Improve comments.
70654         * lib/fwriting.h: Likewise.
70655         * tests/test-freading.c (main): Don't check freading immediately after
70656         repositioning. Needed for glibc.
70657
70658 2007-04-29  Bruno Haible  <bruno@clisp.org>
70659
70660         * lib/freading.c (freading): Trivial simplification.
70661
70662 2007-04-28  Bruno Haible  <bruno@clisp.org>
70663
70664         * tests/test-fwriting.c (main): Also test the interaction between
70665         fflush and fwriting.
70666         * modules/fwriting-tests (Depends-on): Add fflush.
70667
70668         * tests/test-freading.c (main): Also test the interaction between
70669         fflush and freading.
70670         * modules/freading-tests (Depends-on): Add fflush.
70671
70672 2007-04-28  Bruno Haible  <bruno@clisp.org>
70673
70674         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70675         fseeko and ftello.
70676         Suggested by Eric Blake.
70677
70678 2007-04-28  Jim Meyering  <jim@meyering.net>
70679
70680         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70681         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70682         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70683
70684 2007-04-27  Eric Blake  <ebb9@byu.net>
70685
70686         * doc/headers/assert.texi (assert.h): Document assert module use.
70687
70688 2007-04-27  Bruno Haible  <bruno@clisp.org>
70689
70690         * doc/headers/*.texi: New files.
70691         * doc/gnulib.texi (Header File Substitutes): New chapter.
70692         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70693         dependencies.
70694         (standards.info ,standards.html, standards.dvi): Update dependencies.
70695         (mostlyclean, clean): New targets.
70696
70697 2007-04-27  Bruno Haible  <bruno@clisp.org>
70698
70699         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70700         * modules/sysexits (Files, Makefile.am): Update.
70701
70702         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70703         * modules/sys_socket (Files, Makefile.am): Update.
70704
70705         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70706         * modules/sys_stat (Files, Makefile.am): Update.
70707
70708 2007-04-27  Eric Blake  <ebb9@byu.net>
70709
70710         * lib/freading.h: Improve comments.
70711         * lib/fwriting.h: Likewise.
70712         * lib/fflush.c: Likewise.
70713
70714         Fix closein for mingw.
70715         * modules/closein-tests: Add tests for closein.
70716         * tests/test-closein.c: New file.
70717         * tests/test-closein.sh: Likewise.
70718         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70719         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70720
70721 2007-04-27  Bruno Haible  <bruno@clisp.org>
70722
70723         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70724         version is < 6.
70725         * lib/math_.h [__DECC]: Likewise.
70726         * lib/stdio_.h [__DECC]: Likewise.
70727         * lib/stdlib_.h [__DECC]: Likewise.
70728         * lib/string_.h [__DECC]: Likewise.
70729         * lib/time_.h [__DECC]: Likewise.
70730         * lib/wchar_.h [__DECC]: Likewise.
70731         * lib/wctype_.h [__DECC]: Likewise.
70732
70733 2007-04-27  Bruno Haible  <bruno@clisp.org>
70734
70735         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70736
70737 2007-04-27  Bruno Haible  <bruno@clisp.org>
70738
70739         * lib/fflush.c: Add comments.
70740         * modules/fpurge-tests (Depends-on): Add fflush.
70741         * modules/freadable-tests (Depends-on): Likewise.
70742         * modules/fwritable-tests (Depends-on): Likewise.
70743
70744 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70745
70746         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70747         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70748         Report by Bruno Haible <bruno@clisp.org>.
70749
70750 2007-04-26  Eric Blake  <ebb9@byu.net>
70751
70752         Fix fflush on mingw.
70753         * modules/fflush (Depends-on): Add freading.
70754         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70755         but unread data.
70756
70757 2007-04-26  Eric Blake  <ebb9@byu.net>
70758         and Bruno Haible  <bruno@clisp.org>
70759
70760         Implement freading and fwriting.
70761         * lib/freading.c: New file.
70762         * lib/freading.h: Likewise.
70763         * m4/freading.m4: Likewise.
70764         * modules/freading: Likewise.
70765         * modules/freading-tests: Likewise.
70766         * tests/test-freading.c: Likewise.
70767         * lib/fwriting.c: New file.
70768         * lib/fwriting.h: Likewise.
70769         * m4/fwriting.m4: Likewise.
70770         * modules/fwriting: Likewise.
70771         * modules/fwriting-tests: Likewise.
70772         * tests/test-fwriting.c: Likewise.
70773         * MODULES.html.sh (File stream based Input/Output): Mention them.
70774
70775 2007-04-26  Bruno Haible  <bruno@clisp.org>
70776
70777         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70778         'long' when we assume it.
70779         Suggested by Eric Blake.
70780
70781 2007-04-26  Bruno Haible  <bruno@clisp.org>
70782
70783         Ensure fseeko, ftello are declared on glibc systems.
70784         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70785         * modules/fseeko (configure.ac-early): Likewise.
70786         * modules/ftello (configure.ac-early): Likewise.
70787         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70788         AC_FUNC_FSEEKO for this.
70789         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70790         (gl_CHECK_FSEEKO): Remove macro.
70791
70792 2007-04-26  Bruno Haible  <bruno@clisp.org>
70793
70794         * tests/test-fflush.c (main): Also check the ftell result after
70795         fflush and fseek/fseeko.
70796         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70797         file descriptor position cache in the stream.
70798         * lib/fseeko.c (rpl_fseeko): Likewise.
70799
70800 2007-04-26  Bruno Haible  <bruno@clisp.org>
70801
70802         * modules/fflush-tests (Depends-on): Add fseeko.
70803
70804 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70805             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70806
70807         * lib/argz_.h: ensure error_t definition is obtained in same
70808         mechanism system argz.h would have.
70809         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70810         argz facilities are known bad.  Err on the side of caution if
70811         cross-compiling.
70812
70813 2007-04-25  Eric Blake  <ebb9@byu.net>
70814
70815         * lib/fpurge.c (includes): Use stdlib.h for free.
70816         * tests/test-fflush.c (main): Also test fflush-fseeko.
70817
70818 2007-04-25  Bruno Haible  <bruno@clisp.org>
70819
70820         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70821         * lib/fseeko.c: New file.
70822         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70823         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70824         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70825         gl_FUNC_FSEEKO.
70826         (gl_FUNC_FSEEKO): Invoke it.
70827         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70828         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70829         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70830
70831 2007-04-25  Bruno Haible  <bruno@clisp.org>
70832
70833         * modules/fflush (Depends-on): Add ftello.
70834
70835 2007-04-25  Bruno Haible  <bruno@clisp.org>
70836
70837         * modules/ftello-tests: New file.
70838         * tests/test-ftello.c: New file.
70839
70840         * modules/ftello: New file.
70841         * m4/ftello.m4: New file.
70842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70843         HAVE_FTELLO.
70844         * lib/stdio_.h (ftello): New declaration.
70845         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70846         HAVE_FTELLO.
70847
70848 2007-04-25  Bruno Haible  <bruno@clisp.org>
70849
70850         * modules/fseeko-tests: New file.
70851         * tests/test-fseeko.c: New file.
70852
70853         * modules/fseeko: New file.
70854         * m4/fseeko.m4: New file.
70855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70856         HAVE_FSEEKO.
70857         * lib/stdio_.h (fseeko): New declaration.
70858         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70859         HAVE_FSEEKO.
70860
70861 2007-04-25  Bruno Haible  <bruno@clisp.org>
70862
70863         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
70864
70865 2007-04-25  Bruno Haible  <bruno@clisp.org>
70866
70867         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
70868         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
70869         * tests/test-unistd.c: Likewise.
70870         * tests/test-fcntl.c: Likewise.
70871
70872 2007-04-23  Eric Blake  <ebb9@byu.net>
70873
70874         * lib/fflush.c: Fix missing include.
70875         Reported by Bruno Haible.
70876
70877 2007-04-23  Bruno Haible  <bruno@clisp.org>
70878
70879         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
70880         Reported by Eric Blake.
70881
70882 2007-04-23  Bruno Haible  <bruno@clisp.org>
70883
70884         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
70885
70886 2007-04-23  Bruno Haible  <bruno@clisp.org>
70887
70888         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
70889
70890 2007-04-23  Bruno Haible  <bruno@clisp.org>
70891
70892         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
70893         Needed on HP-UX 11.
70894
70895 2007-04-16  Eric Blake  <ebb9@byu.net>
70896
70897         Make fflush rely on fpurge.
70898         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
70899         open coding all variants.
70900         * modules/fflush (Depends-on): Add fpurge and unistd.
70901         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
70902         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
70903
70904         Fix --with-tests compilation on cygwin.
70905         * modules/argmatch-tests (Makefile.am): List gnulib library first
70906         in LDADD.
70907         * modules/argp-tests (Makefile.am): Likewise.
70908         * modules/array-list-tests (Makefile.am): Likewise.
70909         * modules/array-oset-tests (Makefile.am): Likewise.
70910         * modules/avltree-list-tests (Makefile.am): Likewise.
70911         * modules/avltree-oset-tests (Makefile.am): Likewise.
70912         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70913         * modules/carray-list-tests (Makefile.am): Likewise.
70914         * modules/dirname-tests (Makefile.am): Likewise.
70915         * modules/frexp-tests (Makefile.am): Likewise.
70916         * modules/isnanl-tests (Makefile.am): Likewise.
70917         * modules/linked-list-tests (Makefile.am): Likewise.
70918         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70919         * modules/lock-tests (Makefile.am): Likewise.
70920         * modules/rbtree-list-tests (Makefile.am): Likewise.
70921         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70922         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70923         * modules/tls-tests (Makefile.am): Likewise.
70924         * modules/tsearch-tests (Makefile.am): Likewise.
70925         * modules/xvasprintf-tests (Makefile.am): Likewise.
70926
70927         Fix fpurge for cygwin.
70928         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70929         value.
70930         * modules/fpurge-tests (Depends-on): Clean up trash.
70931
70932 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70933
70934         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70935
70936         * m4/autobuild.m4: Re-indent.
70937
70938 2007-04-13  Bruno Haible  <bruno@clisp.org>
70939
70940         * modules/fpurge-tests: New file.
70941         * tests/test-fpurge.c: New file.
70942
70943         * modules/fpurge: New file.
70944         * lib/fpurge.h: New file.
70945         * lib/fpurge.c: New file.
70946         * m4/fpurge.m4: New file.
70947
70948 2007-04-13  Bruno Haible  <bruno@clisp.org>
70949
70950         * modules/fbufmode-tests: New file.
70951         * tests/test-fbufmode.c: New file.
70952
70953         * modules/fbufmode: New file.
70954         * lib/fbufmode.h: New file.
70955         * lib/fbufmode.c: New file.
70956         * m4/fbufmode.m4: New file.
70957
70958 2007-04-13  Bruno Haible  <bruno@clisp.org>
70959
70960         * modules/fwritable-tests: New file.
70961         * tests/test-fwritable.c: New file.
70962
70963         * modules/fwritable: New file.
70964         * lib/fwritable.h: New file.
70965         * lib/fwritable.c: New file.
70966         * m4/fwritable.m4: New file.
70967
70968 2007-04-13  Bruno Haible  <bruno@clisp.org>
70969
70970         * modules/freadable-tests: New file.
70971         * tests/test-freadable.c: New file.
70972
70973         * modules/freadable: New file.
70974         * lib/freadable.h: New file.
70975         * lib/freadable.c: New file.
70976         * m4/freadable.m4: New file.
70977
70978 2007-04-13  Bruno Haible  <bruno@clisp.org>
70979
70980         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70981         MOSTLYCLEANFILES.
70982
70983 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70984
70985         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70986         gzip bootstrap.conf to avoid dragging in i18n machinery.
70987         (gnulib_tool_option): Use it.
70988
70989 2007-04-13  Bruno Haible  <bruno@clisp.org>
70990
70991         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70992         %F directives.
70993         * tests/test-vasprintf-posix.c (test_function): Likewise.
70994         * tests/test-snprintf-posix.h (test_function): Likewise.
70995         * tests/test-sprintf-posix.h (test_function): Likewise.
70996         * tests/test-fprintf-posix.h (test_function): Likewise.
70997         * tests/test-printf-posix.h (test_function): Likewise.
70998         * tests/test-fprintf-posix.out: Likewise.
70999
71000 2007-04-13  Bruno Haible  <bruno@clisp.org>
71001
71002         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71003         * modules/tls-tests (configure.ac): Likewise.
71004         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71005
71006 2007-04-13  Bruno Haible  <bruno@clisp.org>
71007
71008         * lib/tls.c (glthread_tls_get): Fix return type.
71009         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71010
71011 2007-04-12  Eric Blake  <ebb9@byu.net>
71012
71013         * modules/gettime (Depends-on): Remove gettime.
71014         Reported by Dmitry V. Levin.
71015
71016 2007-04-12  Bruno Haible  <bruno@clisp.org>
71017
71018         * modules/fflush (Include): Mention <stdio.h>.
71019         * modules/strtoimax (Include): Mention <inttypes.h>.
71020         * modules/strtoumax (Include): Likewise.
71021
71022 2007-04-12  Eric Blake  <ebb9@byu.net>
71023
71024         * .cvsignore: New file.
71025         * .gitignore: Likewise.
71026
71027 2007-04-12  Bruno Haible  <bruno@clisp.org>
71028
71029         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71030         not before, since $(LDADD) often contains libgnu.a.
71031         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71032         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71033         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71034         Needed on Cygwin.
71035
71036 2007-04-12  Eric Blake  <ebb9@byu.net>
71037
71038         Work around glibc's failure to flush stdin on fclose.
71039         * lib/closein.c (close_stdin): Flush stdin before closing.
71040
71041         Work around glibc's failure to reset seekable stdin on exit.
71042         * modules/closein: New module.
71043         * lib/closein.c: New file.
71044         * lib/closein.h: Likewise.
71045         * m4/closein.m4: Likewise.
71046         * MODULES.html.sh (File stream based Input/Output): Document it.
71047
71048 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71049
71050         * gnulib-tool: Rename generated 'autobuild' script to
71051         'do-autobuild' in --create-megatestdir output.
71052
71053         * doc/gnulib.texi (Build robot for gnulib): Fix.
71054
71055 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71056
71057         * modules/sysexits (Depends-on): Add absolute-header.
71058
71059 2007-04-12  Eric Blake  <ebb9@byu.net>
71060
71061         No need to preserve errno on success.
71062         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71063         Reported by Bruno Haible.
71064
71065 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71066
71067         * MODULES.html.sh (Support for maintaining and releasing
71068         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71069
71070 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71071
71072         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71073
71074 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71075
71076         * modules/autobuild: New module.
71077
71078         * m4/autobuild.m4: New file.
71079
71080 2007-04-11  Bruno Haible  <bruno@clisp.org>
71081
71082         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71083         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71084         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71086         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71087         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71088         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71089         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71090         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71091         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71092         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71093         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71094         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71095         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71096         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71097         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71099         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71100         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71101         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71102         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71103         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71104         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71105         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71106         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71107         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71108         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71109         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71110         Reported by Eric Blake.
71111
71112 2007-04-11  Bruno Haible  <bruno@clisp.org>
71113
71114         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71115
71116 2007-04-10  Bruno Haible  <bruno@clisp.org>
71117
71118         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71119         for NaN and Infinity. Needed on FreeBSD 6.1.
71120         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71121         regarding results for "%010a" of Infinity and NaN.
71122         * tests/test-vasprintf-posix.c (test_function): Likewise.
71123         * tests/test-snprintf-posix.h (test_function): Likewise.
71124         * tests/test-sprintf-posix.h (test_function): Likewise.
71125         * tests/test-fprintf-posix.h (test_function): Likewise.
71126         * tests/test-printf-posix.h (test_function): Likewise.
71127         * tests/test-fprintf-posix.out: Likewise.
71128
71129 2007-04-10  Bruno Haible  <bruno@clisp.org>
71130
71131         * modules/locale-tests: New file.
71132         * tests/test-locale.c: New file.
71133
71134         * modules/locale: New file.
71135         * lib/locale_.h: New file.
71136         * m4/locale_h.m4: New file.
71137
71138 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71139             Bruno Haible  <bruno@clisp.org>
71140
71141         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71142         be determined, test for availability of the copysignf, copysign,
71143         copysignl functions.
71144         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71145         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71146         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71147
71148 2007-04-09  Eric Blake  <ebb9@byu.net>
71149
71150         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71151         * modules/stdio (Makefile.am): Support fflush.
71152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71153         * modules/fflush: New file.
71154         * lib/fflush.c: Likewise.
71155         * m4/fflush.m4: Likewise.
71156         * modules/fflush-tests: New test.
71157         * tests/test-fflush.c: Likewise.
71158         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71159
71160 2007-04-06  Bruno Haible  <bruno@clisp.org>
71161
71162         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71163         (VASNPRINTF): Use signbit for faster determination whether to print a
71164         minus sign.
71165         * modules/vasnprintf (Files): Remove lib/float+.h.
71166         * modules/fprintf-posix (Depends-on): Add signbit.
71167         * modules/snprintf-posix (Depends-on): Likewise.
71168         * modules/sprintf-posix (Depends-on): Likewise.
71169         * modules/vasnprintf-posix (Depends-on): Likewise.
71170         * modules/vasprintf-posix (Depends-on): Likewise.
71171         * modules/vfprintf-posix (Depends-on): Likewise.
71172         * modules/vsnprintf-posix (Depends-on): Likewise.
71173         * modules/vsprintf-posix (Depends-on): Likewise.
71174
71175 2007-04-06  Bruno Haible  <bruno@clisp.org>
71176
71177         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71178         * tests/test-frexpl.c (main): Likewise.
71179         * tests/test-ldexpl.c (main): Likewise.
71180         * modules/frexp-tests (Depends-on): Add signbit.
71181         * modules/frexpl-tests (Depdends-on): Likewise.
71182         * modules/ldexpl-tests (Depdends-on): Likewise.
71183
71184 2007-04-06  Bruno Haible  <bruno@clisp.org>
71185
71186         * modules/signbit-tests: New file.
71187         * tests/test-signbit.c: New file.
71188
71189         * modules/signbit: New file.
71190         * lib/signbitf.c: New file.
71191         * lib/signbitd.c: New file.
71192         * lib/signbitl.c: New file.
71193         * m4/signbit.m4: New file.
71194         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71195         (signbit): New macro.
71196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71197         REPLACE_SIGNBIT.
71198         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71199         REPLACE_FREXPL into math.h.
71200
71201 2007-04-06  Bruno Haible  <bruno@clisp.org>
71202
71203         * modules/isnanf-nolibm-tests: New file.
71204         * tests/test-isnanf.c: New file.
71205
71206         * modules/isnanf-nolibm: New file.
71207         * lib/isnanf.h: New file.
71208         * lib/isnanf.c: New file.
71209         * lib/isnan.c: Consider the USE_FLOAT macro.
71210         * m4/isnanf.m4: New file.
71211
71212 2007-04-06  Bruno Haible  <bruno@clisp.org>
71213
71214         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71215         (Link): New section.
71216
71217         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71218
71219 2007-04-06  Bruno Haible  <bruno@clisp.org>
71220
71221         Assume the 'long double' type.
71222         * m4/longdouble.m4: Remove file.
71223         * config/srclist.txt: Don't mention longdouble.m4.
71224         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71225         * lib/float+.h: Likewise.
71226         * lib/frexp.c: Likewise.
71227         * lib/printf-args.h: Likewise.
71228         * lib/printf-args.c: Likewise.
71229         * lib/printf-frexp.c: Likewise.
71230         * lib/printf-parse.c: Likewise.
71231         * lib/vasnprintf.c: Likewise.
71232         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71233         * m4/intl.m4: Likewise.
71234         * m4/isnanl.m4: Likewise.
71235         * m4/printf.m4: Likewise.
71236         * m4/printf-frexpl.m4: Likewise.
71237         * m4/vasnprintf.m4: Likewise.
71238         * modules/allocsa (Files): Remove m4/longdouble.m4.
71239         * modules/gettext (Files): Likewise.
71240         * modules/relocatable-prog-wrapper (Files): Likewise.
71241         * modules/vasnprintf (Files): Likewise.
71242         * modules/isnanl (Files): Likewise.
71243         (Include): Simplify.
71244         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71245         (Include): Simplify.
71246         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71247         (Include): Simplify.
71248         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71249         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71250         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71251         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71252         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71253         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71254         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71255         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71256         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71257         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71258         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71259         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71260         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71261         * tests/test-isnanl.c: Likewise.
71262         * tests/test-snprintf-posix.h: Likewise.
71263         * tests/test-sprintf-posix.h: Likewise.
71264         * tests/test-vasnprintf-posix.c: Likewise.
71265         * tests/test-vasnprintf-posix2.c: Likewise.
71266         * tests/test-vasprintf-posix.c: Likewise.
71267
71268 2007-04-06  Bruno Haible  <bruno@clisp.org>
71269
71270         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71271         * lib/math_.h [__DECC]: Include the overridden include file through
71272         #include_next, outside the double-inclusion guard.
71273         * lib/stdio_.h [__DECC]: Likewise.
71274         * lib/stdlib_.h [__DECC]: Likewise.
71275         * lib/string_.h [__DECC]: Likewise.
71276         * lib/time_.h [__DECC]: Likewise.
71277         * lib/wchar_.h [__DECC]: Likewise.
71278         * lib/wctype_.h [__DECC]: Likewise.
71279         * lib/inttypes_.h [__DECC]: Likewise.
71280         Reported by Albert Chin <china@thewrittenword.com> in
71281         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71282
71283 2007-04-04  Eric Blake  <ebb9@byu.net>
71284
71285         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71286         1.5.x.
71287
71288 2007-04-04  Bruno Haible  <bruno@clisp.org>
71289
71290         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71291         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71292
71293 2007-04-04  Bruno Haible  <bruno@clisp.org>
71294
71295         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71296         results for "%010a" of Infinity and NaN.
71297         * tests/test-vasprintf-posix.c (test_function): Likewise.
71298         * tests/test-snprintf-posix.h (test_function): Likewise.
71299         * tests/test-sprintf-posix.h (test_function): Likewise.
71300         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71301         * tests/test-printf-posix.h (test_function): Likewise.
71302         * tests/test-fprintf-posix.out: Update.
71303         Needed for FreeBSD 6.1.
71304
71305 2007-04-04  Bruno Haible  <bruno@clisp.org>
71306
71307         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71308         directly used by the gnulib modules nor by gnulib-tool.
71309
71310 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71311
71312         * DEPENDENCIES: Give overall description of version dependency
71313         desirability.  Use more-typical names for apps.
71314         Add shell, coreutils, diffutils, grep, tar, gzip.
71315
71316 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71317
71318         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71319
71320 2007-04-04  Karl Berry  <karl@gnu.org>
71321
71322         * MODULES.html.sh (func_module): missing '.
71323
71324 2007-04-03  Bruno Haible  <bruno@clisp.org>
71325
71326         * modules/argmatch-tests (Makefile.am): New variable
71327         test_argmatch_LDADD.
71328         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71329         * modules/array-list-tests (Makefile.am): New variable
71330         test_array_list_LDADD.
71331         * modules/array-oset-tests (Makefile.am): New variable
71332         test_array_oset_LDADD.
71333         * modules/avltree-list-tests (Makefile.am): New variable
71334         test_avltree_list_LDADD.
71335         * modules/avltree-oset-tests (Makefile.am): New variable
71336         test_avltree_oset_LDADD.
71337         * modules/avltreehash-list-tests (Makefile.am): New variable
71338         test_avltreehash_list_LDADD.
71339         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71340         test_canonicalize_lgpl_LDADD.
71341         * modules/carray-list-tests (Makefile.am): New variable
71342         test_carray_list_LDADD.
71343         * modules/dirname-tests (Makefile.am): New variable
71344         test_dirname_LDADD.
71345         * modules/linked-list-tests (Makefile.am): New variable
71346         test_linked_list_LDADD.
71347         * modules/linkedhash-list-tests (Makefile.am): New variable
71348         test_linkedhash_list_LDADD.
71349         * modules/rbtree-list-tests (Makefile.am): New variable
71350         test_rbtree_list_LDADD.
71351         * modules/rbtree-oset-tests (Makefile.am): New variable
71352         test_rbtree_oset_LDADD.
71353         * modules/rbtreehash-list-tests (Makefile.am): New variable
71354         test_rbtreehash_list_LDADD.
71355         * modules/xvasprintf-tests (Makefile.am): New variable
71356         test_xvasprintf_LDADD.
71357         Reported by Eric Blake.
71358
71359 2007-04-03  Eric Blake  <ebb9@byu.net>
71360
71361         * DEPENDENCIES: Weaken m4 requirements.
71362
71363 2007-04-03  Bruno Haible  <bruno@clisp.org>
71364
71365         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71366         * modules/isnanl-tests (configure.ac): Likewise.
71367
71368 2007-04-03  Ben Pfaff  <blp@gnu.org>
71369
71370         * modules/iconv_open: Add $(srcdir)/ to source directory
71371         references in Makefile fragments that call gperf, to fix VPATH
71372         builds.
71373
71374 2007-04-03  Bruno Haible  <bruno@clisp.org>
71375
71376         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71377         * lib/ldexpl.c: Undo last change.
71378
71379 2007-04-03  Bruno Haible  <bruno@clisp.org>
71380
71381         * modules/printf-frexpl (Depends-on): Undo last change.
71382         (Files): Add m4/ldexpl.m4.
71383
71384 2007-04-03  Bruno Haible  <bruno@clisp.org>
71385
71386         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71387         * modules/isnanl (Link): New section.
71388
71389         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71390         * modules/frexp (Link): New section.
71391
71392         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71393         * modules/frexpl (Link): New section.
71394
71395         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71396         * modules/ldexpl (Link): New section.
71397
71398 2007-04-03  Bruno Haible  <bruno@clisp.org>
71399
71400         * modules/TEMPLATE-EXTENDED: New file.
71401         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71402
71403 2007-04-03  Bruno Haible  <bruno@clisp.org>
71404
71405         * DEPENDENCIES: New file.
71406         Suggested by Simon Josefsson.
71407
71408 2007-04-03  Bruno Haible  <bruno@clisp.org>
71409
71410         * doc/gnulib.texi: Escape @.
71411
71412 2007-04-03  James Youngman  <jay@gnu.org>
71413         and Paul Eggert  <eggert@cs.ucla.edu>
71414
71415         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71416         birthtime on all systems that have birthtime, not just those which
71417         use st_birthtimensec rather than st_birthtim.  Putting zero in
71418         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71419         that the birth time is not available for files on an NFS mount.
71420
71421 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71422
71423         * modules/memxor: Move back from crypto/, suggested by Bruno.
71424         * modules/crypto/hmac-sha1: Fix memxor dependency.
71425
71426         * modules/crypto/gc: Moved from ../.
71427
71428 2007-04-02  Eric Blake  <ebb9@byu.net>
71429
71430         * lib/ldexpl.c (includes): Avoid libm.
71431
71432         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71433
71434 2007-04-02  Bruno Haible  <bruno@clisp.org>
71435
71436         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71437         on IRIX.
71438
71439 2007-04-02  Bruno Haible  <bruno@clisp.org>
71440
71441         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71442         x86 or x86_64 platforms running MacOS X.
71443         Reported by Ryan Schmidt <@ryandesign.com>.
71444
71445 2007-04-02  Bruno Haible  <bruno@clisp.org>
71446
71447         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71448         i386.
71449
71450 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71451
71452         * modules/crypto/arcfour: Moved from ../.
71453         * modules/crypto/arcfour-tests: Moved from ../.
71454         * modules/crypto/arctwo: Moved from ../.
71455         * modules/crypto/arctwo-tests: Moved from ../.
71456         * modules/crypto/des: Moved from ../.
71457         * modules/crypto/des-tests: Moved from ../.
71458         * modules/crypto/gc-arcfour: Moved from ../.
71459         * modules/crypto/gc-arcfour-tests: Moved from ../.
71460         * modules/crypto/gc-arctwo: Moved from ../.
71461         * modules/crypto/gc-arctwo-tests: Moved from ../.
71462         * modules/crypto/gc-des: Moved from ../.
71463         * modules/crypto/gc-des-tests: Moved from ../.
71464         * modules/crypto/gc-hmac-md5: Moved from ../.
71465         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71466         * modules/crypto/gc-hmac-sha1: Moved from ../.
71467         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71468         * modules/crypto/gc-md2: Moved from ../.
71469         * modules/crypto/gc-md2-tests: Moved from ../.
71470         * modules/crypto/gc-md4: Moved from ../.
71471         * modules/crypto/gc-md4-tests: Moved from ../.
71472         * modules/crypto/gc-md5: Moved from ../.
71473         * modules/crypto/gc-md5-tests: Moved from ../.
71474         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71475         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71476         * modules/crypto/gc-random: Moved from ../.
71477         * modules/crypto/gc-rijndael: Moved from ../.
71478         * modules/crypto/gc-rijndael-tests: Moved from ../.
71479         * modules/crypto/gc-sha1: Moved from ../.
71480         * modules/crypto/gc-sha1-tests: Moved from ../.
71481         * modules/crypto/gc-tests: Moved from ../.
71482         * modules/crypto/hmac-md5: Moved from ../.
71483         * modules/crypto/hmac-md5-tests: Moved from ../.
71484         * modules/crypto/hmac-sha1: Moved from ../.
71485         * modules/crypto/hmac-sha1-tests: Moved from ../.
71486         * modules/crypto/md2: Moved from ../.
71487         * modules/crypto/md2-tests: Moved from ../.
71488         * modules/crypto/md4: Moved from ../.
71489         * modules/crypto/md4-tests: Moved from ../.
71490         * modules/crypto/md5: Moved from ../.
71491         * modules/crypto/md5-tests: Moved from ../.
71492         * modules/crypto/memxor: Moved from ../.
71493         * modules/crypto/rijndael: Moved from ../.
71494         * modules/crypto/rijndael-tests: Moved from ../.
71495         * modules/crypto/sha1: Moved from ../.
71496
71497 2007-03-30  James Youngman  <jay@gnu.org>
71498
71499         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71500         rename() to change the ctime of a file (because ctime is unaffected
71501         by rename on jfs2 on AIX 5.1).
71502         (main): Start by doing cleanup, in case a previous run failed leaving
71503         test files behind.
71504
71505 2007-03-31  Bruno Haible  <bruno@clisp.org>
71506
71507         Support old proprietary implementations of iconv.
71508         * modules/iconv_open: New file.
71509         * lib/iconv_.h: New file.
71510         * m4/iconv_h.m4: New file.
71511         * lib/iconv_open.c: New file.
71512         * lib/iconv_open-aix.gperf: New file.
71513         * lib/iconv_open-hpux.gperf: New file.
71514         * lib/iconv_open-irix.gperf: New file.
71515         * lib/iconv_open-osf.gperf: New file.
71516         * m4/iconv_open.m4: New file.
71517         * modules/linebreak (Depends-on): Add iconv_open.
71518         * modules/striconv (Depends-on): Likewise.
71519         * modules/striconveh (Depends-on): Likewise.
71520         * modules/unicodeio (Depends-on): Likewise.
71521         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71522         (iconv_t)(-1).
71523         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71524         conversion if cd is (iconv_t)(-1).
71525         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71526         is not possible.
71527
71528 2007-03-31  Bruno Haible  <bruno@clisp.org>
71529
71530         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71531         work on Solaris either. Protect also second use of "autodetect_jp".
71532
71533 2007-03-31  Bruno Haible  <bruno@clisp.org>
71534
71535         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71536         the function is not present.
71537
71538 2007-03-31  Bruno Haible  <bruno@clisp.org>
71539
71540         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71541         the function is not present.
71542
71543 2007-03-31  Bruno Haible  <bruno@clisp.org>
71544
71545         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71546         a bug in HP-UX iconv_open().
71547
71548 2007-03-31  Bruno Haible  <bruno@clisp.org>
71549
71550         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71551         (Mathematics <math.h>): New section, add fpieee.
71552         (Input/output <stdio.h>): Add fseterr.
71553         (Mathematics <math.h>): New section, add printf-frexp.
71554         (Container data structures): Add sublist.
71555         (Core language properties): Add fpucw, inline.
71556         (Functions for greatest-width integer types <inttypes.h>): Add
71557         imaxabs, imaxdiv, inttypes.
71558         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71559         isnanl-nolibm, ldexp.
71560         (Mathematics <math.h>): New section, add printf-frexpl.
71561         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71562         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71563         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71564         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71565         (Unicode string functions): Add unistr/u*-mbtoucr.
71566         (Java): Add javacomp-script, javaexec-script.
71567         (C#): Add csharpcomp-script, csharpexec-script.
71568         (Support for building libraries and executables): Add havelib,
71569         relocatable-*.
71570         (Support for maintaining and releasing projects): Renamed from
71571         'Support for maintaining and release projects'. Add announce-gen.
71572
71573 2007-03-31  Bruno Haible  <bruno@clisp.org>
71574
71575         * README: Talk primarily about git.
71576         (git and CVS): Renamed from CVS.
71577         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71578         gnulib is available through git.
71579         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71580
71581 2007-03-30  Bruno Haible  <bruno@clisp.org>
71582
71583         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71584         * lib/poll_.h: Likewise.
71585         * lib/stat_.h: Likewise.
71586         * lib/sys_time_.h: Likewise.
71587         * lib/sysexit_.h: Likewise.
71588         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71589         * lib/stdbool_.h: Likewise.
71590         * lib/byteswap_.h: Add double-inclusion guard.
71591
71592 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71593
71594         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71595
71596 2007-03-30  Karl Berry  <karl@gnu.org>
71597
71598         * config/srclist-update: double space after USA in the license
71599         substitution, since that's how it's usually (?) written.
71600
71601 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71602
71603         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71604         reported by Bruno Haible.
71605
71606 2007-03-29  Bruno Haible  <bruno@clisp.org>
71607
71608         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71609         a bug in AIX iconv().
71610
71611 2007-03-29  Bruno Haible  <bruno@clisp.org>
71612
71613         * modules/ldexpl-tests: New file.
71614         * tests/test-ldexpl.c: New file.
71615
71616 2007-03-29  Bruno Haible  <bruno@clisp.org>
71617
71618         * lib/ldexpl.c: Include fpucw.h.
71619         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71620         multiplication.
71621         * modules/ldexpl (Depends-on): Add fpucw.
71622
71623 2007-03-29  Bruno Haible  <bruno@clisp.org>
71624
71625         * modules/ldexpl: New file.
71626         * m4/ldexpl.m4: New file.
71627         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71628         set.
71629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71630         REPLACE_LDEXPL.
71631         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71632         REPLACE_LDEXPL.
71633         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71634         gl_FUNC_LDEXPL_WORKS.
71635         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71636         * modules/mathl (Files): Remove lib/ldexpl.c.
71637         (Depends-on): Add ldexpl.
71638
71639 2007-03-29  Bruno Haible  <bruno@clisp.org>
71640
71641         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71642
71643 2007-03-29  Bruno Haible  <bruno@clisp.org>
71644
71645         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71646         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71647         and possibly also HP-UX.
71648         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71649         work on AIX, IRIX, HP-UX, OSF/1.
71650         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71651         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71652         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71653         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71654         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71655         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71656
71657 2007-03-29  Bruno Haible  <bruno@clisp.org>
71658
71659         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71660
71661 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71662
71663         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71664         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71665
71666 2007-03-29  Eric Blake  <ebb9@byu.net>
71667
71668         * lib/acl-internal.h: Remove redundant include.
71669         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71670         Cygwin when a file is locked.
71671
71672 2007-03-29  Bruno Haible  <bruno@clisp.org>
71673
71674         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71675         file.
71676         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71677
71678 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71679
71680         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71681         try to remove a parent directory if the child couldn't be removed
71682         (except for the first rmdir, which could fail because the child
71683         doesn't exist).  Problem reported by Jeff Blaine in
71684         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71685
71686 2007-03-28  Bruno Haible  <bruno@clisp.org>
71687
71688         * lib/striconveh.c (utf8conv_carefully): New function.
71689         (mem_cd_iconveh_internal): Invoke it.
71690
71691 2007-03-28  Bruno Haible  <bruno@clisp.org>
71692
71693         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71694         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71695         input.
71696         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71697         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71698         unistr/u8-uctomb.
71699
71700 2007-03-28  Bruno Haible  <bruno@clisp.org>
71701
71702         * modules/unistr/u8-mbtoucr: New file.
71703         * lib/unistr/u8-mbtoucr.c: New file.
71704         * modules/unistr/u16-mbtoucr: New file.
71705         * lib/unistr/u16-mbtoucr.c: New file.
71706         * modules/unistr/u16-mbtoucr: New file.
71707         * lib/unistr/u16-mbtoucr.c: New file.
71708         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71709
71710 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71711             Bruno Haible  <bruno@clisp.org>
71712
71713         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71714         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71715         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71716
71717         * m4/stdio_h.m4: Add stubs for vasprintf too.
71718
71719         * modules/stdio: Support vasprintf in sed command.
71720
71721         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71722         vasprintf.h.  Add stdio module indicator.
71723
71724         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71725         vasprintf.h.
71726
71727         * lib/vasprintf.h: File removed.
71728
71729         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71730         * lib/vasprintf.c: Ditto.
71731         * lib/xvasprintf.c: Ditto.
71732         * tests/test-vasprintf-posix.c: Ditto.
71733         * tests/test-vasprintf.c: Ditto.
71734
71735 2007-03-27  Bruno Haible  <bruno@clisp.org>
71736
71737         Make vasnprintf multithread-safe.
71738         * lib/vasnprintf.c (decimal_point_char): New function.
71739         (VASNPRINTF): Use it.
71740         Suggested by Simon Josefsson.
71741
71742 2007-03-27  Eric Blake  <ebb9@byu.net>
71743
71744         Support sub-second birthtime on cygwin.
71745         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71746         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71747         (get_stat_birthtime): Also work with st_birthtim.
71748
71749 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71750
71751         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71752         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71753         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71754         (get_stat_birthtime_ns): Simplify compile-time tests.
71755         (get_stat_birthtime): Change the API to look like
71756         get_stat_mtime etc., except return a negative tv_nsec on error.
71757         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71758         Don't check for "spare" fields.
71759         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71760         or for struct stat.st_birthtime, as these tests aren't used.
71761         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71762
71763 2007-03-27  Bruno Haible  <bruno@clisp.org>
71764
71765         * lib/stat-time.h: Include <sys/stat.h>.
71766
71767 2007-03-27  James Youngman  <jay@gnu.org>
71768
71769         * lib/stat-time.h (get_stat_birthtime): New function for
71770           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71771         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71772           and its variants.
71773         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71774         * modules/stat-time-test: New file.
71775         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71776
71777 2007-03-26  Bruno Haible  <bruno@clisp.org>
71778
71779         Better support of signalling NaNs.
71780         * lib/atanl.c: Include isnanl.h.
71781         (atanl): Perform test for NaN at the beginning of the function and
71782         through a call to isnanl.
71783         * lib/cosl.c: Include isnanl.h.
71784         (cosl): Perform test for NaN at the beginning of the function and
71785         through a call to isnanl.
71786         * lib/ldexpl.c: Include isnanl.h.
71787         (ldexpl): Perform test for NaN through a call to isnanl.
71788         * lib/logl.c: Include isnanl.h.
71789         (logl): Perform test for NaN at the beginning of the function and
71790         through a call to isnanl.
71791         * lib/sinl.c: Include isnanl.h.
71792         (sinl): Perform test for NaN at the beginning of the function and
71793         through a call to isnanl.
71794         * lib/sqrtl.c: Include isnanl.h.
71795         (sqrtl): Perform test for NaN at the beginning of the function and
71796         through a call to isnanl.
71797         * lib/tanl.c: Include isnanl.h.
71798         (tanl): Perform test for NaN at the beginning of the function and
71799         through a call to isnanl.
71800         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71801         * modules/mathl (Depends-on): Add isnanl.
71802
71803 2007-03-26  Eric Blake  <ebb9@byu.net>
71804
71805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71806         regression in logic sense of previous patch.
71807
71808 2007-03-26  Bruno Haible  <bruno@clisp.org>
71809
71810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71811         unportable shell command "if ! ...".
71812         Reported by Ralf Wildenhues.
71813
71814 2007-03-25  Bruno Haible  <bruno@clisp.org>
71815
71816         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71817         <sysexits.h> file, and only add EX_CONFIG.
71818         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71819         absolute file name and whether it is sufficient. Substitute also
71820         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71821         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71822         ABSOLUTE_SYSEXITS_H into sysexits.h.
71823
71824 2007-03-25  Bruno Haible  <bruno@clisp.org>
71825
71826         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71827         hints is NULL.
71828
71829 2007-03-25  Bruno Haible  <bruno@clisp.org>
71830
71831         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71832         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71833
71834 2007-03-25  Bruno Haible  <bruno@clisp.org>
71835
71836         * lib/vasnprintf.c: Include langinfo.h.
71837         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71838         multithread-safe.
71839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71840         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71842         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71843         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71844         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71845         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71848         Reported by Simon Josefsson.
71849
71850 2007-03-25  Bruno Haible  <bruno@clisp.org>
71851
71852         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71853         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71854         * modules/vasnprintf (Depends-on): Add stdint.
71855
71856 2007-03-25  Bruno Haible  <bruno@clisp.org>
71857
71858         * modules/fpieee: New file.
71859         * m4/fpieee.m4: New file.
71860         * modules/isnan-nolibm (Depends-on): Add fpieee.
71861         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71862         * modules/isnanl (Depends-on): Add fpieee.
71863
71864 2007-03-25  Bruno Haible  <bruno@clisp.org>
71865
71866         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
71867
71868 2007-03-25  Bruno Haible  <bruno@clisp.org>
71869
71870         Avoid test failures on IRIX 6.5.
71871         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
71872         (main): Use it.
71873         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
71874         macros.
71875         (main): Use them.
71876
71877 2007-03-25  Bruno Haible  <bruno@clisp.org>
71878
71879         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
71880         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
71881         exists but doesn't work.
71882         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
71883         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
71884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
71885         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
71886         math.h.
71887
71888 2007-03-25  Bruno Haible  <bruno@clisp.org>
71889
71890         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
71891         returns inf. Needed on IRIX 6.5.
71892
71893 2007-03-25  Bruno Haible  <bruno@clisp.org>
71894
71895         * tests/test-frexpl.c: Include isnanl-nolibm.h.
71896         (main): Use isnanl instead of x != x idiom.
71897         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
71898
71899         * tests/test-frexp.c: Include isnan.h.
71900         (main): Use isnan instead of x != x idiom.
71901         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
71902
71903 2007-03-25  Bruno Haible  <bruno@clisp.org>
71904
71905         * tests/test-frexp.c (NaN): New function/macro.
71906         (main): Use it instead of 0.0 / 0.0.
71907         * tests/test-isnan.c (NaN): New function/macro.
71908         (main): Use it instead of 0.0 / 0.0.
71909         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
71910         (test_function): Use it instead of 0.0 / 0.0.
71911         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71912         (test_function): Use it instead of 0.0 / 0.0.
71913         * tests/test-snprintf-posix.h (NaN): New function/macro.
71914         (test_function): Use it instead of 0.0 / 0.0.
71915         * tests/test-sprintf-posix.h (NaN): New function/macro.
71916         (test_function): Use it instead of 0.0 / 0.0.
71917         * tests/test-fprintf-posix.h (NaN): New function/macro.
71918         (test_function): Use it instead of 0.0 / 0.0.
71919         * tests/test-printf-posix.h (NaN): New function/macro.
71920         (test_function): Use it instead of 0.0 / 0.0.
71921
71922         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71923
71924 2007-03-25  Bruno Haible  <bruno@clisp.org>
71925
71926         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71927
71928 2007-03-25  Bruno Haible  <bruno@clisp.org>
71929
71930         * lib/regexec.c (merge_state_with_log): Make static.
71931
71932 2007-03-25  Bruno Haible  <bruno@clisp.org>
71933
71934         * lib/trigl.c (kernel_rem_pio2): Make static.
71935
71936 2007-03-25  Bruno Haible  <bruno@clisp.org>
71937
71938         * lib/sincosl.c (sincosl_table): Make static.
71939
71940 2007-03-25  Bruno Haible  <bruno@clisp.org>
71941
71942         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71943         if the compiler does not support C99.
71944
71945 2007-03-25  Bruno Haible  <bruno@clisp.org>
71946
71947         * modules/time (Makefile.am): Ensure all rule action lines start with a
71948         tab.
71949
71950 2007-03-24  Bruno Haible  <bruno@clisp.org>
71951
71952         * modules/tsearch-tests: New file.
71953         * tests/test-tsearch.sh: New file.
71954         * tests/test-tsearch.c: New file, mostly copied from glibc.
71955
71956         * modules/search-tests: New file.
71957         * tests/test-search.c: New file.
71958
71959         * modules/search: New file.
71960         * lib/search_.h: New file, incorporating lib/tsearch.h.
71961         * m4/search_h.m4: New file.
71962         * lib/tsearch.h: Remove file.
71963         * lib/tsearch.c: Include search.h instead of tsearch.h.
71964         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71965         HAVE_TSEARCH.
71966         * modules/tsearch (Files): Remove lib/tsearch.h.
71967         (Depends-on): Add search.
71968         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71969         (Include): Change tsearch.h into search.h.
71970
71971 2007-03-24  Bruno Haible  <bruno@clisp.org>
71972
71973         * modules/fpucw: New file.
71974         * lib/fpucw.h: New file.
71975         * lib/frexp.c: Include fpucw.h.
71976         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71977         (FUNC): Use them.
71978         * lib/printf-frexp.c: Include fpucw.h.
71979         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71980         (FUNC): Use them.
71981         * lib/vasnprintf.c: Include fpucw.h.
71982         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71983         'long double' calculations.
71984         * tests/test-frexpl.c: Include fpucw.h.
71985         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71986         * tests/test-printf-frexpl.c: Include fpucw.h.
71987         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71988         * modules/frexpl (Depends-on): Add fpucw.
71989         * modules/printf-frexpl (Depends-on): Likewise.
71990         * modules/fprintf-posix (Depends-on): Likewise.
71991         * modules/snprintf-posix (Depends-on): Likewise.
71992         * modules/sprintf-posix (Depends-on): Likewise.
71993         * modules/vasnprintf-posix (Depends-on): Likewise.
71994         * modules/vasprintf-posix (Depends-on): Likewise.
71995         * modules/vfprintf-posix (Depends-on): Likewise.
71996         * modules/vsnprintf-posix (Depends-on): Likewise.
71997         * modules/vsprintf-posix (Depends-on): Likewise.
71998         * modules/frexpl-tests (Depends-on): Likewise.
71999         * modules/printf-frexpl-tests (Depends-on): Likewise.
72000
72001 2007-03-24  Bruno Haible  <bruno@clisp.org>
72002
72003         * lib/float+.h: New file.
72004         * lib/isnan.c: Include float+.h.
72005         (SIZE): New macro.
72006         (FUNC): Compare only SIZE bytes of the value.
72007         * lib/vasnprintf.c: Include float+.h.
72008         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72009         SIZEOF_LDBL or SIZEOF_DBL bytes.
72010         * modules/isnan-nolibm (Files): Add lib/float+.h.
72011         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72012         * modules/isnanl (Files): Add lib/float+.h.
72013         * modules/vasnprintf (Files): Add lib/float+.h.
72014
72015 2007-03-24  Bruno Haible  <bruno@clisp.org>
72016
72017         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72018         include isnanl-nolibm.h.
72019
72020 2007-03-24  Bruno Haible  <bruno@clisp.org>
72021
72022         * tests/test-read-file.c (main): Don't produce spurious output for
72023         expected situations. Make the test fail if it encountered unexpected
72024         results.
72025
72026 2007-03-24  Bruno Haible  <bruno@clisp.org>
72027
72028         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72029         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72030
72031 2007-03-24  Bruno Haible  <bruno@clisp.org>
72032
72033         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72034
72035 2007-03-24  Bruno Haible  <bruno@clisp.org>
72036
72037         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72038         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72039
72040         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72041         * modules/utf8-ucs4: Turn into a symbolic link to module
72042         unistr/u8-mbtouc.
72043
72044         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72045         utf8-ucs4-unsafe.
72046         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72047         unistr/u8-mbtouc-unsafe.
72048
72049         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72050         * modules/utf16-ucs4: Turn into a symbolic link to module
72051         unistr/u16-mbtouc.
72052
72053         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72054         utf16-ucs4-unsafe.
72055         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72056         unistr/u16-mbtouc-unsafe.
72057
72058         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72059         * modules/ucs4-utf8: Turn into a symbolic link to module
72060         unistr/u8-ubtomb.
72061
72062         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72063         * modules/ucs4-utf16: Turn into a symbolic link to module
72064         unistr/u16-ubtomb.
72065
72066 2007-03-24  Bruno Haible  <bruno@clisp.org>
72067
72068         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72069         Enable the function only if HAVE_INLINE.
72070         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72071         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72072         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72073         Enable the function only if HAVE_INLINE.
72074         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72075         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72076         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72077         Enable the function only if HAVE_INLINE.
72078         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72079         Enable the function only if HAVE_INLINE.
72080         * modules/utf8-ucs4: Update.
72081         * modules/utf8-ucs4-unsafe: Update.
72082         * modules/utf16-ucs4: Update.
72083         * modules/utf16-ucs4-unsafe: Update.
72084         * modules/ucs4-utf8: Update.
72085         * modules/ucs4-utf16: Update.
72086
72087 2007-03-24  Bruno Haible  <bruno@clisp.org>
72088
72089         * lib/utf8-ucs4.h: Remove file.
72090         * lib/utf8-ucs4-unsafe.h: Remove file.
72091         * lib/utf16-ucs4.h: Remove file.
72092         * lib/utf16-ucs4-unsafe.h: Remove file.
72093         * lib/ucs4-utf8.h: Remove file.
72094         * lib/ucs4-utf16.h: Remove file.
72095         * lib/unistr.h: Include their previous contents.
72096         * m4/utf-ucs4.m4: Remove file.
72097         * m4/ucs4-utf.m4: Remove file.
72098         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72099         (Depends-on): Add unistr/base.
72100         (configure.ac): Remove gl_UTF_UCS4.
72101         (Makefile.am): Update.
72102         (Include): Change to unistr.h.
72103         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72104         (Depends-on): Add unistr/base.
72105         (configure.ac): Remove gl_UTF_UCS4.
72106         (Makefile.am): Update.
72107         (Include): Change to unistr.h.
72108         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72109         (Depends-on): Add unistr/base.
72110         (configure.ac): Remove gl_UTF_UCS4.
72111         (Makefile.am): Update.
72112         (Include): Change to unistr.h.
72113         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72114         (Depends-on): Add unistr/base.
72115         (configure.ac): Remove gl_UTF_UCS4.
72116         (Makefile.am): Update.
72117         (Include): Change to unistr.h.
72118         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72119         (Depends-on): Add unistr/base.
72120         (configure.ac): Remove gl_UCS4_UTF.
72121         (Makefile.am): Update.
72122         (Include): Change to unistr.h.
72123         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72124         (Depends-on): Add unistr/base.
72125         (configure.ac): Remove gl_UCS4_UTF.
72126         (Makefile.am): Update.
72127         (Include): Change to unistr.h.
72128         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72129         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72130         utf8-ucs4-unsafe.h.
72131         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72132         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72133         utf16-ucs4-unsafe.h.
72134         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72135         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72136         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72137         * lib/unistr/u8-strchr.c: Likewise.
72138         * lib/unistr/u8-strrchr.c: Likewise.
72139         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72140         * lib/unistr/u16-strchr.c: Likewise.
72141         * lib/unistr/u16-strrchr.c: Likewise.
72142         * lib/striconveh.c: Update.
72143         * lib/linebreak.c: Update.
72144
72145 2007-03-24  Bruno Haible  <bruno@clisp.org>
72146
72147         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72148         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72149
72150 2007-03-22  Bruno Haible  <bruno@clisp.org>
72151
72152         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72153
72154 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72155
72156         * MODULES.html.sh (File system functions): New module write-any-file.
72157         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72158         * m4/write-any-file.m4: New files.
72159
72160 2007-03-23  Eric Blake  <ebb9@byu.net>
72161
72162         * gnulib-tool: Rearrange space-tab sequences, since some editors
72163         like to eat them.
72164
72165 2007-03-23  Eric Blake  <ebb9@byu.net>
72166
72167         * lib/version-etc.c (version_etc_va): Update license wording to
72168         be more concise.  Recommended by Richard Stallman.
72169
72170 2007-03-22  Bruno Haible  <bruno@clisp.org>
72171
72172         * lib/poll.c (MSG_PEEK): New fallback definition.
72173
72174 2007-03-22  Bruno Haible  <bruno@clisp.org>
72175
72176         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72177         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72178         (main): Update.
72179         Fixes a compilation error on BeOS.
72180
72181 2007-03-22  Bruno Haible  <bruno@clisp.org>
72182
72183         * modules/frexpl-tests: New file.
72184         * tests/test-frexpl.c: New file.
72185
72186         * modules/frexpl: New file.
72187         * m4/frexpl.m4: New file.
72188         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72189         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72191         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72192         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72193         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72194
72195 2007-03-22  Bruno Haible  <bruno@clisp.org>
72196
72197         * lib/frexpl.c: Share code with lib/frexp.c.
72198         * modules/mathl (Files): Add lib/frexp.c.
72199         (Depends-on): Add isnanl-nolibm.
72200
72201 2007-03-22  Bruno Haible  <bruno@clisp.org>
72202
72203         * modules/printf-frexp (Files): Add m4/frexp.m4.
72204         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72205         only if the found frexp function actually works.
72206
72207 2007-03-22  Bruno Haible  <bruno@clisp.org>
72208
72209         * lib/frexp.c: Remove older implementation that uses divisions.
72210
72211 2007-03-21  Bruno Haible  <bruno@clisp.org>
72212
72213         * modules/frexp-tests: New file.
72214         * tests/test-frexp.c: New file.
72215
72216         * modules/frexp: New file.
72217         * lib/frexp.c: New file.
72218         * m4/frexp.m4: New file.
72219         * lib/math_.h (frexp): New declaration.
72220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72221         REPLACE_FREXP.
72222         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72223
72224 2007-03-21  Bruno Haible  <bruno@clisp.org>
72225
72226         * modules/isnanl-tests: New file.
72227         * tests/test-isnanl.c: New file.
72228
72229         * modules/isnanl: New file.
72230         * lib/isnanl.h: New file.
72231         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72232         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72233         gl_FUNC_ISNANL_WORKS.
72234         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72235         New macros.
72236
72237 2007-03-21  Bruno Haible  <bruno@clisp.org>
72238
72239         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72240         lib/isnanl.h.
72241         (Include): Update.
72242         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72243         * lib/vasnprintf.c: Update.
72244         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72245         tests/test-isnanl.h, remove tests/test-isnanl.c.
72246         (Makefile.am): Update.
72247         * tests/test-isnanl-nolibm.c: New file.
72248         * tests/test-isnanl.h: New file.
72249         * tests/test-isnanl.c: Remove file.
72250
72251 2007-03-21  Jim Meyering  <jim@meyering.net>
72252
72253         When trying to open ".", treat ESTALE like EACCES.
72254         * lib/savewd.c (savewd_save): Resort to forking not just upon
72255         failure with EACCES, but also when errno is ESTALE.
72256
72257 2007-03-20  Bruno Haible  <bruno@clisp.org>
72258
72259         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72260         Needed on AIX 5.1. Reported by Matthew Woehlke.
72261
72262 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         Suggestions by Bruno Haible:
72265         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72266         our own.
72267         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72268         * modules/acl (Depends-on): Add gettext.
72269
72270 2007-03-19  Bruno Haible  <bruno@clisp.org>
72271
72272         * modules/iconvme: Remove file.
72273         * lib/iconvme.h: Remove file.
72274         * lib/iconvme.c: Remove file.
72275         * m4/iconvme.m4: Remove file.
72276
72277 2007-03-19  Bruno Haible  <bruno@clisp.org>
72278
72279         * doc/relocatable-maint.texi: Break long shell script line.
72280         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72281
72282 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72283
72284         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72285         handle file_has_acl.
72286         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72287         * lib/acl.c: Move header inclusions and related macro defns into
72288         lib/acl-internal.h.
72289         (S_ISLNK): Remove defn, since that's now done for us.
72290         (file_has_acl): Move to lib/file-has-acl.c.
72291         Call acl_trivial if available.  This is the crucial part of the fix.
72292         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72293         shared within the library.  Rewrite a bit, partly to make it compatible
72294         with the GNU coding style.
72295         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72296         Remove unnecessary double-quotes.
72297         Don't test for acl_to_text; the build will catch that.
72298         Replace acl_entries if it doesn't exist and it is needed.
72299         Check for -lsec and acl_trivial (as used on Solaris 10).
72300         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72301         lib/file-has-acl.c.
72302         (Depends-on): Add sys_stat, for S_ISLNK.
72303
72304 2007-03-19  Ben Pfaff  <blp@gnu.org>
72305
72306         * doc/gnulib.texi: Fix typos.
72307         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72308
72309 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72310
72311         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72312         If size is zero here, buf must be zero.
72313
72314 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72315
72316         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72317         <bruno@clisp.org>.
72318
72319 2007-03-18  Bruno Haible  <bruno@clisp.org>
72320
72321         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72322         Suggested by Eric Blake.
72323
72324 2007-03-18  Ben Pfaff  <blp@gnu.org>
72325
72326         * doc/relocatable.texi: Recommend using as prefix a directory
72327         that does not exist and will never be created.  Based on
72328         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72329         and others.
72330
72331 2007-03-17  Bruno Haible  <bruno@clisp.org>
72332
72333         * lib/fchownat.c: Include lchown.h.
72334
72335 2007-03-17  Bruno Haible  <bruno@clisp.org>
72336
72337         Fix endless loop when the given allocated size was > INT_MAX.
72338         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72339         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72340         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72341         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72342         * lib/sprintf.c (sprintf): Likewise.
72343
72344 2007-03-17  Bruno Haible  <bruno@clisp.org>
72345
72346         * tests/test-argp-2.sh (func_compare): Output a context diff.
72347
72348 2007-03-17  Bruno Haible  <bruno@clisp.org>
72349
72350         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72351         locale's decimal-point character.
72352
72353 2007-03-17  Bruno Haible  <bruno@clisp.org>
72354
72355         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72356         before comparing it. Needed because on some platforms (e.g. x86) a
72357         'long double' occupies less bytes than sizeof (long double).
72358
72359 2007-03-17  Bruno Haible  <bruno@clisp.org>
72360
72361         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72362         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72363         * tests/test-getaddrinfo.c (simple): Likewise.
72364         * tests/test-read-file.c (main): Likewise.
72365
72366 2007-03-17  Bruno Haible  <bruno@clisp.org>
72367
72368         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72369
72370 2007-03-17  Bruno Haible  <bruno@clisp.org>
72371
72372         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72373         unused variable.
72374
72375 2007-03-17  Bruno Haible  <bruno@clisp.org>
72376
72377         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72378         * tests/test-c-strncasecmp.c: Likewise.
72379
72380 2007-03-17  Bruno Haible  <bruno@clisp.org>
72381
72382         * modules/stdlib (Depends-on): Add unistd.
72383         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72384         Needed for MacOS X 10.3.
72385
72386 2007-03-17  Bruno Haible  <bruno@clisp.org>
72387
72388         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72389
72390 2007-03-17  Bruno Haible  <bruno@clisp.org>
72391
72392         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72393
72394 2007-03-17  Bruno Haible  <bruno@clisp.org>
72395
72396         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72397         to reflect files copied from gnulib (with or without modifications).
72398         Suggested by Jim Meyering.
72399
72400 2007-03-17  Eric Blake  <ebb9@byu.net>
72401
72402         * NEWS: Document stdlib change from 2007-02-18.
72403
72404 2007-03-17  Jim Meyering  <jim@meyering.net>
72405
72406         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72407         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72408         someone uses a name containing shell meta-characters.
72409         Reported by Alfred M. Szmidt.
72410
72411         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72412
72413 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72414
72415         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72416         and copy gettext configuration files only if configure.ac contains
72417         a use of AM_GNU_GETTEXT_VERSION.
72418
72419 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72420
72421         * build-aux/bootstrap (gnulib_name): New variable.
72422         (gnulib_tool_options): Use it.
72423
72424 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72425
72426         * tests/test-des.c: Use new namespace.
72427
72428 2007-03-15  Bruno Haible  <bruno@clisp.org>
72429
72430         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72431         Reported by James Youngman <jay@gnu.org>.
72432
72433 2007-03-15  Bruno Haible  <bruno@clisp.org>
72434
72435         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72436         declared prototype. Needed with cc on OSF/1 5.1.
72437
72438 2007-03-15  Bruno Haible  <bruno@clisp.org>
72439
72440         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72441         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72442         (struct gl_list_implementation): Add dispose_fn argument to the
72443         'create_empty', 'create' methods.
72444         (struct gl_list_impl_base): Add field 'dispose_fn'.
72445         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72446         argument.
72447         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72448         dispose_fn argument.
72449         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72450         dispose_fn on the dropped values.
72451         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72452         dispose_fn argument.
72453         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72454         dropped values.
72455         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72456         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72457         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72458         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72459         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72460         argument.
72461         (gl_tree_list_free): Call dispose_fn on the dropped values.
72462         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72463         the dropped values.
72464         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72465         Add dispose_fn argument.
72466         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72467         Call dispose_fn on the dropped values.
72468         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72469         Add dispose_fn argument.
72470         (gl_sublist_create): Initialize the 'dispose_fn' field.
72471         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72472         * tests/test-array_list.c (main): Update.
72473         * tests/test-carray_list.c (main): Update.
72474         * tests/test-avltree_list.c (main): Update.
72475         * tests/test-rbtree_list.c (main): Update.
72476         * tests/test-avltreehash_list.c (main): Update.
72477         * tests/test-rbtreehash_list.c (main): Update.
72478         * tests/test-linked_list.c (main): Update.
72479         * tests/test-linkedhash_list.c (main): Update.
72480         * tests/test-array_oset.c (main): Update.
72481
72482 2007-03-15  Bruno Haible  <bruno@clisp.org>
72483
72484         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72485         (gl_oset_create_empty): Add dispose_fn argument.
72486         (struct gl_oset_implementation): Add dispose_fn argument to
72487         'create_empty' method.
72488         (struct gl_oset_impl_base): Add dispose_fn field.
72489         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72490         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72491         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72492         values.
72493         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72494         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72495         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72496         dropped value.
72497         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72498         dropped value.
72499         * tests/test-array_oset.c (main): Update.
72500         * tests/test-avltree_oset.c (main): Update.
72501         * tests/test-rbtree_oset.c (main): Update.
72502         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72503
72504 2007-03-13  Bruno Haible  <bruno@clisp.org>
72505
72506         * tests/test-stdbool.c (i): Update after last patch.
72507
72508 2007-03-12  Bruno Haible  <bruno@clisp.org>
72509
72510         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72511         the iswprint macro. Needed on Solaris 2.5.1.
72512
72513 2007-03-12  Bruno Haible  <bruno@clisp.org>
72514
72515         * tests/test-printf-frexp.c (main): Declare x as volatile.
72516
72517 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72518
72519         * doc/gnulib.texi (Build robot for gnulib): New section.
72520
72521 2007-03-12  Jim Meyering  <jim@meyering.net>
72522
72523         * build-aux/bootstrap: New file.
72524         * build-aux/bootstrap.conf: New file, from coreutils.
72525
72526 2007-03-11  Bruno Haible  <bruno@clisp.org>
72527
72528         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72529
72530 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72531
72532         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72533         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72534         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72535
72536 2007-03-11  Bruno Haible  <bruno@clisp.org>
72537
72538         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72539         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72540
72541 2007-03-11  Bruno Haible  <bruno@clisp.org>
72542
72543         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72544         formula. Needed for SunPRO C 5.0.
72545
72546 2007-03-11  Bruno Haible  <bruno@clisp.org>
72547
72548         * modules/long-options (Depends-on): Add getopt.
72549
72550 2007-03-11  Bruno Haible  <bruno@clisp.org>
72551
72552         * modules/modechange (Depends-on): Add stdbool.
72553
72554 2007-03-11  Bruno Haible  <bruno@clisp.org>
72555
72556         * modules/i-ring (Depends-on): Add stdbool.
72557
72558 2007-03-11  Bruno Haible  <bruno@clisp.org>
72559
72560         * modules/gc-des (Depends-on): Add stdbool.
72561
72562 2007-03-11  Bruno Haible  <bruno@clisp.org>
72563
72564         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72565
72566 2007-03-11  Bruno Haible  <bruno@clisp.org>
72567
72568         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72569
72570 2007-03-11  Bruno Haible  <bruno@clisp.org>
72571
72572         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72573
72574 2007-03-11  Bruno Haible  <bruno@clisp.org>
72575
72576         * lib/vasnprintf.c (sprintf): Undefine.
72577
72578 2007-03-11  Bruno Haible  <bruno@clisp.org>
72579
72580         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72581         initializers in SunPRO C and Compaq C compilers.
72582
72583 2007-03-11  Bruno Haible  <bruno@clisp.org>
72584
72585         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72586         decrementing code ANSI C compliant.
72587
72588 2007-03-11  Bruno Haible  <bruno@clisp.org>
72589
72590         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72591         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72592
72593 2007-03-11  Bruno Haible  <bruno@clisp.org>
72594
72595         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72596         <stdbool.h> substitute doesn't pass.
72597
72598 2007-03-11  Bruno Haible  <bruno@clisp.org>
72599
72600         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72601
72602 2007-03-11  Bruno Haible  <bruno@clisp.org>
72603
72604         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72605         script, for submission to autobuild.josefsson.org.
72606
72607 2007-03-10  Bruno Haible  <bruno@clisp.org>
72608
72609         * modules/canonicalize-lgpl-tests: New file.
72610         * tests/test-canonicalize-lgpl.sh: New file.
72611         * tests/test-canonicalize-lgpl.c: New file.
72612
72613         * modules/c-strcase-tests: New file.
72614         * tests/test-c-strcase.sh: New file.
72615         * tests/test-c-strcasecmp.c: New file.
72616         * tests/test-c-strncasecmp.c: New file.
72617
72618         * modules/atexit-tests: New file.
72619         * tests/test-atexit.sh: New file.
72620         * tests/test-atexit.c: New file.
72621
72622 2007-03-10  Bruno Haible  <bruno@clisp.org>
72623
72624         * tests/test-binary-io.sh: Use temporary filenames that are not so
72625         likely to clash with those of other tests (in a parallel make).
72626         * tests/test-binary-io.c: Likewise.
72627
72628 2007-03-10  Bruno Haible  <bruno@clisp.org>
72629
72630         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72631         fallback; use #error instead.
72632         Suggested by Simon Josefsson.
72633
72634 2007-03-10  Bruno Haible  <bruno@clisp.org>
72635
72636         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72637         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72638         first and the last.
72639
72640 2007-03-10  Bruno Haible  <bruno@clisp.org>
72641
72642         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72643
72644 2007-03-10  Bruno Haible  <bruno@clisp.org>
72645
72646         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72647         "make distcheck".
72648         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72649         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72650         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72651
72652 2007-03-10  Bruno Haible  <bruno@clisp.org>
72653
72654         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72655         variable.
72656         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72657         variable.
72658
72659 2007-03-09  Eric Blake  <ebb9@byu.net>
72660         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72661
72662         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72663         types are not being provided by gnulib.
72664         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72665         types are supported.
72666
72667 2007-03-10  Bruno Haible  <bruno@clisp.org>
72668
72669         * lib/stdio_.h (__attribute__): New macro.
72670         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72671         vsprintf): Specify __attribute__ __format__ for GCC.
72672         Suggested by Eric Blake.
72673
72674 2007-03-09  Bruno Haible  <bruno@clisp.org>
72675
72676         * modules/printf-posix-tests: New file.
72677         * tests/test-printf-posix.sh: New file.
72678         * tests/test-printf-posix.c: New file.
72679
72680         * modules/printf-posix: New file.
72681         * lib/printf.c: New file.
72682         * m4/printf-posix-rpl.m4: New file.
72683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72684         REPLACE_PRINTF.
72685         * lib/stdio_.h (printf): New declaration.
72686         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72687         ____strfmon____): New macros.
72688         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72689         REPLACE_PRINTF.
72690
72691 2007-03-09  Bruno Haible  <bruno@clisp.org>
72692
72693         * tests/test-vasnprintf-posix2.sh: New file.
72694         * tests/test-vasnprintf-posix2.c: New file.
72695         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72696         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72697         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72698
72699         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72700         a locale dependent decimal point, rather than always '.'.
72701
72702 2007-03-09  Eric Blake  <ebb9@byu.net>
72703
72704         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72705         spite of platforms like Tandem/NSK that define it to -1.
72706
72707 2007-03-08  Bruno Haible  <bruno@clisp.org>
72708
72709         * modules/vprintf-posix-tests: New file.
72710         * tests/test-vprintf-posix.sh: New file.
72711         * tests/test-vprintf-posix.c: New file.
72712         * tests/test-printf-posix.h: New file.
72713
72714         * modules/vprintf-posix: New file.
72715         * lib/vprintf.c: New file.
72716         * m4/vprintf-posix.m4: New file.
72717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72718         REPLACE_VPRINTF.
72719         * lib/stdio_.h (vprintf): New declaration.
72720         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72721         REPLACE_VPRINTF.
72722
72723 2007-03-08  Bruno Haible  <bruno@clisp.org>
72724
72725         * modules/fprintf-posix-tests: New file.
72726         * tests/test-fprintf-posix.sh: New file.
72727         * tests/test-fprintf-posix.c: New file.
72728
72729         * modules/fprintf-posix: New file.
72730         * lib/fprintf.c: New file.
72731         * m4/fprintf-posix.m4: New file.
72732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72733         REPLACE_FPRINTF.
72734         * lib/stdio_.h (fprintf): New declaration.
72735         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72736         REPLACE_FPRINTF.
72737
72738 2007-03-08  Bruno Haible  <bruno@clisp.org>
72739
72740         * modules/vfprintf-posix-tests: New file.
72741         * tests/test-vfprintf-posix.sh: New file.
72742         * tests/test-vfprintf-posix.c: New file.
72743         * tests/test-fprintf-posix.h: New file.
72744         * tests/test-fprintf-posix.out: New file.
72745
72746         * modules/vfprintf-posix: New file.
72747         * lib/vfprintf.c: New file.
72748         * m4/vfprintf-posix.m4: New file.
72749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72750         REPLACE_VFPRINTF.
72751         * lib/stdio_.h (vfprintf): New declaration.
72752         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72753         REPLACE_VFPRINTF.
72754
72755 2007-03-08  Bruno Haible  <bruno@clisp.org>
72756
72757         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72758
72759 2007-03-08  Bruno Haible  <bruno@clisp.org>
72760
72761         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72762         instead of 'expr' invocations.
72763         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72764         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72765         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72767         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72768         Suggested by Paul Eggert.
72769
72770 2007-03-08  Bruno Haible  <bruno@clisp.org>
72771
72772         * modules/fseterr-tests: New file.
72773         * tests/test-fseterr.c: New file.
72774
72775         * modules/fseterr: New file.
72776         * lib/fseterr.h: New file.
72777         * lib/fseterr.c: New file.
72778
72779 2007-03-08  Bruno Haible  <bruno@clisp.org>
72780
72781         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72782         * lib/getopt_.h: Likewise.
72783         * lib/mbswidth.h: Likewise.
72784         * lib/setenv.h: Likewise.
72785         * lib/vasnprintf.h: Likewise.
72786         * lib/vasprintf.h: Likewise.
72787         * lib/verror.h: Likewise.
72788         * lib/xsetenv.h: Likewise.
72789         * lib/xvasprintf.h: Likewise.
72790
72791 2007-03-08  Jim Meyering  <jim@meyering.net>
72792
72793         * users.txt: Add parted.
72794
72795         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72796
72797 2007-03-07  Bruno Haible  <bruno@clisp.org>
72798
72799         * m4/printf.m4: Make the shell script snippets copy&pastable.
72800
72801 2007-03-02  Bruno Haible  <bruno@clisp.org>
72802
72803         * lib/netinet_in_.h: New file.
72804         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72805         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72806         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72807         (Depends-on): Add absolute-header.
72808         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72809         into netinet/in.h.
72810
72811 2007-03-03  Bruno Haible  <bruno@clisp.org>
72812
72813         * lib/sys_select_.h: New file.
72814         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72815         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72816         * modules/sys_select (Files): Add lib/sys_select_.h.
72817         (Depends-on): Add absolute-header.
72818         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72819         into sys/select.h.
72820
72821 2007-03-02  Bruno Haible  <bruno@clisp.org>
72822
72823         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72824         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72825         values.
72826         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72827         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72828         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72829         * modules/sys_socket (Depends-on): Add absolute-header.
72830         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72831         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72832         (Include): Remove requirement of inclusion of <sys/types.h>.
72833
72834 2007-03-02  Bruno Haible  <bruno@clisp.org>
72835
72836         * lib/byteswap_.h (bswap_32): Fix formula.
72837
72838 2007-03-06  Bruno Haible  <bruno@clisp.org>
72839
72840         * modules/sprintf-posix-tests: New file.
72841         * tests/test-sprintf-posix.c: New file.
72842
72843         * modules/sprintf-posix: New file.
72844         * lib/sprintf.c: New file.
72845         * m4/sprintf-posix.m4: New file.
72846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72847         REPLACE_SPRINTF.
72848         * lib/stdio_.h (sprintf): New declaration.
72849         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72850         REPLACE_SPRINTF.
72851
72852 2007-03-06  Bruno Haible  <bruno@clisp.org>
72853
72854         * modules/vsprintf-posix-tests: New file.
72855         * tests/test-vsprintf-posix.c: New file.
72856         * tests/test-sprintf-posix.h: New file.
72857
72858         * modules/vsprintf-posix: New file.
72859         * lib/vsprintf.c: New file.
72860         * m4/vsprintf-posix.m4: New file.
72861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72862         REPLACE_VSPRINTF.
72863         * lib/stdio_.h (vsprintf): New declaration.
72864         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
72865         REPLACE_VSPRINTF.
72866
72867 2007-03-06  Bruno Haible  <bruno@clisp.org>
72868
72869         * modules/vsnprintf (Depend-on): Remove minmax.
72870
72871 2007-03-06  Bruno Haible  <bruno@clisp.org>
72872
72873         * modules/snprintf-posix-tests: New file.
72874         * tests/test-snprintf-posix.c: New file.
72875
72876         * modules/snprintf-posix: New file.
72877         * m4/snprintf-posix.m4: New file.
72878         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
72879         gl_FUNC_SNPRINTF.
72880         (gl_FUNC_SNPRINTF): Invoke it.
72881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
72882         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
72883         is set.
72884         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
72885
72886 2007-03-06  Bruno Haible  <bruno@clisp.org>
72887
72888         * modules/vsnprintf-posix-tests: New file.
72889         * tests/test-vsnprintf-posix.c: New file.
72890         * tests/test-snprintf-posix.h: New file.
72891
72892         * modules/vsnprintf-posix: New file.
72893         * m4/vsnprintf-posix.m4: New file.
72894         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
72895         gl_FUNC_VSNPRINTF.
72896         (gl_FUNC_VSNPRINTF): Invoke it.
72897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
72898         * lib/stdio_.h (vsnprintf): Define as a replacement if
72899         REPLACE_VSNPRINTF is set.
72900         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
72901
72902 2007-03-06  Bruno Haible  <bruno@clisp.org>
72903
72904         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
72905         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
72906
72907 2007-03-06  Bruno Haible  <bruno@clisp.org>
72908
72909         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
72910         (asinl): Declare also if HAVE_DECL_ASINL is set.
72911         (atanl): Declare also if HAVE_DECL_ATANL is set.
72912         (ceill): Declare also if HAVE_DECL_CEILL is set.
72913         (cosl): Declare also if HAVE_DECL_COSL is set.
72914         (expl): Declare also if HAVE_DECL_EXPL is set.
72915         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72916         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72917         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72918         (logl): Declare also if HAVE_DECL_LOGL is set.
72919         (sinl): Declare also if HAVE_DECL_SINL is set.
72920         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72921         (tanl): Declare also if HAVE_DECL_TANL is set.
72922         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72924         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72925         declaration of frexpl, ldexpl.
72926         * modules/printf-frexpl (Depends-on): Add math.
72927         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72928
72929 2007-03-05  Bruno Haible  <bruno@clisp.org>
72930
72931         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72932         frexpl and ldexpl are declared.
72933         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72934
72935 2007-03-05  Bruno Haible  <bruno@clisp.org>
72936
72937         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72938         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72939
72940 2007-03-05  Bruno Haible  <bruno@clisp.org>
72941
72942         * lib/stdio_.h: Include <stddef.h>.
72943
72944 2007-03-05  Bruno Haible  <bruno@clisp.org>
72945
72946         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72947
72948 2007-03-05  Bruno Haible  <bruno@clisp.org>
72949
72950         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72951         NetBSD 4, from Ralf Wildenhues.
72952
72953 2007-03-04  Bruno Haible  <bruno@clisp.org>
72954
72955         * lib/vasprintf.h: Update #if logic for the case when the functions
72956         exist but are overridden.
72957
72958 2007-03-04  Bruno Haible  <bruno@clisp.org>
72959
72960         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72961         implementations: glibc-2.4 and MacOS X 10.3.
72962         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72963         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72964         * tests/test-vasprintf-posix.c (test_function): Likewise.
72965
72966 2007-03-04  Bruno Haible  <bruno@clisp.org>
72967
72968         * modules/vasprintf-posix-tests: New file.
72969         * tests/test-vasprintf-posix.c: New file.
72970
72971         * modules/vasprintf-posix: New file.
72972         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72973         defined.
72974         * m4/vasprintf-posix.m4: New file.
72975         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72976         gl_FUNC_VASPRINTF.
72977         (gl_FUNC_VASPRINTF): Invoke it.
72978         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72979         here.
72980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72981
72982 2007-03-04  Bruno Haible  <bruno@clisp.org>
72983
72984         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72985         REPLACE_GETTIMEOFDAY.
72986         * modules/sys_time (Makefile.am): Likewise.
72987         * m4/sys_time_h.m4: Likewise.
72988         * m4/gettimeofday.m4: Likewise.
72989
72990 2007-03-04  Bruno Haible  <bruno@clisp.org>
72991
72992         * modules/vasnprintf-posix-tests: New file.
72993         * tests/test-vasnprintf-posix.c: New file.
72994
72995         * modules/vasnprintf-posix: New file.
72996         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72997         printf-frexpl.h.
72998         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72999         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73000         REPLACE_VASNPRINTF is defined.
73001         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73002         gl_FUNC_VASNPRINTF.
73003         (gl_FUNC_VASNPRINTF): Invoke it.
73004         * m4/vasnprintf-posix.m4: New file.
73005         * m4/printf.m4: New file.
73006
73007 2007-03-04  Bruno Haible  <bruno@clisp.org>
73008
73009         Compile progreloc.c only if --enable-relocatable is specified.
73010         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73011         if --enable-relocatable was specified.
73012         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73013         lib_SOURCES.
73014
73015 2007-03-04  Jim Meyering  <jim@meyering.net>
73016
73017         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73018         Use it consistently, rather than enumerating errno constants.
73019
73020 2007-03-04  Bruno Haible  <bruno@clisp.org>
73021
73022         * modules/xvasprintf-tests: New file.
73023         * tests/test-xvasprintf.c: New file.
73024
73025         * modules/vasprintf-tests: New file.
73026         * tests/test-vasprintf.c: New file.
73027
73028         * modules/vasnprintf-tests: New file.
73029         * tests/test-vasnprintf.c: New file.
73030
73031         * modules/vsnprintf-tests: New file.
73032         * tests/test-vsnprintf.c: New file.
73033
73034         * modules/snprintf-tests: New file.
73035         * tests/test-snprintf.c: New file.
73036
73037 2007-03-04  Bruno Haible  <bruno@clisp.org>
73038
73039         Compile relocatable.c only if --enable-relocatable is specified.
73040         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73041         gl_RELOCATABLE_LIBRARY.
73042         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73043         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73044         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73045         gl_RELOCATABLE_LIBRARY.
73046         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73047         (Makefile.am): Remove lib_SOURCES.
73048         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73049         gl_RELOCATABLE_LIBRARY.
73050         (Makefile.am): Remove lib_SOURCES.
73051         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73052         always.
73053         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73054         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73055
73056 2007-03-04  Bruno Haible  <bruno@clisp.org>
73057
73058         * modules/argmatch-tests: New file.
73059         * tests/test-argmatch.c: New file.
73060
73061         * tests/test-allocsa.c (main): Halve the number of loop runs.
73062
73063         * modules/alloca-opt-tests: New file.
73064         * tests/test-alloca-opt.c: New file.
73065
73066 2007-03-04  Jim Meyering  <jim@meyering.net>
73067
73068         Work around difference between Linux ACLs and Solaris 10 ZFS.
73069         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73070         for EINVAL.
73071
73072 2007-03-03  Bruno Haible  <bruno@clisp.org>
73073
73074         * modules/relocatable-prog (Depends-on): Add back progreloc's
73075         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73076
73077 2007-03-03  Bruno Haible  <bruno@clisp.org>
73078
73079         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73080         * modules/relocatable-lib: New file.
73081
73082 2007-03-03  Bruno Haible  <bruno@clisp.org>
73083
73084         * modules/relocatable-prog: Renamed from modules/relocatable.
73085         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73086
73087 2007-03-03  Bruno Haible  <bruno@clisp.org>
73088
73089         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73090         m4/relocatable-lib.m4.
73091         (Depends-on): Remove 'relocatable'.
73092         (configure.ac): Add gl_RELOCATABLE_NOP.
73093
73094 2007-03-03  Bruno Haible  <bruno@clisp.org>
73095
73096         * modules/relocatable-prog-wrapper: New file.
73097         * modules/relocatable (Depends-on): Add it. Remove all other
73098         dependencies except progname.
73099         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73100
73101         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73102         (gl_FUNC_STRERROR): Nop.
73103         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73104
73105         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73106         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73107
73108         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73109         (gl_FUNC_READLINK): Update.
73110
73111         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73112
73113 2007-03-03  Bruno Haible  <bruno@clisp.org>
73114
73115         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73116         * modules/xreadlink (Depends-on): Add unistd.
73117         * modules/xreadlink-with-size (Depends-on): Likewise.
73118
73119 2007-03-03  Bruno Haible  <bruno@clisp.org>
73120
73121         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73122         extracted from gt_FUNC_SETENV.
73123         (gt_FUNC_SETENV): Remove macro.
73124         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73125         remove gt_FUNC_SETENV.
73126
73127 2007-03-03  Bruno Haible  <bruno@clisp.org>
73128
73129         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73130         ENABLE_RELOCATABLE here.
73131         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73132
73133 2007-03-03  Bruno Haible  <bruno@clisp.org>
73134
73135         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73136         * tests/test-rbtreehash_list.c: Include progname.h.
73137         (main): Call set_program_name.
73138
73139         * modules/rbtree-oset-tests (Depends-on): Add progname.
73140         * tests/test-rbtree_oset.c: Include progname.h.
73141         (main): Call set_program_name.
73142
73143         * modules/rbtree-list-tests (Depends-on): Add progname.
73144         * tests/test-rbtree_list.c: Include progname.h.
73145         (main): Call set_program_name.
73146
73147         * modules/linked-list-tests (Depends-on): Add progname.
73148         * tests/test-linked_list.c: Include progname.h.
73149         (main): Call set_program_name.
73150
73151 2007-03-03  Bruno Haible  <bruno@clisp.org>
73152
73153         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73154         All uses of __restrict changed to _Restrict_.
73155         * lib/glob_.h (__restrict): Remove macro.
73156
73157 2007-03-02  Bruno Haible  <bruno@clisp.org>
73158
73159         * modules/gettext (configure.ac): Require gettext infrastructure
73160         from version 0.16.1.
73161
73162 2007-03-02  Bruno Haible  <bruno@clisp.org>
73163
73164         * modules/linkedhash-list-tests (Depends-on): Add progname.
73165         * tests/test-linkedhash_list.c: Include progname.h.
73166         (main): Call set_program_name.
73167
73168         * modules/carray-list-tests (Depends-on): Add progname.
73169         * tests/test-carray_list.c: Include progname.h.
73170         (main): Call set_program_name.
73171
73172         * modules/avltreehash-list-tests (Depends-on): Add progname.
73173         * tests/test-avltreehash_list.c: Include progname.h.
73174         (main): Call set_program_name.
73175
73176         * modules/avltree-oset-tests (Depends-on): Add progname.
73177         * tests/test-avltree_oset.c: Include progname.h.
73178         (main): Call set_program_name.
73179
73180         * modules/avltree-list-tests (Depends-on): Add progname.
73181         * tests/test-avltree_list.c: Include progname.h.
73182         (main): Call set_program_name.
73183
73184         * modules/array-oset-tests (Depends-on): Add progname.
73185         * tests/test-array_oset.c: Include progname.h.
73186         (main): Call set_program_name.
73187
73188         * modules/array-list-tests (Depends-on): Add progname.
73189         * tests/test-array_list.c: Include progname.h.
73190         (main): Call set_program_name.
73191
73192         * modules/argp-tests (Depends-on): Add progname.
73193         * tests/test-argp.c: Include argp.h first. Include progname.h.
73194         (main): Call set_program_name.
73195
73196 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73197
73198         * doc/gnulib-tool.texi (Initial import): Reword description of
73199         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73200         limited effect even if defined after the first system include.
73201
73202 2007-03-01  Bruno Haible  <bruno@clisp.org>
73203
73204         * build-aux/config.libpath: Update to libtool-1.5.22.
73205         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73206
73207 2007-03-01  Bruno Haible  <bruno@clisp.org>
73208
73209         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73210         foo_CFLAGS.
73211         Reported by Ralf Wildenhues.
73212
73213 2007-03-01  Bruno Haible  <bruno@clisp.org>
73214
73215         * build-aux/install-reloc: Remove object files left over by some
73216         compilers.
73217         Reported by Ralf Wildenhues.
73218
73219 2007-03-01  Bruno Haible  <bruno@clisp.org>
73220
73221         * build-aux/install-reloc: Break long lines.
73222
73223 2007-03-01  Bruno Haible  <bruno@clisp.org>
73224
73225         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73226         Reported by Ralf Wildenhues.
73227
73228 2007-03-01  Bruno Haible  <bruno@clisp.org>
73229
73230         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73231         include ordering constraints.
73232
73233 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73234
73235         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73236         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73237         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73238         as another example.
73239         * lib/time_.h: Fix misspelling.
73240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73241         Require gl_HEADER_TIME_H_DEFAULTS.
73242         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73243         * m4/time_r.m4 (gl_TIME_R): Likewise.
73244         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73245
73246 2007-03-01  Bruno Haible  <bruno@clisp.org>
73247
73248         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73249         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73250
73251 2007-03-01  Jim Meyering  <jim@meyering.net>
73252
73253         * modules/xreadlink (Maintainer): Add my name.
73254         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73255
73256 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73257             Bruno Haible  <bruno@clisp.org>
73258
73259         * build-aux/install-reloc: Compile also c-ctype.c.
73260         * build-aux/relocatable.sh.in: New file.
73261         * doc/relocatable.texi: New file.
73262         * doc/relocatable-maint.texi: New file.
73263         * doc/gnulib.texi: Include relocatable-maint.texi.
73264         * lib/progreloc.c: Include unistd.h unconditionally.
73265         * lib/relocwrapper.c: Include unistd.h unconditionally.
73266         Include c-ctype.h.
73267         (add_dotbin): Use c_tolower.
73268         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73269         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73270         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73271         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73272         to m4/relocatable-lib.m4.
73273         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73274         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73275         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73276         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73277         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73278         * modules/relocatable: New file.
73279         * modules/relocatable-lib: New file.
73280         * modules/relocatable-script: New file.
73281
73282 2007-02-28  Bruno Haible  <bruno@clisp.org>
73283
73284         Import --enable-relocatable infrastructure.
73285         * build-aux/config.libpath: New file, from GNU gettext.
73286         * build-aux/install-reloc: New file, from GNU gettext.
73287         * build-aux/reloc-ldflags: New file, from GNU gettext.
73288         * lib/relocatable.h: New file, from GNU gettext.
73289         * lib/relocatable.c: New file, from GNU gettext.
73290         * lib/relocwrapper.c: New file, from GNU gettext.
73291         * m4/relocatable.m4: New file, from GNU gettext.
73292
73293 2007-02-28  Bruno Haible  <bruno@clisp.org>
73294
73295         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73296
73297         * modules/xreadlink: New file, from GNU gettext with modifications.
73298         * lib/xreadlink.c: New file, from GNU gettext.
73299         * lib/xreadlink.h: Add comments.
73300         (xreadlink): New declaration.
73301
73302         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73303         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73304         lib/xreadlink-with-size.c.
73305         (configure.ac): Remove gl_XREADLINK invocation.
73306         (Makefile.am): Augment lib_SOURCES.
73307         * m4/xreadlink.m4: Remove file.
73308         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73309         (xreadlink_with_size): Renamed from xreadink.
73310         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73311         * modules/canonicalize (Depends-on): Replace xreadlink with
73312         xreadlink-with-size.
73313         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73314
73315 2007-02-25  Jim Meyering  <jim@meyering.net>
73316
73317         * build-aux/announce-gen: When complaining about excess arguments,
73318         list them.
73319
73320 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73321
73322         * README: Document signed integer overflow situation more
73323         accurately.
73324
73325 2007-02-25  Bruno Haible  <bruno@clisp.org>
73326
73327         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73328         'a' or 'A' conversion.
73329
73330 2007-02-25  Bruno Haible  <bruno@clisp.org>
73331
73332         * modules/filename: Renamed from modules/pathname.
73333         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73334         lib/concatpath.c with lib/concat-filename.c.
73335         (Makefile.am): Update.
73336         (Include): Replace pathname.h with filename.h.
73337         * lib/filename.h: Renamed from lib/pathname.h.
73338         (concatenated_filename): Renamed from concatenated_pathname.
73339         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73340         (concatenated_filename): Renamed from concatenated_pathname.
73341         * lib/findprog.c: Include filename.h instead of pathname.h.
73342         (find_in_path): Update.
73343         * lib/javacomp.c: Include filename.h instead of pathname.h.
73344         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73345         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73346         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73347         is_oldgcj_14_13_usable, is_javac_usable): Update.
73348         * lib/javaexec.c: Include filename.h instead of pathname.h.
73349         (execute_java_class): Update.
73350         * modules/findprog: Update.
73351         * modules/javacomp: Update.
73352         * modules/javaexec: Update.
73353         * MODULES.html.sh (File system functions): Add 'filename', remove
73354         'pathname'.
73355
73356 2007-02-25  Bruno Haible  <bruno@clisp.org>
73357
73358         * modules/printf-frexpl-tests: New file.
73359         * tests/test-printf-frexpl.c: New file.
73360
73361         * modules/printf-frexpl: New file.
73362         * lib/printf-frexpl.h: New file.
73363         * lib/printf-frexpl.c: New file.
73364         * m4/printf-frexpl.m4: New file.
73365
73366 2007-02-25  Bruno Haible  <bruno@clisp.org>
73367
73368         * modules/printf-frexp-tests: New file.
73369         * tests/test-printf-frexp.c: New file.
73370
73371         * modules/printf-frexp: New file.
73372         * lib/printf-frexp.h: New file.
73373         * lib/printf-frexp.c: New file.
73374         * m4/printf-frexp.m4: New file.
73375
73376 2007-02-25  Bruno Haible  <bruno@clisp.org>
73377
73378         Assume automake >= 1.10 for the tests.
73379         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73380         * modules/arctwo-tests: Likewise.
73381         * modules/argp-tests: Likewise.
73382         * modules/avltree-list-tests: Likewise.
73383         * modules/avltree-oset-tests: Likewise.
73384         * modules/avltreehash-list-tests: Likewise.
73385         * modules/carray-list-tests: Likewise.
73386         * modules/crc-tests: Likewise.
73387         * modules/des-tests: Likewise.
73388         * modules/gc-arcfour-tests: Likewise.
73389         * modules/gc-arctwo-tests: Likewise.
73390         * modules/gc-des-tests: Likewise.
73391         * modules/gc-hmac-md5-tests: Likewise.
73392         * modules/gc-hmac-sha1-tests: Likewise.
73393         * modules/gc-md2-tests: Likewise.
73394         * modules/gc-md4-tests: Likewise.
73395         * modules/gc-md5-tests: Likewise.
73396         * modules/gc-pbkdf2-sha1-tests: Likewise.
73397         * modules/gc-rijndael-tests: Likewise.
73398         * modules/gc-sha1-tests: Likewise.
73399         * modules/gc-tests: Likewise.
73400         * modules/getaddrinfo-tests: Likewise.
73401         * modules/hmac-md5-tests: Likewise.
73402         * modules/hmac-sha1-tests: Likewise.
73403         * modules/linked-list-tests: Likewise.
73404         * modules/linkedhash-list-tests: Likewise.
73405         * modules/lock-tests: Likewise.
73406         * modules/md2-tests: Likewise.
73407         * modules/md4-tests: Likewise.
73408         * modules/md5-tests: Likewise.
73409         * modules/rbtree-list-tests: Likewise.
73410         * modules/rbtree-oset-tests: Likewise.
73411         * modules/rbtreehash-list-tests: Likewise.
73412         * modules/read-file-tests: Likewise.
73413         * modules/rijndael-tests: Likewise.
73414         * modules/stdint-tests: Likewise.
73415         * modules/tls-tests: Likewise.
73416
73417 2007-02-24  Bruno Haible  <bruno@clisp.org>
73418
73419         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73420         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73421         function; instead check whether isnan with a double argument links.
73422         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73423         function; instead check whether isnan with a 'long double' argument
73424         links.
73425         Reported by Eric Blake <ebb9@byu.net>.
73426
73427 2007-02-24  Bruno Haible  <bruno@clisp.org>
73428
73429         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73430         defined.
73431         * lib/isnanl.c: Remove all code. Just include isnan.c.
73432         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73433
73434 2007-02-25  Jim Meyering  <jim@meyering.net>
73435
73436         Avoid conflicting types for 'unsetenv' on FreeBSD.
73437         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73438         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73439         in stdlib.h.
73440
73441 2007-02-24  Bruno Haible  <bruno@clisp.org>
73442
73443         * modules/isnanl-nolibm-tests: New file.
73444         * tests/test-isnanl.c: New file.
73445
73446         * modules/isnanl-nolibm: New file.
73447         * lib/isnanl.h: New file.
73448         * lib/isnanl.c: New file.
73449         * m4/isnanl.m4: New file.
73450
73451 2007-02-24  Bruno Haible  <bruno@clisp.org>
73452
73453         * modules/isnan-nolibm-tests: New file.
73454         * tests/test-isnan.c: New file.
73455
73456         * modules/isnan-nolibm: New file.
73457         * lib/isnan.h: New file.
73458         * lib/isnan.c: New file.
73459         * m4/isnan.m4: New file.
73460
73461 2007-02-24  Bruno Haible  <bruno@clisp.org>
73462
73463         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73464         assume that an exponent fits in 20 bits.
73465
73466 2007-02-24  Jim Meyering  <jim@meyering.net>
73467
73468         * m4/regex.m4: Update the description of the configure-time option,
73469         --without-included-regex, to state accurately what the defaults are,
73470         and perhaps to give people an idea why using this option is risky.
73471
73472 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73473
73474         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73475         loops on small arguments.  This attempts to avoid the problem
73476         Bruno Haible reported for AIX 4.3.2 in
73477         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73478
73479 2007-02-23  Bruno Haible  <bruno@clisp.org>
73480
73481         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73482         Needed for help2man.
73483
73484 2007-02-23  Karl Berry  <karl@gnu.org>
73485
73486         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73487         exists, foo.h should be cvs-ignored, not committed.
73488
73489 2007-02-23  Eric Blake  <ebb9@byu.net>
73490
73491         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73492         * lib/stat-time.h (includes): Likewise.
73493         * lib/utimecmp.c (includes): Likewise.
73494         * lib/utimens.h (includes): Likewise.
73495         * lib/getdate.y (includes): Also include "timespec.h" for use
73496         internal to the module.
73497         * modules/utimens (Depends-on): Revert yesterday's patch.
73498         * modules/nanosleep (Depends-on): Add missing dependency.
73499
73500 2007-02-22  Bruno Haible  <bruno@clisp.org>
73501
73502         * lib/glob.c: Don't include getlogin_r.h.
73503
73504 2007-02-22  Jim Meyering  <jim@meyering.net>
73505
73506         * modules/utimens (Depends-on): Add timespec, required for
73507         utimens.h's inclusion of timespec.h.
73508
73509 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73510
73511         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73512         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73513         Schwab in
73514         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73515         I'll try to think of a better way to fix the Solaris problem.
73516
73517         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73518         like glibc; on Solaris 10, it fails with errno == EINVAL.
73519         POSIX says the behavior is unspecified if the first argument is NULL,
73520         so play it safe and never pass NULL to the system getcwd.
73521
73522 2007-02-21  Jim Meyering  <jim@meyering.net>
73523
73524         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73525         of gettimeofday.  It would conflict with the one now always
73526         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73527         an IRIX 6.5 build failure.
73528
73529 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         Minor fixups to port to Solaris 10 with Sun C 5.8.
73532         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73533         * modules/getcwd (Depends-on): Add dirfd.
73534         * lib/putenv.c (putenv): #undef it.
73535         (rpl_putenv): New decl.
73536         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73537
73538 2007-02-20  Bruno Haible  <bruno@clisp.org>
73539
73540         * modules/stdio-tests: New file.
73541         * tests/test-stdio.c: New file.
73542
73543         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73544         (Depends-on): Add stdio.
73545         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73546         (Include): Use <stdio.h> instead of vsnprintf.h.
73547         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73548         HAVE_DECL_VSNPRINTF.
73549         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73550
73551         * modules/snprintf (Files): Remove lib/snprintf.h.
73552         (Depends-on): Add stdio.
73553         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73554         (Include): Use <stdio.h> instead of snprintf.h.
73555         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73556         HAVE_DECL_SNPRINTF.
73557         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73558         * lib/getaddrinfo.c: Likewise.
73559
73560         * modules/stdio: New file.
73561         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73562         * lib/snprintf.h: Remove file.
73563         * lib/vsnprintf.h: Remove file.
73564         * lib/.cppi-disable: Remove snprintf.h.
73565         * m4/stdio_h.m4: New file.
73566         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73567
73568 2007-02-20  Jim Meyering  <jim@meyering.net>
73569
73570         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73571         used by e.g., mingw.  From Bruno Haible.
73572
73573 2007-02-19  Bruno Haible  <bruno@clisp.org>
73574
73575         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73576         warnings.
73577         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73578
73579 2007-02-19  Bruno Haible  <bruno@clisp.org>
73580
73581         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73582         from mingw users.
73583
73584 2007-02-19  Bruno Haible  <bruno@clisp.org>
73585
73586         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73587         warnings.
73588         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73589
73590 2007-02-19  Jim Meyering  <jim@meyering.net>
73591
73592         Don't use FD after a successful "fdopendir (fd)".
73593         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73594         Reset it by calling dirfd on the just-obtained DIR*.
73595
73596         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73597         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73598
73599 2007-02-18  Bruno Haible  <bruno@clisp.org>
73600
73601         * lib/readlink.c: Include <unistd.h>.
73602         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73603         HAVE_READLINK.
73604         * modules/readlink (Depends-on): Add unistd.
73605         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73606         (Include): Add <unistd.h>.
73607
73608         * lib/getlogin_r.h: Remove file.
73609         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73610         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73611         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73612         HAVE_DECL_GETLOGIN_R.
73613         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73615         (Include): Use <unistd.h> instead of getlogin_r.h.
73616
73617         * lib/getcwd.h: Remove file.
73618         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73619         * lib/xgetcwd.c: Likewise.
73620         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73621         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73622         * modules/getcwd (Files): Remove lib/getcwd.h.
73623         (Depends-on): Add unistd.
73624         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73625         (Include): Use <unistd.h> instad of getcwd.h.
73626
73627         * lib/ftruncate.c: Include <unistd.h> first.
73628         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73629         Set HAVE_FTRUNCATE.
73630         * modules/ftruncate (Depends-on): Add unistd.
73631         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73632
73633         * lib/fchdir.c: Include <unistd.h> first.
73634         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73636         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73637         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73638         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73639
73640         * lib/dup2.c: Include <unistd.h> first.
73641         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73642         HAVE_DUP2.
73643         * modules/dup2 (Depends-on): Add unistd.
73644         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73645
73646         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73647         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73648         REPLACE_CHOWN. Don't define chown as a macro here.
73649         * modules/chown (Depends-on): Add unistd.
73650         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73651
73652         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73653         Add definition for GL_LINK_WARNING.
73654         (chown, dup2): New declarations.
73655         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73656         link warning.
73657         (ftruncate): New declaration.
73658         (getcwd): New declaration, taken from old getcwd.h.
73659         (getlogin_r): New declaration, taken from old getlogin_r.h.
73660         (readlink): New declaration.
73661         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73662         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73663         (gl_PREREQ_UNISTD): Remove macro.
73664         (gl_UNISTD_MODULE_INDICATOR): New macro.
73665         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73666         many new variables. Don't set UNISTD_H.
73667         * modules/unistd (Description): Change.
73668         (Depends-on): Add link-warning.
73669         (configure.ac): Update.
73670         (Makefile.am): Create unistd.h always. Substitute many new variables
73671         into it.
73672
73673 2007-02-18  Bruno Haible  <bruno@clisp.org>
73674
73675         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73676         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73677         HAVE_GETSUBOPT.
73678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73679         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73680         * lib/getsubopt.h: Remove file.
73681         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73682         (Depends-on): Add stdlib.
73683         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73684         (Includes): Use <stdlib.h> instead of getsubopt.h.
73685         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73686         Set HAVE_GETSUBOPT.
73687         * lib/getsubopt.c: Don't include getsubopt.h.
73688
73689 2007-02-18  Bruno Haible  <bruno@clisp.org>
73690
73691         * modules/fchdir (Depends-on): Add dup2.
73692
73693 2007-02-18  Bruno Haible  <bruno@clisp.org>
73694
73695         * lib/stdlib_.h: Handle glibc's special invocation convention
73696         specially.
73697
73698 2007-02-18  Bruno Haible  <bruno@clisp.org>
73699
73700         * modules/stdlib-tests: New file.
73701         * tests/test-stdlib.c: New file.
73702
73703         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73704         (Depends-on): Add stdlib.
73705         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73706         (Includes): Use <stdlib.h> instead of mkstemp.h.
73707         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73708         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73709         * lib/mkstemp.c: Don't include mkstemp.h.
73710         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73711         * lib/stdlib--.h: Don't include mkstemp.h.
73712
73713         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73714         (Depends-on): Add stdlib.
73715         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73716         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73717         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73718         HAVE_MKDTEMP.
73719         * lib/mkdtemp.c: Don't include mkdtemp.h.
73720         * lib/clean-temp.c: Don't include mkdtemp.h.
73721
73722         * modules/exit (Files): Remove lib/exit.h.
73723         (Depends-on): Add stdlib.
73724         (Makefile.am): Remove lib_SOURCES.
73725         (Include): Use <stdlib.h> instead of exit.h.
73726         * lib/argmatch.c: Don't include exit.h.
73727         * lib/execute.c: Likewise.
73728         * lib/pagealign_alloc.c: Likewise.
73729         * lib/pipe.c: Likewise.
73730         * lib/wait-process.c: Likewise.
73731         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73732         * lib/exitfail.c: Likewise.
73733         * lib/savewd.c: Likewise.
73734         * lib/xsetenv.c: Likewise.
73735
73736         * modules/stdlib: New file.
73737         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73738         and extra comments about mkstemp().
73739         * lib/exit.h: Remove file.
73740         * lib/mkdtemp.h: Remove file.
73741         * lib/mkstemp.h: Remove file.
73742         * m4/stdlib_h.m4: New file.
73743         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73744
73745 2007-02-18  Bruno Haible  <bruno@clisp.org>
73746
73747         * modules/math-tests: New file.
73748         * tests/test-math.c: New file.
73749
73750         * modules/math: New file.
73751         * modules/mathl (Files): Remove lib/mathl.h.
73752         (Depends-on): Add math.
73753         (Makefile.am): Don't mention mathl.h.
73754         (Include): Use <math.h> instead of mathl.h.
73755         * lib/math_.h: New file.
73756         * lib/mathl.h: Remove file.
73757         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73758         mathl.h.
73759         * lib/asinl.c: Likewise.
73760         * lib/atanl.c: Likewise.
73761         * lib/ceill.c: Likewise.
73762         * lib/cosl.c: Likewise.
73763         * lib/expl.c: Likewise.
73764         * lib/floorl.c: Likewise.
73765         * lib/frexpl.c: Likewise.
73766         * lib/ldexpl.c: Likewise.
73767         * lib/logl.c: Likewise.
73768         * lib/sincosl.c: Likewise.
73769         * lib/sinl.c: Likewise.
73770         * lib/sqrtl.c: Likewise.
73771         * lib/tanl.c: Likewise.
73772         * lib/trigl.c: Likewise.
73773         * m4/math_h.m4: New file.
73774         * MODULES.html.sh (Mathematics): Add math.
73775
73776 2007-02-17  Bruno Haible  <bruno@clisp.org>
73777
73778         * modules/wctype-tests: New file.
73779         * tests/test-wctype.c: New file.
73780
73781         * modules/wchar-tests: New file.
73782         * tests/test-wchar.c: New file.
73783
73784         * modules/unistd-tests: New file.
73785         * tests/test-unistd.c: New file.
73786
73787         * modules/time-tests: New file.
73788         * tests/test-time.c: New file.
73789
73790         * modules/sysexits-tests: New file.
73791         * tests/test-sysexits.c: New file.
73792
73793         * modules/sys_time-tests: New file.
73794         * tests/test-sys_time.c: New file.
73795
73796         * modules/sys_stat-tests: New file.
73797         * tests/test-sys_stat.c: New file.
73798
73799         * modules/sys_socket-tests: New file.
73800         * tests/test-sys_socket.c: New file.
73801
73802         * modules/sys_select-tests: New file.
73803         * tests/test-sys_select.c: New file.
73804
73805         * modules/string-tests: New file.
73806         * tests/test-string.c: New file.
73807
73808         * modules/stdbool-tests: New file.
73809         * tests/test-stdbool.c: New file.
73810
73811         * modules/netinet_in-tests: New file.
73812         * tests/test-netinet_in.c: New file.
73813
73814         * modules/inttypes-tests: New file.
73815         * tests/test-inttypes.c: New file.
73816
73817         * modules/fcntl-tests: New file.
73818         * tests/test-fcntl.c: New file.
73819
73820         * modules/byteswap-tests: New file.
73821         * tests/test-byteswap.c: New file.
73822
73823         * modules/arpa_inet-tests: New file.
73824         * tests/test-arpa_inet.c: New file.
73825
73826 2007-02-17  Bruno Haible  <bruno@clisp.org>
73827
73828         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73829         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73830         if the corresponding module is not enabled. Emit link warnings if
73831         the function is used nevertheless.
73832         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73833         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73834         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73835         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73836         * modules/inttypes (Depends-on): Add link-warning.
73837         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73838         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73839         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73840         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73841         * modules/imaxdiv (configure.ac): Likewise.
73842         * modules/strtoimax (configure.ac): Likewise.
73843         * modules/strtoumax (configure.ac): Likewise.
73844
73845 2007-02-17  Bruno Haible  <bruno@clisp.org>
73846
73847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73848         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73849         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73850         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73851
73852 2007-02-17  Bruno Haible  <bruno@clisp.org>
73853
73854         * modules/link-warning: New file.
73855         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73856         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73857         * modules/string (Depends-on): Add link-warning.
73858         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73859         string.h.
73860         * MODULES.html.sh (Support for building libraries and executables): Add
73861         link-warning.
73862
73863 2007-02-17  Bruno Haible  <bruno@clisp.org>
73864
73865         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
73866         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
73867         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
73868         long lines.
73869
73870 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
73871             Bruno Haible  <bruno@clisp.org>
73872
73873         * modules/tmpfile: New file.
73874         * lib/tmpfile.c: New file.
73875         * m4/tmpfile.m4: New file.
73876         * MODULES.html.sh (func_all_modules): New section "Input/output".
73877
73878 2007-02-15  Bruno Haible  <bruno@clisp.org>
73879
73880         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
73881         (supports_delete_on_close): New function.
73882         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
73883
73884 2007-02-14  Bruno Haible  <bruno@clisp.org>
73885
73886         * modules/mbspcasecmp-tests: New file.
73887         * tests/test-mbspcasecmp.sh: New file.
73888         * tests/test-mbspcasecmp.c: New file.
73889
73890         New module mbspcasecmp.
73891         * modules/mbspcasecmp: New file.
73892         * lib/mbspcasecmp.c: New file.
73893         * lib/string_.h (strncasecmp): Change warning message.
73894         (mbspcasecmp): New declaration.
73895         * m4/mbspcasecmp.m4: New file.
73896         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73897         GNULIB_MBSPCASECMP.
73898         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
73899         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
73900
73901 2007-02-14  Bruno Haible  <bruno@clisp.org>
73902
73903         * modules/mbsncasecmp-tests: New file.
73904         * tests/test-mbsncasecmp.sh: New file.
73905         * tests/test-mbsncasecmp.c: New file.
73906
73907         New module mbsncasecmp.
73908         * modules/mbsncasecmp: New file.
73909         * lib/mbsncasecmp.c: New file.
73910         * lib/string_.h (mbsncasecmp): New declaration.
73911         * m4/mbsncasecmp.m4: New file.
73912         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73913         GNULIB_MBSNCASECMP.
73914         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73915         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73916
73917 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73918
73919         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73920         Verify that it doesn't overlap with our flags.
73921         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73922         do not have the desired effect in multibyte locales; instead, use
73923         mbscasecmp.
73924         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73925         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73926         we don't require GNU fnmatch ourselves (if our users require it, they
73927         should do so explicitly).
73928
73929         Fix regex code so it doesn't rely on strcasecmp.
73930         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73931         Otherwise, include gnulib's langinfo.h.
73932         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73933         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73934         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73935         * modules/regex (FILES): Remove m4/codeset.m4.
73936         (Depends-on): Add localcharset.  Remove strcase.
73937
73938 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73939
73940         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73941         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73942
73943 2007-02-13  Bruno Haible  <bruno@clisp.org>
73944
73945         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73946         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73947
73948 2007-02-12  Bruno Haible  <bruno@clisp.org>
73949
73950         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73951         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73952         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73953         time warning rather than a link error.
73954
73955 2007-02-12  Bruno Haible  <bruno@clisp.org>
73956
73957         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73958         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73959         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73960
73961 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73962
73963         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73964         args, not 2.
73965
73966 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         New module 'time', so that apps can include <time.h> as per
73969         POSIX and GNU instead of separate include files like time_r.h
73970         and timegm.h.  This implementation tries out a simpler approach
73971         for replacing decls in standard include files (as compared to
73972         the string module), somewhat as an experiment.
73973
73974         * config/srclist.txt: Comment out mktime.c for now.
73975         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73976         since it doesn't apply any more.  Use generic wording instead.
73977         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73978         'time'.
73979         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73980         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73981         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73982         Don't include <sys/types.h>; no longer needed since we assume C89.
73983         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73984         * lib/strftime.c: Likewise.
73985         * lib/time_r.c: Likewise.
73986         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73987         * lib/nanosleep.c: Include <time.h> first, to check interface.
73988         * lib/strptime.c: Likewise.
73989         * lib/time_r.c: Likewise.
73990         * lib/timegm.c: Likewise.
73991         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73992         needed.
73993         * lib/timegm.c: Don't include timegm.h; no longer needed.
73994         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73995         time.h now handles any problems in that area.
73996         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73997         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73998         that time.h defines struct timespec.
73999         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74000         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74001         handles that.
74002         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74003         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74004         needed.  Set REPLACE_LOCALTIME.
74005         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74006         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74007         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74008         nanosleep; time_h.m4 now does that.  Don't require
74009         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74010         module handles this now.
74011         * modules/getdate (Depends-on): Remove timespec.  Add time.
74012         * modules/nanosleep (Depends-on): Likewise.
74013         * modules/stat-time (Depends-on): Likewise.
74014         * modules/nanosleep (Include): Include time.h, not timespec.h.
74015         * modules/strptime (Files): Remove lib/strptime.h.
74016         (Depends-on): Add extensions, time.
74017         (Include): Include time.h, not strptime.h.
74018         * modules/time_r (Files): Remove lib/time_r.h.
74019         (Depends-on): Add time.
74020         (Include): Include time.h, not time_r.h.
74021         * modules/timegm: Likewise.
74022         * modules/timespec (Description): Now does timespec-related decls
74023         of our own, instead of struct timespec itself.
74024         (Depends-on): Add time; remove extensions.
74025         (Maintainer): Add self.
74026         * modules/utimecmp (Depends-on): Add time; remove timespec.
74027         * modules/utimens (Depends-on): Likewise.
74028         * modules/xnanosleep (Depends-on): Likewise.
74029
74030 2007-02-11  Bruno Haible  <bruno@clisp.org>
74031
74032         * lib/c-strstr.c: Include allocsa.h.
74033         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74034         * lib/c-strcasestr.c: Include allocsa.h.
74035         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74036         * lib/strcasestr.c: Include allocsa.h.
74037         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74038         * lib/mbsstr.c: Include allocsa.h.
74039         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74040         allocsa/freesa instead of malloc/free.
74041         * lib/mbscasestr.c: Include allocsa.h.
74042         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74043         allocsa/freesa instead of malloc/free.
74044         * modules/c-strstr (Depends-on): Add allocsa.
74045         * modules/c-strcasestr (Depends-on): Likewise.
74046         * modules/strcasestr (Depends-on): Likewise.
74047         * modules/mbsstr (Depends-on): Likewise.
74048         * modules/mbscasestr (Depends-on): Likewise.
74049
74050 2007-02-11  Bruno Haible  <bruno@clisp.org>
74051
74052         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74053
74054         * modules/mbsspn-tests: New file.
74055         * tests/test-mbsspn.sh: New file.
74056         * tests/test-mbsspn.c: New file.
74057
74058 2007-02-11  Bruno Haible  <bruno@clisp.org>
74059
74060         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74061
74062         * modules/mbspbrk-tests: New file.
74063         * tests/test-mbspbrk.sh: New file.
74064         * tests/test-mbspbrk.c: New file.
74065
74066 2007-02-11  Bruno Haible  <bruno@clisp.org>
74067
74068         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74069         unneeded cast.
74070
74071         * modules/mbscspn-tests: New file.
74072         * tests/test-mbscspn.sh: New file.
74073         * tests/test-mbscspn.c: New file.
74074
74075 2007-02-11  Bruno Haible  <bruno@clisp.org>
74076
74077         * modules/mbscasecmp-tests: New file.
74078         * tests/test-mbscasecmp.sh: New file.
74079         * tests/test-mbscasecmp.c: New file.
74080
74081 2007-02-11  Bruno Haible  <bruno@clisp.org>
74082
74083         Ensure O(n) worst-case complexity of mbscasestr.
74084         * lib/mbscasestr.c: Include stdbool.h.
74085         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74086         functions.
74087         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74088         the bookkeeping indicates that it's worth it.
74089         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74090
74091         * modules/mbscasestr-tests: New file.
74092         * tests/test-mbscasestr1.c: New file.
74093         * tests/test-mbscasestr2.sh: New file.
74094         * tests/test-mbscasestr2.c: New file.
74095         * tests/test-mbscasestr3.sh: New file.
74096         * tests/test-mbscasestr3.c: New file.
74097         * tests/test-mbscasestr4.sh: New file.
74098         * tests/test-mbscasestr4.c: New file.
74099         * m4/locale-tr.m4: New file.
74100
74101 2007-02-11  Bruno Haible  <bruno@clisp.org>
74102
74103         Ensure O(n) worst-case complexity of mbsstr.
74104         * lib/mbsstr.c: Include stdbool.h.
74105         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74106         functions.
74107         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74108         bookkeeping indicates that it's worth it.
74109         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74110
74111         * modules/mbsstr-tests: New file.
74112         * tests/test-mbsstr1.c: New file.
74113         * tests/test-mbsstr2.sh: New file.
74114         * tests/test-mbsstr2.c: New file.
74115         * tests/test-mbsstr3.sh: New file.
74116         * tests/test-mbsstr3.c: New file.
74117         * m4/locale-fr.m4: New file.
74118
74119 2007-02-11  Bruno Haible  <bruno@clisp.org>
74120
74121         * lib/mbsrchr.c (mbsrchr): Fix bug.
74122
74123         * modules/mbsrchr-tests: New file.
74124         * tests/test-mbsrchr.sh: New file.
74125         * tests/test-mbsrchr.c: New file.
74126
74127 2007-02-11  Bruno Haible  <bruno@clisp.org>
74128
74129         * lib/mbschr.c (mbschr): Fix bug.
74130
74131         * modules/mbschr-tests: New file.
74132         * tests/test-mbschr.sh: New file.
74133         * tests/test-mbschr.c: New file.
74134         * m4/locale-zh.m4: New file.
74135
74136 2007-02-11  Bruno Haible  <bruno@clisp.org>
74137
74138         Support for copying multibyte string iterators.
74139         * lib/mbiter.h: Include <string.h>.
74140         (mbiter_multi_copy): New function.
74141         (mbi_copy): New macro.
74142         * lib/mbuiter.h: Include <string.h>.
74143         (mbuiter_multi_copy): New function.
74144         (mbui_copy): New macro.
74145
74146 2007-02-11  Bruno Haible  <bruno@clisp.org>
74147
74148         New module mbslen.
74149         * modules/mbslen: New file.
74150         * lib/mbslen.c: New file.
74151         * lib/string_.h (mbslen): New declaration.
74152         * m4/mbslen.m4: New file.
74153         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74154         GNULIB_MBSLEN.
74155         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74156         * MODULES.html.sh (Internationalization functions): Add mbslen.
74157
74158 2007-02-11  Bruno Haible  <bruno@clisp.org>
74159
74160         Ensure O(n) worst-case complexity of strcasestr substitute.
74161         * lib/strcasestr.c: Include stdbool.h.
74162         (knuth_morris_pratt): New function.
74163         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74164         bookkeeping indicates that it's worth it.
74165         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74166
74167         * modules/strcasestr-tests: New file.
74168         * tests/test-strcasestr.c: New file.
74169
74170 2007-02-11  Bruno Haible  <bruno@clisp.org>
74171
74172         Ensure O(n) worst-case complexity of c_strcasestr.
74173         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74174         (knuth_morris_pratt): New function.
74175         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74176         the bookkeeping indicates that it's worth it.
74177         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74178
74179         * modules/c-strcasestr-tests: New file.
74180         * tests/test-c-strcasestr.c: New file.
74181
74182 2007-02-11  Bruno Haible  <bruno@clisp.org>
74183
74184         Ensure O(n) worst-case complexity of c_strstr.
74185         * lib/c-strstr.c: Include stdbool.h, string.h.
74186         (knuth_morris_pratt): New function.
74187         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74188         bookkeeping indicates that it's worth it.
74189         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74190
74191         * lib/c-strstr.c: Complete rewrite for maintainability.
74192
74193         * modules/c-strstr-tests: New file.
74194         * tests/test-c-strstr.c: New file.
74195
74196 2007-02-11  Bruno Haible  <bruno@clisp.org>
74197
74198         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74199         5.2.1 and earlier, whereby \055 was treated just like the range
74200         delimiter '-'.
74201         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74202
74203 2007-02-08  Bruno Haible  <bruno@clisp.org>
74204
74205         * modules/regex (Depends-on): Add stdbool.
74206         Reported by Dalibor Topic <robilad@kaffe.org>.
74207
74208 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74209
74210         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74211         Prefer returning from main to exiting from it.
74212         Remove unnecessary parens after sizeof.
74213
74214 2007-02-05  Bruno Haible  <bruno@clisp.org>
74215
74216         New module mbssep.
74217         * modules/mbssep: New file.
74218         * lib/mbssep.c: New file.
74219         * lib/string_.h (strsep): Add a conditional link warning.
74220         (mbssep): New declaration.
74221         * m4/mbssep.m4: New file.
74222         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74223         GNULIB_MBSSEP.
74224         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74225         * MODULES.html.sh (Internationalization functions): Add mbssep.
74226
74227 2007-02-05  Bruno Haible  <bruno@clisp.org>
74228
74229         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74230         Optimize search in case of 1 delimiter.
74231
74232 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74233
74234         * lib/acl.h: Include sys/types.h before sys/acl.h.
74235
74236 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74237
74238         Merge upstream fix for glibc bugzilla #3957:
74239
74240         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74241
74242         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74243         bit for RE_HAT_LISTS_NOT_NEWLINE.
74244         (build_charclass_op): Remove bogus comment.
74245
74246 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74247
74248         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74249
74250 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74251
74252         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74253         * lib/memmem.c [!defined _LIBC]: Include config.h.
74254
74255 2007-02-04  Bruno Haible  <bruno@clisp.org>
74256
74257         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74258         warning message.
74259
74260 2007-02-04  Bruno Haible  <bruno@clisp.org>
74261
74262         New module mbstok_r.
74263         * modules/mbstok_r: New file.
74264         * lib/mbstok_r.c: New file.
74265         * lib/string_.h (strtok_r): Change argument names to match the
74266         comments. Add a conditional link warning.
74267         (mbstok_r): New declaration.
74268         * m4/mbstok_r.m4: New file.
74269         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74270         GNULIB_MBSTOK_R.
74271         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74272         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74273
74274 2007-02-04  Bruno Haible  <bruno@clisp.org>
74275
74276         New module mbsspn.
74277         * modules/mbsspn: New file.
74278         * lib/mbsspn.c: New file.
74279         * lib/string_.h (strspn): Add a conditional link warning.
74280         (mbsspn): New declaration.
74281         * m4/mbsspn.m4: New file.
74282         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74283         GNULIB_MBSSPN.
74284         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74285         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74286
74287 2007-02-04  Bruno Haible  <bruno@clisp.org>
74288
74289         New module mbspbrk.
74290         * modules/mbspbrk: New file.
74291         * lib/mbspbrk.c: New file.
74292         * lib/string_.h (strpbrk): Add a conditional link warning.
74293         (mbspbrk): New declaration.
74294         * m4/mbspbrk.m4: New file.
74295         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74296         GNULIB_MBSPBRK.
74297         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74298         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74299
74300 2007-02-04  Bruno Haible  <bruno@clisp.org>
74301
74302         New module mbscspn.
74303         * modules/mbscspn: New file.
74304         * lib/mbscspn.c: New file.
74305         * lib/string_.h (strcspn): Add a conditional link warning.
74306         (mbscspn): New declaration.
74307         * m4/mbscspn.m4: New file.
74308         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74309         GNULIB_MBSCSPN.
74310         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74311         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74312
74313 2007-02-04  Bruno Haible  <bruno@clisp.org>
74314
74315         New module mbscasestr, reduced goal of strcasestr.
74316         * modules/mbscasestr: New file.
74317         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74318         (mbscasestr): Renamed from strcasestr.
74319         * lib/strcasestr.c: Don't include mbuiter.h.
74320         (strcasestr): Remove support for multibyte locales.
74321         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74322         Change the conditional link warning.
74323         (mbscasestr): New declaration.
74324         * m4/mbscasestr.m4: New file.
74325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74326         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74327         REPLACE_STRCASESTR.
74328         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74330         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74331         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74332         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74333         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74334         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74335         (Depends-on): Remove mbuiter.
74336         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74337
74338 2007-02-04  Bruno Haible  <bruno@clisp.org>
74339
74340         Simplify handling of strncasecmp.
74341         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74342         the conditional link warning.
74343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74344         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74345         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74346         * modules/strcase (configure.ac): Don't invoke
74347         gl_STRING_MODULE_INDICATOR.
74348         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74349
74350 2007-02-04  Bruno Haible  <bruno@clisp.org>
74351
74352         New module mbscasecmp, reduced goal of strcasecmp.
74353         * modules/mbscasecmp: New file.
74354         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74355         (mbscasecmp): Renamed from strcasecmp.
74356         * lib/strcasecmp.c: Don't include mbuiter.h.
74357         (strcasecmp): Remove support for multibyte locales.
74358         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74359         Change the conditional link warning.
74360         (mbscasecmp): New declaration.
74361         * m4/mbscasecmp.m4: New file.
74362         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74363         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74364         REPLACE_STRCASECMP.
74365         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74366         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74367         GNULIB_MBSCASECMP.
74368         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74369         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74370         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74371         (Depends-on): Remove mbuiter.
74372         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74373
74374 2007-02-04  Bruno Haible  <bruno@clisp.org>
74375
74376         New module mbsstr. Remove module strstr.
74377         * modules/mbsstr: New file.
74378         * modules/strstr: Remove file.
74379         * lib/mbsstr.c: Renamed from lib/strstr.c.
74380         (mbsstr): Renamed from strstr.
74381         * lib/string_.h (strstr): Remove declaration. Change the conditional
74382         link warning.
74383         (mbsstr): New declaration.
74384         * m4/mbsstr.m4: New file.
74385         * m4/strstr.m4: Remove file.
74386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74387         REPLACE_STRSTR.
74388         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74389         Don't initialize GNULIB_STRSTR.
74390         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74391         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74392         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74393         (Support for systems lacking ANSI C 89): Remove strstr.
74394
74395 2007-02-04  Bruno Haible  <bruno@clisp.org>
74396
74397         New module mbsrchr.
74398         * modules/mbsrchr: New file.
74399         * lib/mbsrchr.c: New file.
74400         * lib/string_.h (strrchr): Add a conditional link warning.
74401         (mbsrchr): New declaration.
74402         * m4/mbsrchr.m4: New file.
74403         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74404         GNULIB_MBSRCHR.
74405         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74406         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74407
74408 2007-02-04  Bruno Haible  <bruno@clisp.org>
74409
74410         New module mbschr.
74411         * modules/mbschr: New file.
74412         * lib/mbschr.c: New file.
74413         * lib/string_.h (strchr): Add a conditional link warning.
74414         (mbschr): New declaration.
74415         * m4/mbschr.m4: New file.
74416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74417         GNULIB_MBSCHR.
74418         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74419         * MODULES.html.sh (Internationalization functions): Add mbschr.
74420
74421 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74422
74423         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74424
74425         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74426
74427 2007-02-04  Bruno Haible  <bruno@clisp.org>
74428
74429         New module description section 'configure.ac-early'.
74430         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74431         (func_get_autoconf_early_snippet): New function.
74432         (func_import, func_create_testdir): Use it. Remove special cases for
74433         modules 'extensions' and 'lock'.
74434         * modules/extensions (configure.ac-early): Require
74435         gl_USE_SYSTEM_EXTENSIONS.
74436         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74437
74438 2007-02-04  Bruno Haible  <bruno@clisp.org>
74439
74440         Make use of gcj-4.3's -fsource and -ftarget option.
74441         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74442         and if so try the options -fsource and -ftarget.
74443         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74444         source_version, ftarget_option, target_version arguments.
74445         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74446         (is_envjavac_oldgcj_14_14_usable): Renamed from
74447         is_envjavac_gcj_14_14_usable.
74448         (is_envjavac_oldgcj_14_13_usable): Renamed from
74449         is_envjavac_gcj_14_13_usable.
74450         (is_gcj_present): Update.
74451         (is_gcj_43, is_gcj43_usable): New functions.
74452         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74453         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74454         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74455         try the options -fsource and -ftarget.
74456
74457 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74458
74459         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74460         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74461         larger value.
74462
74463 2007-02-03  Jim Meyering  <jim@meyering.net>
74464
74465         Give tools a better chance to allocate space for very large buffers.
74466         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74467
74468         Make pwd and readlink work also when run with an unreadable parent dir
74469         on systems with openat support.
74470         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74471         provided getcwd function, even when we have openat support.
74472         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74473
74474 2007-02-02  Bruno Haible  <bruno@clisp.org>
74475
74476         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74477         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74478         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74479         portability problems if one of these functions is only used on specific
74480         platforms.
74481         Reported by Paul Eggert.
74482
74483 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74484
74485         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74486         is causing more trouble than it's curing.
74487         * lib/regex_internal.h (__mempcpy): Remove.
74488         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74489         (and make the code a tad smaller to boot).
74490         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74491
74492 2007-02-02  Jim Meyering  <jim@meyering.net>
74493
74494         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74495         section, not in the Makefile.am: one.
74496
74497 2007-02-02  Eric Blake  <ebb9@byu.net>
74498
74499         * lib/strchrnul.c: Always include config.h first.
74500
74501         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74502         gnulib strstr is not necessary here.
74503
74504 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74505
74506         * m4/socklen.m4: Fix typo.
74507
74508 2007-02-02  Eric Blake  <ebb9@byu.net>
74509
74510         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74511         * modules/netinet_in (Makefile.am): Likewise.
74512
74513 2007-02-01  Bruno Haible  <bruno@clisp.org>
74514
74515         * lib/string_.h (GL_LINK_WARNING): New macro.
74516         (strcasecmp, strstr, strcasestr): If provided by the system,
74517         conditionally define as a macro that leads to a warning instead of to
74518         an error.
74519         (strncasecmp): Conditionally define as a macro that leads to a warning.
74520
74521 2007-02-01  Karl Berry  <karl@gnu.org>
74522
74523         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74524
74525 2007-02-01  Bruno Haible  <bruno@clisp.org>
74526
74527         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74528         renamings.
74529
74530 2007-02-01  Eric Blake  <ebb9@byu.net>
74531
74532         * modules/regex (Depends-on): Revert dependence on mempcpy.
74533         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74534         module's definition of mempcpy.
74535         Reported by Paul Eggert.
74536
74537 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74538
74539         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74540         the symbol XYZ before redefining it.  This fixes a problem with
74541         programs that don't use XYZ, when compiled on systems that define
74542         XYZ to something else.
74543
74544 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74545
74546         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74547         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74548         writeable to group or other and (2) is intended to have a special
74549         mode bit that is set or cleared.  In such a case, the directory
74550         should be neither group- nor other-writeable until the special
74551         mode bits are right.
74552
74553 2007-01-31  Eric Blake  <ebb9@byu.net>
74554
74555         * modules/mountlist (Depends-on): Add strstr.
74556
74557         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74558         bug.
74559         * modules/string (Makefile.am): Remove redundant replacement.
74560         * modules/regex (Depends-on): Add mempcpy.
74561
74562 2007-01-31  Bruno Haible  <bruno@clisp.org>
74563
74564         New module description field 'Link'.
74565         * gnulib-tool (func_usage): Document --extract-link-directive.
74566         (sed_extract_prog): Recognize 'Link' directive.
74567         (func_get_link_directive): New function.
74568         (func_import): Show summary of link directives.
74569         Handle --extract-link-directive option.
74570         * modules/acl (Link): New section.
74571         * modules/clock-time (Link): New section.
74572         * modules/euidaccess (Link): New section.
74573         * modules/gettext (Link): New section.
74574         * modules/iconv (Link): New section.
74575         * modules/lock (Link): New section.
74576         * modules/nanosleep (Link): New section.
74577         * modules/readline (Link): New section.
74578
74579 2007-01-27  Bruno Haible  <bruno@clisp.org>
74580
74581         Enforce the use of gnulib modules for unportable <string.h> functions.
74582         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74583         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74584         (gl_HEADER_STRING_H_BODY): Require it.
74585         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74586         the symbol XYZ to one that gives a link error.
74587         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74588         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74589         * modules/mempcpy (configure.ac): Likewise.
74590         * modules/memrchr (configure.ac): Likewise.
74591         * modules/stpcpy (configure.ac): Likewise.
74592         * modules/stpncpy (configure.ac): Likewise.
74593         * modules/strcase (configure.ac): Likewise.
74594         * modules/strcasestr (configure.ac): Likewise.
74595         * modules/strchrnul (configure.ac): Likewise.
74596         * modules/strdup (configure.ac): Likewise.
74597         * modules/strndup (configure.ac): Likewise.
74598         * modules/strnlen (configure.ac): Likewise.
74599         * modules/strpbrk (configure.ac): Likewise.
74600         * modules/strsep (configure.ac): Likewise.
74601         * modules/strstr (configure.ac): Likewise.
74602         * modules/strtok_r (configure.ac): Likewise.
74603
74604 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74605
74606         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74607
74608 2007-01-30  Jim Meyering  <jim@meyering.net>
74609
74610         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74611
74612 2007-01-29  Bruno Haible  <bruno@clisp.org>
74613
74614         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74615         * lib/execute.c: Likewise.
74616         * lib/pipe.c: Likewise.
74617         * lib/printf-args.h: Likewise.
74618         * lib/printf-args.c: Likewise.
74619         * lib/printf-parse.c: Likewise.
74620         * lib/vasnprintf.c: Likewise.
74621
74622 2007-01-29  Eric Blake  <ebb9@byu.net>
74623
74624         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74625         declaration.
74626
74627 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74628
74629         * lib/strptime.h (strptime): Use 'restrict' for args where
74630         POSIX requires this.
74631         * lib/strptime.c (strptime): Likewise.
74632         Change license notice from LGPL to GPL, since gnulib-tool will
74633         change this as needed.
74634         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74635         defined.
74636         Include "strptime.h" first, to check interface.
74637         Do not #undef _LIBC and _NL_CURRENT.
74638         Do not include <stdlib.h>; no longer needed.
74639         Include "time_r.h" and declare ptime_locale_status
74640         only if _LIBC is not defined.
74641         (__P): Remove unused macro.
74642         (match_string): Bring back glibc version, but use it only if _LIBC
74643         is defined.
74644         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74645         Remove unnecessary assertion and abort() call.
74646         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74647         * m4/strptime.m4: Fix serial number comment.
74648         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74649         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74650         (Depends-on): Add time_r.
74651
74652 2007-01-29  Bruno Haible  <bruno@clisp.org>
74653
74654         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74655         strptime.
74656         * modules/strptime (Depends-on): Add stdbool.
74657         * lib/strptime.h: Include <time.h> always. Add comments.
74658
74659 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74660
74661         * modules/strptime: New file.
74662         * lib/strptime.h: New file.
74663         * lib/strptime.c: New file.
74664         * m4/strptime.m4: New file.
74665
74666 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74667
74668         * MODULES.html.sh: New module mpsort.
74669         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74670
74671         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74672         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74673         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74674         All uses changed.
74675         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74676         All uses changed.
74677         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74678         to _Restrict_.
74679         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74680         the parameter matches the prototype.
74681
74682 2007-01-28  Jim Meyering  <jim@meyering.net>
74683
74684         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74685         sys/time.h here, reverting that part of the previous patch:
74686         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74687
74688 2007-01-28  Bruno Haible  <bruno@clisp.org>
74689
74690         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74691         value of $(SYS_TIME_H).
74692         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74693         remove it conditionally, too. [added by Jim Meyering]
74694         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74695         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74696         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74697         GETTIMEOFDAY_REPLACEMENT to 1.
74698
74699 2007-01-28  Bruno Haible  <bruno@clisp.org>
74700
74701         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74702         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74704         Set UNISTD_H instead of UNISTD_H2.
74705         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74706
74707 2007-01-28  Bruno Haible  <bruno@clisp.org>
74708
74709         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74710         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74711
74712 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74713
74714         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74715         (func_create_testdir): Ensure C locale for `grep' and `tr'
74716         character ranges.
74717         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74718         ACLOCAL_AMFLAGS parsing state machine.
74719
74720 2007-01-27  Bruno Haible  <bruno@clisp.org>
74721
74722         * modules/unistr/base: Update.
74723
74724 2007-01-27  Bruno Haible  <bruno@clisp.org>
74725
74726         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74727         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74728         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74729         modules/unistr/u32-mbtouc.
74730         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74731         * lib/unistr.h: Update.
74732         * lib/linebreak.c: Update.
74733         * modules/unistr/u32-mbtouc: Renamed from
74734         modules/unistr/u32-mbtouc-safe.
74735         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74736         * lib/unistr.h: Update.
74737         * lib/unistr/u32-to-u8.c: Update.
74738         * lib/unistr/u32-to-u16.c: Update.
74739
74740 2007-01-27  Bruno Haible  <bruno@clisp.org>
74741
74742         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74743         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74744         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74745         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74746         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74747         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74748         modules/unistr/u16-mbtouc.
74749         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74750         * lib/unistr.h: Update.
74751         * lib/linebreak.c: Update.
74752         * modules/linebreak: Update.
74753         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74754         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74755         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74756         * modules/unistr/u16-mbtouc: Renamed from
74757         modules/unistr/u16-mbtouc-safe.
74758         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74759         * lib/unistr.h: Update.
74760         * lib/unistr/u16-to-u8.c: Update.
74761         * modules/unistr/u16-to-u8: Update.
74762         * lib/unistr/u16-to-u32.c: Update.
74763         * modules/unistr/u16-to-u32: Update.
74764
74765 2007-01-27  Bruno Haible  <bruno@clisp.org>
74766
74767         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74768         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74769         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74770         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74771         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74772         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74773         modules/unistr/u8-mbtouc.
74774         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74775         * lib/unistr.h: Update.
74776         * lib/striconveh.c: Update.
74777         * modules/striconveh: Update.
74778         * lib/linebreak.c: Update.
74779         * modules/linebreak: Update.
74780         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74781         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74782         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74783         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74784         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74785         * lib/unistr.h: Update.
74786         * lib/striconveh.c: Update.
74787         * modules/striconveh: Update.
74788         * lib/unistr/u8-to-u16.c: Update.
74789         * modules/unistr/u8-to-u16: Update.
74790         * lib/unistr/u8-to-u32.c: Update.
74791         * modules/unistr/u8-to-u32: Update.
74792
74793 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74794
74795         Sync from Libtool.
74796         * lib/argz.c: Do not include strings.h nor memory.h, include
74797         string.h unconditionally.  Patch by Simon Josefsson.
74798
74799 2007-01-27  Bruno Haible  <bruno@clisp.org>
74800
74801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74802         from gl_HEADER_STRING_H_BODY.
74803         (gl_HEADER_STRING_H_BODY): Require it.
74804         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74805         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74806         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74807         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74808         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74809         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74810         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74811         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74812         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74813         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74814         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74815         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74816         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74817         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74818         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74819
74820 2007-01-27  Bruno Haible  <bruno@clisp.org>
74821
74822         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74823         check_PROGRAMS into noinst_PROGRAMS.
74824         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74825         check_PROGRAMS in this case.
74826         (func_import): Set for_test to false.
74827         (func_create_testdir): Set for_test to true.
74828
74829 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74830             Bruno Haible  <bruno@clisp.org>
74831
74832         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74833         (Depends-on): Add string.
74834         (Includes): Use <string.h> instead of strcasestr.h.
74835         * modules/string (Makefile.am): Also substitute the value of
74836         REPLACE_STRCASESTR.
74837         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74838         assume strcasestr is declared in <string.h> not <strings.h>. Also
74839         set REPLACE_STRCASESTR.
74840         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74841         REPLACE_STRCASESTR.
74842         * lib/strcasestr.h: Remove file.
74843         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74844         * lib/string_.h (strcasestr): New declaration.
74845
74846 2007-01-27  Bruno Haible  <bruno@clisp.org>
74847
74848         * lib/string_.h: Use 'extern'.
74849
74850 2007-01-27  Jim Meyering  <jim@meyering.net>
74851
74852         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74853         of set-but-not-used local, "q".
74854
74855         * lib/mempcpy.c: Include <config.h> before <string.h>.
74856         This fixes a compilation error on HP-UX, due to the system's
74857         "restrict"-using mempcpy prototype.
74858
74859 2007-01-26  Bruno Haible  <bruno@clisp.org>
74860
74861         Small optimization.
74862         * lib/javacomp.c: Include c-strstr.h.
74863          (is_envjavac_gcj): Use c_strstr instead of strstr.
74864         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
74865
74866 2007-01-26  Bruno Haible  <bruno@clisp.org>
74867
74868         * MODULES.html.sh (Unicode string functions): Add the new modules.
74869
74870         * modules/uniconv/u32-strconv-to-locale: New file.
74871         * lib/uniconv/u32-strconv-to-locale.c: New file.
74872
74873         * modules/uniconv/u16-strconv-to-locale: New file.
74874         * lib/uniconv/u16-strconv-to-locale.c: New file.
74875
74876         * modules/uniconv/u8-strconv-to-locale: New file.
74877         * lib/uniconv/u8-strconv-to-locale.c: New file.
74878
74879         * modules/uniconv/u32-strconv-from-locale: New file.
74880         * lib/uniconv/u32-strconv-from-locale.c: New file.
74881
74882         * modules/uniconv/u16-strconv-from-locale: New file.
74883         * lib/uniconv/u16-strconv-from-locale.c: New file.
74884
74885         * modules/uniconv/u8-strconv-from-locale: New file.
74886         * lib/uniconv/u8-strconv-from-locale.c: New file.
74887
74888         * modules/uniconv/u32-strconv-to-enc: New file.
74889         * lib/uniconv/u32-strconv-to-enc.c: New file.
74890         * modules/uniconv/u32-strconv-to-enc-tests: New file.
74891         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
74892
74893         * modules/uniconv/u16-strconv-to-enc: New file.
74894         * lib/uniconv/u16-strconv-to-enc.c: New file.
74895         * lib/uniconv/u-strconv-to-enc.h: New file.
74896         * modules/uniconv/u16-strconv-to-enc-tests: New file.
74897         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
74898
74899         * modules/uniconv/u8-strconv-to-enc: New file.
74900         * lib/uniconv/u8-strconv-to-enc.c: New file.
74901         * modules/uniconv/u8-strconv-to-enc-tests: New file.
74902         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
74903
74904         * modules/uniconv/u32-strconv-from-enc: New file.
74905         * lib/uniconv/u32-strconv-from-enc.c: New file.
74906         * modules/uniconv/u32-strconv-from-enc-tests: New file.
74907         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
74908
74909         * modules/uniconv/u16-strconv-from-enc: New file.
74910         * lib/uniconv/u16-strconv-from-enc.c: New file.
74911         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74912         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74913
74914         * modules/uniconv/u8-strconv-from-enc: New file.
74915         * lib/uniconv/u8-strconv-from-enc.c: New file.
74916         * lib/uniconv/u-strconv-from-enc.h: New file.
74917         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74918         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74919
74920         * modules/uniconv/u32-conv-from-enc: New file.
74921         * lib/uniconv/u32-conv-from-enc.c: New file.
74922         * modules/uniconv/u32-conv-from-enc-tests: New file.
74923         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74924
74925         * modules/uniconv/u16-conv-from-enc: New file.
74926         * lib/uniconv/u16-conv-from-enc.c: New file.
74927         * lib/uniconv/u-conv-from-enc.h: New file.
74928         * modules/uniconv/u16-conv-from-enc-tests: New file.
74929         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74930
74931         * modules/uniconv/u8-conv-from-enc: New file.
74932         * lib/uniconv/u8-conv-from-enc.c: New file.
74933         * modules/uniconv/u8-conv-from-enc-tests: New file.
74934         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74935
74936         * modules/uniconv/base: New file.
74937         * lib/uniconv.h: New file.
74938
74939 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         * doc/gnulib-tool.texi (Initial import): Update to match current
74942         behavior with strdup module.
74943         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74944         * lib/memmem.h: Remove; all uses removed.  This is now done
74945         by <string.h>.
74946         * lib/mempcpy.h: Likewise.
74947         * lib/memrchr.h: Likewise.
74948         * lib/stpcpy.h: Likewise.
74949         * lib/stpncpy.h: Likewise.
74950         * lib/strcase.h: Likewise.
74951         * lib/strchrnul.h: Likewise.
74952         * lib/strdup.h: Likewise.
74953         * lib/strndup.h: Likewise.
74954         * lib/strnlen.h: Likewise.
74955         * lib/strpbrk.h: Likewise.
74956         * lib/strsep.h: Likewise.
74957         * lib/strstr.h: Likewise.
74958         * lib/strtok_r.h: Likewise.
74959         * lib/string_.h: New file.
74960         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74961         Rely on <string.h> instead.
74962         * lib/canon-host.c: Likewise.
74963         * lib/chdir-long.c: Likewise.
74964         * lib/concatpath.c: Likewise.
74965         * lib/exclude.c: Likewise.
74966         * lib/fchdir.c: Likewise.
74967         * lib/getaddrinfo.c: Likewise.
74968         * lib/getcwd.c: Likewise.
74969         * lib/getsubopt.c: Likewise.
74970         * lib/glob.c: Likewise.
74971         * lib/hard-locale.c: Likewise.
74972         * lib/iconvme.c: Likewise.
74973         * lib/javacomp.c: Likewise.
74974         * lib/mempcpy.c: Likewise.
74975         * lib/memrchr.c: Likewise.
74976         * lib/regex_internal.h: Likewise.
74977         * lib/stpncpy.c: Likewise.
74978         * lib/strcasecmp.c: Likewise.
74979         * lib/strchrnul.c: Likewise.
74980         * lib/strdup.c: Likewise.
74981         * lib/striconv.c: Likewise.
74982         * lib/striconveh.c: Likewise.
74983         * lib/striconveha.c: Likewise.
74984         * lib/strncasecmp.c: Likewise.
74985         * lib/strndup.c: Likewise.
74986         * lib/strnlen.c: Likewise.
74987         * lib/strsep.c: Likewise.
74988         * lib/strstr.c: Likewise.
74989         * lib/strtok_r.c: Likewise.
74990         * lib/userspec.c: Likewise.
74991         * lib/w32spawn.h: Likewise.
74992         * lib/xstrndup.c: Likewise.
74993         * lib/mountlist.c (strstr): Remove decl.
74994         * m4/string_h.m4: New file.
74995         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74996         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74997         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74998         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74999         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75000         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75001         Set REPLACE_STRCASECMP if necessary.
75002         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75003         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75004         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75005         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75006         HAVE_DECL_STRDUP if necessary.
75007         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75008         since gl_FUNC_STRNDUP does that now.
75009         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75010         Check for decl here...
75011         (gl_PREREQ_STRNLEN): ... not here.
75012         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75013         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75014         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75015         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75016         necessary.
75017         * modules/string: New file.
75018         * modules/memmem (Files): Remove special-purpose include file.
75019         (Depends-on): Add string.
75020         (Include): Include <string.h>, not the removed file.
75021         * modules/mempcpy: Likewise.
75022         * modules/memrchr: Likewise.
75023         * modules/stpcpy: Likewise.
75024         * modules/stpncpy: Likewise.
75025         * modules/strcase: Likewise.
75026         * modules/strchrnul: Likewise.
75027         * modules/strdup: Likewise.
75028         * modules/strndup: Likewise.
75029         * modules/strnlen: Likewise.
75030         * modules/strpbrk: Likewise.
75031         * modules/strsep: Likewise.
75032         * modules/strstr: Likewise.
75033         * modules/strtok_r: Likewise.
75034         * tests/test-dirname.c: Don't include "strdup.h", since
75035         <string.h> now suffices.
75036         * tests/test-memmem.c: Don't include "memmem.h", since
75037         <string.h> now suffices.
75038
75039 2007-01-25  Bruno Haible  <bruno@clisp.org>
75040
75041         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75042         *resultp is 0.
75043
75044         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75045         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75046         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75047         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75048
75049         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75050         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75051         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75052         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75053         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75054         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75055
75056 2007-01-24  Bruno Haible  <bruno@clisp.org>
75057
75058         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75059         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75060         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75061         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75062         gl_FUNC_FTS_CORE.
75063         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75064         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75065         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75066         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75067         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75068         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75069         gl_FUNC_FCHOWNAT.
75070         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75071         gl_FUNC_STRFTIME.
75072         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75073         Reported by Ralf Wildenhues.
75074
75075 2007-01-24  Bruno Haible  <bruno@clisp.org>
75076
75077         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75078         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75079         gl_GETADDRINFO.
75080         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75081         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75082         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75083
75084 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75085
75086         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75087         Don't use 'exit'; just return from 'main'.
75088         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75089
75090         * lib/fnmatch_.h: Readjust white space and comments to match
75091         glibc, to avoid spurious diffs.
75092
75093 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75094
75095         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75096         2004-12-01 change by Jakub Jelinek, since this code won't compile
75097         if !LIBC.  Problem reported by Bob Proulx.
75098
75099 2007-01-23  Bruno Haible  <bruno@clisp.org>
75100
75101         * lib/striconveh.c: Include c-strcaseeq.h.
75102         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75103         * modules/striconveh (Depends-on): Add c-strcaseeq.
75104
75105 2007-01-23  Bruno Haible  <bruno@clisp.org>
75106
75107         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75108
75109         * modules/c-strcaseeq: New file.
75110         * lib/c-strcaseeq.h: New file.
75111
75112         * modules/streq: New file.
75113         * lib/streq.h: New file.
75114
75115 2007-01-23  Bruno Haible  <bruno@clisp.org>
75116
75117         * modules/striconveha-tests: New file.
75118         * tests/test-striconveha.c: New file.
75119
75120         * lib/striconveha.h: Include <stdbool.h>.
75121         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75122         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75123         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75124         (mem_iconveha): New function.
75125         (str_iconveha_notranslit): Renamed from str_iconveha.
75126         (str_iconveha): New function.
75127         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75128         c-strcase.
75129
75130 2007-01-23  Bruno Haible  <bruno@clisp.org>
75131
75132         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75133         encodings without forgiving before trying any encoding with handler.
75134         (str_iconveha): Try all encodings without forgiving before trying any
75135         encoding with handler.
75136
75137 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75138
75139         Import the following changes from libc.
75140
75141         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75142
75143         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75144
75145         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75146
75147         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75148         normal_bracket label.
75149
75150         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75151
75152         [BZ #361]
75153         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75154         to normal_bracket after fetching the next character.
75155
75156 2007-01-22  Bruno Haible  <bruno@clisp.org>
75157
75158         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75159         argument.
75160         * lib/striconveh.c (iconv_carefully_1): New function.
75161         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75162         argument.
75163         (str_cd_iconveh): Update.
75164         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75165         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75166         * tests/test-striconveh.c (MAGIC): New macro.
75167         (new_offsets): New function.
75168         (main): Test call with and without offsets.
75169
75170 2007-01-22  Bruno Haible  <bruno@clisp.org>
75171
75172         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75173         * modules/sys_select (Makefile.am): Likewise.
75174         * modules/sys_socket (Makefile.am): Likewise.
75175         * modules/sys_time (Makefile.am): Likewise.
75176
75177 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75178
75179         * modules/gettimeofday (License): Change from GPL to LGPL, since
75180         gettimeofday is a library function.
75181
75182 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75183
75184         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75185
75186 2007-01-21  Bruno Haible  <bruno@clisp.org>
75187
75188         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75189
75190 2007-01-21  Bruno Haible  <bruno@clisp.org>
75191
75192         * modules/striconveha: New file.
75193         * lib/striconveha.h: New file.
75194         * lib/striconveha.c: New file.
75195         * MODULES.html.sh (Internationalization functions): Add striconveha.
75196         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75197         string.
75198         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75199
75200 2007-01-21  Bruno Haible  <bruno@clisp.org>
75201
75202         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75203         * lib/striconveh.c (str_iconveh): Likewise.
75204
75205 2007-01-21  Bruno Haible  <bruno@clisp.org>
75206
75207         * lib/striconveh.h (mem_iconveh): New declaration.
75208         * lib/striconveh.c (mem_iconveh): New function.
75209         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75210
75211 2007-01-21  Bruno Haible  <bruno@clisp.org>
75212
75213         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75214
75215         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75216         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75217         original result buffer.
75218         (str_cd_iconveh): Update.
75219         * tests/test-striconveh.c (main): Update.
75220
75221         * lib/striconv.h (mem_cd_iconv): Change specification.
75222         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75223         result buffer.
75224         (str_cd_iconv): Update.
75225         * tests/test-striconv.c (main): Update.
75226
75227 2007-01-21  Bruno Haible  <bruno@clisp.org>
75228
75229         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75230
75231 2007-01-20  Jim Meyering  <jim@meyering.net>
75232
75233         * lib/userspec.c (parse_with_separator): If a user or group string
75234         starts with "+", skip the corresponding name-to-ID look-up, since
75235         such a look-up must fail: user and group names may not include "+".
75236
75237 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75238
75239         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75240         since we now assume the sys_time module.
75241         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75242         check for sys/time.h; no longer needed.
75243         * modules/poll (Depends-on): Depend on sys_time.
75244
75245 2007-01-18  Bruno Haible  <bruno@clisp.org>
75246
75247         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75248         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75249
75250         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75251         gettimeofday.
75252
75253         * tests/test-gettimeofday.c: Include <time.h>.
75254         (dummy): Remove variable.
75255
75256         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75257         gl_HEADER_SYS_TIME_H.
75258         (gl_HEADER_SYS_TIME_H): New macro.
75259
75260         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75261         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75262         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75263         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75264         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75265         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75266         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75267         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75268         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75269         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75270         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75271
75272         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75273         last change; it caused a compilation error when cross-compiling to
75274         Cygwin.
75275
75276 2007-01-18  Jim Meyering  <jim@meyering.net>
75277
75278         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75279         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75280         than the race-prone "test -d sys || mkdir sys".
75281         (configure.ac): Use AC_PROG_MKDIR_P.
75282         * modules/sys_select: Likewise.
75283         * modules/sys_socket: Likewise.
75284         * modules/sys_time: Likewise.
75285
75286 2007-01-18  Eric Blake  <ebb9@byu.net>
75287
75288         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75289         replace gettimeofday.
75290         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75291         name, to avoid infinite recursion.
75292
75293 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75294
75295         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75296         module sys_time.
75297         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75298         assume timespec.h defines struct timeval.
75299         * lib/settime.c: Likewise.
75300         * lib/utimens.c: Likewise.
75301         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75302         since we now assume the gettimeofday module.
75303         * lib/tempname.c (__gen_tempname): Likewise.
75304         * lib/gettimeofday.h: Remove.
75305         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75306         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75307         Include <time.h>, for 'time()'.
75308         (localtime_buffer_addr): Also use this workaround if
75309         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75310         to simplify the uses.  All uses changed.
75311         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75312         that #undef is inside {}, and 'const' follows type name consistently.
75313         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75314         (gettimeofday): Do not use the maximum possible value for
75315         tv->tv_usec, since that might break usages other than ls.c.
75316         Instead, we'll leave ls.c alone.  This undoes today's patch
75317         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75318         we've never observed the problem but might as well keep the
75319         canary.
75320         * lib/nanosleep.c: Include timespec.h first, for interface check.
75321         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75322         now assume the sys_time module.
75323         * lib/tempname.c: Likewise.
75324         * lib/timespec.h: Likewise.
75325         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75326         needed.
75327         * lib/strftime.c: Likewise.
75328         * lib/timespec.h: Likewise.
75329         * lib/posixtm.c: Include posixtm.h first, for interface check.
75330         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75331         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75332         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75333         * lib/sys_time_.h: New file.
75334         * lib/timespec.h (struct timespec): Use long int, not long.
75335         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75336         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75337         Remove obsolescent call to AC_HEADER_TIME.
75338         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75339         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75340         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75341         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75342         Likewise.
75343         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75344         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75345         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75346         into the sys_time module.  Check for gettimeofday just once.
75347         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75348         for gettimeofday signature to just check the signature.  Merely
75349         compile it, since linking doesn't test signature.  Improve test for
75350         whether gettimeofday.o is actually needed.
75351         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75352         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75353         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75354         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75355         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75356         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75357         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75358         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75359         than worrying about sys/time.h.
75360         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75361         Don't bother worrying about TIME_WITH_SYS_TIME.
75362         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75363         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75364         * m4/sys_time_h.m4: New file.
75365         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75366         Don't include sys/time.h.  Return from main rather than exiting.
75367         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75368         all uses changed.
75369         * modules/gethrxtime (Depends-on): Add sys_time.
75370         * modules/gettime (Depends-on): Likewise.
75371         * modules/gettimeofday (Depends-on): Likewise.
75372         * modules/nanosleep (Depends-on): Likewise.
75373         * modules/settime (Depends-on): Likewise.
75374         * modules/tempname (Depends-on): Likewise.
75375         * modules/utimens (Depends-on): Likewise.
75376         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75377         (Include): Change back to <sys/time.h>.
75378         (Maintainer): Add self.
75379         * modules/sys_time: New file.
75380         * modules/tempname (Depends-on): Add gettimeofday.
75381         * tests/test-gettimeofday.c: Include <sys/time.h>
75382         rather than gettimeofday.h.
75383
75384 2007-01-17  Bruno Haible  <bruno@clisp.org>
75385
75386         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75387         the license default to GPL.
75388         (func_create_testdir): Don't complain if a module is LGPL and its
75389         tests module depends on GPLed modules.
75390
75391 2007-01-17  Bruno Haible  <bruno@clisp.org>
75392
75393         * lib/gettimeofday.c (gettimeofday): Add code for the case
75394         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75395         maximum possible value for tv->tv_usec, rather than the minimum one.
75396
75397 2005-10-08  Martin Lambers  <marlam@marlam.de>
75398 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75399 2007-01-16  Bruno Haible  <bruno@clisp.org>
75400
75401         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75402         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75403         gl_FUNC_GETTIMEOFDAY.
75404         (Include): Add gettimeofday.h.
75405         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75406         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75407         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75408         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75409         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75410         * lib/gettimeofday.h: New file.
75411         * lib/gettimeofday.c: Include <sys/timeb.h>.
75412         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75413         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75414         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75415         fall back on time().
75416
75417         * tests/test-gettimeofday.c: New file.
75418         * modules/gettimeofday-tests: New file.
75419
75420 2007-01-16  Eric Blake  <ebb9@byu.net>
75421
75422         * modules/fnmatch (Depends-on): Depend on wchar.
75423         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75424         * m4/fnmatch.m4: Likewise.
75425         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75426         * m4/mbchar.m4: Likewise.
75427         * modules/mbswidth (Depends-on): Depend on wchar.
75428         * lib/mbswidth.c: Assume <wchar.h>.
75429         * m4/mbswidth.m4: Likewise.
75430         * modules/quotearg (Depends-on): Depend on wchar.
75431         * lib/quotearg.c: Assume <wchar.h>.
75432         * m4/quotearg.m4: Likewise.
75433         * modules/regex (Depends-on): Depend on wchar.
75434         * lib/regex_internal.h: Assume <wchar.h>.
75435         * m4/regex.m4: Likewise.
75436         * modules/stdint (Depends-on): Depend on wchar.
75437         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75438         * m4/stdint.m4: Likewise.
75439         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75440         * modules/strftime (Depends-on): Depend on wchar.
75441         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75442         * modules/strtol (Depends-on): Depend on wchar.
75443         * lib/strtol.c: Assume <wchar.h>.
75444         * modules/wcwidth (Depends-on): Depend on wchar.
75445         * lib/wcwidth.h: Assume <wchar.h>.
75446         * m4/wcwidth.m4: Likewise.
75447
75448 2007-01-16  Bruno Haible  <bruno@clisp.org>
75449
75450         * modules/csharpexec-script: New, created from...
75451         * modules/csharpexec: ... this.
75452
75453 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75454
75455         * modules/javaexec-script: New, created from...
75456         * modules/javaexec: ... this.
75457
75458 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75459
75460         * modules/poll (Dependencies): Add sys_select.
75461
75462 2007-01-15  Jim Meyering  <jim@meyering.net>
75463
75464         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75465         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75466         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75467         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75468
75469 2007-01-15  Bruno Haible  <bruno@clisp.org>
75470
75471         * modules/striconveh: New file.
75472         * lib/striconveh.h: New file.
75473         * lib/striconveh.c: New file.
75474         * MODULES.html.sh (Internationalization functions): Add striconveh.
75475
75476         * modules/striconveh-tests: New file.
75477         * tests/test-striconveh.c: New file.
75478
75479 2007-01-15  Bruno Haible  <bruno@clisp.org>
75480
75481         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75482         not from GNU libiconv or GNU libc.
75483
75484 2007-01-15  Bruno Haible  <bruno@clisp.org>
75485
75486         * doc/gnulib-intro.texi (Copyright): Explain the different license
75487         terms for module descriptions, autoconf macros, tests, documentation.
75488
75489 2007-01-14  Bruno Haible  <bruno@clisp.org>
75490
75491         * modules/striconv-tests: New file.
75492         * tests/test-striconv.c: New file.
75493
75494 2007-01-14  Bruno Haible  <bruno@clisp.org>
75495
75496         * modules/iconv-tests: New file.
75497         * tests/test-iconv.c: New file.
75498
75499 2007-01-14  Bruno Haible  <bruno@clisp.org>
75500
75501         * gnulib-tool (func_get_license): For test modules, use the license of
75502         the main module.
75503
75504 2007-01-14  Bruno Haible  <bruno@clisp.org>
75505
75506         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75507         if iconv is found to exist.
75508
75509 2007-01-14  Bruno Haible  <bruno@clisp.org>
75510
75511         * modules/c-ctype-tests: New file.
75512         * tests/test-c-ctype.c: New file.
75513
75514 2007-01-14  Bruno Haible  <bruno@clisp.org>
75515
75516         * modules/binary-io-tests: New file.
75517         * tests/test-binary-io.sh: New file.
75518         * tests/test-binary-io.c: New file.
75519
75520 2007-01-14  Bruno Haible  <bruno@clisp.org>
75521
75522         * modules/array-oset-tests: New file.
75523         * tests/test-array_oset.c: New file.
75524
75525 2007-01-14  Bruno Haible  <bruno@clisp.org>
75526
75527         * modules/array-list-tests: New file.
75528         * tests/test-array_list.c: New file.
75529
75530 2007-01-14  Bruno Haible  <bruno@clisp.org>
75531
75532         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75533         and make.
75534         Reported by Simon Josefsson in
75535         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75536
75537 2007-01-14  Bruno Haible  <bruno@clisp.org>
75538
75539         * modules/allocsa-tests: New file.
75540         * tests/test-allocsa.c: New file.
75541
75542 2007-01-14  Bruno Haible  <bruno@clisp.org>
75543
75544         * modules/fchdir (Depends-on): Add absolute-header.
75545         * modules/unistd (Depends-on): Likewise.
75546
75547 2006-12-30  Bruno Haible  <bruno@clisp.org>
75548
75549         * modules/fchdir: New file.
75550         * modules/unistd (Files): Add lib/unistd_.h.
75551         (Makefile.am): Generate unistd.h from unistd_.h.
75552         * lib/fchdir.c: New file.
75553         * lib/dirent_.h: New file.
75554         * lib/unistd_.h: New file.
75555         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75556         * m4/fchdir.m4: New file.
75557         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75558         (gl_HEADER_UNISTD): Invoke it.
75559         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75560         function.
75561         * lib/backupfile.c (opendir, closedir): Undefine.
75562         * lib/chown.c (open, close): Undefine.
75563         * lib/clean-temp.c (open, close): Undefine.
75564         * lib/copy-file.c (open, close): Undefine.
75565         * lib/execute.c (open, close): Undefine.
75566         * lib/fsusage.c (open, close): Undefine.
75567         * lib/gc-gnulib.c (open, close): Undefine.
75568         * lib/getcwd.c (opendir, closedir): Undefine.
75569         * lib/glob.c (opendir, closedir): Undefine.
75570         * lib/javacomp.c (open, close): Undefine.
75571         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75572         * lib/openat-proc.c (open, close): Undefine.
75573         * lib/pagealign_alloc.c (open, close): Undefine.
75574         * lib/pipe.c (open, close): Undefine.
75575         * lib/progreloc.c (open, close): Undefine.
75576         * lib/savedir.c (opendir, closedir): Undefine.
75577         * lib/utime.c (open, close): Undefine.
75578         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75579
75580 2007-01-10  Bruno Haible  <bruno@clisp.org>
75581
75582         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75583
75584 2007-01-12  Eric Blake  <ebb9@byu.net>
75585
75586         Provide a robust <wchar.h>.  Further simplifications are now
75587         possible in other modules, but not included here.
75588         * modules/wchar: New module.
75589         * m4/wchar.m4: New file.
75590         * lib/wchar_.h: Likewise.
75591         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75592         of the new module.
75593         * MODULES.html.sh (Extended multibyte and wide character utilities):
75594         New section.
75595
75596 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75597
75598         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75599         to a reasonable default for memory allocation.
75600         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75601         file system that reports garbage st_size values for symlinks.
75602         Problem reported by Liyang Hu.
75603
75604 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75605
75606         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75607         Emacs .#* auto-save files).
75608
75609 2007-01-11  Bruno Haible  <bruno@clisp.org>
75610
75611         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75612         directory.
75613
75614 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         Use @...@ consistently in lib/wctype_.h.
75617         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75618         on it being set to 1 or 0.
75619         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75620         go back to AC_SUBSTing it.
75621         * modules/wctype (Makefile.am): Undo previous change.
75622
75623 2007-01-10  Eric Blake  <ebb9@byu.net>
75624
75625         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75626         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75627         * modules/wctype (Makefile.am): Likewise.
75628         Reported by Chris McGuire.
75629
75630 2007-01-10  Jim Meyering  <jim@meyering.net>
75631
75632         fts.c: a small readability/maintainability improvement
75633         * lib/fts.c (fts_read): Make this code slightly more readable and
75634         maintainable by hoisting the "sp->fts_cur = p" assignments to
75635         immediately follow the statements that set P.  Derived from
75636         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75637
75638 2007-01-10  Eric Blake  <ebb9@byu.net>
75639
75640         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75641         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75643         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75644         Reported by Chris McGuire.
75645
75646 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75647
75648         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75649         in sed script.
75650
75651 2007-01-09  Bruno Haible  <bruno@clisp.org>
75652
75653         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75654         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75655         variables.
75656         (func_module): Use them.
75657
75658 2007-01-09  Bruno Haible  <bruno@clisp.org>
75659
75660         * modules/unistr/base: New file.
75661         * lib/unistr.h: New file.
75662
75663         * modules/unistr/u8-to-u16: New file.
75664         * lib/unistr/u8-to-u16.c: New file.
75665
75666         * modules/unistr/u8-to-u32: New file.
75667         * lib/unistr/u8-to-u32.c: New file.
75668
75669         * modules/unistr/u16-to-u8: New file.
75670         * lib/unistr/u16-to-u8.c: New file.
75671
75672         * modules/unistr/u16-to-u32: New file.
75673         * lib/unistr/u16-to-u32.c: New file.
75674
75675         * modules/unistr/u32-to-u8: New file.
75676         * lib/unistr/u32-to-u8.c: New file.
75677
75678         * modules/unistr/u32-to-u16: New file.
75679         * lib/unistr/u32-to-u16.c: New file.
75680
75681         * modules/unistr/u8-check: New file.
75682         * modules/unistr/u16-check: New file.
75683         * modules/unistr/u32-check: New file.
75684         * lib/unistr/u8-check.c: New file.
75685         * lib/unistr/u16-check.c: New file.
75686         * lib/unistr/u32-check.c: New file.
75687
75688         * modules/unistr/u8-chr: New file.
75689         * modules/unistr/u16-chr: New file.
75690         * modules/unistr/u32-chr: New file.
75691         * lib/unistr/u8-chr.c: New file.
75692         * lib/unistr/u16-chr.c: New file.
75693         * lib/unistr/u32-chr.c: New file.
75694
75695         * modules/unistr/u8-cmp: New file.
75696         * modules/unistr/u16-cmp: New file.
75697         * modules/unistr/u32-cmp: New file.
75698         * lib/unistr/u8-cmp.c: New file.
75699         * lib/unistr/u16-cmp.c: New file.
75700         * lib/unistr/u32-cmp.c: New file.
75701
75702         * modules/unistr/u8-cpy: New file.
75703         * modules/unistr/u16-cpy: New file.
75704         * modules/unistr/u32-cpy: New file.
75705         * lib/unistr/u8-cpy.c: New file.
75706         * lib/unistr/u16-cpy.c: New file.
75707         * lib/unistr/u32-cpy.c: New file.
75708         * lib/unistr/u-cpy.h: New file.
75709
75710         * modules/unistr/u8-cpy-alloc: New file.
75711         * modules/unistr/u16-cpy-alloc: New file.
75712         * modules/unistr/u32-cpy-alloc: New file.
75713         * lib/unistr/u8-cpy-alloc.c: New file.
75714         * lib/unistr/u16-cpy-alloc.c: New file.
75715         * lib/unistr/u32-cpy-alloc.c: New file.
75716         * lib/unistr/u-cpy-alloc.h: New file.
75717
75718         * modules/unistr/u8-endswith: New file.
75719         * modules/unistr/u16-endswith: New file.
75720         * modules/unistr/u32-endswith: New file.
75721         * lib/unistr/u8-endswith.c: New file.
75722         * lib/unistr/u16-endswith.c: New file.
75723         * lib/unistr/u32-endswith.c: New file.
75724         * lib/unistr/u-endswith.h: New file.
75725
75726         * modules/unistr/u8-mblen: New file.
75727         * modules/unistr/u16-mblen: New file.
75728         * modules/unistr/u32-mblen: New file.
75729         * lib/unistr/u8-mblen.c: New file.
75730         * lib/unistr/u16-mblen.c: New file.
75731         * lib/unistr/u32-mblen.c: New file.
75732
75733         * modules/unistr/u8-mbtouc: New file.
75734         * modules/unistr/u16-mbtouc: New file.
75735         * modules/unistr/u32-mbtouc: New file.
75736         * lib/unistr/u8-mbtouc.c: New file.
75737         * lib/unistr/u16-mbtouc.c: New file.
75738         * lib/unistr/u32-mbtouc.c: New file.
75739
75740         * modules/unistr/u8-mbtouc-safe: New file.
75741         * modules/unistr/u16-mbtouc-safe: New file.
75742         * modules/unistr/u32-mbtouc-safe: New file.
75743         * lib/unistr/u8-mbtouc-safe.c: New file.
75744         * lib/unistr/u16-mbtouc-safe.c: New file.
75745         * lib/unistr/u32-mbtouc-safe.c: New file.
75746
75747         * modules/unistr/u8-move: New file.
75748         * modules/unistr/u16-move: New file.
75749         * modules/unistr/u32-move: New file.
75750         * lib/unistr/u8-move.c: New file.
75751         * lib/unistr/u16-move.c: New file.
75752         * lib/unistr/u32-move.c: New file.
75753         * lib/unistr/u-move.h: New file.
75754
75755         * modules/unistr/u8-next: New file.
75756         * modules/unistr/u16-next: New file.
75757         * modules/unistr/u32-next: New file.
75758         * lib/unistr/u8-next.c: New file.
75759         * lib/unistr/u16-next.c: New file.
75760         * lib/unistr/u32-next.c: New file.
75761
75762         * modules/unistr/u8-prev: New file.
75763         * modules/unistr/u16-prev: New file.
75764         * modules/unistr/u32-prev: New file.
75765         * lib/unistr/u8-prev.c: New file.
75766         * lib/unistr/u16-prev.c: New file.
75767         * lib/unistr/u32-prev.c: New file.
75768
75769         * modules/unistr/u8-set: New file.
75770         * modules/unistr/u16-set: New file.
75771         * modules/unistr/u32-set: New file.
75772         * lib/unistr/u8-set.c: New file.
75773         * lib/unistr/u16-set.c: New file.
75774         * lib/unistr/u32-set.c: New file.
75775         * lib/unistr/u-set.h: New file.
75776
75777         * modules/unistr/u8-startswith: New file.
75778         * modules/unistr/u16-startswith: New file.
75779         * modules/unistr/u32-startswith: New file.
75780         * lib/unistr/u8-startswith.c: New file.
75781         * lib/unistr/u16-startswith.c: New file.
75782         * lib/unistr/u32-startswith.c: New file.
75783         * lib/unistr/u-startswith.h: New file.
75784
75785         * modules/unistr/u8-stpcpy: New file.
75786         * modules/unistr/u16-stpcpy: New file.
75787         * modules/unistr/u32-stpcpy: New file.
75788         * lib/unistr/u8-stpcpy.c: New file.
75789         * lib/unistr/u16-stpcpy.c: New file.
75790         * lib/unistr/u32-stpcpy.c: New file.
75791         * lib/unistr/u-stpcpy.h: New file.
75792
75793         * modules/unistr/u8-stpncpy: New file.
75794         * modules/unistr/u16-stpncpy: New file.
75795         * modules/unistr/u32-stpncpy: New file.
75796         * lib/unistr/u8-stpncpy.c: New file.
75797         * lib/unistr/u16-stpncpy.c: New file.
75798         * lib/unistr/u32-stpncpy.c: New file.
75799         * lib/unistr/u-stpncpy.h: New file.
75800
75801         * modules/unistr/u8-strcat: New file.
75802         * modules/unistr/u16-strcat: New file.
75803         * modules/unistr/u32-strcat: New file.
75804         * lib/unistr/u8-strcat.c: New file.
75805         * lib/unistr/u16-strcat.c: New file.
75806         * lib/unistr/u32-strcat.c: New file.
75807         * lib/unistr/u-strcat.h: New file.
75808
75809         * modules/unistr/u8-strchr: New file.
75810         * modules/unistr/u16-strchr: New file.
75811         * modules/unistr/u32-strchr: New file.
75812         * lib/unistr/u8-strchr.c: New file.
75813         * lib/unistr/u16-strchr.c: New file.
75814         * lib/unistr/u32-strchr.c: New file.
75815
75816         * modules/unistr/u8-strcmp: New file.
75817         * modules/unistr/u16-strcmp: New file.
75818         * modules/unistr/u32-strcmp: New file.
75819         * lib/unistr/u8-strcmp.c: New file.
75820         * lib/unistr/u16-strcmp.c: New file.
75821         * lib/unistr/u32-strcmp.c: New file.
75822
75823         * modules/unistr/u8-strcpy: New file.
75824         * modules/unistr/u16-strcpy: New file.
75825         * modules/unistr/u32-strcpy: New file.
75826         * lib/unistr/u8-strcpy.c: New file.
75827         * lib/unistr/u16-strcpy.c: New file.
75828         * lib/unistr/u32-strcpy.c: New file.
75829         * lib/unistr/u-strcpy.h: New file.
75830
75831         * modules/unistr/u8-strcspn: New file.
75832         * modules/unistr/u16-strcspn: New file.
75833         * modules/unistr/u32-strcspn: New file.
75834         * lib/unistr/u8-strcspn.c: New file.
75835         * lib/unistr/u16-strcspn.c: New file.
75836         * lib/unistr/u32-strcspn.c: New file.
75837         * lib/unistr/u-strcspn.h: New file.
75838
75839         * modules/unistr/u8-strdup: New file.
75840         * modules/unistr/u16-strdup: New file.
75841         * modules/unistr/u32-strdup: New file.
75842         * lib/unistr/u8-strdup.c: New file.
75843         * lib/unistr/u16-strdup.c: New file.
75844         * lib/unistr/u32-strdup.c: New file.
75845         * lib/unistr/u-strdup.h: New file.
75846
75847         * modules/unistr/u8-strlen: New file.
75848         * modules/unistr/u16-strlen: New file.
75849         * modules/unistr/u32-strlen: New file.
75850         * lib/unistr/u8-strlen.c: New file.
75851         * lib/unistr/u16-strlen.c: New file.
75852         * lib/unistr/u32-strlen.c: New file.
75853         * lib/unistr/u-strlen.h: New file.
75854
75855         * modules/unistr/u8-strmblen: New file.
75856         * modules/unistr/u16-strmblen: New file.
75857         * modules/unistr/u32-strmblen: New file.
75858         * lib/unistr/u8-strmblen.c: New file.
75859         * lib/unistr/u16-strmblen.c: New file.
75860         * lib/unistr/u32-strmblen.c: New file.
75861
75862         * modules/unistr/u8-strmbtouc: New file.
75863         * modules/unistr/u16-strmbtouc: New file.
75864         * modules/unistr/u32-strmbtouc: New file.
75865         * lib/unistr/u8-strmbtouc.c: New file.
75866         * lib/unistr/u16-strmbtouc.c: New file.
75867         * lib/unistr/u32-strmbtouc.c: New file.
75868
75869         * modules/unistr/u8-strncat: New file.
75870         * modules/unistr/u16-strncat: New file.
75871         * modules/unistr/u32-strncat: New file.
75872         * lib/unistr/u8-strncat.c: New file.
75873         * lib/unistr/u16-strncat.c: New file.
75874         * lib/unistr/u32-strncat.c: New file.
75875         * lib/unistr/u-strncat.h: New file.
75876
75877         * modules/unistr/u8-strncmp: New file.
75878         * modules/unistr/u16-strncmp: New file.
75879         * modules/unistr/u32-strncmp: New file.
75880         * lib/unistr/u8-strncmp.c: New file.
75881         * lib/unistr/u16-strncmp.c: New file.
75882         * lib/unistr/u32-strncmp.c: New file.
75883
75884         * modules/unistr/u8-strncpy: New file.
75885         * modules/unistr/u16-strncpy: New file.
75886         * modules/unistr/u32-strncpy: New file.
75887         * lib/unistr/u8-strncpy.c: New file.
75888         * lib/unistr/u16-strncpy.c: New file.
75889         * lib/unistr/u32-strncpy.c: New file.
75890         * lib/unistr/u-strncpy.h: New file.
75891
75892         * modules/unistr/u8-strnlen: New file.
75893         * modules/unistr/u16-strnlen: New file.
75894         * modules/unistr/u32-strnlen: New file.
75895         * lib/unistr/u8-strnlen.c: New file.
75896         * lib/unistr/u16-strnlen.c: New file.
75897         * lib/unistr/u32-strnlen.c: New file.
75898         * lib/unistr/u-strnlen.h: New file.
75899
75900         * modules/unistr/u8-strpbrk: New file.
75901         * modules/unistr/u16-strpbrk: New file.
75902         * modules/unistr/u32-strpbrk: New file.
75903         * lib/unistr/u8-strpbrk.c: New file.
75904         * lib/unistr/u16-strpbrk.c: New file.
75905         * lib/unistr/u32-strpbrk.c: New file.
75906         * lib/unistr/u-strpbrk.h: New file.
75907
75908         * modules/unistr/u8-strrchr: New file.
75909         * modules/unistr/u16-strrchr: New file.
75910         * modules/unistr/u32-strrchr: New file.
75911         * lib/unistr/u8-strrchr.c: New file.
75912         * lib/unistr/u16-strrchr.c: New file.
75913         * lib/unistr/u32-strrchr.c: New file.
75914
75915         * modules/unistr/u8-strspn: New file.
75916         * modules/unistr/u16-strspn: New file.
75917         * modules/unistr/u32-strspn: New file.
75918         * lib/unistr/u8-strspn.c: New file.
75919         * lib/unistr/u16-strspn.c: New file.
75920         * lib/unistr/u32-strspn.c: New file.
75921         * lib/unistr/u-strspn.h: New file.
75922
75923         * modules/unistr/u8-strstr: New file.
75924         * modules/unistr/u16-strstr: New file.
75925         * modules/unistr/u32-strstr: New file.
75926         * lib/unistr/u8-strstr.c: New file.
75927         * lib/unistr/u16-strstr.c: New file.
75928         * lib/unistr/u32-strstr.c: New file.
75929         * lib/unistr/u-strstr.h: New file.
75930
75931         * modules/unistr/u8-strtok: New file.
75932         * modules/unistr/u16-strtok: New file.
75933         * modules/unistr/u32-strtok: New file.
75934         * lib/unistr/u8-strtok.c: New file.
75935         * lib/unistr/u16-strtok.c: New file.
75936         * lib/unistr/u32-strtok.c: New file.
75937         * lib/unistr/u-strtok.h: New file.
75938
75939         * modules/unistr/u8-uctomb: New file.
75940         * modules/unistr/u16-uctomb: New file.
75941         * modules/unistr/u32-uctomb: New file.
75942         * lib/unistr/u8-uctomb.c: New file.
75943         * lib/unistr/u16-uctomb.c: New file.
75944         * lib/unistr/u32-uctomb.c: New file.
75945
75946         * MODULES.html.sh (Unicode string functions): Add the new modules.
75947
75948 2007-01-08  Bruno Haible  <bruno@clisp.org>
75949
75950         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75951         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75952         subdirectories.
75953
75954 2007-01-08  Karl Berry  <karl@gnu.org>
75955
75956         * doc/error.texi: mention that main() fns must set program_name
75957         when progname is used.
75958
75959 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75960
75961         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75962         WCTYPE_H is empty, for the benefit of builds from non-distclean
75963         directories.  Problem reported by Eric Blake in
75964         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75965
75966 2007-01-08  Bruno Haible  <bruno@clisp.org>
75967
75968         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75969         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75970         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75971         PROVIDE_CANONICALIZE_FILENAME_MODE.
75972         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75973
75974 2007-01-08  Bruno Haible  <bruno@clisp.org>
75975
75976         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75977         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75978         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75979         * lib/fts.c: Likewise.
75980         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75981
75982 2006-12-25  Bruno Haible  <bruno@clisp.org>
75983
75984         * modules/utf8-ucs4-safe: New file.
75985         * lib/utf8-ucs4-safe.h: New file.
75986         * lib/unistr/utf8-ucs4-safe.c: New file.
75987
75988         * modules/utf16-ucs4-safe: New file.
75989         * lib/utf16-ucs4-safe.h: New file.
75990         * lib/unistr/utf16-ucs4-safe.c: New file.
75991
75992         * MODULES.html.sh (Unicode string functions): Add the new modules.
75993
75994 2007-01-08  Bruno Haible  <bruno@clisp.org>
75995
75996         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75997         (Depends-on): Add unitypes.
75998         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75999         (u8_mbtouc_aux): Move out to separate file.
76000         (u8_mbtouc): Use ucs4_t, uint8_t types.
76001         * lib/unistr/utf8-ucs4.c: New file.
76002
76003         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76004         (Depends-on): Add unitypes.
76005         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76006         (u16_mbtouc_aux): Move out to separate file.
76007         (u16_mbtouc): Use ucs4_t, uint16_t types.
76008         * lib/unistr/utf16-ucs4.c: New file.
76009
76010         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76011         (Depends-on): Add unitypes.
76012         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76013         (u8_uctomb_aux): Move out to separate file.
76014         (u8_uctomb): Use ucs4_t, uint8_t types.
76015         * lib/unistr/ucs4-utf8.c: New file.
76016
76017         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76018         (Depends-on): Add unitypes.
76019         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76020         (u16_uctomb_aux): Move out to separate file.
76021         (u16_uctomb): Use ucs4_t, uint16_t types.
76022         * lib/unistr/ucs4-utf16.c: New file.
76023
76024 2006-12-25  Bruno Haible  <bruno@clisp.org>
76025
76026         * modules/unitypes: New file.
76027         * lib/unitypes.h: New file.
76028         * MODULES.html.sh (func_all_modules): New section "Unicode string
76029         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76030         this section. Add unitypes.
76031
76032 2007-01-08  Bruno Haible  <bruno@clisp.org>
76033
76034         Avoid variable names that conflict with those from libtool.
76035         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76036         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76037         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76038         library_names_spec to acl_library_names_spec, hardcode_* to
76039         acl_hardcode_*.
76040         Reported by Ralf Wildenhues.
76041
76042 2007-01-08  Bruno Haible  <bruno@clisp.org>
76043
76044         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76045         definition.
76046         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76047         definition.
76048         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76049         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76050         definition.
76051         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76052         definition.
76053         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76054         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76055         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76056         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76057         definition.
76058         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76059         definition.
76060         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76061         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76062         GC_USE_<algorithm>.
76063         * lib/gc-libgcrypt.c: Likewise.
76064         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76065         * modules/gc-arctwo (configure.ac): Likewise.
76066         * modules/gc-des (configure.ac): Likewise.
76067         * modules/gc-hmac-md5 (configure.ac): Likewise.
76068         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76069         * modules/gc-md2 (configure.ac): Likewise.
76070         * modules/gc-md4 (configure.ac): Likewise.
76071         * modules/gc-md5 (configure.ac): Likewise.
76072         * modules/gc-random (configure.ac): Likewise.
76073         * modules/gc-rijndael (configure.ac): Likewise.
76074         * modules/gc-sha1 (configure.ac): Likewise.
76075
76076 2007-01-08  Bruno Haible  <bruno@clisp.org>
76077
76078         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76079         macro definition.
76080         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76081         definition.
76082         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76083         definition.
76084         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76085         * modules/fcntl-safer (configure.ac): Likewise.
76086         * modules/fopen-safer (configure.ac): Likewise.
76087         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76088         GNULIB_FWRITEERROR macro definition.
76089
76090 2007-01-08  Bruno Haible  <bruno@clisp.org>
76091
76092         * m4/gnulib-common.m4: New file.
76093         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76094         (func_get_filelist): Add m4/gnulib-common.m4.
76095
76096 2007-01-08  Bruno Haible  <bruno@clisp.org>
76097
76098         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76099         command.
76100
76101 2007-01-08  Jim Meyering  <jim@meyering.net>
76102
76103         Use a more robust test for a "can't happen" condition.
76104         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76105         narrowed the st_size value.  Presuming the "can't happen" condition
76106         is true, that narrowing could conceivably convert an invalid st_size
76107         value into a valid one.  Instead, use a change based on Matthew
76108         Woehlke's original patch.
76109
76110         Slight readability improvement: use an assert-like macro
76111         in place of literal "abort ()" uses.
76112         * lib/fts.c (fts_assert): Define.
76113         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76114         Use this macro instead of a bare 'abort'.
76115
76116 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76117
76118         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76119         simply work around them.
76120         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76121         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76122         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76123         declaring.
76124         Don't bother to define as macros, since the standard doesn't require it.
76125         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76126         longer worry about IRIX 5.3.
76127         (HAVE_WCTYPE_CTMP_BUG): Remove.
76128
76129 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76130
76131         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76132         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76133         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76134         Problems reported by Georg Schwarz for IRIX 5.3.
76135
76136         * gnulib-tool (autoconf_minversion): Take the maximum version number
76137         found, not the minimum.  Problem reported by James Youngman.
76138
76139 2007-01-03  Karl Berry  <karl@gnu.org>
76140
76141         * doc/error.texi: new file, explaining interaction with progname.
76142         * doc/gnulib.texi: include it.  Update copyright.
76143
76144 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76145
76146         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76147         AC_CANONICAL_HOST, to improve autobuild outputs.
76148
76149 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76150             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76151
76152         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76153         sockets, server sockets, and other file descriptors.  Count errors
76154         to compute the return value.  Reorder the code a bit to be easier
76155         to follow.  Don't set event bits that were not requested (except
76156         POLLERR and POLLHUP).
76157
76158 2007-01-01  Bruno Haible  <bruno@clisp.org>
76159
76160         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76161
76162 2007-01-03  Jim Meyering  <jim@meyering.net>
76163
76164         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76165
76166 2007-01-02  Bruno Haible  <bruno@clisp.org>
76167
76168         * modules/settime (Include): Require timespec.h.
76169         * modules/nanosleep (Include): Likewise.
76170
76171 2007-01-01  Bruno Haible  <bruno@clisp.org>
76172
76173         * gnulib-tool (func_emit_copyright_notice): Bump year.
76174         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76175
76176 2007-01-01  Bruno Haible  <bruno@clisp.org>
76177
76178         Improve support for OpenBSD.
76179         * build-aux/config.rpath (libname_spec): Export.
76180         (library_names_spec): New variable. Export.
76181         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76182         library_names_spec from the config.rpath output. Locate shared library
76183         through the name pattern in library_names_spec.
76184
76185 2007-01-01  Eric Blake  <ebb9@byu.net>
76186
76187         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76188
76189 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76192         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76193         assume the C locale, and avoid an "eval" that could cause trouble.
76194         Problem with SORT reported by Bob Proulx.
76195
76196         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76197         Define.  Trivial patch from Henning Nielsen Lund, originally
76198         sent to bug-grep@gnu.org today.
76199
76200 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76201
76202         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76203         struct stat.  Problem reported by Henning Nielsen Lund.
76204         * lib/acl.c: Include acl.h first, to check interface.  Don't
76205         bother to include sys/types.h and sys/stat.h again.
76206
76207 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76208
76209         Import the following change from libc; problem reported by
76210         Sven Verdoolaege.
76211
76212         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76213
76214         [BZ #1373]
76215         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76216
76217 2006-12-28  Jim Meyering  <jim@meyering.net>
76218
76219         * build-aux/announce-gen: Do not assume that the package
76220         builds any of tar.gz, tar.bz2, and .xdelta files.
76221         Suggestion from Simon Josefsson.
76222
76223 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76224
76225         * modules/announce-gen: New file.
76226
76227 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76228
76229         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76230         handles its gotchas now.
76231         * lib/mbswidth.c: Likewise.
76232         * lib/wcwidth.h: Likewise.
76233         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76234         and iswcntrl; the wctype module does this stuff now.
76235         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76237         * modules/mbchar (Depends-on): Add wctype.
76238         * modules/mbswidth (Depends-on): Likewise.
76239         * modules/wcwidth (Depends-on): Likewise.
76240
76241 2006-12-27  Eric Blake  <ebb9@byu.net>
76242
76243         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76244         module uses more than what <wctype.h> is required to provide.
76245
76246 2006-12-26  Eric Blake  <ebb9@byu.net>
76247
76248         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76249
76250 2006-12-26  Eric Blake  <ebb9@byu.net>
76251
76252         * modules/absolute-header: New module.
76253         * modules/fcntl (Depends-on): Depend on it.
76254         * modules/inttypes (Depends-on): Likewise.
76255         * modules/stdint (Depends-on): Likewise.
76256         * modules/sys_stat (Depends-on): Likewise.
76257         * modules/wctype (Depends-on): Likewise.
76258         * MODULES.html.sh (Support for building libraries and
76259         executables): Document it.
76260
76261 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76262
76263         * gnulib-tool (SED): Remove, undoing previous change.
76264         The problem was that it broke coreutils on Solaris, because
76265         "sed --posix" leaked into a makefile.
76266         (sed): New alias, if 'alias' and GNU sed.
76267
76268 2006-12-24  Jim Meyering  <jim@meyering.net>
76269
76270         Work around an fchownat bug in glibc-2.4:
76271         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76272         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76273         in spite of the -P option.
76274         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76275         New macros.
76276         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76277         * modules/openat (Files): Add lib/fchownat.c.
76278         * lib/openat.c (fchownat): Don't define here.  Move to...
76279         * lib/fchownat.c: ...this new file.
76280
76281 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76282
76283         Fix bug reported by Bruno Haible in
76284         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76285         where quotearg.c didn't compile on Mac OS X 10.2 because it
76286         lacks <wchar.h> and wint_t.
76287         * lib/wctype_.h (__wctype_wint_t): New type.
76288         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76289         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76290         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76291         Arg is now of type __wctype_wint_t, not wint_t.
76292         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76293         substitute HAVE_WINT_T.
76294         * modules/wctype (Files): Add m4/wint_t.m4.
76295         (wctype.h): Substitute HAVE_WINT_T.
76296
76297 2006-12-23  Bruno Haible  <bruno@clisp.org>
76298
76299         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76300
76301 2006-12-23  Bruno Haible  <bruno@clisp.org>
76302
76303         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76304         S_ISLNK.
76305         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76306         mingw.
76307
76308 2006-12-22  Bruno Haible  <bruno@clisp.org>
76309
76310         * lib/copy-file.c: Include acl.h.
76311         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76312         Close the file descriptors only after being done with copy_acl.
76313         * modules/copy-file (Depends-on): Add acl.
76314
76315 2006-12-22  Bruno Haible  <bruno@clisp.org>
76316
76317         * gnulib-tool (SED): New variable.
76318         Use $SED instead of sed everywhere.
76319
76320 2006-12-22  Bruno Haible  <bruno@clisp.org>
76321
76322         * modules/no-c++: New file.
76323         * m4/no-c++.m4: New file.
76324         * MODULES.html.sh (Support for building libraries and executables):
76325         Add no-c++.
76326
76327 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76328
76329         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76330         Include <limits.h>, and use its INT_MAX to rewrite the
76331         j loop so that it does not overflow 'int'.  Problem reported by
76332         Ralf Wildenhues in
76333         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76334         Play it safe by shifting left by 1 rather than multiplying by 2,
76335         as GCC is less likely to optimize this away when the value
76336         is signed (when it assumes overflow leads to undefined behavior).
76337         Also, don't assume time_t uses two's complement.
76338
76339 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76340
76341         * MODULES.html.sh: New module wctype.
76342         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76343         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76344         <wctype.h>, since the new wctype module should fix this.
76345         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76346         the wctype module should arrange for it.
76347         * lib/regex_internal.h: Likewise.
76348         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76349         since the wctype module should handle this now.
76350         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76351         * modules/fnmatch (Depends-on): Add wctype.
76352         * modules/quotearg (Depends-on): Likewise.
76353         * modules/regex (Depends-on): Likewise.
76354
76355 2006-12-19  Bruno Haible  <bruno@clisp.org>
76356
76357         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76358         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76359
76360 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76361
76362         * modules/savewd (Depends-on): Fix dependency on fcntl.
76363
76364 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76365
76366         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76367         conforms to C99, rather than relying on the user's environment
76368         setting of STDINT_H.
76369
76370 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76371         and Eric Blake  <ebb9@byu.net>
76372
76373         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76374         This is more consistent with the other defines here.
76375         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76376         Port to z/OS.  Problem reported by Paul Gilmartin.
76377         Change local vars to use gl_ prefix rather than ac_.
76378         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76379         with other defines.
76380         * modules/double-slash-root: New module.
76381         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76382         (Depends-on): Add double-slash-root.
76383         * MODULES.html.sh (File system functions): Mention new module.
76384
76385 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76386
76387         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76388         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76389         This is for the benefit of gzip, which doesn't do i18n.
76390
76391 2006-12-12  Jim Meyering  <jim@meyering.net>
76392
76393         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76394         Reported by Andreas Schwab <schwab@suse.de>.
76395
76396 2006-12-12  Bruno Haible  <bruno@clisp.org>
76397
76398         Merge these changes.
76399         2006-09-05  Bruno Haible  <bruno@clisp.org>
76400         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76401         iconv_alloc succeeded.
76402         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76403         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76404         test for " && dest " at the end - dest is always != NULL there. Call
76405         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76406         with 2xNULL arguments, also to flush the state storage. Handle the
76407         IRIX iconv behaviour. Realloc the final result, to throw away unused
76408         memory.
76409
76410 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76411
76412         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76413         and fchmodat unconditionally, since glibc 2.4 has them.
76414         Problem reported by Arkadiusz Miskiewicz.
76415
76416 2006-12-10  Bruno Haible  <bruno@clisp.org>
76417
76418         * gnulib-tool (func_import): Show the include files only for those
76419         modules that are copied and specified.
76420         Reported by Karl Berry.
76421
76422 2006-12-08  Jim Meyering  <jim@meyering.net>
76423
76424         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76425         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76426
76427         * build-aux/announce-gen: Add two new options, both optional:
76428         --bootstrap-tools=TOOL_LIST
76429               a comma-separated list of tools, e.g.,
76430               autoconf,automake,bison,gnulib
76431         --gnulib-snapshot-date=DATE
76432               if gnulib is in the bootstrap tool list,
76433               then report this as the snapshot date.
76434               If not specified, use the current date/time.
76435               If you specify a date here, be sure it's UTC.
76436
76437 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76438
76439         * tests/test-argp-2.sh: Fix test to match actual output.
76440         (func_compare): Fix sed script to be portable.
76441
76442 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76443
76444         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76445         workaround for this case.  It is not autoconfigured now; offhand
76446         it's hard to see how to autoconfigure it.
76447
76448 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76449
76450         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76451         a directory that is about to be chowned.  Such a directory's
76452         initial file permissions should permit the owner only and this
76453         should not be changed until after the chown, since the group and
76454         other bits would be incorrect if they granted permission before
76455         the chown.
76456
76457         Fix porting problem for iswctype reported by Georg Schwarz in:
76458         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76459         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76460         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76461         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76462         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76463
76464 2006-12-03  Jim Meyering  <jim@meyering.net>
76465
76466         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76467         p->fts_statp may not yet be defined.
76468         (fts_read): Instead, set it in the caller, once p->fts_statp is
76469         sure to be defined, and corresponds to a top-level directory.
76470         This bug made du -x fail.  Here's the coreutils test case:
76471         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76472         Reported by Mike Frysinger.
76473
76474 2006-12-01  Jim Meyering  <jim@meyering.net>
76475
76476         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76477         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76478         Reported by Simon Josefsson.
76479
76480 2006-11-30  Jim Meyering  <jim@meyering.net>
76481
76482         * m4/warning.m4: Use the all-permissive copyright notice
76483         recommended by RMS (rather than LGPL).
76484         * m4/vararrays.m4: Likewise.
76485         * m4/flexmember.m4: Likewise.
76486
76487 2006-11-29  Bruno Haible  <bruno@clisp.org>
76488
76489         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76490         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76491         using +=.
76492         Reported by Simon Josefsson <simon@josefsson.org>.
76493
76494 2006-11-28  James Youngman <jay@gnu.org>
76495
76496         * README: Advise users that they might find the bug-gnulib@gnu.org
76497         and autotools-announce@gnu.org mailing lists useful.
76498
76499 2006-11-28  Bruno Haible  <bruno@clisp.org>
76500
76501         * m4/ptrdiff_max.m4: Remove file.
76502
76503 2006-11-21  Bruno Haible  <bruno@clisp.org>
76504
76505         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76506         _AC_COMPUTE_INT.
76507         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76508         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76509         _AC_COMPUTE_INT.
76510         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76511         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76512         _AC_COMPUTE_INT.
76513         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76514
76515 2006-11-28  Jim Meyering  <jim@meyering.net>
76516
76517         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76518         warning from "gcc -Wshadow" about shadowing the builtin.
76519
76520 2006-11-27  Bruno Haible  <bruno@clisp.org>
76521
76522         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76523         _AC_COMPUTE_INT.
76524         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76525
76526 2006-11-27  Bruno Haible  <bruno@clisp.org>
76527             Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76530
76531 2006-11-26  Bruno Haible  <bruno@clisp.org>
76532
76533         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76534         noinst_LTLIBRARIES.
76535
76536 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76537             Bruno Haible  <bruno@clisp.org>
76538
76539         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76540         if compiling with "gcc -ansi".
76541
76542 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76543
76544         Fix some incompatibilities with gcc -ansi -pedantic.
76545         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76546         if compiling pedantically with GCC, unless it's C99 or later.
76547         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76548         it mishandles gcc -ansi -pedantic as well.
76549         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76550         if gcc -pedantic.
76551         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76552         initializers for struct if -pedantic, unless it's C99 or later.
76553
76554 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76555
76556         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76557         Don't close an fd more than once. Identical atimes indicate
76558         success, not failure.
76559
76560 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76561
76562         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76563
76564 2006-11-23  Jim Meyering  <jim@meyering.net>
76565
76566         * build-aux/announce-gen: New file.  From coreutils.
76567
76568 2006-11-22  Jim Meyering  <jim@meyering.net>
76569
76570         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76571         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76572         (fts_read): Use a temporary to narrow the overused st_size member
76573         before using it in a switch statement.  Reported by Matthew Woehlke.
76574
76575         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76576         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76577
76578 2006-11-20  Bruno Haible  <bruno@clisp.org>
76579
76580         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76581         changequote instead of pairs of brackets.
76582         Reported by Andreas Schwab <schwab@suse.de>.
76583
76584 2006-11-21  Jim Meyering  <jim@meyering.net>
76585
76586         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76587         so as to remain compatible with older compilers.
76588         Patch from Michael Deutschmann.
76589
76590 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76591
76592         * MODULES.html.sh (File system functions): Add openat.
76593
76594         * lib/openat.h (rpl_fstatat): New macro, if
76595         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76596         (fstatat): Define to rpl_fstatat under the same conditions,
76597         unless COMPILING_FSTATAT.
76598         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76599         seems to have the bug.
76600         * lib/fstatat.c: New file.
76601         * modules/openat (Files): Add it.
76602
76603 2006-11-20  Bruno Haible  <bruno@clisp.org>
76604
76605         * Makefile: New file.
76606
76607 2006-11-20  Jim Meyering  <jim@meyering.net>
76608
76609         The beginnings of syntax-related checks for gnulib.
76610         * lib/Makefile: New file.
76611         * lib/t-idcache: New script.  Ensure that the two halves of
76612         idcache.c stay in sync.
76613
76614         * lib/idcache.c: Adjust comments in user- and group- portions to
76615         be more accurate, and to be consistent with one another.
76616
76617 2006-11-20  Jim Meyering  <jim@meyering.net>
76618
76619         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76620         continue using the flexible array member (thus, this module performs
76621         half as many malloc calls), with the addition that...
76622         (getgroup, getuser): Consistently record a non-match via an empty
76623         "name" string, and map an empty string match to a NULL return value.
76624         * modules/idcache (Depends-on): Re-add flexmember.
76625
76626         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76627         (getuidbyname, getgroup, getgidbyname): Likewise.
76628
76629         Use cleaner syntax: NULL rather than 0.
76630         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76631
76632 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76633
76634         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76635         It mishandled the case where the group was missing.
76636         Problem reported by Greg Schafer.
76637         * modules/idcache: Likewise.
76638
76639 2006-11-18  Jim Meyering  <jim@meyering.net>
76640
76641         * check-module (%exempt_header): Add exception for some
76642         conditionally-included headers.
76643
76644         * modules/i-ring (Depends-on): Add verify.
76645         (License): Change to LGPL.
76646
76647 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76648
76649         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76650         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76651         and inttostr.h.  Use snprintf rather than uinttostr, so that
76652         LGPLed code doesn't depend on GPLed.
76653
76654 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76655
76656         * modules/inline (License): Change from GPL to LGPL.
76657
76658 2006-11-17  Jim Meyering  <jim@meyering.net>
76659
76660         * modules/d-type (License): Switch to LGPL.
76661
76662 2006-11-15  Bruno Haible  <bruno@clisp.org>
76663
76664         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76665
76666 2006-11-15  Eric Blake  <ebb9@byu.net>
76667
76668         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76669         the module dependency.
76670
76671 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76672             Bruno Haible  <bruno@clisp.org>
76673
76674         * gnulib-tool (func_create_testdir): Add license consistency check.
76675
76676 2006-11-15  Eric Blake  <ebb9@byu.net>
76677
76678         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76679         random "(cached)" in configure output.
76680
76681 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76682
76683         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76684         test for conforming inttypes.h is both announced and cached.
76685
76686         * MODULES.html.sh (seen_modules, seen_files): New variables.
76687         (func_module): Rewrite to use a few less gnulib-tool and sed
76688         invocations.  Avoid a couple of quadratic algorithms for ...
76689         (missed_modules, missed_files): ... these, with ...
76690         (func_append, func_tmpdir): ... these new functions, from
76691         gnulib-tool.  Analogously, install traps for cleanup.
76692
76693         * tests/test-gc.c (main): Remove unused variables.
76694         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76695
76696 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76697
76698         * modules/inttostr (License): Change to LGPL.
76699
76700 2006-11-14  Eric Blake  <ebb9@byu.net>
76701
76702         * modules/tempname (License): Change to LGPL.
76703
76704 2006-11-14  Eric Blake  <ebb9@byu.net>
76705
76706         * doc/functions.texi (Function Portability): *printf functions on
76707         Cygwin now understand all POSIX size specifiers.
76708
76709 2006-11-14  Bruno Haible  <bruno@clisp.org>
76710
76711         * modules/c-ctype (License): Change to LGPL.
76712
76713 2006-11-12  Bruno Haible  <bruno@clisp.org>
76714
76715         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76716         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76717         for GNOME libraries, for which the include files are installed in
76718         subdirectories of $prefix/include.
76719
76720 2006-11-12  Bruno Haible  <bruno@clisp.org>
76721
76722         * m4/lib-link.m4: Require at least autoconf-2.54.
76723         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76724         name to underscores for the --with option.
76725
76726 2006-11-13  Bruno Haible  <bruno@clisp.org>
76727
76728         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76729         the tests directory.
76730         Reported by Ralf Wildenhues.
76731
76732 2006-11-13  Bruno Haible  <bruno@clisp.org>
76733
76734         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76735         (func_emit_initmacro_end): Undo the override here.
76736         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76737         Works around the famous automake error in coreutils.
76738
76739 2006-11-13  Eric Blake  <ebb9@byu.net>
76740
76741         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76742         element, not its node.
76743
76744 2006-11-12  Bruno Haible  <bruno@clisp.org>
76745
76746         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76747         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76748
76749 2006-11-12  Bruno Haible  <bruno@clisp.org>
76750
76751         * gnulib-tool: New option --local-symlink.
76752         (func_usage): Document it.
76753         (lsymbolic): New variable.
76754         (func_import, func_create_testdir): If --symlink was not specified,
76755         test whether --local-symlink was specified and the file comes from
76756         the local_gnulib_dir.
76757
76758 2006-11-12  Bruno Haible  <bruno@clisp.org>
76759
76760         * gnulib-tool (func_ln): New function.
76761         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76762
76763 2006-11-12  Bruno Haible  <bruno@clisp.org>
76764
76765         Finish support for source files in subdirectories.
76766         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76767         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76768         AUTOMAKE_OPTIONS.
76769         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76770
76771 2006-11-12  Bruno Haible  <bruno@clisp.org>
76772
76773         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76774         EXTRA_lib_SOURCES augmentation.
76775         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76776
76777 2006-11-12  Jim Meyering  <jim@meyering.net>
76778
76779         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76780         file descriptors.  This also averts a failure on systems with
76781         native openat support when a traversed directory lacks "x" access.
76782         * lib/fts_.h: Include "i-ring.h"
76783         (struct FTS) [fts_fd_ring]: New member.
76784         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76785         (FCHDIR): Add parentheses.
76786         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76787         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76788         When descending, rather than simply closing the previous
76789         fts_cwd_fd value, push that file descriptor onto the ring.
76790         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76791         (fts_open): Initialize the new fd_ring member.
76792         (fts_close): Clear the ring.
76793         (fts_safe_changedir): When possible, use our new fd_ring to skip
76794         the diropen and fstat and dev/ino comparison that would normally
76795         accompany a virtual `chdir ("..")'.
76796
76797         * modules/fts (Depends-on): Add i-ring.
76798         * modules/i-ring: New module.
76799         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76800         * m4/i-ring.m4: New file.
76801
76802 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76803
76804         * gnulib-tool (func_create_testdir): Fix replacement of
76805         `build-aux' in configure.ac.  Run autotools in gltests
76806         subdirectory.
76807         (func_create_testdir, func_create_megatestdir, test): There is
76808         no need for '--force' in most autotool invocations in a new
76809         tree.  Actually fail the whole test if any of the tools, or the
76810         configure or make stages fail.
76811
76812         Sync from Automake.
76813         * build-aux/gnupload: Revert last change.  Add pointer to upload
76814         instructions of the GNU Maintenance Instructions.
76815         Suggestion by Karl Berry.
76816
76817 2006-11-10  Jim Meyering  <jim@meyering.net>
76818
76819         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76820
76821 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76822
76823         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76824         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76825         (bind_textdomain_codeset) [! ENABLE_NLS]:
76826         Evaluate all the arguments.  That way, callers get compatible behavior
76827         if the arguments have side effects.  Also, it avoids some GCC
76828         diagnostics in some cases; Joel E. Denny reported problems when Bison
76829         was configured with --enable-gcc-warnigs.
76830
76831 2006-11-10  Jim Meyering  <jim@meyering.net>
76832
76833         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76834         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76835         account.
76836
76837 2006-11-10  Jim Meyering  <jim@meyering.net>
76838
76839         * modules/inline: New file/module.
76840         * modules/xalloc (Files): Remove m4/inline.m4.
76841         (Depends-on): Add inline, instead.
76842         * modules/oset: Likewise.
76843         * modules/list: Likewise.
76844
76845 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76846
76847         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76848         Problem reported by Matthew Woehlke.
76849
76850 2006-11-09  Bruno Haible  <bruno@clisp.org>
76851
76852         * lib/tempname.c (gen_tempname): Remove variant that invokes
76853         __gen_tempname.
76854         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76855         __gen_tempname.
76856
76857 2006-11-08  Bruno Haible  <bruno@clisp.org>
76858
76859         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76860         to 'yes' instead of 'cross-compiling'.
76861
76862 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
76863
76864         * lib/quotearg.h (quotearg_free): New decl.
76865         * lib/quotearg.c (quotearg_free): New function.
76866         (slot0, nslots, slotvec0, slotvec):
76867         Now file-scope so that quotearg_free can get at them.
76868
76869 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76870
76871         Sync from Automake.
76872         * build-aux/gnupload: Add missing 'gnu' to example URL.
76873         Report by Karl Berry.
76874
76875 2006-11-08  Bruno Haible  <bruno@clisp.org>
76876
76877         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
76878         Suggested by Paul Eggert.
76879
76880 2006-11-08  Jim Meyering  <jim@meyering.net>
76881
76882         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
76883         It's already included if !_LIBC.
76884         (fts_safe_changedir): Add a comment.
76885
76886 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76887
76888         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
76889         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
76890         Matthew Woehlke.
76891
76892         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
76893         definitions up, to avoid colliding with change below.
76894         (static_inline) [HAVE_INLINE]: New macro.
76895         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
76896         Provide extern decls when !HAVE_INLINE.  Do not define unless
76897         static_inline is defined, either by us or by xmalloc.c.  Use
76898         static_inline rather than static inline.
76899         (XCALLOC): Optimize sizeof(T) = 1 case.
76900         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
76901
76902 2006-11-07  Bruno Haible  <bruno@clisp.org>
76903
76904         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
76905         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
76906         AC_C_INLINE.
76907         * modules/xalloc (Files): Add m4/inline.m4.
76908
76909 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76910
76911         * README: Fix typo.
76912         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76913         (Miscellanous Notes): ...from this.
76914
76915 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76916
76917         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76918         Mention that offsetof should be used instead of sizeof.
76919         From Bruno Haible.
76920
76921 2006-11-07  Bruno Haible  <bruno@clisp.org>
76922
76923         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76924
76925 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76926
76927         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76928         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76929         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76930         (gl_tree_add_before, gl_tree_add_after):
76931         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76932         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76933         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76934         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76935         (gl_linked_add_after, gl_linked_add_at): Likewise.
76936         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76937         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76938         (gl_tree_add_before, gl_tree_add_after): Likewise.
76939         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76940         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76941         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76942
76943 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76944
76945         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76946
76947 2006-11-06  Bruno Haible  <bruno@clisp.org>
76948
76949         * m4/inline.m4: New file.
76950         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76951         * modules/list (Files): Add m4/inline.m4.
76952         * modules/oset (Files): Likewise.
76953
76954 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76955
76956         * lib/idcache.c: Include <stddef.h>, for offsetof.
76957         (struct userid.name): Change from char * to a flexible array member.
76958         All uses changed.
76959         * modules/idcache (Depends-on): Add flexmember.
76960
76961         * MODULES.html.sh (Core language properties): New module flexmember.
76962         * modules/flexmember, m4/flexmember.m4: New files.
76963
76964         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76965         inline functions that are identical with the old xnmalloc_inline,
76966         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76967         that we can avoid some unnecessary integer multiplications and
76968         divisions in the common case where the element size is known at
76969         compile time.
76970         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76971         needed.
76972         (xnboundedmalloc): Remove.
76973         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76974         arguments, for consistency with rest of this header.
76975         (xcharalloc): Rewrite using XNMALLOC.
76976         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76977         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76978         versions have been moved to lib/xalloc.h and renamed to be the
76979         non-*_inline versions.
76980         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76981         and xnrealloc functions, since those functions are now inline and
76982         now call us.
76983         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76984         renaming described above.
76985         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76986         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76987         captures the dependency in AC_C_INLINE.
76988
76989         New module canonicalize-lgpl, proposed by Charles Wilson in
76990         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76991         with a few small changes afterwards.
76992         * MODULES.html.sh (File system functions): New module
76993         canonicalize-lgpl.
76994         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76995         and canonicalize_file_name.
76996         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76997         * modules/canonicalize-lgpl: New files.
76998
76999 2006-11-05  Bruno Haible  <bruno@clisp.org>
77000
77001         * gnulib-tool (func_import, func_create_testdir): Create directories
77002         also for files in subdirectories of lib/.
77003
77004 2006-11-05  Bruno Haible  <bruno@clisp.org>
77005
77006         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77007         ANSI C compliant.
77008
77009 2006-11-03  Bruno Haible  <bruno@clisp.org>
77010
77011         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77012         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77013         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77014         (xnboundedmalloc): New inline function.
77015         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77016         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77017         xmalloc.
77018         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77019         xmalloc.
77020         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77021         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77022         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77023         xmalloc.
77024         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77025         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77026         xmalloc.
77027         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77028         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77029         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77030         xmalloc.
77031         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77032         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77033         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77034         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77035         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77036         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77037         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77038
77039 2006-11-03  Bruno Haible  <bruno@clisp.org>
77040
77041         * lib/c-ctype.h [C++]: Define functions without name mangling.
77042         * lib/fwriteerror.h [C++]: Likewise.
77043         * lib/gcd.h [C++]: Likewise.
77044         * lib/linebreak.h [C++]: Likewise.
77045
77046 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77047
77048         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77049         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77050         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77051         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77052         Check for functions and headers just once.
77053         Check for declaration of canonicalize_file_name.
77054         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77055
77056 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77057
77058         * gnulib-tool (func_import): Fix typo in actioncmd.
77059
77060 2006-11-02  Bruno Haible  <bruno@clisp.org>
77061
77062         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77063         newline sequence in the Makefile.am snippet as a space, like "make"
77064         does.
77065         Reported by Roger Persson <perrog@gmail.com>.
77066
77067 2006-11-01  Bruno Haible  <bruno@clisp.org>
77068
77069         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77070         already declared in <string.h>.
77071         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77072
77073 2006-11-01  Bruno Haible  <bruno@clisp.org>
77074
77075         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77076         * lib/strcase.h: Include <string.h>.
77077         (strcasecmp): Define to rpl_strcasecmp here.
77078
77079 2006-11-01  Bruno Haible  <bruno@clisp.org>
77080
77081         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77082
77083 2006-11-01  Eric Blake  <ebb9@byu.net>
77084
77085         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77086
77087         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77088
77089 2006-10-29  Bruno Haible  <bruno@clisp.org>
77090
77091         Make it compile in C++ mode.
77092         * lib/full-write.c (full_rw): Add a cast.
77093
77094 2006-11-01  Bruno Haible  <bruno@clisp.org>
77095
77096         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77097         be POSIX compliant.
77098         Reported by Roger Persson <perrog@gmail.com>.
77099
77100 2006-11-01  Eric Blake  <ebb9@byu.net>
77101
77102         * lib/getopt_.h: Fix comments.
77103
77104 2006-10-31  Eric Blake  <ebb9@byu.net>
77105
77106         * modules/tmpdir (Depends-on): Add sys_stat.
77107         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77108         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77109         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77110         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77111         tempname.
77112
77113 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77114
77115         Avoid some C++ diagnostics reported by Bruno Haible.
77116         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77117         xmalloc.
77118         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77119         (struct slotvec): Move to top level.
77120         (quotearg_n_options): Rewrite to avoid xmalloc.
77121         * lib/xalloc.h (xcharalloc): New function.
77122         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77123         [defined __cplusplus]: Add function template that provides result
77124         type propagation.  This part of the change is from Bruno Haible.
77125
77126 2006-10-29  Bruno Haible  <bruno@clisp.org>
77127
77128         Make it compile in C++ mode.
77129         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77130         * lib/strnlen1.c (strnlen1): Cast memchr result.
77131         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77132         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77133         (create_temp_dir): Rename local variable 'template'.
77134         (compile_csharp_using_sscli): Add cast.
77135         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77136         * lib/findprog.c (find_in_path): Likewise.
77137         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77138         * lib/wait-process.c (register_slave_subprocess): Likewise.
77139
77140 2006-10-22  Bruno Haible  <bruno@clisp.org>
77141
77142         * modules/tsearch: New file.
77143         * lib/tsearch.h: New file.
77144         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77145         * m4/tsearch.m4: New file.
77146         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77147
77148 2006-10-29  Eric Blake  <ebb9@byu.net>
77149
77150         * lib/arcfour.c: Assume config.h.
77151         * lib/arctwo.c: Likewise.
77152         * lib/base64.c: Likewise.
77153         * lib/check-version.c: Likewise.
77154         * lib/crc.c: Likewise.
77155         * lib/des.c: Likewise.
77156         * lib/gc-gnulib.c: Likewise.
77157         * lib/gc-libgcrypt.c: Likewise.
77158         * lib/gc-pbkdf2-sha1.c: Likewise.
77159         * lib/getaddrinfo.c: Likewise.
77160         * lib/getdelim.c: Likewise.
77161         * lib/getline.c: Likewise.
77162         * lib/hmac-md5.c: Likewise.
77163         * lib/hmac-sha1.c: Likewise.
77164         * lib/iconvme.c: Likewise.
77165         * lib/md2.c: Likewise.
77166         * lib/md4.c: Likewise.
77167         * lib/memxor.c: Likewise.
77168         * lib/read-file.c: Likewise.
77169         * lib/readline.c: Likewise.
77170         * lib/rijndael-alg-fst.c: Likewise.
77171         * lib/rijndael-api-fst.c: Likewise.
77172         * lib/xgetdomainname.c: Likewise.
77173
77174 2006-10-28  Eric Blake  <ebb9@byu.net>
77175
77176         * lib/xstrndup.c: Assume config.h.
77177
77178 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77179
77180         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77181         stat-macros.h is now for our own macros, whereas stat_h is for
77182         macros in the <sys/stat.h> name space.
77183         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77184         (STAT_MACROS_H): Remove.
77185         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77186         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77187         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77188         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77189         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77190         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77191         Move these macros to ...
77192         * lib/stat_.h: here.  Don't include stat-macros.h.
77193         * lib/canonicalize.c: Don't include stat-macros.h.
77194         * lib/chown.c: Likewise.
77195         * lib/euidaccess.c: Likewise.
77196         * lib/file-type.c: Likewise.
77197         * lib/filemode.c: Likewise.
77198         * lib/glob.c: Likewise.
77199         * lib/isapipe.c: Likewise.
77200         * lib/lchown.c: Likewise.
77201         * lib/lstat.c: Likewise.
77202         * lib/mkdir-p.c: Likewise.
77203         * lib/rmdir.c: Likewise.
77204         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77205         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77206         unless mkdir isn't declared, to speed up 'configure'.
77207         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77208         would define all the S_* symbols.
77209         * modules/canonicalize (Depends-on):
77210         Depend on sys_stat, not stat-macros.
77211         * modules/chown: Likewise.
77212         * modules/euidaccess: Likewise.
77213         * modules/filemode: Likewise.
77214         * modules/file-type: Likewise.
77215         * modules/glob: Likewise.
77216         * modules/isapipe: Likewise.
77217         * modules/lchown: Likewise.
77218         * modules/lstat: Likewise.
77219         * modules/mkancesdirs: Likewise.
77220         * modules/rmdir: Likewise.
77221         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77222         * modules/modechange: Likewise.
77223         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77224         (configure.ac): Remove gl_STAT_MACROS.
77225         * modules/sys_stat (Depends-on): Remove stat-macros.
77226
77227 2006-10-27  Bruno Haible  <bruno@clisp.org>
77228
77229         * m4/signed.m4: Remove file.
77230         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77231         invocation.
77232         * modules/vasnprintf (Files): Remove m4/signed.m4.
77233
77234 2006-10-27  Bruno Haible  <bruno@clisp.org>
77235
77236         Update to GNU gettext 0.16.
77237         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77238         m4/inttypes-h.m4, m4/signed.m4.
77239         * m4/gettext.m4: Update to GNU gettext 0.16.
77240         * m4/intl.m4: New file, from GNU gettext.
77241         * m4/intldir.m4: New file, from GNU gettext.
77242         * config/srclist.txt: Update
77243
77244 2006-10-27  Eric Blake  <ebb9@byu.net>
77245
77246         * MODULES.html.sh: Document tempname.
77247         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77248         dependencies.
77249         (Files): Move lib/tempname.c...
77250         * modules/tempname: ...to this new module.
77251         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77252         (gl_PREREQ_TEMPNAME): Move...
77253         * m4/tempname.m4: ...to this new file.
77254         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77255         * modules/sys_stat (Depends-on): Add stat-macros.
77256         * lib/stat_.h (includes): Pick up stat macros.
77257         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77258         if stat macros are broken.
77259         * lib/tempname.c (includes): No need to include "stat-macros.h".
77260         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77261         (direxists, __path_search) [!_LIBC]: Don't compile these in
77262         gnulib; the tmpdir module covers that.
77263         * lib/tempname.h: New file.
77264
77265 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77266
77267         * COPYING: Explain how gnulib-tool converts licence headers.
77268         Almost all wording by Eric Blake.
77269
77270 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77271
77272         * lib/mbchar.h (is_basic_table): Make read-only.
77273         * lib/mbchar.c (is_basic_table): Likewise.
77274         Reported by John Darrington.
77275
77276 2006-10-25  Bruno Haible  <bruno@clisp.org>
77277
77278         * lib/progname.h (set_program_name): Undefine before defining.
77279
77280 2006-10-25  Bruno Haible  <bruno@clisp.org>
77281
77282         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77283         false for non-gcc C++ compilers.
77284         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77285
77286 2006-10-24  Bruno Haible  <bruno@clisp.org>
77287
77288         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77289         iconv implementations like Irix iconv.
77290
77291 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77292
77293         * modules/vararrays: New file.
77294         * m4/vararrays.m4: New file, taken from diffutils.
77295         * MODULES.html.sh: New module vararrays.
77296
77297 2006-10-24  Karl Berry  <karl@gnu.org>
77298
77299         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77300         Don't call GNU Unix.
77301
77302 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77303
77304         * users.txt: Add Libtool.
77305
77306         Sync from Libtool:
77307
77308         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77309
77310         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77311         to gnulib's policy of including config.h unconditionally.
77312
77313 2006-10-24  Bruno Haible  <bruno@clisp.org>
77314
77315         * modules/wcwidth (Files): Add m4/wint_t.m4.
77316         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77317         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77318
77319 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77320
77321         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77322         to pacify GCC with some -W flags enabled.  Problem reported by
77323         Bruno Haible.
77324
77325 2006-10-24  Jim Meyering  <jim@meyering.net>
77326
77327         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77328         Reported by Karl Berry.
77329
77330 2006-10-23  Bruno Haible  <bruno@clisp.org>
77331
77332         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77333
77334 2006-10-24  Bruno Haible  <bruno@clisp.org>
77335
77336         * lib/gl_list.h: Use C comment style, not C++ comment style.
77337
77338 2006-10-23  Eric Blake  <ebb9@byu.net>
77339
77340         * lib/getaddrinfo.c (includes): Add missing include.
77341
77342 2006-10-23  Bruno Haible  <bruno@clisp.org>
77343             Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         Ability to rename obstack_free.
77346         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77347         obstack_free.
77348         (obstack_free): Invoke the __obstack_free macro.
77349         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77350
77351 2006-10-23  Bruno Haible  <bruno@clisp.org>
77352             Paul Eggert  <eggert@cs.ucla.edu>
77353
77354         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77355         __argc, __argv from the declaration. (They are defined as macros on
77356         mingw.)
77357
77358 2006-10-22  Bruno Haible  <bruno@clisp.org>
77359
77360         * doc/gnulib-intro.texi: New file.
77361         * doc/gnulib.texi: Include it.
77362
77363 2006-10-21  Bruno Haible  <bruno@clisp.org>
77364
77365         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77366         "Introduction", "Miscellanous Notes", "Particular Modules".
77367
77368 2006-10-21  Bruno Haible  <bruno@clisp.org>
77369
77370         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77371         Change mostlyclean-local rule to avoid sh syntax error from bash
77372         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77373
77374 2006-10-23  Jim Meyering  <jim@meyering.net>
77375
77376         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77377         in place of snprintf.
77378
77379         * modules/inttostr (Files): Add lib/uinttostr.c.
77380         * lib/uinttostr.c (inttostr): New file/function.
77381         * lib/inttostr.h (uinttostr): Declare.
77382         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77383         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77384         Add uinttostr.
77385         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77386
77387 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77388
77389         * lib/canonicalize.c (ELOOP): Define if not already defined.
77390         Problem reported by Bruno Haible in
77391         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77392
77393 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77394
77395         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77396         Problem reported by Perry Smith and Ville Laurikari.
77397
77398         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77399         uses.
77400
77401 2006-10-19  Bruno Haible  <bruno@clisp.org>
77402
77403         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77404         for mingw.
77405
77406 2006-10-19  Bruno Haible  <bruno@clisp.org>
77407
77408         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77409         Needed for mingw.
77410
77411 2006-10-19  Bruno Haible  <bruno@clisp.org>
77412
77413         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77414
77415 2006-10-19  Bruno Haible  <bruno@clisp.org>
77416
77417         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77418         it.
77419
77420 2006-10-19  Bruno Haible  <bruno@clisp.org>
77421
77422         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77423         invocation.
77424
77425 2006-10-19  Bruno Haible  <bruno@clisp.org>
77426
77427         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77428         mountlist by default.
77429
77430 2006-10-16  Bruno Haible  <bruno@clisp.org>
77431
77432         * lib/c-strstr.c: Include c-strstr.h.
77433
77434 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77435
77436         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77437         in a slash.
77438
77439 2006-10-18  Bruno Haible  <bruno@clisp.org>
77440
77441         * lib/lock.h [C++]: Wrap definitions in extern "C".
77442
77443 2006-10-18  Bruno Haible  <bruno@clisp.org>
77444
77445         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77446         gl_LIBOBJS list.
77447
77448 2006-10-18  Bruno Haible  <bruno@clisp.org>
77449
77450         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77451
77452 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77453
77454         * lib/xstrtol.h: Include gettext.h.
77455         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77456         Problem reported by Eric Blake.
77457         * modules/xstrtol (Depends-on): Add gettext-h.
77458
77459 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77460
77461         * lib/strftime.c (advance): New macro.
77462         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77463         incomplete type, so you can't add 0 to it.  Problem and patch
77464         reported by Eelco Dolstra for dietlibc.
77465
77466 2006-10-18  Jim Meyering  <jim@meyering.net>
77467
77468         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77469         type for a local, and rename it: s/up/user_proc/.
77470
77471 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77472
77473         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77474         READ_UTMP_USER_PROCESS.
77475         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77476
77477 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77478
77479         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77480         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77481
77482 2006-10-17  Eric Blake  <ebb9@byu.net>
77483
77484         * lib/sigprocmask.c (sigprocmask): Fix typo.
77485
77486         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77487
77488         * modules/clean-temp (Makefile.am): Don't add to make output...
77489         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77490         config.h.
77491
77492 2006-10-17  Bruno Haible  <bruno@clisp.org>
77493
77494         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77495         differently if DEFAULT_TEXT_DOMAIN is set.
77496
77497 2006-10-16  Bruno Haible  <bruno@clisp.org>
77498
77499         * lib/clean-temp.c: Include fwriteerror.h.
77500
77501 2006-10-16  Bruno Haible  <bruno@clisp.org>
77502
77503         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77504
77505 2006-10-16  Bruno Haible  <bruno@clisp.org>
77506
77507         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77508         * lib/sigprocmask.h: Include <sys/types.h>.
77509         (sigset_t): Use the system's definition if present.
77510
77511 2006-10-17  Eric Blake  <ebb9@byu.net>
77512
77513         * lib/xvasprintf.c (includes): Assume config.h.
77514         * lib/xasprintf.c (includes): Likewise.
77515
77516 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77517
77518         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77519         at least as wide as intmax_t.
77520
77521 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77522
77523         (Imported from Automake.)
77524         * build-aux/gnupload: Update to version 1.1 of directive file.
77525
77526 2006-10-16  Eric Blake  <ebb9@byu.net>
77527
77528         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77529         match Automake 1.10a.
77530
77531 2006-10-14  Bruno Haible  <bruno@clisp.org>
77532
77533         * modules/sigprocmask: New file.
77534         * lib/sigprocmask.h: New file.
77535         * lib/sigprocmask.c: New file.
77536         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77537         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77538         request sigprocmask.o.
77539         (gl_PREREQ_SIGPROCMASK): New macro.
77540         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77541         (Depends-on): Add sigprocmask.
77542         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77543         gt_SIGNALBLOCKING. Test for 'raise' only once.
77544         * lib/fatal-signal.c: Include sigprocmask.h.
77545         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77546         unblock_fatal_signals): Define always.
77547         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77548         sigprocmask.
77549
77550 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77551
77552         Sync from Automake.
77553         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77554         which incorrectly sets the mode of an existing destination
77555         directory.  In some cases the unpatched install-sh could do the
77556         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77557         system.  We hope this is rare in practice, but it's clearly worth
77558         fixing.  Problem reported by Alex Unleashed in
77559         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77560         Also, don't bother to check for -m bugs unless we're using -m;
77561         suggested by Stepan Kasal.
77562
77563 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77564
77565         Sync from Automake.
77566         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77567         `-c' flag, so they appear at the same position as in %FASTDEP%
77568         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77569         which ignores unknown options only after the first non-option.
77570         Bug report against M4 by Nelson H. F. Beebe.
77571
77572 2006-10-13  Jim Meyering  <jim@meyering.net>
77573
77574         Fix a bug in yesterday's change.
77575         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77576         p->fts_statp->st_dev would be used uninitialized.
77577         Ensures that we always call fts_stat on the very first entry.
77578         Miklos Szeredi reported that find -xdev stopped working.
77579
77580 2006-10-12  Bruno Haible  <bruno@clisp.org>
77581
77582         * gnulib-tool (func_get_automake_snippet): Append an automatically
77583         computed EXTRA_DIST augmentation.
77584         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77585         * modules/alloca-opt (Makefile.am): Likewise.
77586         * modules/allocsa (Makefile.am): Likewise.
77587         * modules/arcfour (Makefile.am): Likewise.
77588         * modules/arctwo (Makefile.am): Likewise.
77589         * modules/argmatch (Makefile.am): Likewise.
77590         * modules/argz (Makefile.am): Likewise.
77591         * modules/atexit (Makefile.am): Likewise.
77592         * modules/backupfile (Makefile.am): Likewise.
77593         * modules/byteswap (Makefile.am): Likewise.
77594         * modules/c-strtod (Makefile.am): Likewise.
77595         * modules/c-strtold (Makefile.am): Likewise.
77596         * modules/calloc (Makefile.am): Likewise.
77597         * modules/canon-host (Makefile.am): Likewise.
77598         * modules/canonicalize (Makefile.am): Likewise.
77599         * modules/chdir-long (Makefile.am): Likewise.
77600         * modules/chdir-safer (Makefile.am): Likewise.
77601         * modules/check-version (Makefile.am): Likewise.
77602         * modules/chown (Makefile.am): Likewise.
77603         * modules/cloexec (Makefile.am): Likewise.
77604         * modules/close-stream (Makefile.am): Likewise.
77605         * modules/closeout (Makefile.am): Likewise.
77606         * modules/crc (Makefile.am): Likewise.
77607         * modules/csharpexec (Makefile.am): Likewise.
77608         * modules/cycle-check (Makefile.am): Likewise.
77609         * modules/des (Makefile.am): Likewise.
77610         * modules/dev-ino (Makefile.am): Likewise.
77611         * modules/dirfd (Makefile.am): Likewise.
77612         * modules/dirname (Makefile.am): Likewise.
77613         * modules/dup2 (Makefile.am): Likewise.
77614         * modules/eealloc (Makefile.am): Likewise.
77615         * modules/error (Makefile.am): Likewise.
77616         * modules/euidaccess (Makefile.am): Likewise.
77617         * modules/exclude (Makefile.am): Likewise.
77618         * modules/exitfail (Makefile.am): Likewise.
77619         * modules/fcntl-safer (Makefile.am): Likewise.
77620         * modules/fcntl (Makefile.am): Likewise.
77621         * modules/file-type (Makefile.am): Likewise.
77622         * modules/fileblocks (Makefile.am): Likewise.
77623         * modules/filemode (Makefile.am): Likewise.
77624         * modules/filenamecat (Makefile.am): Likewise.
77625         * modules/fnmatch (Makefile.am): Likewise.
77626         * modules/fopen-safer (Makefile.am): Likewise.
77627         * modules/fpending (Makefile.am): Likewise.
77628         * modules/fprintftime (Makefile.am): Likewise.
77629         * modules/free (Makefile.am): Likewise.
77630         * modules/fsusage (Makefile.am): Likewise.
77631         * modules/ftruncate (Makefile.am): Likewise.
77632         * modules/fts (Makefile.am): Likewise.
77633         * modules/gc-arcfour (Makefile.am): Likewise.
77634         * modules/gc-des (Makefile.am): Likewise.
77635         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77636         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77637         * modules/gc-md4 (Makefile.am): Likewise.
77638         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77639         * modules/gc-sha1 (Makefile.am): Likewise.
77640         * modules/gc (Makefile.am): Likewise.
77641         * modules/getaddrinfo (Makefile.am): Likewise.
77642         * modules/getcwd (Makefile.am): Likewise.
77643         * modules/getdelim (Makefile.am): Likewise.
77644         * modules/getdomainname (Makefile.am): Likewise.
77645         * modules/getgroups (Makefile.am): Likewise.
77646         * modules/gethostname (Makefile.am): Likewise.
77647         * modules/gethrxtime (Makefile.am): Likewise.
77648         * modules/getline (Makefile.am): Likewise.
77649         * modules/getloadavg (Makefile.am): Likewise.
77650         * modules/getlogin_r (Makefile.am): Likewise.
77651         * modules/getndelim2 (Makefile.am): Likewise.
77652         * modules/getopt (Makefile.am): Likewise.
77653         * modules/getpagesize (Makefile.am): Likewise.
77654         * modules/getpass-gnu (Makefile.am): Likewise.
77655         * modules/getpass (Makefile.am): Likewise.
77656         * modules/getsubopt (Makefile.am): Likewise.
77657         * modules/gettime (Makefile.am): Likewise.
77658         * modules/gettimeofday (Makefile.am): Likewise.
77659         * modules/getugroups (Makefile.am): Likewise.
77660         * modules/getusershell (Makefile.am): Likewise.
77661         * modules/glob (Makefile.am): Likewise.
77662         * modules/group-member (Makefile.am): Likewise.
77663         * modules/hard-locale (Makefile.am): Likewise.
77664         * modules/hash (Makefile.am): Likewise.
77665         * modules/hmac-md5 (Makefile.am): Likewise.
77666         * modules/hmac-sha1 (Makefile.am): Likewise.
77667         * modules/human (Makefile.am): Likewise.
77668         * modules/idcache (Makefile.am): Likewise.
77669         * modules/imaxabs (Makefile.am): Likewise.
77670         * modules/imaxdiv (Makefile.am): Likewise.
77671         * modules/inet_ntop (Makefile.am): Likewise.
77672         * modules/inet_pton (Makefile.am): Likewise.
77673         * modules/intprops (Makefile.am): Likewise.
77674         * modules/inttostr (Makefile.am): Likewise.
77675         * modules/inttypes (Makefile.am): Likewise.
77676         * modules/isapipe (Makefile.am): Likewise.
77677         * modules/javaversion (Makefile.am): Likewise.
77678         * modules/lchmod (Makefile.am): Likewise.
77679         * modules/lchown (Makefile.am): Likewise.
77680         * modules/localcharset (Makefile.am): Likewise.
77681         * modules/long-options (Makefile.am): Likewise.
77682         * modules/lstat (Makefile.am): Likewise.
77683         * modules/malloc (Makefile.am): Likewise.
77684         * modules/mathl (Makefile.am): Likewise.
77685         * modules/mbchar (Makefile.am): Likewise.
77686         * modules/md2 (Makefile.am): Likewise.
77687         * modules/md4 (Makefile.am): Likewise.
77688         * modules/md5 (Makefile.am): Likewise.
77689         * modules/memcasecmp (Makefile.am): Likewise.
77690         * modules/memchr (Makefile.am): Likewise.
77691         * modules/memcmp (Makefile.am): Likewise.
77692         * modules/memcoll (Makefile.am): Likewise.
77693         * modules/memcpy (Makefile.am): Likewise.
77694         * modules/memmem (Makefile.am): Likewise.
77695         * modules/memmove (Makefile.am): Likewise.
77696         * modules/mempcpy (Makefile.am): Likewise.
77697         * modules/memrchr (Makefile.am): Likewise.
77698         * modules/memset (Makefile.am): Likewise.
77699         * modules/memxor (Makefile.am): Likewise.
77700         * modules/mkancesdirs (Makefile.am): Likewise.
77701         * modules/mkdir-p (Makefile.am): Likewise.
77702         * modules/mkdir (Makefile.am): Likewise.
77703         * modules/mkdtemp (Makefile.am): Likewise.
77704         * modules/mkstemp (Makefile.am): Likewise.
77705         * modules/mktime (Makefile.am): Likewise.
77706         * modules/modechange (Makefile.am): Likewise.
77707         * modules/mountlist (Makefile.am): Likewise.
77708         * modules/nanosleep (Makefile.am): Likewise.
77709         * modules/obstack (Makefile.am): Likewise.
77710         * modules/openat (Makefile.am): Likewise.
77711         * modules/pagealign_alloc (Makefile.am): Likewise.
77712         * modules/pathmax (Makefile.am): Likewise.
77713         * modules/physmem (Makefile.am): Likewise.
77714         * modules/poll (Makefile.am): Likewise.
77715         * modules/posixtm (Makefile.am): Likewise.
77716         * modules/posixver (Makefile.am): Likewise.
77717         * modules/putenv (Makefile.am): Likewise.
77718         * modules/quote (Makefile.am): Likewise.
77719         * modules/quotearg (Makefile.am): Likewise.
77720         * modules/raise (Makefile.am): Likewise.
77721         * modules/read-file (Makefile.am): Likewise.
77722         * modules/readline (Makefile.am): Likewise.
77723         * modules/readlink (Makefile.am): Likewise.
77724         * modules/readtokens (Makefile.am): Likewise.
77725         * modules/readutmp (Makefile.am): Likewise.
77726         * modules/realloc (Makefile.am): Likewise.
77727         * modules/regex (Makefile.am): Likewise.
77728         * modules/rename-dest-slash (Makefile.am): Likewise.
77729         * modules/rename (Makefile.am): Likewise.
77730         * modules/rijndael (Makefile.am): Likewise.
77731         * modules/rmdir (Makefile.am): Likewise.
77732         * modules/rpmatch (Makefile.am): Likewise.
77733         * modules/safe-read (Makefile.am): Likewise.
77734         * modules/safe-write (Makefile.am): Likewise.
77735         * modules/same-inode (Makefile.am): Likewise.
77736         * modules/same (Makefile.am): Likewise.
77737         * modules/save-cwd (Makefile.am): Likewise.
77738         * modules/savedir (Makefile.am): Likewise.
77739         * modules/setenv (Makefile.am): Likewise.
77740         * modules/settime (Makefile.am): Likewise.
77741         * modules/sha1 (Makefile.am): Likewise.
77742         * modules/sig2str (Makefile.am): Likewise.
77743         * modules/snprintf (Makefile.am): Likewise.
77744         * modules/stat-macros (Makefile.am): Likewise.
77745         * modules/stat-time (Makefile.am): Likewise.
77746         * modules/stdbool (Makefile.am): Likewise.
77747         * modules/stdint (Makefile.am): Likewise.
77748         * modules/stdlib-safer (Makefile.am): Likewise.
77749         * modules/stpcpy (Makefile.am): Likewise.
77750         * modules/stpncpy (Makefile.am): Likewise.
77751         * modules/strcase (Makefile.am): Likewise.
77752         * modules/strcasestr (Makefile.am): Likewise.
77753         * modules/strchrnul (Makefile.am): Likewise.
77754         * modules/strcspn (Makefile.am): Likewise.
77755         * modules/strdup (Makefile.am): Likewise.
77756         * modules/strerror (Makefile.am): Likewise.
77757         * modules/strftime (Makefile.am): Likewise.
77758         * modules/strndup (Makefile.am): Likewise.
77759         * modules/strnlen (Makefile.am): Likewise.
77760         * modules/strpbrk (Makefile.am): Likewise.
77761         * modules/strsep (Makefile.am): Likewise.
77762         * modules/strstr (Makefile.am): Likewise.
77763         * modules/strtod (Makefile.am): Likewise.
77764         * modules/strtoimax (Makefile.am): Likewise.
77765         * modules/strtok_r (Makefile.am): Likewise.
77766         * modules/strtol (Makefile.am): Likewise.
77767         * modules/strtoll (Makefile.am): Likewise.
77768         * modules/strtoul (Makefile.am): Likewise.
77769         * modules/strtoull (Makefile.am): Likewise.
77770         * modules/strtoumax (Makefile.am): Likewise.
77771         * modules/strverscmp (Makefile.am): Likewise.
77772         * modules/sys_socket (Makefile.am): Likewise.
77773         * modules/sys_stat (Makefile.am): Likewise.
77774         * modules/sysexits (Makefile.am): Likewise.
77775         * modules/time_r (Makefile.am): Likewise.
77776         * modules/timegm (Makefile.am): Likewise.
77777         * modules/timespec (Makefile.am): Likewise.
77778         * modules/tmpfile-safer (Makefile.am): Likewise.
77779         * modules/trim (Makefile.am): Likewise.
77780         * modules/unistd-safer (Makefile.am): Likewise.
77781         * modules/unlinkdir (Makefile.am): Likewise.
77782         * modules/unlocked-io (Makefile.am): Likewise.
77783         * modules/userspec (Makefile.am): Likewise.
77784         * modules/utime (Makefile.am): Likewise.
77785         * modules/utimecmp (Makefile.am): Likewise.
77786         * modules/utimens (Makefile.am): Likewise.
77787         * modules/vasnprintf (Makefile.am): Likewise.
77788         * modules/vasprintf (Makefile.am): Likewise.
77789         * modules/vsnprintf (Makefile.am): Likewise.
77790         * modules/xalloc (Makefile.am): Likewise.
77791         * modules/xgetcwd (Makefile.am): Likewise.
77792         * modules/xnanosleep (Makefile.am): Likewise.
77793         * modules/xreadlink (Makefile.am): Likewise.
77794         * modules/xstrtod (Makefile.am): Likewise.
77795         * modules/xstrtol (Makefile.am): Likewise.
77796         * modules/xstrtold (Makefile.am): Likewise.
77797         * modules/yesno (Makefile.am): Likewise.
77798         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77799
77800 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77801
77802         * modules/error (Makefile.am): Distribute files through
77803         EXTRA_DIST, not lib_SOURCES.
77804
77805 2006-10-12  Eric Blake  <ebb9@byu.net>
77806
77807         * modules/error (Makefile.am): Distribute files in /lib.
77808         * modules/obstack (Makefile.am): Likewise.
77809
77810 2006-10-12  Bruno Haible  <bruno@clisp.org>
77811
77812         * modules/acl (Makefile.am): Distribute all files in lib/ through
77813         EXTRA_DIST.
77814         * modules/arcfour (Makefile.am): Likewise.
77815         * modules/arctwo (Makefile.am): Likewise.
77816         * modules/argmatch (Makefile.am): Likewise.
77817         * modules/argz (Makefile.am): Likewise.
77818         * modules/atexit (Makefile.am): Likewise.
77819         * modules/backupfile (Makefile.am): Likewise.
77820         * modules/c-strtod (Makefile.am): Likewise.
77821         * modules/c-strtold (Makefile.am): Likewise.
77822         * modules/calloc (Makefile.am): Likewise.
77823         * modules/canon-host (Makefile.am): Likewise.
77824         * modules/canonicalize (Makefile.am): Likewise.
77825         * modules/chdir-long (Makefile.am): Likewise.
77826         * modules/chdir-safer (Makefile.am): Likewise.
77827         * modules/check-version (Makefile.am): Likewise.
77828         * modules/chown (Makefile.am): Likewise.
77829         * modules/cloexec (Makefile.am): Likewise.
77830         * modules/close-stream (Makefile.am): Likewise.
77831         * modules/closeout (Makefile.am): Likewise.
77832         * modules/crc (Makefile.am): Likewise.
77833         * modules/cycle-check (Makefile.am): Likewise.
77834         * modules/des (Makefile.am): Likewise.
77835         * modules/dirfd (Makefile.am): Likewise.
77836         * modules/dirname (Makefile.am): Likewise.
77837         * modules/dup2 (Makefile.am): Likewise.
77838         * modules/euidaccess (Makefile.am): Likewise.
77839         * modules/exclude (Makefile.am): Likewise.
77840         * modules/exitfail (Makefile.am): Likewise.
77841         * modules/fcntl-safer (Makefile.am): Likewise.
77842         * modules/file-type (Makefile.am): Likewise.
77843         * modules/fileblocks (Makefile.am): Likewise.
77844         * modules/filemode (Makefile.am): Likewise.
77845         * modules/filenamecat (Makefile.am): Likewise.
77846         * modules/fnmatch (Makefile.am): Likewise.
77847         * modules/fopen-safer (Makefile.am): Likewise.
77848         * modules/fpending (Makefile.am): Likewise.
77849         * modules/fprintftime (Makefile.am): Likewise.
77850         * modules/free (Makefile.am): Likewise.
77851         * modules/fsusage (Makefile.am): Likewise.
77852         * modules/ftruncate (Makefile.am): Likewise.
77853         * modules/fts (Makefile.am): Likewise.
77854         * modules/gc (Makefile.am): Likewise.
77855         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77856         * modules/getaddrinfo (Makefile.am): Likewise.
77857         * modules/getcwd (Makefile.am): Likewise.
77858         * modules/getdelim (Makefile.am): Likewise.
77859         * modules/getdomainname (Makefile.am): Likewise.
77860         * modules/getgroups (Makefile.am): Likewise.
77861         * modules/gethostname (Makefile.am): Likewise.
77862         * modules/gethrxtime (Makefile.am): Likewise.
77863         * modules/getline (Makefile.am): Likewise.
77864         * modules/getloadavg (Makefile.am): Likewise.
77865         * modules/getlogin_r (Makefile.am): Likewise.
77866         * modules/getopt (Makefile.am): Likewise.
77867         * modules/getpass (Makefile.am): Likewise.
77868         * modules/getpass-gnu (Makefile.am): Likewise.
77869         * modules/getsubopt (Makefile.am): Likewise.
77870         * modules/gettime (Makefile.am): Likewise.
77871         * modules/gettimeofday (Makefile.am): Likewise.
77872         * modules/getugroups (Makefile.am): Likewise.
77873         * modules/getusershell (Makefile.am): Likewise.
77874         * modules/glob (Makefile.am): Likewise.
77875         * modules/group-member (Makefile.am): Likewise.
77876         * modules/hard-locale (Makefile.am): Likewise.
77877         * modules/hash (Makefile.am): Likewise.
77878         * modules/hmac-md5 (Makefile.am): Likewise.
77879         * modules/hmac-sha1 (Makefile.am): Likewise.
77880         * modules/human (Makefile.am): Likewise.
77881         * modules/idcache (Makefile.am): Likewise.
77882         * modules/imaxabs (Makefile.am): Likewise.
77883         * modules/imaxdiv (Makefile.am): Likewise.
77884         * modules/inet_ntop (Makefile.am): Likewise.
77885         * modules/inet_pton (Makefile.am): Likewise.
77886         * modules/inttostr (Makefile.am): Likewise.
77887         * modules/isapipe (Makefile.am): Likewise.
77888         * modules/lchown (Makefile.am): Likewise.
77889         * modules/long-options (Makefile.am): Likewise.
77890         * modules/lstat (Makefile.am): Likewise.
77891         * modules/malloc (Makefile.am): Likewise.
77892         * modules/mathl (Makefile.am): Likewise.
77893         * modules/mbchar (Makefile.am): Likewise.
77894         * modules/md2 (Makefile.am): Likewise.
77895         * modules/md4 (Makefile.am): Likewise.
77896         * modules/md5 (Makefile.am): Likewise.
77897         * modules/memcasecmp (Makefile.am): Likewise.
77898         * modules/memchr (Makefile.am): Likewise.
77899         * modules/memcmp (Makefile.am): Likewise.
77900         * modules/memcoll (Makefile.am): Likewise.
77901         * modules/memcpy (Makefile.am): Likewise.
77902         * modules/memmem (Makefile.am): Likewise.
77903         * modules/memmove (Makefile.am): Likewise.
77904         * modules/mempcpy (Makefile.am): Likewise.
77905         * modules/memrchr (Makefile.am): Likewise.
77906         * modules/memset (Makefile.am): Likewise.
77907         * modules/memxor (Makefile.am): Likewise.
77908         * modules/mkancesdirs (Makefile.am): Likewise.
77909         * modules/mkdir (Makefile.am): Likewise.
77910         * modules/mkdir-p (Makefile.am): Likewise.
77911         * modules/mkdtemp (Makefile.am): Likewise.
77912         * modules/mkstemp (Makefile.am): Likewise.
77913         * modules/mktime (Makefile.am): Likewise.
77914         * modules/modechange (Makefile.am): Likewise.
77915         * modules/mountlist (Makefile.am): Likewise.
77916         * modules/nanosleep (Makefile.am): Likewise.
77917         * modules/openat (Makefile.am): Likewise.
77918         * modules/pagealign_alloc (Makefile.am): Likewise.
77919         * modules/physmem (Makefile.am): Likewise.
77920         * modules/poll (Makefile.am): Likewise.
77921         * modules/posixtm (Makefile.am): Likewise.
77922         * modules/posixver (Makefile.am): Likewise.
77923         * modules/putenv (Makefile.am): Likewise.
77924         * modules/quote (Makefile.am): Likewise.
77925         * modules/quotearg (Makefile.am): Likewise.
77926         * modules/raise (Makefile.am): Likewise.
77927         * modules/read-file (Makefile.am): Likewise.
77928         * modules/readline (Makefile.am): Likewise.
77929         * modules/readlink (Makefile.am): Likewise.
77930         * modules/readtokens (Makefile.am): Likewise.
77931         * modules/readutmp (Makefile.am): Likewise.
77932         * modules/realloc (Makefile.am): Likewise.
77933         * modules/regex (Makefile.am): Likewise.
77934         * modules/rename (Makefile.am): Likewise.
77935         * modules/rename-dest-slash (Makefile.am): Likewise.
77936         * modules/rijndael (Makefile.am): Likewise.
77937         * modules/rmdir (Makefile.am): Likewise.
77938         * modules/rpmatch (Makefile.am): Likewise.
77939         * modules/safe-read (Makefile.am): Likewise.
77940         * modules/safe-write (Makefile.am): Likewise.
77941         * modules/same (Makefile.am): Likewise.
77942         * modules/save-cwd (Makefile.am): Likewise.
77943         * modules/savedir (Makefile.am): Likewise.
77944         * modules/setenv (Makefile.am): Likewise.
77945         * modules/settime (Makefile.am): Likewise.
77946         * modules/sha1 (Makefile.am): Likewise.
77947         * modules/sig2str (Makefile.am): Likewise.
77948         * modules/snprintf (Makefile.am): Likewise.
77949         * modules/stdlib-safer (Makefile.am): Likewise.
77950         * modules/stpcpy (Makefile.am): Likewise.
77951         * modules/stpncpy (Makefile.am): Likewise.
77952         * modules/strcase (Makefile.am): Likewise.
77953         * modules/strcasestr (Makefile.am): Likewise.
77954         * modules/strchrnul (Makefile.am): Likewise.
77955         * modules/strcspn (Makefile.am): Likewise.
77956         * modules/strdup (Makefile.am): Likewise.
77957         * modules/strerror (Makefile.am): Likewise.
77958         * modules/strftime (Makefile.am): Likewise.
77959         * modules/strndup (Makefile.am): Likewise.
77960         * modules/strnlen (Makefile.am): Likewise.
77961         * modules/strpbrk (Makefile.am): Likewise.
77962         * modules/strsep (Makefile.am): Likewise.
77963         * modules/strstr (Makefile.am): Likewise.
77964         * modules/strtod (Makefile.am): Likewise.
77965         * modules/strtoimax (Makefile.am): Likewise.
77966         * modules/strtok_r (Makefile.am): Likewise.
77967         * modules/strtol (Makefile.am): Likewise.
77968         * modules/strtoll (Makefile.am): Likewise.
77969         * modules/strtoul (Makefile.am): Likewise.
77970         * modules/strtoull (Makefile.am): Likewise.
77971         * modules/strtoumax (Makefile.am): Likewise.
77972         * modules/strverscmp (Makefile.am): Likewise.
77973         * modules/time_r (Makefile.am): Likewise.
77974         * modules/timegm (Makefile.am): Likewise.
77975         * modules/tmpfile-safer (Makefile.am): Likewise.
77976         * modules/unistd-safer (Makefile.am): Likewise.
77977         * modules/unlinkdir (Makefile.am): Likewise.
77978         * modules/userspec (Makefile.am): Likewise.
77979         * modules/utime (Makefile.am): Likewise.
77980         * modules/utimecmp (Makefile.am): Likewise.
77981         * modules/utimens (Makefile.am): Likewise.
77982         * modules/vasnprintf (Makefile.am): Likewise.
77983         * modules/vasprintf (Makefile.am): Likewise.
77984         * modules/vsnprintf (Makefile.am): Likewise.
77985         * modules/xalloc (Makefile.am): Likewise.
77986         * modules/xgetcwd (Makefile.am): Likewise.
77987         * modules/xnanosleep (Makefile.am): Likewise.
77988         * modules/xreadlink (Makefile.am): Likewise.
77989         * modules/xstrtod (Makefile.am): Likewise.
77990         * modules/xstrtol (Makefile.am): Likewise.
77991         * modules/xstrtold (Makefile.am): Likewise.
77992         * modules/yesno (Makefile.am): Likewise.
77993
77994 2006-10-12  Jim Meyering  <jim@meyering.net>
77995
77996         * m4/getloadavg.m4: Revert the change below.
77997
77998         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77999         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78000         fail with a symlink, which is what coreutils' ./bootstrap now
78001         creates by default.
78002
78003 2006-10-12  Bruno Haible  <bruno@clisp.org>
78004
78005         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78006         mingw.
78007         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78008         MSVC and mingw explicitly.
78009
78010 2006-10-11  Simon Josefsson  <jas@extundo.com>
78011             Bruno Haible  <bruno@clisp.org>
78012
78013         Add support for multiple gnulib-tool invocations in the scope of a
78014         single configure.ac file.
78015         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78016         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78017         with the same contents as the _LIBADD variable.
78018         (func_emit_initmacro_start, func_emit_initmacro_end,
78019         func_emit_initmacro_done): New functions.
78020         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78021         gl_LIBOBJS and gl_LTLIBOBJS.
78022
78023 2006-10-11  Bruno Haible  <bruno@clisp.org>
78024
78025         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78026         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78027         autoreconf. Instead, invoke autopoint explicitly but move back the
78028         *.m4 files from gnulib.
78029
78030 2006-10-11  Bruno Haible  <bruno@clisp.org>
78031
78032         * gnulib-tool (func_usage): Make module names after --create-testdir
78033         optional.
78034         (func_create_testdir): If no module was specified, use nearly all
78035         modules.
78036
78037 2006-10-12  Jim Meyering  <jim@meyering.net>
78038
78039         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78040         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78041         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78042         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78043         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78044         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78045         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78046         (fts_set_stat_required): New function.
78047         (fts_open): Defer the calls to fts_stat, if possible or requested.
78048         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78049         into fts_stat itself.
78050         (fts_read): Perform any required (deferred) fts_stat call.
78051         (fts_build): Likewise, for the directory we're about to open and read.
78052         In the readdir loop, carefully decide whether each entry will require
78053         an eventual call to fts_stat, using dirent.d_type info if available.
78054         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78055         a command line argument into this function.  Update all callers.
78056         Map a return value of FTS_DOT to FTS_D for a command line argument.
78057         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78058         Thanks to Miklos Szeredi for his tenacity and for the initial
78059         bug report about "find" failing on a FUSE-based file system.
78060
78061         * lib/fts.c (fts_open): Use consistent indentation.
78062
78063 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78064
78065         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78066         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78067         reported by Jim Meyering.  All uses of cache variables renamed
78068         to match Autoconf's.
78069         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78070         the other one.
78071
78072         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78073         Fix misspelling in diagnostic.
78074
78075 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78076
78077         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78078         defined.  Problem reported by Matthew Woehlke.
78079
78080         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78081         Add support for Tandem NonStop R series.
78082         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78083         Use new macro.
78084
78085         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78086         (has_trailing_slash): Omit size arg; all callers changed.
78087         Omit 'inline', since it doesn't help performance and we'd
78088         need to configure it.
78089         Don't count //, ///, etc. as having a trailing slash.
78090         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78091         (rpl_rename_dest_slash): On failure, use rename's errno rather
78092         than (in some cases) an incorrect or junk errno.
78093         Simplify code by removing need to compute length; this does
78094         cause it to make two passes instead of one over the file name,
78095         but it's worth it.
78096
78097         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78098         change, since Autoconf's version may no longer be appropriate now
78099         that we are using CVS Autoconf's version.  Add support for Tandem.
78100
78101 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78102             Bruno Haible  <bruno@clisp.org>
78103
78104         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78105         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78106         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78107         gl_AC_TYPE_LONG_LONG.
78108
78109         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78110         instead of HAVE_LONG_LONG.
78111         * lib/printf-args.c (printf_fetchargs): Likewise.
78112         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78113         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78114         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78115         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78116         gl_AC_TYPE_LONG_LONG.
78117
78118 2006-10-11  Bruno Haible  <bruno@clisp.org>
78119
78120         * m4/longlong.m4: Add comments.
78121         * m4/ulonglong.m4: Likewise.
78122
78123 2006-10-10  Bruno Haible  <bruno@clisp.org>
78124
78125         Make it possible to #define stpcpy, strdup to aliases.
78126         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78127         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78128
78129 2006-10-10  Bruno Haible  <bruno@clisp.org>
78130
78131         Make it possible to #define gcd to an alias.
78132         * lib/gcd.c: Include config.h.
78133
78134 2006-10-10  Bruno Haible  <bruno@clisp.org>
78135
78136         Make it possible to #define c_isascii to an alias.
78137         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78138         defined. Undefine the macros before defining them, to avoid gcc
78139         warnings.
78140         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78141         define NO_C_CTYPE_MACROS early.
78142
78143 2006-10-10  Bruno Haible  <bruno@clisp.org>
78144
78145         Make it possible to #define set_program_name to an alias.
78146         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78147         ENABLE_RELOCATABLE early.
78148
78149 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78150
78151         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78152         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78153         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78154         More generally, don't assume that 64-bit signed int is available
78155         if unsigned int is, and vice versa.
78156         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78157         unsigned symbols, not on their signed counterparts.
78158         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78159         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78160         (UINT64_C, UINTMAX_C):
78161         Likewise.
78162         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78163         unsigned counterparts.
78164         (Have_long_long, Unsigned): New macros.
78165         (Int): Renamed from INT.
78166         (strtoimax): Use the new macros.
78167         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78168         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78169         * modules/inttypes (inttypes.h): Substitute
78170         HAVE_UNSIGNED_LONG_LONG_INT.
78171         * modules/stdint (stdint.h): Likewise.
78172         (Files): Add m4/ulonglong.m4.
78173
78174 2006-10-10  Bruno Haible  <bruno@clisp.org>
78175
78176         Fix a gcc -Wshadow warning.
78177         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78178         to 'bucket'.
78179         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78180         gl_linked_indexof_from_to): Likewise.
78181         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78182         Likewise.
78183         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78184         Likewise.
78185         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78186         Reported by Eric Blake.
78187
78188 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78189
78190         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78191         for NetBSD.  Problem reported by Bruno Haible.
78192
78193 2006-10-09  Jim Meyering  <jim@meyering.net>
78194
78195         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78196         Patch from Bruno Haible.
78197
78198 2006-10-09  Jim Meyering  <jim@meyering.net>
78199
78200         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78201         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78202         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78203
78204 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78205
78206         Don't include <config.h> twice; this doesn't work in some cases,
78207         e.g., when config.h has "#define intmax_t long long int" and
78208         we include <config.h>, <inttypes.h>, <config.h> in that order.
78209         Problem reported by Matthew Woehlke in:
78210         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78211         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78212         * lib/fts-cycle.c: Don't include config.h.
78213         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78214         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78215         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78216         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78217         inttypes.h.
78218         * lib/xstrtoumax.c: Likewise.
78219         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78220         __strtol and the like, so that this module is more like its siblings.
78221         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78222         Remove; no longer needed now that we assume gnulib inttypes.h.
78223
78224 2006-10-08  Bruno Haible  <bruno@clisp.org>
78225
78226         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78227         option.
78228
78229 2006-10-07  Jim Meyering  <jim@meyering.net>
78230
78231         * modules/inttypes (inttypes.h): Revert what seems to have been
78232         an inadvertent part of today's change: use "|", not "/" in the
78233         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78234
78235 2006-10-07  Bruno Haible  <bruno@clisp.org>
78236
78237         * modules/sublist: New file.
78238
78239 2006-10-07  Bruno Haible  <bruno@clisp.org>
78240
78241         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78242         * modules/argz (argz.h): Likewise.
78243         * modules/arpa_inet (arpa/inet.h): Likewise.
78244         * modules/byteswap (byteswap.h): Likewise.
78245         * modules/configmake (configmake.h): Likewise.
78246         * modules/fcntl (fcntl.h): Likewise.
78247         * modules/fnmatch (fnmatch.h): Likewise.
78248         * modules/getopt (getopt.h): Likewise.
78249         * modules/glob (glob.h): Likewise.
78250         * modules/inttypes (inttypes.h): Likewise.
78251         * modules/netinet_in (netinet/in.h): Likewise.
78252         * modules/poll (poll.h): Likewise.
78253         * modules/stdbool (stdbool.h): Likewise.
78254         * modules/stdint (stdint.h): Likewise.
78255         * modules/sys_select (sys/select.h): Likewise.
78256         * modules/sys_socket (sys/socket.h): Likewise.
78257         * modules/sys_stat (sys/stat.h): Likewise.
78258         * modules/sysexits (sysexits.h): Likewise.
78259         * modules/unistd (unistd.h): Likewise.
78260         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78261         Add a "DO NOT EDIT" comment to the generated file.
78262         (func_import): Likewise for gnulib-comp.m4.
78263
78264 2006-10-07  Bruno Haible  <bruno@clisp.org>
78265
78266         * lib/gl_sublist.h: New file.
78267         * lib/gl_sublist.c: New file.
78268
78269 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78270
78271         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78272         name (relative to the original working directory) and the file
78273         name component (relative to the temporary working directory).  All
78274         callers changed.
78275         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78276         * lib/mkdir-p.c (make_dir_parents): Likewise.
78277         * lib/mkdir-p.h (make_dir_parents): Likewise.
78278
78279 2006-10-06  Eric Blake  <ebb9@byu.net>
78280
78281         Define several macros for use by the clean-temp module.
78282         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78283         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78284         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78285
78286         * lib/clean-temp.h (close_stream_temp): New declaration.
78287         * lib/clean-temp.c (includes): Pull in headers according to what
78288         other modules are in use.
78289         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78290
78291 2006-10-06  Bruno Haible  <bruno@clisp.org>
78292
78293         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78294         instead of fopen, fwriteerror.
78295
78296 2006-10-06  Bruno Haible  <bruno@clisp.org>
78297
78298         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78299         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78300         int.
78301         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78302         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78303         Return an error indicator.
78304         Suggested by Eric Blake.
78305
78306 2006-10-06  Bruno Haible  <bruno@clisp.org>
78307
78308         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78309         Reported by Eric Blake.
78310
78311 2006-10-06  Bruno Haible  <bruno@clisp.org>
78312
78313         * modules/closeout (Description): Mention stderr too.
78314
78315 2006-10-06  Bruno Haible  <bruno@clisp.org>
78316         and Paul Eggert  <eggert@cs.ucla.edu>
78317
78318         * lib/closeout.c (close_stdout): Also close stderr.
78319         * lib/closeout.h: Update comment.
78320
78321 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78322
78323         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78324         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78325         * lib/dirchownmod.c: Include lchown.h.
78326         * lib/lchown.c: Don't include files that lchown.h now includes.
78327         Don't declare chown, since lchown.h now does that.
78328         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78329         (lchown): Define to rpl_chown if lchown is declared but
78330         does not exist.  Declare using a prototype if lchown is not
78331         declared.  Add a copyright notice.
78332         * lib/mkstemp.h: Include <unistd.h>.
78333         * lib/openat.c: Include lchown.h.
78334
78335         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78336         we now test for that separately.
78337         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78338         rather than O_NOFOLLOW, when testing whether it's possible to
78339         avoid a race condition reliably.
78340         * lib/savewd.c (savewd_chdir): Likewise.
78341
78342         Remove macros that are no longer needed now that stdint.h is
78343         reliable.
78344         * lib/fsusage.c (UINTMAX_MAX): Remove.
78345         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78346         * lib/utimecmp.c (SIZE_MAX): Remove.
78347
78348         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78349
78350         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78351         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78352         O_NOATIME works.
78353
78354 2006-10-05  Bruno Haible  <bruno@clisp.org>
78355
78356         * lib/gl_list.h (gl_sortedlist_search_from_to,
78357         gl_sortedlist_indexof_from_to): New declarations.
78358         (gl_list_implementation): New fields sortedlist_search_from_to,
78359         sortedlist_indexof_from_to.
78360         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78361         inline functions.
78362         * lib/gl_list.c (gl_sortedlist_search_from_to,
78363         gl_sortedlist_indexof_from_to): New functions.
78364         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78365         function.
78366         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78367         (gl_array_sortedlist_search_from_to): New function.
78368         (gl_array_list_implementation): Update.
78369         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78370         function.
78371         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78372         (gl_carray_sortedlist_search_from_to): New function.
78373         (gl_carray_list_implementation): Update.
78374         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78375         gl_linked_sortedlist_indexof_from_to): New functions.
78376         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78377         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78378         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78379         gl_tree_sortedlist_indexof_from_to): New functions.
78380         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78381         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78382         Update.
78383         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78384         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78385         Update.
78386
78387 2006-10-05  Bruno Haible  <bruno@clisp.org>
78388
78389         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78390         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78391         (struct gl_list_implementation): Add fields search_from_to,
78392         indexof_from_to. Remove fields search, indexof.
78393         (gl_list_search): Use the search_from_to method.
78394         (gl_list_search_from, gl_list_search_from_to): New functions.
78395         (gl_list_indexof): Use the indexof_from_to method.
78396         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78397         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78398         (gl_list_search_from, gl_list_search_from_to): New functions.
78399         (gl_list_indexof): Use the indexof_from_to method.
78400         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78401         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78402         gl_array_indexof. Add start_index, end_index arguments.
78403         (gl_array_search_from_to): Renamed from gl_array_search. Add
78404         start_index, end_index arguments.
78405         (gl_array_remove, gl_array_list_implementation): Update.
78406         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78407         gl_carray_indexof. Add start_index, end_index arguments.
78408         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78409         start_index, end_index arguments.
78410         (gl_carray_remove, gl_carray_list_implementation): Update.
78411         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78412         gl_linked_search. Add start_index, end_index arguments.
78413         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78414         start_index, end_index arguments.
78415         (gl_linked_remove): Update.
78416         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78417         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78418         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78419         field to 'size_t'.
78420         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78421         gl_tree_search. Add start_index, end_index arguments.
78422         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78423         start_index, end_index arguments.
78424         (gl_tree_remove): Update.
78425         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78426         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78427         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78428         function.
78429         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78430         gl_tree_search. Add start_index, end_index arguments.
78431         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78432         start_index, end_index arguments.
78433         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78434         Update.
78435         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78436
78437 2006-10-05  Bruno Haible  <bruno@clisp.org>
78438
78439         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78440
78441         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78442         fwriteerror_temp): New declarations.
78443         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78444         (descriptors): New variable.
78445         (cleanup): First, close the descriptors.
78446         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78447         fclose_temp, fwriteerror_temp): New functions.
78448
78449 2006-10-04  Jim Meyering  <jim@meyering.net>
78450
78451         * lib/fts.c (fts_open): Tiny comment change.
78452
78453 2006-10-04  Bruno Haible  <bruno@clisp.org>
78454
78455         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78456         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78457         gl_LOCK_BODY.
78458         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78459         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78460         gl_LOCK_EARLY_BODY.
78461         (gl_LOCK): Require gl_LOCK_BODY.
78462
78463 2006-10-04  Bruno Haible  <bruno@clisp.org>
78464
78465         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78466         (gl_oset_search_atleast): New declaration.
78467         (struct gl_oset_implementation): Add field 'search_atleast'.
78468         (gl_oset_search_atleast): New inline function.
78469         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78470         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78471         (gl_array_oset_implementation): Update.
78472         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78473         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78474         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78475
78476 2006-10-04  Bruno Haible  <bruno@clisp.org>
78477
78478         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78479
78480 2006-10-03  Bruno Haible  <bruno@clisp.org>
78481
78482         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78483         from gl_avltreehash_list_implementation.
78484
78485 2006-10-03  Bruno Haible  <bruno@clisp.org>
78486
78487         * lib/gl_oset.c (gl_oset_add): Fix return type.
78488
78489 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78490
78491         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78492
78493 2006-10-02  Eric Blake  <ebb9@byu.net>
78494
78495         * modules/strnlen (Depends-on): Add extensions.
78496
78497 2006-10-02  Eric Blake  <ebb9@byu.net>
78498
78499         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78500         definition in 2.60+.
78501
78502 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78503
78504         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78505         checks.
78506
78507 2006-10-02  Bruno Haible  <bruno@clisp.org>
78508
78509         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78510         to the AUTOMAKE_OPTIONS.
78511         Reported by Jim Meyering.
78512
78513 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78514
78515         Work around bug in Solaris 10 /proc file system:
78516         /proc/self/fd/NNN/.. isn't the parent directory of
78517         the directory whose file descriptor is NNN.  This needs to
78518         be worked around at run time, not compile time, since a
78519         program might be built on Solaris 8, where things work, and
78520         run on Solaris 10.
78521         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78522         to use the following interface instead:
78523         (OPENAT_BUFFER_SIZE): New macro.
78524         (openat_proc_name): New function.
78525         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78526         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78527         Likewise.
78528         * lib/openat-proc.c: New file.
78529         * modules/openat (Files): Add lib/openat-proc.c.
78530         (Depends-on): Add same-inode, stdbool.
78531         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78532
78533 2006-09-29  Bruno Haible  <bruno@clisp.org>
78534
78535         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78536         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78537         argument. Set stdout_closed before testing for ferror, not after.
78538         (fwriteerror, fwriteerror_no_ebadf): New functions.
78539
78540 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78541
78542         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78543
78544 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78545
78546         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78547         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78548
78549 2006-09-28  Jim Meyering  <jim@meyering.net>
78550
78551         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78552         Include <unistd.h>.
78553
78554 2006-09-28  Bruno Haible  <bruno@clisp.org>
78555
78556         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78557         * modules/linkedhash-list (Depends-on): Likewise.
78558         * modules/rbtreehash-list (Depends-on): Likewise.
78559
78560 2006-09-28  Bruno Haible  <bruno@clisp.org>
78561
78562         * lib/strndup.h: Simplify the redefinition of strndup.
78563         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78564         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78565
78566 2006-09-28  Bruno Haible  <bruno@clisp.org>
78567
78568         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78569         * lib/gl_linkedhash_list.c: Likewise.
78570         * lib/gl_rbtreehash_list.c: Likewise.
78571
78572 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78573
78574         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78575         getaddrinfo.
78576
78577         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78578         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78579         it causes <stdio_ext.h> to cause a compile-time error.
78580         Problem reported by Nelson H. F. Beebe.
78581         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78582         of HAVE_DECL___PENDING.
78583
78584         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78585         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78586         declaration.
78587
78588 2006-09-27  Jim Meyering  <jim@meyering.net>
78589
78590         This file could end up with a definition for a function
78591         named __strndup, rather than rpl_strndup on a system with
78592         incomplete weak_alias support.
78593         * lib/strndup.c (strndup): Rename from __strndup.
78594         Remove #defines that used to map __strndup to strndup.
78595         Don't use K&R prototypes.
78596         Remove LIBC-related code, since this file is not sync'd with glibc.
78597         * lib/strndup.h: Revamp, accordingly.
78598         * m4/strndup.m4: Modernize.
78599
78600 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         * modules/savewd (Depends-on): Add 'raise'.
78603         * lib/savewd.c: Include <signal.h>, for 'raise'.
78604
78605 2006-09-26  Jim Meyering  <jim@meyering.net>
78606
78607         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78608         when we detect Darwin 8.7.0's acl_get_file bug.
78609         Rearrange to perform the new (below) run-test while $LIBS
78610         contains any acl-related library.  Set USE_ACL at the end.
78611         (gl_ACL_GET_FILE): New function.
78612
78613 2006-09-26  Eric Blake  <ebb9@byu.net>
78614
78615         * lib/verror.c: Include <config.h> unconditionally.
78616
78617 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78618
78619         * modules/clock-time (Maintainer): Add self.
78620         * modules/getlogin_r (Depends-on): Add extensions.
78621
78622 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78623
78624         * modules/clock-time: New module.
78625         * modules/nanosleep (Depends-on): Add clock-time.
78626         * modules/gethrxtime (Depends-on): Likewise.
78627         * modules/gettime (Depends-on): Likewise.
78628         * modules/settime (Depends-on): Likewise.
78629
78630         * modules/fts-lgpl: Depend on openat.
78631         * modules/mkancesdirs: Depend on savewd.
78632         * modules/mkdir-p: Likewise.
78633
78634 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78635
78636         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78637
78638         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78639         `gl_have_arbitrary_file_name_length_limit' to
78640         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78641         actually works between configure runs.
78642
78643 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78644             Bruno Haible  <bruno@clisp.org>
78645
78646         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78647
78648 2006-09-25  Jim Meyering  <jim@meyering.net>
78649
78650         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78651         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78652
78653 2006-09-25  Eric Blake  <ebb9@byu.net>
78654
78655         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78656         exec's in 2006-09-18 patch when shuffling fds.
78657
78658 2006-09-25  Bruno Haible  <bruno@clisp.org>
78659
78660         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78661         Reported by Jim Meyering.
78662
78663 2006-09-24  Jim Meyering  <jim@meyering.net>
78664
78665         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78666         compare a pointer against a literal "0".  That caused failures with
78667         at least HP-UX's hpcc.
78668
78669 2006-09-22  Simon Josefsson  <jas@extundo.com>
78670
78671         * modules/gc-sha1:
78672         * modules/gc-md4:
78673         * modules/gc-hmac-sha1:
78674         * modules/gc-hmac-md5:
78675         * modules/gc-des:
78676         * modules/gc-arcfour: Distribute more files.
78677
78678 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78679
78680         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78681         (gl_linked_iterator_from_to): Initialize struct completely.
78682         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78683         (gl_tree_iterator_from_to): Likewise
78684         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78685         * lib/gl_array_list.c [lint] (gl_array_iterator)
78686         (gl_array_iterator_from_to): Likewise.
78687         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78688         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78689         (gl_carray_iterator_from_to): Likewise.
78690
78691         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78692         * lib/md4.c (md4_process_block): Remove unused variable.
78693         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78694         parentheses for clarity.
78695
78696 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78697
78698         * modules/bison-i18n (Depends-on): Add gettext.
78699
78700 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78701
78702         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78703         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78704         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78705         also add missing comma that caused broken test.
78706         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78707         stdlib.h, for `abort'.
78708         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78709         variables.
78710         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78711         include unistd.h if present, for `rmdir'.
78712         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78713         variables.
78714         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78715         in the process include standard headers for prototypes.
78716         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78717         gets declared on GNU/Linux.
78718         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78719         unistd.h, for `rmdir'.
78720         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78721
78722         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78723         always true.
78724         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78725
78726         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78727
78728 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78729
78730         * gnulib-tool (func_version): Create output all at once.  This
78731         may help avoid triggering unnecessary SIGPIPEs, and at any
78732         rate it doesn't hurt.
78733
78734 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78735             Bruno Haible  <bruno@clisp.org>
78736
78737         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78738         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78739         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78740
78741         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78742         (gl_FUNC_VASPRINTF): Invoke it.
78743
78744 2006-09-22  Bruno Haible  <bruno@clisp.org>
78745
78746         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78747         getloadavg.c as first argument.
78748
78749 2006-09-22  Bruno Haible  <bruno@clisp.org>
78750
78751         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78752         at the beginning of the gl_INIT macro.
78753         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78754         gl_GETLOADAVG.
78755
78756 2006-09-22  Bruno Haible  <bruno@clisp.org>
78757
78758         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78759         module.
78760         Suggested by Ralf Wildenhues.
78761
78762 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78763
78764         Import this patch from libc:
78765
78766         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78767
78768         * lib/regex_internal.c (re_string_reconstruct): Handle
78769         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78770         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78771         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78772         re_string_context_at.
78773
78774         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78775         now requires it.
78776         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78777         gl_REGEX now does it for us.
78778         (gl_REGEX): Add test taken from
78779         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78780
78781         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78782         Check that large offsets work.  Modernize Autoconf usages.
78783         Prefer "yes" to mean a good thing rather than a bad.
78784         Don't put "#define mkstemp" in config.h, as this might interfere
78785         with standard system headers that "#define mkstemp mkstemp64".
78786
78787         * modules/mkstemp (Depends-on): Add extensions, so that
78788         mkstemp is visible on some platforms.
78789         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78790         (Include): Change to "mkstemp.h" from <stdlib.h>.
78791         (Files): Add mkstemp.h.
78792
78793         * lib/mkstemp.h: New file, since some standard headers
78794         #define mkstemp.
78795         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78796         Include "mkstemp.h".
78797         Make the _LIBC code resemble glibc original more,
78798         e.g., use K&R style.
78799         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78800         (mkstemp): Remove, since mkstemp.h does this for us.
78801         * lib/stdlib--.h: Include mkstemp.h.
78802
78803         Import this patch from libc:
78804
78805         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78806
78807         * lib/tempname.c (__gen_tempname): Change attempts_min
78808         into a macro.  Use preprocessor to decide how to initialize
78809         attempts [Coverity CID 67].
78810
78811 2006-09-20  Bruno Haible  <bruno@clisp.org>
78812
78813         * lib/mkdtemp.c: Import from libc.
78814         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78815                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78816                 attempts_min into a macro.  Use preprocessor to decide how to
78817                 initialize attempts [Coverity CID 67].
78818         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78819                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78820                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78821
78822 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78823
78824         * gnulib-tool (func_exit): New function, to allow to pass the
78825         exit status portably through the trap.  Use everywhere.
78826         (--help, --version): Signal a write error.
78827         (trap): catch SIGPIPE, for write errors.
78828         Exit at the end of the trap, with the correct exit status.
78829
78830 2006-09-19  Karl Berry  <karl@gnu.org>
78831
78832         * doc/gnulib.texi: note about the license texinfo files.
78833
78834 2006-09-19  Eric Blake  <ebb9@byu.net>
78835
78836         * gnulib-tool: Avoid space-tab.
78837
78838 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78839
78840         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78841         that prevented coreutils 6.1 from building.  Problem reported
78842         by Petter Reinholdtsen.
78843
78844 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78845
78846         * gnulib-tool (avoidlist): Fix typo that broke options like
78847         --avoid=lock that are used by coreutils bootstrap.
78848
78849 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78850
78851         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78852         more systematically.
78853
78854 2006-09-18  Jim Meyering  <jim@meyering.net>
78855
78856         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78857
78858 2006-09-18  Bruno Haible  <bruno@clisp.org>
78859
78860         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78861
78862 2006-09-18  Bruno Haible  <bruno@clisp.org>
78863
78864         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
78865         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
78866         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
78867         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
78868         * m4/gettext.m4: Require autoconf >= 2.52.
78869         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
78870         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
78871         of gl_cv_header_inttypes_h.
78872
78873 2006-09-18  Bruno Haible  <bruno@clisp.org>
78874
78875         * lib/javaversion.c: Include configmake.h.
78876
78877 2006-09-18  Bruno Haible  <bruno@clisp.org>
78878
78879         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
78880         avoid that the while loops be executed in a subshell.
78881
78882 2006-09-18  Bruno Haible  <bruno@clisp.org>
78883
78884         * MODULES.html.sh (func_module): Break long lines.
78885         Suggested by Bruce Korb <bkorb@gnu.org>.
78886
78887 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78888
78889         Speed up by a factor of 1.12.
78890         * gnulib-tool (nl): New variable.
78891         (func_import): Rewrite include directive extraction to only read each
78892         directive once.
78893
78894 2006-09-17  Bruno Haible  <bruno@clisp.org>
78895
78896         * modules/javaversion (Makefile.am): Remove DEFS setting.
78897         (Depends-on): Add configmake, for PKGDATADIR definition.
78898
78899 2006-09-17  Bruno Haible  <bruno@clisp.org>
78900
78901         * gnulib-tool (func_create_testdir): Rewrite all files at once.
78902
78903 2006-09-17  Bruno Haible  <bruno@clisp.org>
78904
78905         * gnulib-tool (func_append): New function, stolen from libtool.m4.
78906         (func_modules_transitive_closure, func_modules_add_dummy,
78907         func_modules_to_filelist, func_import, func_create_testdir,
78908         func_create_megatestdir, ...): Use it wherever possible.
78909         Suggested by Ralf Wildenhues.
78910
78911 2006-09-16  Karl Berry  <karl@gnu.org>
78912
78913         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78914         to avoid sectioning errors.
78915         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78916         [ifinfo]: blank line after @center-ed titles.
78917         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78918         Spell FSF address consistently with others.
78919         (These changes approved by rms.)
78920
78921 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78922
78923         Speed up by a factor of 1.61.
78924         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78925         already checked module names again.
78926
78927 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78928
78929         Speed up by a factor of 1.13.
78930         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78931         for new_files, and the input to func_add_or_update.
78932
78933 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78934
78935         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78936         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78937
78938 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78939
78940         * modules/mkancesdirs (Depends-on): Add fcntl.
78941         * modules/savewd: New file.
78942         * MODULES.html.sh (File system functions): Add savewd.
78943
78944         * modules/configmake (Makefile.am): Add support for the
78945         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78946
78947 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         * m4/savewd.m4: New file.
78950
78951 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78952
78953         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78954         (dirchownmod): New arg FD.  All callers changed.
78955         Use FD rather than opening the directory ourself, as opening is
78956         now the caller's responsibility.
78957         * lib/dirchownmod.h: Likewise.
78958         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78959         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78960         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78961         (test_dir): Remove.
78962         (mkancesdirs): Return length of prefix of FILE that has already
78963         been made, or -2 if there is a child doing the work.  Redo
78964         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78965         ".", and treat ".." specially since it might stray back into
78966         already-created areas.  Use a subprocess if necessary.  New arg
78967         WD; all users changed.  MAKE_DIR function should now return 1
78968         if it creates a directory that is not readable.  Return -2 if
78969         a child process is spun off.
78970         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78971         Adjust signature to match code.
78972         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78973         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78974         all users changed.
78975         * lib/savewd.c, lib/savewd.h: New files.
78976
78977 2006-09-15  Jim Meyering  <jim@meyering.net>
78978
78979         * modules/rename-dest-slash: New module.
78980         * MODULES.html.sh (posix_compat): Add it here.
78981
78982         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78983
78984 2006-09-15  Jim Meyering  <jim@meyering.net>
78985
78986         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78987         file.
78988
78989         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78990
78991 2006-09-15  Jim Meyering  <jim@meyering.net>
78992
78993         * lib/rename-dest-slash.c (has_trailing_slash): Use
78994         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78995         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78996         test before testing whether SRC is a directory.
78997         Suggestions from Bruno Haible.
78998
78999         Avoid a warning about an unused variable.
79000         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79001         into the #ifdef block where it's used.
79002
79003         * lib/rename-dest-slash.c: New file.
79004
79005 2006-09-14  Bruno Haible  <bruno@clisp.org>
79006
79007         * lib/allocsa.c: Include <config.h> unconditionally.
79008         * lib/asnprintf.c: Likewise.
79009         * lib/asprintf.c: Likewise.
79010         * lib/c-strcasecmp.c: Likewise.
79011         * lib/c-strcasestr.c: Likewise.
79012         * lib/c-strncasecmp.c: Likewise.
79013         * lib/c-strstr.c: Likewise.
79014         * lib/classpath.c: Likewise.
79015         * lib/clean-temp.c: Likewise.
79016         * lib/concatpath.c: Likewise.
79017         * lib/copy-file.c: Likewise.
79018         * lib/csharpcomp.c: Likewise.
79019         * lib/csharpexec.c: Likewise.
79020         * lib/execute.c: Likewise.
79021         * lib/fatal-signal.c: Likewise.
79022         * lib/findprog.c: Likewise.
79023         * lib/fwriteerror.c: Likewise.
79024         * lib/gl_array_list.c: Likewise.
79025         * lib/gl_array_oset.c: Likewise.
79026         * lib/gl_avltree_list.c: Likewise.
79027         * lib/gl_avltree_oset.c: Likewise.
79028         * lib/gl_avltreehash_list.c: Likewise.
79029         * lib/gl_carray_list.c: Likewise.
79030         * lib/gl_linked_list.c: Likewise.
79031         * lib/gl_linkedhash_list.c: Likewise.
79032         * lib/gl_list.c: Likewise.
79033         * lib/gl_oset.c: Likewise.
79034         * lib/gl_rbtree_list.c: Likewise.
79035         * lib/gl_rbtree_oset.c: Likewise.
79036         * lib/gl_rbtreehash_list.c: Likewise.
79037         * lib/imaxabs.c: Likewise.
79038         * lib/imaxdiv.c: Likewise.
79039         * lib/javacomp.c: Likewise.
79040         * lib/javaexec.c: Likewise.
79041         * lib/javaversion.c: Likewise.
79042         * lib/linebreak.c: Likewise.
79043         * lib/localcharset.c: Likewise.
79044         * lib/lock.c: Likewise.
79045         * lib/mbchar.c: Likewise.
79046         * lib/mbswidth.c: Likewise.
79047         * lib/mkdtemp.c: Likewise.
79048         * lib/pipe.c: Likewise.
79049         * lib/printf-args.c: Likewise.
79050         * lib/printf-parse.c: Likewise.
79051         * lib/progname.c: Likewise.
79052         * lib/progreloc.c: Likewise.
79053         * lib/readlink.c: Likewise.
79054         * lib/sh-quote.c: Likewise.
79055         * lib/stpcpy.c: Likewise.
79056         * lib/stpncpy.c: Likewise.
79057         * lib/strcasecmp.c: Likewise.
79058         * lib/strcasestr.c: Likewise.
79059         * lib/strcspn.c: Likewise.
79060         * lib/striconv.c: Likewise.
79061         * lib/strncasecmp.c: Likewise.
79062         * lib/strnlen1.c: Likewise.
79063         * lib/strstr.c: Likewise.
79064         * lib/strtok_r.c: Likewise.
79065         * lib/tls.c: Likewise.
79066         * lib/tmpdir.c: Likewise.
79067         * lib/unicodeio.c: Likewise.
79068         * lib/unsetenv.c: Likewise.
79069         * lib/vasnprintf.c: Likewise.
79070         * lib/vasprintf.c: Likewise.
79071         * lib/wait-process.c: Likewise.
79072         * lib/xallocsa.c: Likewise.
79073         * lib/xsetenv.c: Likewise.
79074         * lib/xstriconv.c: Likewise.
79075
79076 2006-09-13  Simon Josefsson  <jas@extundo.com>
79077
79078         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79079         that internally, suggested by Ralf Wildenhues
79080         <Ralf.Wildenhues@gmx.de>.
79081
79082 2006-09-13  Simon Josefsson  <jas@extundo.com>
79083
79084         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79085         @LIBOBJS@.
79086         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79087
79088 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79089
79090         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79091         longer worry about uses that don't define HAVE_CONFIG_H.
79092         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79093         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79094         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79095         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79096         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79097         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79098         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79099         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79100         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79101         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79102         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79103         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79104         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79105         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79106         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79107         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79108         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79109         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79110         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79111         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79112         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79113         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79114         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79115         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79116         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79117         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79118         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79119         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79120         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79121         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79122         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79123         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79124         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79125         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79126         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79127         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79128         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79129         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79130         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79131         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79132         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79133         Likewise.
79134
79135 2006-09-13  Eric Blake  <ebb9@byu.net>
79136
79137         * lib/getopt.c: Fix typo in last commit.
79138
79139 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79140
79141         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79142         dgettext.
79143
79144 2006-09-12  Jim Meyering  <jim@meyering.net>
79145
79146         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79147         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79148         Reported by Nelson H. F. Beebe.
79149
79150 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79151
79152         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79153         program_invocation_name and program_invocation_short_name are
79154         initialized.
79155         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79156         and program_invocation_short_name to argp.h, so they are visible
79157         to user programs.
79158         * lib/argp.h: Likewise
79159
79160 2006-09-10  Bruno Haible  <bruno@clisp.org>
79161
79162         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79163         m4/inttypes_h.m4, m4/uintmax_t.m4.
79164
79165 2006-09-10  Bruno Haible  <bruno@clisp.org>
79166
79167         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79168         gl_AC_TYPE_UINTMAX_T.
79169
79170 2006-09-10  Bruno Haible  <bruno@clisp.org>
79171
79172         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79173
79174 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79175
79176         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79177         convention.  Text proposed by Bruno Haible.
79178         (struct argp_option): Document the use of N_() wrappers.
79179
79180         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79181         '\v', and translate the two parts separately, instead of feeding
79182         the whole string to gettext.  This allows to exclude
79183         '\v' from the strings visible to the translator by writing doc
79184         strings as N_("..") "\v" N_("..").
79185
79186 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79187
79188         * config/srclist.txt: Undo latest change; the bug was fixed.
79189
79190 2006-09-09  Bruno Haible  <bruno@clisp.org>
79191
79192         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79193         assignments if building a library without libtool.
79194         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79195         in func_emit_lib_Makefile_am.
79196         (func_import): When building a static library libfoo.a, arrange to
79197         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79198         (func_create_testdir): Likewise.
79199         * modules/gc (configure.ac, Makefile.am): If building statically,
79200         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79201         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79202         * modules/striconv (configure.ac, Makefile.am): Likewise.
79203         Based on a suggestion by Ralf Wildenhues.
79204
79205 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79206
79207         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79208         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79209         Also:
79210
79211         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79212         Add year_2050_test to catch glibc bug 2821
79213         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79214
79215         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79216         Prefer #ifdef to #if.
79217
79218         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79219         Return from 'main' instead of calling 'exit'.
79220
79221 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79222
79223         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79224         returned the maximum time_t value rather than (time_t) -1.
79225         Problem originally reported by William Bardwell
79226         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79227
79228         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79229         Moved to here ...
79230         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79231         ... from here.
79232
79233 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79234
79235         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79236         2821 is fixed.
79237
79238 2006-09-08  Jim Meyering  <jim@meyering.net>
79239
79240         Don't make generated files read-only.  That would bother too many
79241         people.  However, do retain the ability to work when targets are
79242         read-only: remove the destination and temporary files before writing
79243         them (when generated via sed or echo), or by using the -f option for
79244         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79245         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79246         * modules/byteswap, modules/configmake, modules/fcntl:
79247         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79248         * modules/localcharset, modules/netinet_in, modules/poll:
79249         * modules/stdbool, modules/stdint, modules/sys_select:
79250         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79251
79252 2006-09-08  Jim Meyering  <jim@meyering.net>
79253
79254         Avoid new build failure on FreeBSD 6.0.
79255         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79256         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79257         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79258
79259 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79260
79261         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79262
79263 2006-09-07  Jim Meyering  <jim@meyering.net>
79264
79265         Fix global typo in last change: use chmod u-w, not chmod u-x.
79266         Spotted by Paul Eggert and Bruce Korb.
79267         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79268         * modules/byteswap, modules/configmake, modules/fcntl:
79269         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79270         * modules/localcharset, modules/netinet_in, modules/poll:
79271         * modules/stdbool, modules/stdint, modules/sys_select:
79272         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79273
79274 2006-09-06  Jim Meyering  <jim@meyering.net>
79275
79276         Make generated files be read-only.
79277         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79278         Ensure that each generated file is now read-only.
79279         * modules/argz: Likewise.
79280         * modules/arpa_inet: Likewise.
79281         * modules/byteswap: Likewise.
79282         * modules/configmake: Likewise.
79283         * modules/fcntl: Likewise.
79284         * modules/fnmatch: Likewise.
79285         * modules/getopt: Likewise.
79286         * modules/glob: Likewise.
79287         * modules/inttypes: Likewise.
79288         * modules/netinet_in: Likewise.
79289         * modules/poll: Likewise.
79290         * modules/stdbool: Likewise.
79291         * modules/stdint: Likewise.
79292         * modules/sys_select: Likewise.
79293         * modules/sys_socket: Likewise.
79294         * modules/sys_stat: Likewise.
79295         * modules/sysexits: Likewise.
79296         * modules/localcharset: Same as above, but continue using temporary
79297         file named "t-$@" (why different?) rather than the "$@-t" used
79298         everywhere else.
79299
79300         * modules/sysexits (Makefile.am): Replace literal occurrences
79301         of "sysexit.h" more readable, and more consistent, "$@".
79302
79303 2006-09-06  Bruno Haible  <bruno@clisp.org>
79304
79305         * modules/striconv: New file.
79306         * modules/xstriconv: New file.
79307         * MODULES.html.sh (Internationalization functions): Add striconv,
79308         xstriconv.
79309
79310 2006-09-06  Bruno Haible  <bruno@clisp.org>
79311
79312         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79313         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79314         not using libtool correctly.
79315
79316 2006-09-06  Bruno Haible  <bruno@clisp.org>
79317
79318         * lib/striconv.h: New file.
79319         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79320         iconvstring.c.
79321         * lib/xstriconv.h: New file.
79322         * lib/xstriconv.c: New file.
79323
79324 2006-09-06  Bruno Haible  <bruno@clisp.org>
79325
79326         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79327         lib_..._LDFLAGS.
79328
79329 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79330
79331         * lib/argz_.h: Sync from Libtool.
79332
79333         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79334                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79335
79336         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79337
79338 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79339
79340         * modules/trim: New file.
79341
79342 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79343
79344         * lib/trim.h: New file.
79345         * lib/trim.c: New file.
79346
79347 2006-09-05  Bruno Haible  <bruno@clisp.org>
79348
79349         * MODULES.html.sh (String handling): Add trim.
79350
79351 2006-09-04  Karl Berry  <karl@gnu.org>
79352
79353         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79354         until next release.
79355
79356 2006-09-03  Bruno Haible  <bruno@clisp.org>
79357
79358         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79359         correctly.
79360
79361 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79362
79363         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79364         not gl_GETLOADAVG.  Omit unneeded semicolons.
79365         Problems reported by Ralf Wildenhues in
79366         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79367         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79368         at the end, which is the usual gnulib style.
79369
79370         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79371         of doing all the work ourselves.
79372         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79373         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79374
79375 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79376
79377         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79378         Problem reported by Ralf Wildenhues in
79379         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79380
79381         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79382         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79383
79384 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79385
79386         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79387         yesterday's patch by changing test -n to test -z.
79388
79389 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79392         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79393         the former is now obsolescent.
79394
79395         * modules/chdir-long (Depends-on): Add fcntl.
79396
79397 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79398
79399         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79400         obsolescent, and programs should use gnulib instead.
79401         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79402         but with prefixes changed.
79403
79404 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79405
79406         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79407         or stdbool.h, because they might not exist while configuring.
79408
79409         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79410         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79411         does that for us.
79412         (O_DIRECTORY): Remove.
79413
79414 2006-08-31  Eric Blake  <ebb9@byu.net>
79415
79416         * gnulib-tool: Don't let emacs change spaces to TAB.
79417
79418 2006-08-31  Bruno Haible  <bruno@clisp.org>
79419
79420         * gnulib-tool: When calling func_import more than once, do it in a
79421         subshell.
79422         Reported by Eric Blake <ebb9@byu.net>.
79423
79424 2006-08-31  Bruno Haible  <bruno@clisp.org>
79425
79426         * gnulib-tool (nl): Remove variable.
79427         (sed_transform_lib_file): Use more robust test for config-h module.
79428         (func_import): Fix typo in 2006-08-25 patch.
79429
79430 2006-08-31  Bruno Haible  <bruno@clisp.org>
79431
79432         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79433         specified, augment Makefile.am variables instead of assigning them.
79434
79435 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         Work around a bug in both the Linux and SunOS 64-bit kernels:
79438         nanosleep mishandles sleeps for longer than 2**31 seconds.
79439         Problem reported by Frank v Waveren in
79440         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79442         Check for nanosleep bug.
79443         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79444
79445 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79446
79447         Work around a bug in both the Linux and SunOS 64-bit kernels:
79448         nanosleep mishandles sleeps for longer than 2**31 seconds.
79449         Problem reported by Frank v Waveren in
79450         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79451         * lib/nanosleep.c (BILLION): New constant.
79452         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79453         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79454         implementation.
79455
79456 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79457
79458         * modules/nanosleep (Depends-on): Add gettime.
79459
79460 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79461         and Simon Josefsson  <jas@extundo.com>
79462         and Oskar Liljeblad  <oskar@osk.mine.nu>
79463
79464         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79465         * gnulib-tool (func_import): New license type 'unmodifiable license
79466         text'.
79467         * modules/fdl: Use it.  Longer description.
79468         * module/gpl, module/lgpl: New files.
79469
79470 2006-08-30  Jim Meyering  <jim@meyering.net>
79471
79472         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79473         shadowing the parameter.
79474
79475 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79476
79477         Sync from Libtool:
79478
79479         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79480
79481         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79482         sharing with gnulib.  Report by Eric Blake.
79483
79484 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79485
79486         * modules/isapipe: New file.
79487         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79488
79489 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79490
79491         * modules/configmake (Makefile.am): Add a comment, and omit
79492         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79493         by Bruno Haible.
79494
79495 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79496
79497         * m4/isapipe.m4: New file.
79498
79499 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79500
79501         * lib/isapipe.c, lib/isapipe.h: New files.
79502
79503 2006-08-29  Jim Meyering  <jim@meyering.net>
79504
79505         * modules/configmake (Makefile.am): Make configmake.h depend on
79506         Makefile.  Otherwise, a stale configmake.h could hang around.
79507
79508 2006-08-29  Eric Blake  <ebb9@byu.net>
79509
79510         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79511         resolution of upstream bug 3044.
79512
79513 2006-08-29  Bruno Haible  <bruno@clisp.org>
79514
79515         * modules/localcharset (Depends-on): Add configmake.
79516         (Makefile.am): Remove setting of LIBDIR through DEFS.
79517
79518 2006-08-29  Bruno Haible  <bruno@clisp.org>
79519
79520         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79521         defined.
79522
79523 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79524
79525         * modules/fcntl: New file.
79526         * modules/chdir-safer (Depends-on): Add fcntl.
79527         * modules/fts: Likewise.
79528         * modules/mkdir-p: Likewise.
79529
79530         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79531         This undoes the most recent change, since we're now addressing the
79532         problem in a different way.
79533
79534         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79535         into output, since the output might be called Makefile.am even
79536         if $makefile_name is something different.
79537         (func_import): Use $makefile_am rather than
79538         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79539         empty.
79540
79541         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79542
79543 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79544
79545         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79546         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79547         recent change to stdint.m4, since we're now addressing the problem in a
79548         different way.
79549
79550 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79551
79552         * m4/fcntl_h.m4: New file.
79553
79554 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79555
79556         * lib/fcntl_.h: New file.
79557         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79558         the fcntl module.
79559         * lib/dirchownmod.c: Likewise.
79560         * lib/fts.c: Likewise.
79561
79562         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79563         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79564         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79565         just before including <inttypes.h>, to avoid circular inclusion.
79566
79567 2006-08-28  Jim Meyering  <jim@meyering.net>
79568
79569         * doc/visibility.texi: Actually read and correct the grammar of the
79570         sentence affected by yesterday's change.
79571
79572 2006-08-28  Eric Blake  <ebb9@byu.net>
79573
79574         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79575         needs wrapper.
79576
79577 2006-08-28  Eric Blake  <ebb9@byu.net>
79578
79579         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79580
79581 2006-08-28  Eric Blake  <ebb9@byu.net>
79582
79583         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79584
79585 2006-08-28  Bruno Haible  <bruno@clisp.org>
79586
79587         * modules/c-strstr: New file, from GNU gettext.
79588         * MODULES.html.sh (String handling): Add c-strstr.
79589
79590 2006-08-28  Bruno Haible  <bruno@clisp.org>
79591
79592         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79593         macros.
79594         Reported by Eric Blake.
79595
79596 2006-08-28  Bruno Haible  <bruno@clisp.org>
79597
79598         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79599         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79600         * lib/vasprintf.c: Include errno.h, limits.h.
79601         (EOVERFLOW): New fallback definition.
79602         (vasprintf): Test here whether the string length is > INT_MAX.
79603         * lib/vsnprintf.c: Include errno.h, limits.h.
79604         (EOVERFLOW): New fallback definition.
79605         (vsnprintf): Fix bug when generated string was too long for the buffer.
79606         Test here whether the string length is > INT_MAX.
79607
79608 2006-08-28  Bruno Haible  <bruno@clisp.org>
79609
79610         * lib/inttypes_.h (SCNX*): Remove definitions.
79611         Reported by Eric Blake.
79612
79613 2006-08-28  Bruno Haible  <bruno@clisp.org>
79614
79615         * lib/c-strstr.h: New file, from GNU gettext.
79616         * lib/c-strstr.c: New file, from GNU gettext.
79617
79618 2006-08-28  Bruno Haible  <bruno@clisp.org>
79619
79620         * gnulib-tool: Reorder some statements.
79621
79622 2006-08-28  Bruno Haible  <bruno@clisp.org>
79623
79624         * gnulib-tool: New option --makefile-name.
79625         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79626         $makefile_name.
79627         (func_import): Write $makefile_name to the cache file, and read it from
79628         there unless explicitly specified. Use $makefile_name as file name
79629         instead of Makefile.am. Adjust the recommendations accordingly.
79630
79631 2006-08-28  Bruno Haible  <bruno@clisp.org>
79632
79633         * gnulib-tool (func_verify_module): Check against misapplying patch.
79634
79635 2006-08-28  Bruno Haible  <bruno@clisp.org>
79636
79637         * gnulib-tool (func_relativize, func_relconcat): New functions.
79638         Give an error if --local-dir is given with --update.
79639         Remove trailing slashes from $local_gnulib_dir.
79640         (func_import): Store the relativized $local_gnulib_dir in
79641         gnulib-cache.m4, and read it from there if not specified explicitly.
79642
79643 2006-08-28  Bruno Haible  <bruno@clisp.org>
79644
79645         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79646         is the current directory. Respect also $local_gnulib_dir.
79647
79648 2006-08-28  Bruno Haible  <bruno@clisp.org>
79649             Simon Josefsson  <jas@extundo.com>
79650
79651         BeOS portability.
79652         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79653
79654 2006-08-27  Jim Meyering  <jim@meyering.net>
79655
79656         * doc/visibility.texi: Remove duplicate word: "pointer".
79657
79658 2006-08-26  Bruno Haible  <bruno@clisp.org>
79659
79660         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79661         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79662         (Makefile.am): Create inttypes.h from inttypes_.h.
79663         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79664
79665         * modules/imaxabs: New file.
79666
79667         * modules/imaxdiv: New file.
79668
79669 2006-08-26  Bruno Haible  <bruno@clisp.org>
79670
79671         * m4/inttypes.m4: New file.
79672         * m4/_inttypes_h.m4: Remove file.
79673         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79674         PRI_MACROS_BROKEN.
79675         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79676
79677         * m4/imaxabs.m4: New file.
79678
79679         * m4/imaxdiv.m4: New file.
79680
79681 2006-08-26  Bruno Haible  <bruno@clisp.org>
79682
79683         * lib/inttypes_.h: New file.
79684         * lib/inttypes.h: Remove file.
79685         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79686
79687         * lib/imaxabs.c: New file.
79688
79689         * lib/imaxdiv.c: New file.
79690
79691 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79692
79693         New config-h module, so that "make" output needn't be cluttered
79694         by -DHAVE_CONFIG_H.
79695         * MODULES.html.sh (Support for building libraries and executables):
79696         Add config-h.
79697         * modules/config-h: New file.
79698         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79699         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79700         the config-h module is used.
79701
79702         New configmake module, so that "make" output needn't be cluttered
79703         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79704         * MODULES.html.sh (Support for building libraries and executables):
79705         Add configmake.
79706         * modules/configmake: New file.
79707
79708 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79709
79710         * m4/config-h.m4: New file.
79711
79712 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79713
79714         * config/srclist.txt: Add elisp-comp.
79715
79716 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79717
79718         * MODULES.html.sh (Support for building libraries and executables):
79719         Add elisp-comp.
79720         * build-aux/elisp-comp: New file.
79721         * modules/elisp-comp: New file.
79722
79723 2006-08-24  Bruno Haible  <bruno@clisp.org>
79724
79725         * gnulib-tool (func_create_testdir): Use non-default values of
79726         sourcebase and m4base.
79727
79728 2006-08-24  Bruno Haible  <bruno@clisp.org>
79729
79730         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79731         HTML structure.
79732
79733 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79734
79735         * modules/openat (Depends-on): Add lchown.
79736
79737 2006-08-23  Bruno Haible  <bruno@clisp.org>
79738
79739         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79740         of gl_LOCK_EARLY instead of gl_LOCK.
79741
79742 2006-08-23  Bruno Haible  <bruno@clisp.org>
79743
79744         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79745         on OSF/1 to no.
79746         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79747
79748 2006-08-23  Bruno Haible  <bruno@clisp.org>
79749
79750         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79751         as unusable.
79752
79753         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79754         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79755         (gl_LOCK): New macro.
79756
79757 2006-08-22  Simon Josefsson  <jas@extundo.com>
79758
79759         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79760         to md5 module.
79761
79762 2006-08-22  Simon Josefsson  <jas@extundo.com>
79763
79764         * MODULES.html.sh: Add "Support for maintaining and release
79765         projects".
79766
79767         * build-aux/gnupload: New file, from coreutils.
79768
79769 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79770
79771         Avoid the need for AC_LIBSOURCES in m4 macros.
79772         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79773         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79774         * modules/check-version (EXTRA_DIST): Add check-version.h.
79775         * modules/crc (EXTRA_DIST): Add crc.h.
79776         * modules/des (EXTRA_DIST): Add des.h.
79777         * modules/gc (EXTRA_DIST): Add gc.h.
79778         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79779         * modules/getline (EXTRA_DIST): Add getline.h.
79780         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79781         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79782         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79783         * modules/md2 (EXTRA_DIST): Add md2.h.
79784         * modules/md4 (EXTRA_DIST): Add md4.h.
79785         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79786         * modules/read-file (EXTRA_DIST): Add read-file.h.
79787         * modules/readline (EXTRA_DIST): Add readline.h.
79788         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79789         rijndael-api-fst.h.
79790
79791 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79792
79793         * m4/rijndael.m4 (gl_ARCFOUR):
79794         * m4/arctwo.m4 (gl_ARCTWO):
79795         * m4/check-version.m4 (gl_CHECK_VERSION):
79796         * m4/crc.m4 (gl_CRC):
79797         * m4/des.m4 (gl_DES):
79798         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79799         * m4/gc.m4 (gl_GC):
79800         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79801         * m4/getline.m4 (gl_FUNC_GETLINE):
79802         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79803         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79804         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79805         * m4/md2.m4 (gl_MD2):
79806         * m4/md4.m4 (gl_MD4):
79807         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79808         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79809         * m4/readline.m4 (gl_FUNC_READLINE):
79810         * m4/rijndael.m4 (gl_RIJNDAEL):
79811         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79812         to get the necessary .h files and whatnot.
79813
79814 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79815
79816         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79817         gnulib rather than the other way around.
79818         * config/srclistvars.sh (COREUTILS): Remove.
79819
79820 2006-08-22  Jim Meyering  <jim@meyering.net>
79821
79822         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79823
79824         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79825
79826 2006-08-22  Eric Blake  <ebb9@byu.net>
79827
79828         * modules/regexprops-generic: New file.
79829         * MODULES.html.sh (Support for building documentation): List it.
79830
79831 2006-08-22  Eric Blake  <ebb9@byu.net>
79832
79833         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79834         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79835         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79836         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79837
79838 2006-08-22  Bruno Haible  <bruno@clisp.org>
79839
79840         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79841         and lib_LTLIBRARIES like the other lib_* variables.
79842
79843 2006-08-22  Bruno Haible  <bruno@clisp.org>
79844
79845         * build-aux/x-to-1.in: New file, from GNU gettext.
79846
79847 2006-08-22  Bruno Haible  <bruno@clisp.org>
79848
79849         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79850         <utmpx.h> exists.
79851
79852 2006-08-22  Bruno Haible  <bruno@clisp.org>
79853
79854         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79855         <utmpx.h> exists.
79856
79857 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79858
79859         BeOS portability.
79860         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79861         exist.
79862         Problem reported by Bruno Haible.
79863
79864 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79865
79866         Avoid the need for AC_LIBSOURCES in m4 macros.
79867         * modules/acl (EXTRA_DIST): Add acl.h.
79868         * modules/argmatch (Files): Add m4/argmatch.m4.
79869         (configure.ac): Add gl_ARGMATCH.
79870         (EXTRA_DIST): Renamed from lib_SOURCES, for
79871         consistency with the other modules.  Remove argmatch.c.
79872         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
79873         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
79874         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
79875         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
79876         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
79877         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
79878         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
79879         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
79880         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
79881         * modules/closeout (EXTRA_DIST): Add closeout.h.
79882         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
79883         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
79884         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
79885         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
79886         dirname.h; remove basename.c and stripslash.c.
79887         * modules/exclude (EXTRA_DIST): Add exclude.h.
79888         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
79889         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
79890         * modules/file-type (EXTRA_DIST): Add file-type.h.
79891         * modules/filemode (EXTRA_DIST): Add filemode.h.
79892         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
79893         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79894         * modules/fpending (EXTRA_DIST): Add __fpending.h.
79895         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
79896         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
79897         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
79898         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
79899         * modules/getdate (EXTRA_DIST): Add getdate.c.
79900         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
79901         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
79902         * modules/getpass (EXTRA_DIST): Add getpass.h.
79903         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
79904         * modules/group-member (EXTRA_DIST): Add group-member.h.
79905         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
79906         * modules/hash (EXTRA_DIST): Add hash.h.
79907         * modules/human (EXTRA_DIST): Add human.h.
79908         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
79909         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
79910         * modules/lchown (EXTRA_DIST): Add lchown.h.
79911         * modules/long-options (EXTRA_DIST): Add long-options.h.
79912         * modules/lstat (EXTRA_DIST): Add lstat.h.
79913         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79914         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79915         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79916         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79917         * modules/memxor (EXTRA_DIST): Add memxor.h.
79918         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79919         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79920         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79921         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79922         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79923         * modules/physmem (EXTRA_DIST): Add physmem.h.
79924         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79925         * modules/posixver (EXTRA_DIST): Add posixver.h.
79926         * modules/quote (EXTRA_DIST): Add quote.h.
79927         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79928         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79929         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79930         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79931         regex_internal.h regexec.c.
79932         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79933         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79934         * modules/same (EXTRA_DIST): Add same.h.
79935         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79936         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79937         * modules/savedir (EXTRA_DIST): Add savedir.h.
79938         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79939         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79940         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79941         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79942         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79943         * modules/strdup (EXTRA_DIST): Add strdup.h.
79944         * modules/strftime (EXTRA_DIST): Add strftime.h.
79945         * modules/strndup (EXTRA_DIST): Add strndup.h.
79946         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79947         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79948         * modules/time_r (EXTRA_DIST): Add time_r.h.
79949         * modules/timespec (EXTRA_DIST): Add timespec.h.
79950         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79951         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79952         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79953         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79954         * modules/userspec (EXTRA_DIST): Add userspec.h.
79955         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79956         * modules/utimens (EXTRA_DIST): Add utimens.h.
79957         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79958         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79959         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79960         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79961         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79962         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79963         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79964         * modules/yesno (EXTRA_DIST): Add yesno.h.
79965
79966 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79967
79968         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79969
79970         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79971         * m4/dev-ino.m4, same-inode.m4: Remove.
79972
79973         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79974         * m4/acl.m4 (AC_FUNC_ACL):
79975         * m4/backupfile.m4 (gl_BACKUPFILE):
79976         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79977         * m4/canon-host.m4 (gl_CANON_HOST):
79978         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79979         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79980         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79981         * m4/cloexec.m4 (gl_CLOEXEC):
79982         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79983         * m4/closeout.m4 (gl_CLOSEOUT):
79984         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79985         * m4/dirname.m4 (gl_DIRNAME):
79986         * m4/exclude.m4 (gl_EXCLUDE):
79987         * m4/exitfail.m4 (gl_EXITFAIL):
79988         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79989         * m4/file-type.m4 (gl_FILE_TYPE):
79990         * m4/filemode.m4 (gl_FILEMODE):
79991         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79992         * m4/fpending.m4 (gl_FUNC_FPENDING):
79993         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79994         * m4/fts.m4 (gl_FUNC_FTS):
79995         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79996         * m4/getdate.m4 (gl_GETDATE):
79997         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79998         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79999         * m4/getpass.m4 (gl_FUNC_GETPASS):
80000         * m4/gettime.m4 (gl_GETTIME):
80001         * m4/getugroups.m4 (gl_GETUGROUPS):
80002         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80003         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80004         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80005         * m4/hash.m4 (gl_HASH):
80006         * m4/idcache.m4 (gl_IDCACHE):
80007         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80008         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80009         * m4/long-options.m4 (gl_LONG_OPTIONS):
80010         * m4/lstat.m4 (gl_FUNC_LSTAT):
80011         * m4/md5.m4 (gl_MD5):
80012         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80013         * m4/memcoll.m4 (gl_MEMCOLL):
80014         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80015         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80016         * m4/memxor.m4 (gl_MEMXOR):
80017         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80018         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80019         * m4/modechange.m4 (gl_MODECHANGE):
80020         * m4/mountlist.m4 (gl_MOUNTLIST):
80021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80022         * m4/openat.m4 (gl_FUNC_OPENAT):
80023         * m4/pathmax.m4 (gl_PATHMAX):
80024         * m4/physmem.m4 (gl_PHYSMEM):
80025         * m4/posixtm.m4 (gl_POSIXTM):
80026         * m4/posixver.m4 (gl_POSIXVER):
80027         * m4/quote.m4 (gl_QUOTE):
80028         * m4/quotearg.m4 (gl_QUOTEARG):
80029         * m4/readtokens.m4 (gl_READTOKENS):
80030         * m4/readutmp.m4 (gl_READUTMP):
80031         * m4/regex.m4 (gl_REGEX):
80032         * m4/safe-read.m4 (gl_SAFE_READ):
80033         * m4/safe-write.m4 (gl_SAFE_WRITE):
80034         * m4/same.m4 (gl_SAME):
80035         * m4/save-cwd.m4 (gl_SAVE_CWD):
80036         * m4/savedir.m4 (gl_SAVEDIR):
80037         * m4/settime.m4 (gl_SETTIME):
80038         * m4/sha1.m4 (gl_SHA1):
80039         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80040         * m4/stat-macros.m4 (gl_STAT_MACROS):
80041         * m4/stat-time.m4 (gl_STAT_TIME):
80042         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80043         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80044         * m4/strdup.m4 (gl_FUNC_STRDUP):
80045         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80046         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80047         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80048         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80049         * m4/time_r.m4 (gl_TIME_R):
80050         * m4/timespec.m4 (gl_TIMESPEC):
80051         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80052         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80053         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80054         * m4/userspec.m4 (gl_USERSPEC):
80055         * m4/utimecmp.m4 (gl_UTIMECMP):
80056         * m4/utimens.m4 (gl_UTIMENS):
80057         * m4/xalloc.m4 (gl_XALLOC):
80058         * m4/xgetcwd.m4 (gl_XGETCWD):
80059         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80060         * m4/xreadlink.m4 (gl_XREADLINK):
80061         * m4/xstrtod.m4 (gl_XSTRTOD):
80062         * m4/yesno.m4 (gl_YESNO):
80063         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80064         to get the necessary .h files and whatnot.
80065
80066 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80067             Bruno Haible  <bruno@clisp.org>
80068
80069         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80070         /bin/sh understanding of '!' conditional negation.
80071
80072 2006-08-21  Jim Meyering  <jim@meyering.net>
80073
80074         * modules/openat (Depends-on): Really alphabetize.
80075
80076         * modules/acl (Depends-on): Add error and quote.
80077
80078         * check-module (find_included_lib_files): Add at-func.c to the
80079         ok-to-include-more-than-once white list.
80080
80081         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80082
80083 2006-08-21  Bruno Haible  <bruno@clisp.org>
80084
80085         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80086         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80087         Reported by Martin Lambers <marlam@marlam.de>.
80088
80089 2006-08-21  Bruno Haible  <bruno@clisp.org>
80090
80091         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80092         specify an installation location, don't emit a noinst_LIBRARIES or
80093         noinst_LTLIBRARIES assignment.
80094
80095 2006-08-21  Bruno Haible  <bruno@clisp.org>
80096
80097         BeOS portability.
80098         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80099         BeOS has mbrtowc() but no <wctype.h>.
80100
80101 2006-08-21  Bruno Haible  <bruno@clisp.org>
80102
80103         BeOS portability.
80104         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80105         exist.
80106
80107 2006-08-21  Bruno Haible  <bruno@clisp.org>
80108
80109         BeOS portability.
80110         * lib/mbchar.h: Include <wctype.h> only if it exists.
80111
80112 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80113
80114         Remove files that are no longer needed by their respective modules.
80115         * m4/obstack.m4: Remove.
80116         * m4/strerror_r.m4: Remove.
80117         * m4/uint32_t.m4: Remove.
80118         * m4/uintptr_t.m4: Remove.
80119         * m4/ullong_max.m4: Remove.
80120         * m4/xstrtoimax.m4: Remove.
80121         * m4/xstrtoumax.m4: Remove.
80122
80123         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80124         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80125         dependencies now capture this.
80126
80127         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80128         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80129         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80130         * m4/human.m4 (gl_HUMAN): Likewise.
80131         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80132         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80133
80134         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80135
80136         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80137         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80138         stdint.
80139         * m4/human.m4 (gl_HUMAN): Likewise.
80140         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80141         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80142         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80143         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80144         * m4/xstrtol (gl_XSTRTOL): Likewise.
80145
80146         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80147         AC_TYPE_LONG_LONG_INT.
80148         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80149         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80150         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80151         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80152
80153         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80154         on stdbool.
80155
80156         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80157         (gl_PREREQ_XSTRTOUL): Remove.
80158
80159         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80160
80161         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80162         mode.
80163
80164 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80165
80166         Add and change modules to make it easier for coreutils to use
80167         gnulib-tool.
80168         * modules/backupfile (Files): Remove m4/d-ino.m4.
80169         (Depends-on): Add d-ino.
80170         * modules/cycle-check (Depends-on): Add stdint.
80171         (lib_SOURCES): Add cycle-check.h.
80172         * modules/d-ino: New module.
80173         * modules/d-type: New module.
80174         * modules/error (Files): Remove m4/strerror_r.m4.
80175         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80176         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80177         m4/inttypes_h.m4, m4/uintmax_t.m4.
80178         (Depends-on): Add stdint.
80179         (lib_SOURCES): Add fsusage.h.
80180         * modules/getcwd (Files): Remove d-ino.m4.
80181         (Depends-on): Add d-ino.
80182         * modules/getndelim2 (Depends-on): Add stdint.
80183         * modules/glob (Files): Remove m4/d-type.m4.
80184         (Depends-on): Add d-type.
80185         * modules/host-os: New module.
80186         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80187         m4/inttypes_h.m4, m4/uintmax_t.m4.
80188         * Depends-on: Add stdint.
80189         (lib_SOURCES): Add human.h.
80190         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80191         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80192         m4/uintmax_t.m4, m4/ulonglong.m4.
80193         (Depends-on): Add stdint.
80194         (EXTRA_DIST): Add inttostr.h.
80195         * modules/lchmod: New module.
80196         * modules/link-follow: New module.
80197         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80198         (Depends-on): Add lchmod.
80199         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80200         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80201         (Depends-on): Add stdint.
80202         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80203         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80204         (Depends-on): Add stdint.
80205         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80206         * modules/perl: New module.
80207         * modules/regex (Depends-on): Add stdint.
80208         * modules/rmdir-errno: New module.
80209         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80210         m4/intmax_t.m4.
80211         (Depends-on): Add stdint.
80212         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80213         m4/uintmax_t.m4.
80214         (Depends-on): Add stdint.
80215         * modules/unlink-busy: New module.
80216         * modules/utimecmp (Depends-on): Add stdint.
80217         * modules/uptime: New module.
80218         * modules/winsz-ioctl: New module.
80219         * modules/winsz-termios: New module.
80220         * modules/xnanosleep (Depends-on): Add nanosleep.
80221         * modules/ullong_max: Remove.
80222         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80223         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80224         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80225         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80226         (Depends-on): Add inttypes.
80227         (lib_SOURCES): Add xstrtol.h.
80228         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80229         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80230         * MODULES.html.sh: Move 'assert' into the assert section.
80231         Move 'dummy' into the linking section.
80232         Remove ullong_max.
80233         Add section for compatibility checks for POSIX:2001 functions,
80234         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80235         winsz-ioctl, and winsz-termios into it.
80236         Add lchmod.
80237         Add top-level Misc section and put host-os, perl, and uptime
80238         into it.
80239
80240 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80241
80242         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80243         now assume the stdint module.  Do not include inttypes.h.
80244         * lib/fsusage.h: Likewise.
80245         * lib/getndelim2.c: Likewise.
80246         * lib/human.h: Likewise.
80247         * lib/inttostr.h: Likewise.
80248         * lib/obstack.c: Likewise.
80249         * lib/regex_internal.h: Likewise.
80250         * lib/tempname.c: Likewise.
80251         * lib/utimecmp.c: Likewise.
80252         * lib/xstrtol.h: Likewise.
80253
80254         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80255
80256         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80257         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80258         * lib/xtime.h: Likewise.
80259
80260 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80261
80262         * modules/openat (Files): Add lib/fchmodat.c.
80263         Fixes problem reported by Jay Youngman.
80264
80265 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80266
80267         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80268         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80269
80270 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80271             Bruno Haible  <bruno@clisp.org>
80272
80273         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80274         and is a script that invokes bison. Tighten the code. Add comments.
80275
80276 2006-08-18  Jim Meyering  <jim@meyering.net>
80277
80278         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80279         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80280         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80281         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80282
80283 2006-08-18  Bruno Haible  <bruno@clisp.org>
80284
80285         * modules/bison-i18n: New file.
80286         * MODULES.html.sh (Internationalization functions): Add it.
80287
80288 2006-08-18  Bruno Haible  <bruno@clisp.org>
80289
80290         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80291         sys/statvfs.h. When getmntinfo was found, check its declaration and
80292         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80293
80294 2006-08-18  Bruno Haible  <bruno@clisp.org>
80295
80296         * m4/bison-i18n.m4: New file, from bison.
80297
80298 2006-08-18  Bruno Haible  <bruno@clisp.org>
80299
80300         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80301         (ME_DUMMY): Treat "kernfs" as a dummy.
80302         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80303
80304 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80305
80306         Update from coreutils.
80307
80308         2006-08-15  Jim Meyering  <jim@meyering.net>
80309
80310         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80311
80312         2006-01-17  Jim Meyering  <jim@meyering.net>
80313
80314         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80315
80316         2006-01-11  Jim Meyering  <jim@meyering.net>
80317
80318         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80319         Check for the lchmod function.
80320
80321 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80322
80323         Update from coreutils.
80324
80325         * lib/__fpending.h: Add copyright notice.
80326         * lib/fprintftime.h: Likewise.
80327         * lib/savedir.c: Use (C) in copyright notice.
80328         * lib/savedir.h: Likewise.
80329
80330         2006-08-15  Jim Meyering  <jim@meyering.net>
80331
80332         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80333         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80334         in support of the EXPECTED_ERRNO macro.
80335         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80336         definitions.  Instead, define the appropriate symbols and include
80337         "at-func.c".
80338         * lib/mkdirat.c (mkdirat): Likewise.
80339         * lib/fchmodat.c (fchmodat): Likewise.
80340         (ENOSYS): Remove definition.
80341         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80342         it.  Don't include "unistd--.h" -- it wasn't ever used.
80343
80344         2006-01-17  Jim Meyering  <jim@meyering.net>
80345
80346         Rewrite fts.c not to change the current working directory,
80347         by using openat, fstatat, fdopendir, etc..
80348
80349         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80350         (HAVE_OPENAT_SUPPORT): Define.
80351         [_LIBC] (fchdir): Don't undef or define; no longer used.
80352         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80353         Now, this `function' always succeeds, and consumes its file descriptor
80354         parameter -- so callers must not close such FDs.  Update callers.
80355         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80356         (diropen): Add parameter, SP.  Adjust all callers.
80357         Implement using diropen_fd, rather than open.
80358         (fts_open): Initialize new member, fts_cwd_fd.
80359         Remove fts_rft-setting code.
80360         (fts_close): Close fts_cwd_fd, if necessary.
80361         (__opendir2): Define in terms of opendir or opendirat,
80362         depending on whether the FST_NOCHDIR flag is set.
80363         (fts_build): Since fts_safe_changedir consumes its FD, and since
80364         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80365         and close the dup'd file descriptor upon failure.
80366         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80367         (fts_safe_changedir): Tweak semantics to reflect that this function
80368         now calls cwd_advance_fd and hence consumes its FD argument.
80369         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80370         [struct FTS] (fts_rft): Remove now-unused member.
80371         [struct FTS] (fts_cycle.state): Improve comment.
80372
80373         * lib/openat.c (openat_needs_fchdir): New function.
80374         * lib/openat.h (openat_needs_fchdir): Declare it.
80375
80376 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80377
80378         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80379         Problem and fix reported by Pádraig Brady in
80380         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80381
80382 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80383
80384         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80385
80386 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80387
80388         * lib/memcoll.c (memcoll): Optimize for the common case where the
80389         arguments are bytewise equal.
80390
80391 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80392
80393         * doc/regexprops-generic.texi: Add a copyright notice.
80394
80395 2006-08-15  Bruno Haible  <bruno@clisp.org>
80396
80397         * modules/tmpdir (License): Change to LGPL.
80398
80399 2006-08-15  Bruno Haible  <bruno@clisp.org>
80400
80401         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80402         module.
80403
80404 2006-08-14  Simon Josefsson  <jas@extundo.com>
80405
80406         * config/srclist.txt: Add gnupload.
80407
80408 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80409
80410         Change copyright notice from LGPL 2 to GPL 2, since that's the
80411         standard form used in the gnulib repository.
80412         * tests/test-lock.c: Likewise.
80413         * tests/test-stdint.c: Likewise.
80414         * tests/test-tls.c: Likewise.
80415
80416         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80417         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80418         Add copyright notice.
80419
80420         * check-module: Add copyright notice.  Output a copyright
80421         notice if "--version" is specified.
80422         * modules/COPYING: New file.
80423         * tests/test-getaddrinfo.c: Add copyright notice.
80424         * tests/test-verify.c: Likewise.
80425
80426 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80427
80428         Change copyright notice from LGPL 2 to GPL 2, since that's the
80429         standard form used in the gnulib repository.
80430         * lib/lock.c: LGPL -> GPL.
80431         * lib/lock.h: Likewise.
80432         * lib/strnlen1.c: Likewise.
80433         * lib/strnlen1.h: Likewise.
80434         * lib/tls.c: Likewise.
80435         * lib/tls.h: Likewise.
80436         * lib/tmpdir.c: Likewise.
80437
80438         * lib/TODO: Remove; this belongs only in coreutils.
80439
80440 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80441
80442         Add copyright notices to long-enough files that lack them, since
80443         otherwise the files aren't clearly free.  Use the same notice that
80444         getdate.texi already uses.
80445         * doc/alloca-opt.texi: Add copyright notice.
80446         * doc/alloca.texi: Likewise.
80447         * doc/ctime.texi: Likewise.
80448         * doc/functions.texi: Likewise.
80449         * doc/gcd.texi: Likewise.
80450         * doc/gnulib-tool.texi: Likewise.
80451         * doc/inet_ntoa.texi: Likewise.
80452         * doc/visibility.texi: Likewise.
80453
80454         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80455         * doc/quote.texi: Add copyright notice.
80456
80457         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80458         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80459         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80460         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80461         is now obsolete, and give a pointer to the Sun list.
80462         Add copyright notice.
80463
80464 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80465
80466         * config/srclistvars.sh: Add copyright notice.
80467
80468 2006-08-14  Eric Blake  <ebb9@byu.net>
80469
80470         Import the following change from libc:
80471
80472         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80473
80474         Upstream bug 2997.
80475         * lib/misc/error.c: Add space between program name and message if file
80476         name is missing.
80477
80478 2006-08-12  Karl Berry  <karl@gnu.org>
80479
80480         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80481         remove, these originate in gnulib now.
80482
80483 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80484
80485         * doc/Makefile (standards.info standards.html standards.dvi):
80486         Also depend on make-stds.texi.
80487
80488 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80489
80490         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80491         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80492
80493         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80494         in wchar_t.  Problem reported by Eric Blake.
80495
80496         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80497         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80498         Also, help the compiler to keep LEN in a register.
80499
80500 2006-08-11  Eric Blake  <ebb9@byu.net>
80501
80502         * users.txt: Sort.  Add tar.
80503
80504 2006-08-11  Bruno Haible  <bruno@clisp.org>
80505
80506         * users.txt: New file.
80507
80508 2006-08-11  Bruno Haible  <bruno@clisp.org>
80509
80510         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80511         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80512
80513 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80514
80515         * modules/snprintf (Depends-on): Remove minmax.
80516         (Maintainer): Add self and Bruno.
80517
80518 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80519
80520         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80521         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80522         (EOVERFLOW): Define if the system does not.
80523         Do not include "minmax.h"; it wasn't used.
80524         (snprintf): Don't assume size_t promotes to an unsigned type.
80525         Fix bug when generated string was too long for the buffer: the
80526         buffer's contents are supposed to be the initial prefix of the
80527         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80528         exceeds INT_MAX; do the check ourselves.
80529
80530         Import the following changes from libc:
80531
80532         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80533
80534         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80535         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80536         set wc to the byte which couldn't be converted.
80537         (re_string_reconstruct): Don't clear valid_raw_len before calling
80538         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80539         tip_context using re_string_context_at.
80540
80541         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80542
80543         * lib/posix/regex.h: g++ still cannot handled [restrict].
80544
80545         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80546
80547         * lib/posix/regex.h: Remove special handling for VMS.
80548
80549 2006-08-10  Jim Meyering  <jim@meyering.net>
80550
80551         * modules/same-inode: New module.
80552         * modules/dev-ino: New module.
80553         * modules/cycle-check: Depend on these modules, rather than simply
80554         including their .h files.
80555         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80556         required via m4/cycle-check.m4.
80557         * modules/same: Depend on new same-inode module, rather than
80558         including same-inode.h.
80559         * modules/chdir-safer: New file.
80560
80561         * modules/chown (Depends-on): Add stat-macros.
80562
80563 2006-08-10  Jim Meyering  <jim@meyering.net>
80564
80565         * m4/cycle-check.m4: New file.
80566         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80567         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80568
80569 2006-08-10  Eric Blake  <ebb9@byu.net>
80570
80571         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80572         in from original proposal.
80573
80574 2006-08-10  Eric Blake  <ebb9@byu.net>
80575         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80576
80577         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80578         namespace.
80579
80580 2006-08-10  Bruno Haible  <bruno@clisp.org>
80581
80582         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80583         as well.
80584
80585 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80586
80587         Sync from coreutils.
80588
80589         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80590
80591         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80592         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80593
80594 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80595
80596         * modules/restrict: Remove; no longer needed now that we assume
80597         Autoconf 2.59 or later.
80598         * MODULES.html.sh: Remove 'restrict'.
80599         * modules/argp (Depends-on): Remove 'restrict'.
80600         * modules/base64 (Depends-on): Likewise.
80601         * modules/gc (Depends-on): Likewise.
80602         * modules/getaddrinfo (Depends-on): Likewise.
80603         * modules/glob (Depends-on): Likewise.
80604         * modules/inet_ntop (Depends-on): Likewise.
80605         * modules/inet_pton (Depends-on): Likewise.
80606         * modules/memxor (Depends-on): Likewise.
80607         * modules/regex (Depends-on): Likewise.
80608         * modules/strtok_r (Depends-on): Likewise.
80609         * modules/time_r (Depends-on): Likewise.
80610
80611 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80612
80613         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80614         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80615         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80616         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80617         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80618         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80619         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80620         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80621
80622         Merge from coreutils.
80623         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80624         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80625         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80626         * m4/time_r.m4 (gl_TIME_R): Likewise.
80627
80628 2006-08-09  Karl Berry  <karl@gnu.org>
80629
80630         * config/srclist.txt: no more gettext-tools, per Bruno.
80631
80632 2006-08-08  Eric Blake  <ebb9@byu.net>
80633
80634         * modules/verror: New module.
80635         * MODULES.html.sh: Document it.
80636
80637 2006-08-08  Eric Blake  <ebb9@byu.net>
80638
80639         * lib/verror.h, lib/verror.c: New files.
80640
80641 2006-08-08  Eric Blake  <ebb9@byu.net>
80642
80643         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80644         verror_at_line output complies with GNU Coding Standards even when
80645         file is NULL.
80646
80647 2006-08-07  Bruno Haible  <bruno@clisp.org>
80648
80649         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80650         versions of AIX.
80651         Reported by Ralf Wildenhues.
80652
80653 2006-08-07  Bruno Haible  <bruno@clisp.org>
80654
80655         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80656         in an AC_DEFUN. Needed so that the autoconf snippets can use
80657         AC_REQUIRE.
80658
80659 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80660
80661         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80662         Initialize pkgdata_DATA.
80663         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80664         overriding it.
80665
80666 2006-08-06  Eric Blake  <ebb9@byu.net>
80667
80668         * lib/error.h: Fold in some upstream changes from glibc.
80669         * lib/error.c: Likewise.
80670
80671 2006-08-04  Bruno Haible  <bruno@clisp.org>
80672
80673         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80674         Make the mostlyclean-local rule depend on mostlyclean-generic.
80675         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80676
80677 2006-07-31  Bruno Haible  <bruno@clisp.org>
80678
80679         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80680         <stdlib.h>, <string.h>.
80681
80682 2006-07-30  Bruno Haible  <bruno@clisp.org>
80683
80684         * modules/readlink (License): Change to LGPL.
80685
80686 2006-07-30  Bruno Haible  <bruno@clisp.org>
80687
80688         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80689         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80690         set PKGDATADIR to point to it.
80691
80692 2006-07-30  Bruno Haible  <bruno@clisp.org>
80693
80694         * modules/csharpexec (configure.ac): Comment out macro invocation.
80695         * modules/javaexec (configure.ac): Likewise.
80696         * modules/javacomp-script (configure.ac): Likewise.
80697
80698         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80699
80700 2006-07-30  Bruno Haible  <bruno@clisp.org>
80701
80702         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80703         linked-list.
80704
80705 2006-07-30  Bruno Haible  <bruno@clisp.org>
80706
80707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80708
80709 2006-07-30  Bruno Haible  <bruno@clisp.org>
80710
80711         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80712         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80713         get removed.
80714
80715 2006-07-29  Bruno Haible  <bruno@clisp.org>
80716
80717         Make it possible for gnulib-tool to work with locally modified or
80718         augmented gnulib repositories.
80719         * gnulib-tool (func_usage): Document --local-dir option.
80720         (local_gnulib_dir): New variable.
80721         Handle --local-dir option.
80722         (func_lookup_file): New function.
80723         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80724         (func_get_description, func_get_filelist, func_get_description,
80725         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80726         func_get_automake_snippet, func_get_include_directive,
80727         func_get_license, func_get_maintainer): Use func_lookup_file.
80728         (func_import, func_create_testdir): Use func_lookup_file.
80729
80730 2006-07-29  Bruno Haible  <bruno@clisp.org>
80731
80732         * modules/setenv (Depends-on): Add unistd.
80733
80734 2006-07-29  Bruno Haible  <bruno@clisp.org>
80735
80736         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80737
80738 2006-07-29  Bruno Haible  <bruno@clisp.org>
80739
80740         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80741
80742 2006-07-29  Bruno Haible  <bruno@clisp.org>
80743
80744         * gnulib-tool (import, update): If there is no Makefile.am, look at
80745         aclocal.m4, instead of bailing out.
80746
80747 2006-07-29  Bruno Haible  <bruno@clisp.org>
80748
80749         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80750         Categorize the options by when they are useful.
80751
80752 2006-07-29  Bruno Haible  <bruno@clisp.org>
80753
80754         * gnulib-tool (func_usage): Document option --no-libtool.
80755         Handle option --no-libtool.
80756         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80757         for changed semantics of $libtool variable.
80758         (func_import): Likewise. If libtool is not used, show this through
80759         an option --no-libtool.
80760         (func_create_testdir): Update.
80761
80762 2006-07-29  Bruno Haible  <bruno@clisp.org>
80763
80764         * gnulib-tool (func_import): Extend error message about missing
80765         --doc-base.
80766
80767 2006-07-29  Bruno Haible  <bruno@clisp.org>
80768
80769         * gnulib-tool (func_import): Don't create the $docbase directory if
80770         there is no file to store there.
80771
80772 2006-07-29  Bruno Haible  <bruno@clisp.org>
80773
80774         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80775         relevant, look for configure.ac there, not in the current directory.
80776         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80777
80778 2006-07-29  Bruno Haible  <bruno@clisp.org>
80779
80780         * gnulib-tool (SORT): New variable.
80781         (func_usage): Undocument --assume-autoconf option.
80782         Remove --assume-autoconf option handling.
80783         (autoconf_minversion): Determine from the contents of configure.ac.
80784         (func_import): Remove autoconf_minversion handling.
80785         Suggested by Eric Blake.
80786
80787 2006-07-29  Bruno Haible  <bruno@clisp.org>
80788
80789         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80790
80791 2006-07-29  Bruno Haible  <bruno@clisp.org>
80792
80793         * config/srclist.txt (*setenv.[ch]): Remove rules.
80794
80795 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80796
80797         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80798
80799 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80800
80801         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80802         arpa/inet.h.
80803
80804 2006-07-28  Simon Josefsson  <jas@extundo.com>
80805
80806         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80807         * modules/inet_pton (Depends-on): Likewise.
80808
80809 2006-07-28  Simon Josefsson  <jas@extundo.com>
80810
80811         * m4/netinet_in_h.m4: New file.
80812
80813 2006-07-28  Simon Josefsson  <jas@extundo.com>
80814
80815         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80816         #include's.
80817
80818 2006-07-28  Simon Josefsson  <jas@extundo.com>
80819
80820         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80821         #include's.
80822
80823 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80824
80825         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80826         setgid on directories only if they set these bits.
80827         * lib/modechange.h: Remove obsolete comment about masks.
80828
80829 2006-07-28  Eric Blake  <ebb9@byu.net>
80830
80831         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80832         macro expansion.
80833
80834 2006-07-28  Bruno Haible  <bruno@clisp.org>
80835
80836         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80837
80838 2006-07-28  Bruno Haible  <bruno@clisp.org>
80839
80840         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80841
80842 2006-07-28  Bruno Haible  <bruno@clisp.org>
80843
80844         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80845         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80846         Define fallbacks.
80847         Avoids link error on FreeBSD 4.x.
80848         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80849
80850         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80851         encoding.
80852         * lib/mbswidth.c (iswcntrl): Likewise.
80853
80854 2006-07-27  Bruno Haible  <bruno@clisp.org>
80855
80856         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80857         test.
80858
80859 2006-07-27  Bruno Haible  <bruno@clisp.org>
80860
80861         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80862         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
80863         defined.
80864
80865 2006-07-26  Eric Blake  <ebb9@byu.net>
80866
80867         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
80868
80869 2006-07-26  Eric Blake  <ebb9@byu.net>
80870
80871         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
80872         like mingw that lack mkstemp.
80873         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
80874         avoid compilation warning on mingw.
80875
80876 2006-07-26  Bruno Haible  <bruno@clisp.org>
80877
80878         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
80879         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
80880         INT_FAST*_MIN, INTPTR_MIN.
80881
80882 2006-07-25  Bruno Haible  <bruno@clisp.org>
80883
80884         * modules/version-etc (Depends-on): Add stdarg.
80885
80886 2006-07-25  Bruno Haible  <bruno@clisp.org>
80887
80888         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
80889         complex commands.
80890
80891 2006-07-25  Bruno Haible  <bruno@clisp.org>
80892
80893         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
80894         defined in <stdarg.h> or config.h.
80895
80896 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80897
80898         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
80899         (gl_STDIO_SAFER): Remove.
80900
80901 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80902
80903         * MODULES.html.sh (File stream based Input/Output):
80904         Add fopen-safer, tmpfile-safer; remove stdio-safer.
80905         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
80906         * modules/fopen-safer, modules/tmpfile-safer: New files.
80907         * modules/stdio-safer: Remove.
80908
80909 2006-07-24  Bruno Haible  <bruno@clisp.org>
80910
80911         * modules/tmpdir: New file.
80912         * MODULES.html.sh (File system functions): Add it.
80913
80914 2006-07-24  Bruno Haible  <bruno@clisp.org>
80915
80916         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80917         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80918
80919 2006-07-24  Bruno Haible  <bruno@clisp.org>
80920
80921         * modules/clean-temp: New file.
80922
80923 2006-07-24  Bruno Haible  <bruno@clisp.org>
80924
80925         * m4/tmpdir.m4: New file, from GNU gettext.
80926
80927 2006-07-24  Bruno Haible  <bruno@clisp.org>
80928
80929         * lib/tmpdir.h: New file, from GNU gettext.
80930         * lib/tmpdir.c: New file, from GNU gettext.
80931
80932 2006-07-24  Bruno Haible  <bruno@clisp.org>
80933
80934         * lib/clean-temp.h: New file, from GNU gettext.
80935         * lib/clean-temp.c: New file, from GNU gettext.
80936
80937 2006-07-23  Eric Blake  <ebb9@byu.net>
80938
80939         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80940         (Depends-on): Add binary-io.
80941
80942 2006-07-23  Eric Blake  <ebb9@byu.net>
80943
80944         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80945
80946 2006-07-23  Eric Blake  <ebb9@byu.net>
80947
80948         * lib/tmpfile-safer.c: New file.
80949         * lib/stdio-safer.h (fopen_safer): Add prototype.
80950         * lib/stdio--.h (tmpfile): Make safer.
80951
80952 2006-07-23  Bruno Haible  <bruno@clisp.org>
80953
80954         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80955         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80956         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80957         gl_linked_remove_at): Use it.
80958
80959 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80960         and Simon Josefsson <jas@extundo.com>
80961
80962         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80963
80964         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80965
80966 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80967
80968         * modules/close-stream: New file.
80969         * modules/closeout (Description): Make it clear that it exits
80970         with a diagnostic on error.
80971         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80972         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80973
80974 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80975
80976         * m4/close-stream.m4: New file.
80977
80978 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80979
80980         * lib/close-stream.c, lib/close-stream.h: New files.
80981
80982 2006-07-22  Bruno Haible  <bruno@clisp.org>
80983
80984         Merge from GNU gettext 0.15.
80985
80986         2006-05-01  Bruno Haible  <bruno@clisp.org>
80987
80988                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80989
80990         2006-07-22  Bruno Haible  <bruno@clisp.org>
80991
80992                 * modules/javaversion: New file.
80993                 * MODULES.html.sh (Java): Add javaversion.
80994
80995         2006-03-12  Bruno Haible  <bruno@clisp.org>
80996
80997                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80998
80999         2005-12-04  Bruno Haible  <bruno@clisp.org>
81000
81001                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81002                 (untested).
81003
81004         2006-06-21  Bruno Haible  <bruno@clisp.org>
81005
81006                 Avoid warnings from recent versions of mcs.
81007                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81008                 -o, -L, -r any more. Use options documented since mcs-1.0
81009                 instead. Similarly for -g.
81010
81011         2005-12-04  Bruno Haible  <bruno@clisp.org>
81012
81013                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81014                 .resources, not .resource.
81015
81016         2005-07-09  Bruno Haible  <bruno@clisp.org>
81017
81018                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81019                 add a .dll suffix.
81020                 Reported by Mark Junker <mjscod@gmx.de>.
81021
81022         2006-07-22  Bruno Haible  <bruno@clisp.org>
81023
81024                 * modules/gettext: Upgrade to gettext-0.15.
81025                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81026                 m4/visibility.m4.
81027                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81028
81029 2006-07-22  Bruno Haible  <bruno@clisp.org>
81030
81031         Merge from GNU gettext 0.15.
81032
81033         2006-03-25  Bruno Haible  <bruno@clisp.org>
81034
81035                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81036
81037         2006-07-21  Bruno Haible  <bruno@clisp.org>
81038
81039                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81040                 "1.1".
81041
81042         2006-05-09  Bruno Haible  <bruno@clisp.org>
81043
81044                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81045                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81046                 for the conftestver execution.
81047
81048         2006-05-01  Bruno Haible  <bruno@clisp.org>
81049
81050                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81051                 optional target-version argument. Verify that the compiler
81052                 groks source of the specified source-version, or add -source
81053                 option as necessary. Verify that the compiler produces
81054                 bytecode in the specified target-version, or add -target and
81055                 -source options as necessary. Make the result of the test
81056                 available as variable CONF_JAVAC. Also log error output in
81057                 config.log.
81058
81059         2006-03-11  Bruno Haible  <bruno@clisp.org>
81060
81061                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81062
81063         2006-05-09  Bruno Haible  <bruno@clisp.org>
81064
81065                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81066                 CLASSPATH_SEPARATOR to a semicolon.
81067
81068         2006-03-12  Bruno Haible  <bruno@clisp.org>
81069
81070                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81071                 available as variable CONF_JAVA, for subsequent autoconf
81072                 tests. Also log error output in config.log.
81073
81074         2006-07-19  Bruno Haible  <bruno@clisp.org>
81075
81076                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81077                 that getline works on glibc2 systems. Needed to avoid trouble
81078                 in relocatable.c.
81079                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81080
81081         2005-12-04  Bruno Haible  <bruno@clisp.org>
81082
81083                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81084                 launcher (untested).
81085
81086         2005-12-04  Bruno Haible  <bruno@clisp.org>
81087
81088                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81089
81090         2006-07-22  Bruno Haible  <bruno@clisp.org>
81091
81092                 * gettext.m4: Update from GNU gettext-0.15.
81093                 * nls.m4: Likewise.
81094                 * po.m4: Likewise.
81095                 * inttypes-pri.m4: Likewise.
81096                 * inttypes-h.m4: Renamed from inttypes.m4.
81097                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81098
81099 2006-07-22  Bruno Haible  <bruno@clisp.org>
81100
81101         Merge from GNU gettext 0.15.
81102
81103         2005-07-05  Bruno Haible  <bruno@clisp.org>
81104
81105                 * printf-args.c (printf_fetchargs): Work around broken
81106                 definition of wint_t on mingw.
81107
81108         2005-02-12  Bruno Haible  <bruno@clisp.org>
81109
81110                 * xallocsa.h: Add extern "C" for C++.
81111
81112         2006-05-17  Bruno Haible  <bruno@clisp.org>
81113
81114                 Cygwin portability.
81115                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81116
81117         2006-04-30  Bruno Haible  <bruno@clisp.org>
81118
81119                 * progreloc.c: Include <mach-o/dyld.h> if available.
81120                 (find_executable): Use _NSGetExecutablePath when possible.
81121
81122         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81123
81124                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81125                 function.
81126
81127         2005-12-29  Bruno Haible  <bruno@clisp.org>
81128
81129                 * progreloc.c (set_program_name_and_installdir): Fix
81130                 compilation error.
81131
81132         2005-12-04  Bruno Haible  <bruno@clisp.org>
81133
81134                 Cygwin portability.
81135                 * progreloc.c: Include <windows.h> also on Cygwin.
81136                 (find_executable): Add support for Cygwin.
81137                 (set_program_name_and_installdir): Handle also platforms with
81138                 nonempty EXEEXT.
81139
81140         2006-07-11  Bruno Haible  <bruno@clisp.org>
81141
81142                 * javacomp.c: Fix a comment.
81143                 Reported by Jim Meyering.
81144
81145         2006-04-30  Bruno Haible  <bruno@clisp.org>
81146
81147                 * javacomp.h (compile_java_class): Add source_version,
81148                 target_version arguments.
81149                 * javacomp.c: Rewritten to choose only a compiler that
81150                 respects the specified source_version and target_version.
81151
81152         2006-06-27  Bruno Haible  <bruno@clisp.org>
81153
81154                 Assume correct S_ISDIR macro.
81155                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81156
81157         2006-07-22  Bruno Haible  <bruno@clisp.org>
81158
81159                 * javaversion.h: New file, from GNU gettext.
81160                 * javaversion.c: New file, from GNU gettext.
81161                 * javaversion.java: New file, from GNU gettext.
81162                 * javaversion.class: New file, from GNU gettext.
81163
81164         2006-05-17  Bruno Haible  <bruno@clisp.org>
81165
81166                 Cygwin portability.
81167                 * javaexec.c (execute_java_class): Test for jview program
81168                 also on Cygwin.
81169
81170         2006-04-09  Bruno Haible  <bruno@clisp.org>
81171
81172                 * fatal-signal.c: Don't include string.h.
81173                 (at_fatal_signal): Use a copying loop instead of memcpy.
81174
81175         2005-12-04  Bruno Haible  <bruno@clisp.org>
81176
81177                 * csharpexec.c: Add support for 'clix' launcher (untested).
81178                 (execute_csharp_using_sscli): New function.
81179                 (execute_csharp_program): Call it.
81180
81181         2006-06-21  Bruno Haible  <bruno@clisp.org>
81182
81183                 Avoid warnings from recent versions of mcs.
81184                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81185                 -o, -L, -r any more. Use options documented since mcs-1.0
81186                 instead. Similarly for -g.
81187
81188         2005-07-09  Bruno Haible  <bruno@clisp.org>
81189
81190                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81191                 add a .dll suffix.
81192                 Reported by Mark Junker <mjscod@gmx.de>.
81193
81194         2006-06-17  Bruno Haible  <bruno@clisp.org>
81195
81196                 * config.charset: Update for NetBSD 3.0.
81197
81198         2006-05-17  Bruno Haible  <bruno@clisp.org>
81199
81200                 Cygwin portability.
81201                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81202
81203         2006-05-16  Bruno Haible  <bruno@clisp.org>
81204
81205                 * localcharset.c [CYGWIN]: Include <windows.h>.
81206                 (get_charset_aliases): For Cygwin, return the same CPxxx
81207                 aliases list as under WIN32.
81208                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81209                 the environment variables. Fall back to GetACP().
81210
81211         2006-04-05  Bruno Haible  <bruno@clisp.org>
81212
81213                 * config.charset: Update Juan Manuel Guerrero's address.
81214
81215         2005-02-12  Bruno Haible  <bruno@clisp.org>
81216
81217                 * allocsa.h: Add extern "C" for C++.
81218
81219         2005-02-10  Bruno Haible  <bruno@clisp.org>
81220
81221                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81222                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81223
81224         2006-07-22  Bruno Haible  <bruno@clisp.org>
81225
81226                 * gettext.h: Update to GNU gettext-0.15.
81227
81228 2006-07-22  Bruno Haible  <bruno@clisp.org>
81229
81230         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81231         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81232         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81233
81234 2006-07-21  Eric Blake  <ebb9@byu.net>
81235
81236         * modules/stdlib-safer: New file.
81237         * MODULES.html.sh (File stream based Input/Output): Add
81238         stdlib-safer.
81239
81240 2006-07-21  Eric Blake  <ebb9@byu.net>
81241
81242         * lib/stdlib-safer.h: New file from coreutils, required by
81243         stdlib--.h.
81244
81245 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81246
81247         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81248
81249 2006-07-20  Bruno Haible  <bruno@clisp.org>
81250
81251         * gnulib-tool: Recognize new option --assume-autoconf.
81252         (autoconf_minversion): New variable.
81253         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81254
81255 2006-07-20  Bruno Haible  <bruno@clisp.org>
81256
81257         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81258
81259 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81260
81261         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81262         Reindent and repaginate.
81263
81264 2006-07-19  Derek Price  <derek@ximbiot.com>
81265
81266         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81267         Correct grammar.
81268
81269 2006-07-17  Bruno Haible  <bruno@clisp.org>
81270
81271         * modules/list: New file.
81272         * modules/array-list: New file.
81273         * modules/carray-list, modules/carray-list-tests: New files.
81274         * modules/linked-list, modules/linked-list-tests: New files.
81275         * modules/avltree-list, modules/avltree-list-tests: New files.
81276         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81277         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81278         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81279         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81280         * modules/oset: New file.
81281         * modules/array-oset: New file.
81282         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81283         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81284         * tests/test-carray_list.c: New file.
81285         * tests/test-linked_list.c: New file.
81286         * tests/test-avltree_list.c: New file.
81287         * tests/test-rbtree_list.c: New file.
81288         * tests/test-linkedhash_list.c: New file.
81289         * tests/test-avltreehash_list.c: New file.
81290         * tests/test-rbtreehash_list.c: New file.
81291         * tests/test-avltree_oset.c: New file.
81292         * tests/test-rbtree_oset.c: New file.
81293         * MODULES.html.sh (Container data structures): New section.
81294
81295 2006-07-17  Bruno Haible  <bruno@clisp.org>
81296
81297         * m4/gl_list.m4: New file.
81298
81299 2006-07-17  Bruno Haible  <bruno@clisp.org>
81300
81301         * lib/gl_list.h: New file.
81302         * lib/gl_list.c: New file.
81303         * lib/gl_array_list.h: New file.
81304         * lib/gl_array_list.c: New file.
81305         * lib/gl_carray_list.h: New file.
81306         * lib/gl_carray_list.c: New file.
81307         * lib/gl_linked_list.h: New file.
81308         * lib/gl_linked_list.c: New file.
81309         * lib/gl_anylinked_list1.h: New file.
81310         * lib/gl_anylinked_list2.h: New file.
81311         * lib/gl_avltree_list.h: New file.
81312         * lib/gl_avltree_list.c: New file.
81313         * lib/gl_anyavltree_list1.h: New file.
81314         * lib/gl_anyavltree_list2.h: New file.
81315         * lib/gl_rbtree_list.h: New file.
81316         * lib/gl_rbtree_list.c: New file.
81317         * lib/gl_anyrbtree_list1.h: New file.
81318         * lib/gl_anyrbtree_list2.h: New file.
81319         * lib/gl_anytree_list1.h: New file.
81320         * lib/gl_anytree_list2.h: New file.
81321         * lib/gl_linkedhash_list.h: New file.
81322         * lib/gl_linkedhash_list.c: New file.
81323         * lib/gl_anyhash_list1.h: New file.
81324         * lib/gl_anyhash_list2.h: New file.
81325         * lib/gl_avltreehash_list.h: New file.
81326         * lib/gl_avltreehash_list.c: New file.
81327         * lib/gl_rbtreehash_list.h: New file.
81328         * lib/gl_rbtreehash_list.c: New file.
81329         * lib/gl_anytreehash_list1.h: New file.
81330         * lib/gl_anytreehash_list2.h: New file.
81331
81332         * lib/gl_oset.h: New file.
81333         * lib/gl_oset.c: New file.
81334         * lib/gl_array_oset.h: New file.
81335         * lib/gl_array_oset.c: New file.
81336         * lib/gl_avltree_oset.h: New file.
81337         * lib/gl_avltree_oset.c: New file.
81338         * lib/gl_rbtree_oset.h: New file.
81339         * lib/gl_rbtree_oset.c: New file.
81340         * lib/gl_anytree_oset.h: New file.
81341
81342 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81343
81344         * m4/mkancesdirs.m4: New file.
81345         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81346         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81347         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81348         it.
81349
81350 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81351
81352         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81353         * lib/mkancesdirs.h: New files.
81354         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81355         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81356         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81357         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81358         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81359         callers changed.  Revamp internals significantly, by not
81360         attempting to create directories that are temporarily more
81361         permissive than the final results.  Do not attempt to use
81362         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81363         This removes some race conditions, fixes some bugs, and simplifies
81364         things.  Use new dirchownmod function to do owner and mode changes.
81365         * lib/mkdir-p.h: Likewise.
81366         * lib/modechange.c (octal_to_mode): New function.
81367         (struct mode_change): New member mentioned.
81368         (make_node_op_equals): New arg mentioned.  All callers changed.
81369         (mode_compile): Keep track of which mode bits the user has explicitly
81370         mentioned.
81371         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81372         New arg PMODE_BITS, to keep track of which mode bits the user
81373         mentioned; it treats S_ISUID and S_ISGID speciall.
81374         All callers changed.
81375         * lib/modechange.h: Likewise.
81376
81377 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81378
81379         * MODULES.html.sh: Add mkancestors.
81380         * modules/mkancesdirs: New module.
81381         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81382         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81383         The chdir-safer and afs files are now orphans; I'll remove them
81384         unless someone speaks up.
81385         Add lib/dirchownmod.c, lib/dirchownmod.h.
81386         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81387         Add lchown, mkancesdirs.
81388         (Maintainer): Add self.
81389
81390 2006-07-15  Karl Berry  <karl@gnu.org>
81391
81392         * gnulib-tool: help message wording/arrangement.
81393
81394 2006-07-14  Simon Josefsson  <jas@extundo.com>
81395
81396         * doc/gnulib.texi (Libtool and Windows): New section.
81397
81398 2006-07-12  Simon Josefsson  <jas@extundo.com>
81399
81400         * modules/gendocs (License): Fix license, approved by Karl.
81401
81402 2006-07-12  Eric Blake  <ebb9@byu.net>
81403
81404         * MODULES.html.sh: Add gendocs.
81405
81406 2006-07-11  Eric Blake  <ebb9@byu.net>
81407
81408         * modules/fdl: New module, to install doc/fdl.texi.
81409         * MODULES.html.sh: Add new section for documentation modules.
81410         * gnulib-tool: Avoid space-tab.
81411         (--doc-base): New option, to manage files from doc.
81412
81413 2006-07-11  Eric Blake  <ebb9@byu.net>
81414
81415         * m4/absolute-header.m4: Fix comments to match recent change.
81416
81417 2006-07-11  Eric Blake  <ebb9@byu.net>
81418
81419         * gnulib-tool: List --doc-base before --tests-base.
81420
81421 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81422
81423         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81424
81425 2006-07-11  Bruno Haible  <bruno@clisp.org>
81426
81427         * README: Mention where to put documentation.
81428
81429 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81430
81431         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81432
81433 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81434
81435         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81436         to stdint.m4.
81437
81438 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81439
81440         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81441         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81442         "no/such/file/stdint.h" when there is no such file, so that
81443         the resulting C code can be parsed by dodgy compilers.
81444         Problems reported by Bob Proulx.
81445
81446 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81447
81448         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81449         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81450         macros into the GNU _D_EXACT_NAMLEN.
81451         * lib/savedir.c:  Likewise.
81452         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81453
81454 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81455         and Paul Eggert  <eggert@cs.ucla.edu>
81456
81457         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81458         * m4/savedir.m4:
81459         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81460         macros into the GNU _D_EXACT_NAMLEN.
81461
81462 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81463
81464         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81465         around the absolute name, to work around a problem with the HP-UX
81466         11.23 native C compiler, reported by Bob Proulx.
81467
81468 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81469
81470         * doc/maintain.texi, make-stds.texi: Sync from
81471         <http://savannah.gnu.org/projects/gnustandards>.
81472
81473 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81474
81475         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81476
81477 2006-07-09  Jim Meyering  <jim@meyering.net>
81478
81479         * m4/glob.m4: Remove a doubled word in a comment.
81480
81481 2006-07-09  Jim Meyering  <jim@meyering.net>
81482
81483         * lib/argp-pv.c: Remove a doubled word in a comment.
81484         * lib/check-version.c (check_version): Likewise.
81485         * lib/javacomp.c (compile_java_class): Likewise.
81486
81487 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81488
81489         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81490         for the benefit of people using Autoconf 2.60.  If you want to
81491         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81492         (or m4/onceonly.m4, if pre-2.57) manually.
81493
81494 2006-07-08  Jim Meyering  <jim@meyering.net>
81495
81496         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81497         comment.
81498         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81499         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81500         comment.
81501
81502 2006-07-08  Jim Meyering  <jim@meyering.net>
81503
81504         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81505
81506 2006-07-07  Simon Josefsson  <jas@extundo.com>
81507
81508         * tests/test-crc.c: Change expected crc value, the test vector
81509         were probably computed using the old broken crc.c?
81510
81511 2006-07-06  Simon Josefsson  <jas@extundo.com>
81512
81513         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81514         now the canonical place for the M4 file).
81515
81516         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81517         from the sys_socket dependency now.
81518
81519         * modules/inet_pton (Files): Ditto.
81520
81521         * modules/inet_ntop (Files): Ditto.
81522
81523 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81524
81525         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81526         not gl_PREREQ_GETUSERSHELL.
81527
81528 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81529
81530         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81531         with only one argument, for Autoconf 2.60.
81532         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81533         expand to nothing, so add a shell command to avoid syntax error.
81534         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81535
81536 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81537
81538         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81539
81540 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81541
81542         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81543         no longer needed.  Check for isblank decl.
81544         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81545         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81546         of existence.
81547
81548 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81549
81550         * lib/getloadavg.c: Use __VMS, not VMS.
81551         * lib/getopt.c: Likewise.
81552         * lib/getpagesize.h: Likewise.
81553         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81554         and probably does not work.
81555
81556 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81557
81558         * lib/.cppi-disable: Add wcwidth.
81559         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81560         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81561         (ISGRAPH): Remove.  All uses changed to isgraph.
81562         (FOLD) [!defined _LIBC]: Remove special case.
81563         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81564         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81565         HAVE_ISBLANK.
81566         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81567         case.
81568
81569 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81570
81571         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81572         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81573         brackets.  Other minor changes to suppress some compiler
81574         warnings.
81575
81576 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81577         and Paul Eggert  <eggert@cs.ucla.edu>
81578
81579         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81580         of invoking obsolescent AC_HEADER_DIRENT macro.
81581         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81582         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81583         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81584         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81585         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81586         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81587         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81588         * m4/readdir.m4: Remove; no longer needed.
81589
81590 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81591         and Paul Eggert  <eggert@cs.ucla.edu>
81592
81593         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81594         Don't worry about this obsolete case any more.
81595         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81596         directories.
81597         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81598         worry about this obsolete case any more.
81599         * lib/fts.c: Likewise.
81600         * lib/getcwd.c: Likewise.
81601         * lib/glob.h: Likewise.
81602         * lib/savedir.c: Likewise.
81603
81604 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81605
81606         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81607         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81608         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81609         needed.
81610         All uses removed.
81611         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81612         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81613         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81614         needed.
81615         * m4/getdate.m4 (gl_GETDATE): Likewise.
81616         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81617         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81618         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81619         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81620         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81621         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81622         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81623         needed.
81624
81625 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81626
81627         * lib/memcasecmp.c: Include <limits.h>.
81628         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81629         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81630         Don't assume isdigit succeeds only on '0' through '9'.
81631
81632 2006-07-05  Eric Blake  <ebb9@byu.net>
81633
81634         * modules/getaddrinfo (Depends-on): Add snprintf.
81635
81636 2006-07-05  Eric Blake  <ebb9@byu.net>
81637
81638         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81639         to avoid 'header present but could not be compiled' on cygwin.
81640
81641 2006-07-05  Eric Blake  <ebb9@byu.net>
81642
81643         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81644         missing from netdb.h.
81645         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81646
81647 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81648
81649         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81650         no longer needed.
81651         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81652         * m4/getdate.m4 (gl_GETDATE): Likewise.
81653         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81654         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81655         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81656         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81657         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81658
81659 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81660
81661         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81662         All uses of is_space replaced by isspace.
81663         * lib/exit.h: Don't talk about STDC_HEADERS.
81664         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81665         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81666         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81667         replaced by isprint etc.
81668         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81669         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81670         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81671         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81672         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81673         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81674
81675 2006-07-05  Bruno Haible  <bruno@clisp.org>
81676
81677         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81678         the function exists, before testing against AIX.
81679         Reported by Martin Lambers <marlam@marlam.de>.
81680
81681 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81682
81683         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81684         From Mark D. Baushke.
81685
81686 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81687
81688         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81689         to the absolute name, not just one, to bypass Sun C 5.8's
81690         "warning: #include of /usr/include/... may be non-portable".
81691
81692 2006-07-04  Eric Blake  <ebb9@byu.net>
81693
81694         * modules/dirname-tests: New test module.
81695         * tests/test-dirname.c: New file, replacing dirname.c
81696         TEST_DIRNAME section that was recently deleted.
81697
81698 2006-07-04  Bruno Haible  <bruno@clisp.org>
81699
81700         Assume ANSI C header files and <ctype.h> functions.
81701         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81702         (mbsnwidth): Use isprint, iscntrl instead.
81703
81704 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81705
81706         Merge from coreutils.
81707         * MODULES.html.sh: Add xstrtold.
81708         * modules/xstrtold: New file.
81709         * modules/cycle-check (Files): Add lib/same-inode.h.
81710         * modules/dirname (Files): Add m4/double-slash-root.m4.
81711         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81712         * modules/mkdir-p (Files): Add lib/same-inode.h.
81713         * modules/same (Files): Add lib/same-inode.h.
81714
81715 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81716
81717         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81718         This is to keep the terminology clean; POSIX talks about
81719         "absolute pathnames", not "full pathnames", but the GNU
81720         Coding Standards say to use "path" for something else;
81721         so use "absolute" to keep both sides happy.
81722         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81723         Set gl_absolute_header, not gl_full_header_path.
81724         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81725         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81726         All uses changed.
81727
81728         Merge from coreutils.
81729
81730         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81731
81732         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81733         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81734         want to require the building of c-strtod.o.
81735         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81736         needs -lm directly.
81737         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81738
81739         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81740
81741         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81742         --as-needed option if available.  Problem reported by Albert Chin in
81743         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81744         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81745         cc merely issues a bunch of annoying warnings for --as-needed
81746         (this problem was reported by Bob Proulx).  Also, try linking with
81747         -lm to detect a bug in binutils 2.16 (this problem was reported
81748         by Ralf Wildenhues).
81749
81750         2006-06-18  Jim Meyering  <jim@meyering.net>
81751
81752         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81753         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81754         macro.
81755         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81756         also check for glibc-2.4's abort-inducing bug.
81757
81758         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81759         Low-probability clean-up should be to use rmdir to get rid of
81760         the just-created directory, not unlink.
81761
81762         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81763         configure fail, and request a bug report to inform us about it.
81764         Add a comment that, barring reports to the contrary, in 2007 we'll
81765         assume ftruncate is universally available.
81766
81767         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81768
81769         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81770
81771         2006-03-12  Jim Meyering  <jim@meyering.net>
81772
81773         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81774         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81775         * m4/same.m4 (gl_SAME): Likewise.
81776         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81777
81778         2006-03-11  Eric Blake  <ebb9@byu.net>
81779
81780         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81781         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81782         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81783         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81784
81785 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81786
81787         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81788         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81789         reported by Mark D. Baushke, one in
81790         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81791
81792         Merge from coreutils.
81793
81794         * lib/.cppi-disable: Add stdint_.h.
81795         * lib/.cvsignore: Add stdint.h.
81796
81797         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81798
81799         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81800         both double and long double versions.
81801         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81802         * lib/xstrtold.c: New file.
81803         * lib/xstrtod.h (xstrtold): New decl.
81804
81805         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81806
81807         * lib/filemode.c (setst): Remove.
81808         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81809         (arguably) clearer, and the generated code is a bit smaller on my
81810         Debian GNU/Linux stable x86 host.
81811
81812         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81813
81814         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81815         Assume that filemode.h includes sys/types.h and sys/stat.h.
81816         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81817         (ftypelet): Reorder to put common cases first, for efficiency.
81818         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81819         to do 'M'.
81820         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81821         of 10, for compatibility with FreeBSD.  All callers changed.
81822         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81823         types that can't be deduced solely from st_mode.  First arg is now a
81824         const pointer.
81825         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81826         (strmode): Renamed from mode_string.
81827         (filemodestring): New decl.
81828         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81829         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81830         needed.
81831         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81832
81833         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81834
81835         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81836         fsusage.h now does that.  Include fsusage.h first, to test interface.
81837         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81838         at most one method (the old code could have generated decls that
81839         didn't conform to C89, not that this was ever exercised).
81840         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81841
81842         2006-03-19  Jim Meyering  <jim@meyering.net>
81843
81844         Work even in a chroot where d_ino values for entries in "/"
81845         don't match the stat.st_ino values for the same names.
81846         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81847         number, iterate through all entries again, using lstat instead.
81848         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81849         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81850
81851         * lib/getcwd.c (__getcwd): Clarify a comment.
81852         Use memcpy in place of a call to strcpy.
81853
81854         2006-03-12  Jim Meyering  <jim@meyering.net>
81855
81856         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81857         matches that of the current directory (which we're about to chdir ".."
81858         out of), then save the dev-ino of the parent, instead.
81859
81860         * lib/same-inode.h (SAME_INODE): New file/macro.
81861         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81862         Include "same-inode.h", instead.
81863         * lib/same.c: Likewise.
81864         * lib/cycle-check.h: Include "same-inode.h".
81865         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
81866         * lib/cycle-check.c (SAME_INODE): Remove definition.
81867         * lib/root-dev-ino.h: Include "same-inode.h".
81868
81869         2006-03-11  Eric Blake  <ebb9@byu.net>
81870
81871         * lib/same.c (same_name): s/base_name/last_component/
81872         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
81873         * lib/filenamecat.c (file_name_concat): Likewise.
81874
81875         2006-03-11  Eric Blake  <ebb9@byu.net>,
81876                     Paul Eggert  <eggert@cs.ucla.edu>
81877
81878         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
81879         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
81880         drive prefix.
81881         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
81882         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
81883         (last_component): New method.
81884         * lib/dirname.c (dir_len): Determine when drive letters need a
81885         subsequent slash.  Preserve // when it is special.
81886         (dir_name): Don't append dot when drive letter is absolute.
81887         [TEST_DIRNAME]: Move into a full-blown gnulib test.
81888         * lib/basename.c (base_name): New semantics - malloc the result.
81889         Preserve // when it is special.  Preserve relative files that look
81890         like drive letters.
81891         (base_len): Preserve // when it is special.
81892         (last_component): New method, similar to old base_name semantics.
81893         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
81894         base_name.  Strip redundant slashes from ///.
81895
81896 2006-07-03  Jim Meyering  <jim@meyering.net>
81897
81898         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
81899         macro is used before the first cycle_check call.
81900
81901 2006-07-03  Eric Blake  <ebb9@byu.net>
81902
81903         * modules/dirname (Depends-on): Add xstrndup.
81904
81905 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81906
81907         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
81908         test cases, so that config.log is a bit easier to follow.
81909
81910 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81911
81912         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81913         both are 64 bits, since this seems to be the tradition, and this
81914         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81915         we ever run into a host that prefers long long to long in this
81916         case, we'll need another configure-time test.  Problem reported by
81917         Jim Meyering.
81918
81919 2006-07-02  Eric Blake  <ebb9@byu.net>
81920
81921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81922
81923 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81924
81925         * modules/inttypes (Depends-on): No longer depends on stdint.
81926         * modules/stdint (Description): Say more about assumptions.
81927         Say that the fast types might differ.  Say macros are used.
81928         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81929         (Makefile.am): Revise list of substituted symbols to match
81930         new stdint.m4.
81931         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81932         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81933         * tests/test-stdint.c (verify_same_types)
81934         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81935         the code conforms to C99/C89.
81936         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81937         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81938
81939 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81940
81941         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81942         but fix a bug, by requiring at least 64 bits.
81943         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81944         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81945         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81946         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81947
81948         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81949         changes.  Make 2.59 a prerequisite.  Check and substitute for
81950         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81951         inttypes.h.  Do not use special include files; just use the
81952         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81953         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81954         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81955         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81956         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81957         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81958         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81959         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81960         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81961         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81962         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81963         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81964         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81965         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81966         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81967         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81968         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81969         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81970         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81971         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81972         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81973         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81974         not check for things that C99 does not require, e.g., int8_t.  If
81975         a test isn't needed unless <stdint.h> isn't working, and is
81976         unlikely to be needed for any other reason, then don't do it
81977         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81978         size_t, since we assume C89 freestanding at least.  Do not check
81979         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81980         the right thing even if the types are not defined.  Instead use:
81981         (gl_STDINT_TYPE_PROPERTIES): New macro.
81982         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81983         testing whether <sys/types.h> clashes, as Autoconf does this for
81984         us now.  All uses removed.
81985         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81986         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81987         (gl_CHECK_TYPE_SAME):
81988         Remove; no longer needed.
81989         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81990         exists, since we'll return 0 anyway in that case.
81991         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81992
81993 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81994
81995         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81996         possible collision with system files.
81997         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81998         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81999         WCHAR_MIN and WCHAR_MAX in this case.
82000         (<stddef.h>): Do not include; no longer needed.
82001         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82002         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82003         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82004         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82005         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82006         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82007         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82008         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82009         !defined(__c99))]: Include in this case too, since it's harmless
82010         now.
82011         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82012         dangerous to do so.
82013         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82014         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82015         (_STDINT_MIN, _STDINT_MAX): New macros.
82016         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82017         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82018         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82019         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82020         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82021         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82022         macros, not typedefs; this simplifies things quite a bit.
82023         Use long int for all types narrower than int64_t.
82024         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82025         Define in terms of long long int or int64_t or long int,
82026         not int64_t or int32_t.  This saves some compile-time testing.
82027         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82028         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82029         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82030         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82031         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82032         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82033         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82034         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82035         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82036         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82037         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82038         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82039         undef any previous version and define our own version, for
82040         simplicity and consistency with the new macros for types.
82041         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82042         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82043         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82044         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82045         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82046         @WINT_T_SUFFIX@ to keep things simple here.
82047         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82048         Simplify by assuming typical 8/16/32/64 host, since we're
82049         already doing that elsewhere anyway.
82050         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82051         and assume long long int is 64 bits if available.  This
82052         speeds up 'configure'.
82053
82054 2006-07-01  Eric Blake  <ebb9@byu.net>
82055
82056         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82057         Reported by Andreas Buening.
82058
82059 2006-07-01  Eric Blake  <ebb9@byu.net>
82060
82061         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82062
82063 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82064
82065         * lib/getaddrinfo.c: fixed typo
82066
82067 2006-06-29  Jim Meyering  <jim@meyering.net>
82068
82069         * modules/strftime (Maintainer): Add my name, since with the
82070         FPRINTFTIME changes strftime.c has forked from glibc.
82071
82072 2006-06-29  Eric Blake  <ebb9@byu.net>
82073
82074         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82075
82076 2006-06-29  Eric Blake  <ebb9@byu.net>
82077
82078         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82079
82080 2006-06-29  Eric Blake  <ebb9@byu.net>
82081
82082         * lib/stat_.h: New file.
82083
82084 2006-06-29  Eric Blake  <ebb9@byu.net>
82085
82086         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82087         unused static function.
82088
82089 2006-06-29  Eric Blake  <ebb9@byu.net>
82090
82091         * doc/functions.texi (Function Portability): Document missing lstat
82092         on mingw.
82093
82094 2006-06-29  Eric Blake  <ebb9@byu.net>
82095
82096         * MODULES.html.sh: Add sys_stat.
82097         * modules/sys_stat: New module.
82098         * modules/mkstemp (Depends-on): Add sys_stat.
82099
82100 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82101
82102         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82103
82104 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82105
82106         * m4/c-bs-a.m4: Removed.
82107
82108 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82109
82110         * lib/strftime.c: Assume strftime() exists.
82111
82112 2006-06-29  Derek Price  <derek@ximbiot.com>
82113
82114         * modules/c-bs-a: Removed - \a is C89.
82115         * MODULES.html.sh: Remove c-bs-a.
82116
82117 2006-06-29  Bruno Haible  <bruno@clisp.org>
82118
82119         * modules/wcwidth (License): Change to LGPL.
82120
82121 2006-06-28  Simon Josefsson  <jas@extundo.com>
82122
82123         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82124         on _WIN32.
82125
82126         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82127         getnameinfo.
82128
82129 2006-06-28  Simon Josefsson  <jas@extundo.com>
82130
82131         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82132
82133 2006-06-28  Simon Josefsson  <jas@extundo.com>
82134
82135         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82136         functions there.  It will succeed on Windows XP, but on Windows
82137         2000 and (presumably) earlier, it will fail, and use the internal
82138         re-implementation.
82139         (use_win32_p): New function.
82140         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82141         Support AI_NUMERICSERV to disable getservbyname.
82142         (getnameinfo): New function, only supports
82143         NI_NUMERICHOST|NI_NUMERICSERV for now.
82144
82145         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82146         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82147         getnameinfo.
82148
82149 2006-06-28  Eric Blake  <ebb9@byu.net>
82150
82151         * modules/wcwidth: New file.
82152         * modules/mbchar (Depends-on): Add wcwidth.
82153         * modules/mbswidth (Depends-on): Add wcwidth.
82154         * MODULES.html.sh: Add wcwidth.
82155
82156 2006-06-28  Eric Blake  <ebb9@byu.net>
82157
82158         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82159         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82160
82161 2006-06-28  Eric Blake  <ebb9@byu.net>
82162
82163         * lib/xvasprintf.h: Fix comments.
82164
82165 2006-06-28  Eric Blake  <ebb9@byu.net>
82166
82167         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82168         * lib/mbswidth.c (wcwidth): Move from here...
82169         * lib/wcwidth.h: ...to this new file.
82170
82171 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82172
82173         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82174
82175         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82176         it's obsolete.
82177         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82178
82179 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82180
82181         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82182         Autoconf 2.60 says this stuff was obsolete.
82183
82184 2006-06-28  Bruno Haible  <bruno@clisp.org>
82185
82186         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82187
82188 2006-06-28  Bruno Haible  <bruno@clisp.org>
82189
82190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82191         gt_TYPE_WCHAR_T.
82192
82193 2006-06-28  Bruno Haible  <bruno@clisp.org>
82194
82195         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82196         declaration for wcwidth.
82197         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82198
82199 2006-06-28  Bruno Haible  <bruno@clisp.org>
82200
82201         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82202         (mkdir): Define using _mkdir.
82203
82204 2006-06-28  Bruno Haible  <bruno@clisp.org>
82205
82206         * lib/getaddrinfo.h: Fix POSIX URL.
82207         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82208         _WIN32.
82209         (use_win32_p): Make static.
82210         (getaddrinfo): Reject service name if it is empty or does not consist
82211         solely of decimal digits, or if its value is > 65535.
82212         (getnameinfo): Remove useless casts.
82213
82214 2006-06-27  Simon Josefsson  <jas@extundo.com>
82215
82216         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82217         Eggert and Martin Lambers.
82218
82219 2006-06-27  Simon Josefsson  <jas@extundo.com>
82220
82221         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82222         Eggert and Martin Lambers.
82223
82224 2006-06-27  Bruno Haible  <bruno@clisp.org>
82225
82226         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82227         result to 0, not to empty.
82228         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82229
82230 2006-06-27  Bruno Haible  <bruno@clisp.org>
82231
82232         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82233
82234 2006-06-26  Simon Josefsson  <jas@extundo.com>
82235
82236         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82237         present.
82238
82239 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82240
82241         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82242         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82243         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82244
82245 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82246
82247         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82248
82249 2006-06-26  Bruno Haible  <bruno@clisp.org>
82250
82251         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82252
82253 2006-06-26  Bruno Haible  <bruno@clisp.org>
82254
82255         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82256
82257 2006-06-26  Bruno Haible  <bruno@clisp.org>
82258
82259         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82260         SGI C compiler in pre-C99 mode.
82261         Suggested by Mark D. Baushke and Larry Jones.
82262
82263 2006-06-26  Bruno Haible  <bruno@clisp.org>
82264
82265         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82266         WCHAR_MAX.
82267         Reported by Mark D. Baushke and Larry Jones.
82268
82269 2006-06-26  Bruno Haible  <bruno@clisp.org>
82270
82271         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82272         in pre-C99 mode.
82273         Suggested by Mark D. Baushke and Larry Jones.
82274
82275 2006-06-23  Simon Josefsson  <jas@extundo.com>
82276             Bruno Haible  <bruno@clisp.org>
82277
82278         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82279         Emit mostlyclean-local rule.
82280         (func_emit_tests_Makefile_am): Likewise.
82281         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82282
82283 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82284
82285         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82286
82287 2006-06-23  Bruno Haible  <bruno@clisp.org>
82288
82289         * tests/test-stdint.c: Update to match ISO C 99 Technical
82290         Corrigendum 1.
82291
82292 2006-06-23  Bruno Haible  <bruno@clisp.org>
82293
82294         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82295
82296 2006-06-23  Bruno Haible  <bruno@clisp.org>
82297
82298         * lib/stdint_.h: Treat IRIX like OpenBSD.
82299
82300 2006-06-23  Bruno Haible  <bruno@clisp.org>
82301
82302         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82303         ISO C 99 Technical Corrigendum 1.
82304
82305 2006-06-22  Simon Josefsson  <jas@extundo.com>
82306
82307         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82308         MinGW.
82309
82310 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82311
82312         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82313         needed.  Some compiler complained about some of them.  Problem reported
82314         by Larry Jones in
82315         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82316
82317 2006-06-21  Simon Josefsson  <jas@extundo.com>
82318
82319         * tests/test-getaddrinfo.c: New file.
82320
82321         * modules/getaddrinfo-tests: New file.
82322
82323         * MODULES.html.sh: Add inet_pton.
82324
82325         * modules/inet_pton: New file.
82326
82327 2006-06-21  Simon Josefsson  <jas@extundo.com>
82328
82329         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82330         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82331         of using the (limited) gnulib implementation on Windows XP.
82332
82333         * m4/inet_pton.m4: New file.
82334
82335 2006-06-21  Simon Josefsson  <jas@extundo.com>
82336
82337         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82338         variable.
82339
82340         * lib/socket_.h: Don't define WINVER.
82341
82342         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82343         slightly modified to work in gnulib.
82344
82345 2006-06-21  Simon Josefsson  <jas@extundo.com>
82346
82347         * doc/gnulib.texi (Windows sockets): Add.
82348
82349 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82350
82351         * lib/read-file.c (fread_file): Start with buffer allocation of
82352         0 bytes rather than 1 byte; this simplifies the code.
82353         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82354         code to free buffer and save/restore errno.
82355         (internal_read_file): Remove unused local.
82356
82357 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82358
82359         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82360         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82361         Problem reported by Denis Excoffier in
82362         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82363
82364 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82365
82366         * modules/sys_socket, modules/socklen: Include sys/types since
82367         FreeBSD 4.x's sys/socket.h needs it.
82368
82369 2006-06-19  Simon Josefsson  <jas@extundo.com>
82370
82371         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82372
82373 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82374
82375         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82376
82377 2006-06-19  Bruno Haible  <bruno@clisp.org>
82378
82379         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82380         and FULL_PATH_INTTYPES_H in angle brackets.
82381         Reported by Mark D. Baushke <mdb@gnu.org>.
82382
82383 2006-06-17  Eric Blake  <ebb9@byu.net>
82384
82385         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82386         errno.
82387
82388 2006-06-17  Bruno Haible  <bruno@clisp.org>
82389
82390         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82391         <sys/inttypes.h>.
82392
82393 2006-06-17  Bruno Haible  <bruno@clisp.org>
82394
82395         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82396         whether errno is declared. Assume <errno.h> declares errno.
82397
82398 2006-06-17  Bruno Haible  <bruno@clisp.org>
82399
82400         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82401
82402 2006-06-17  Bruno Haible  <bruno@clisp.org>
82403
82404         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82405         problem on Solaris 2.5.1.
82406
82407 2006-06-16  Eric Blake  <ebb9@byu.net>
82408
82409         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82410         * lib/unicodeio.c [!defined errno]: Likewise.
82411         * lib/strtol.c [!defined errno]: Likewise.
82412         * lib/strtod.c [!defined errno]: Likewise.
82413
82414 2006-06-15  Eric Blake  <ebb9@byu.net>
82415
82416         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82417
82418 2006-06-15  Eric Blake  <ebb9@byu.net>
82419
82420         * config/srclist.txt (ssize_t.m4): Lose sync.
82421
82422 2006-06-15  Bruno Haible  <bruno@clisp.org>
82423
82424         * modules/stdint (Files): Include m4/full-header-path.m4,
82425         m4/size_max.m4, m4/wchar_t.m4.
82426         (Makefile.am): Many more substitutions.
82427         * modules/stdint-tests: New file.
82428         * tests/test-stdint.c: New file.
82429
82430 2006-06-15  Bruno Haible  <bruno@clisp.org>
82431
82432         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82433         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82434         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82435         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82436         gl_CHECK_TYPE_SAME): New macros.
82437
82438 2006-06-15  Bruno Haible  <bruno@clisp.org>
82439
82440         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82441
82442 2006-06-15  Bruno Haible  <bruno@clisp.org>
82443
82444         * lib/stdint_.h: Rewritten to be fully auto-configured.
82445         Fixes bug on HP-UX/IA64.
82446
82447 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82448
82449         * lib/getdate.y (__attribute__): Don't define if already defined.
82450         Problem reported by Larry Jones.
82451         * lib/utimens.c (__attribute__): Likewise.
82452
82453 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82454
82455         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82456         reported by Andreas Schwab.
82457
82458 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82459             Bruno Haible  <bruno@clisp.org>
82460
82461         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82462         check for the declaration of strnlen and a run test that exposes the
82463         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82464         rpl_strndup.
82465
82466 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82467             Bruno Haible  <bruno@clisp.org>
82468
82469         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82470
82471 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82472
82473         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82474         compile test, for Tru64 4.0D.
82475
82476 2006-05-28  Karl Berry  <karl@gnu.org>
82477
82478         * config/srclist.txt (printf-args.c): lose sync.
82479
82480 2006-05-26  Martin Lambers  <marlam@marlam.de>
82481
82482         * lib/getpass.c: Updates the test for the native W32 API, and adds
82483         missing includes, thus fixing compilation warnings.
82484
82485 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82486
82487         * lib/exclude.c (exclude_fnmatch): New function.
82488         (excluded_file_name): Call exclude_fnmatch.
82489         * lib/exclude.h (excluded_file_name): New prototype
82490
82491 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82492
82493         * lib/tempname.c (small_open, large_open): New macros.
82494         (__open, __open64) [!_LIBC]: Remove.
82495         (__gen_tempname): Use small_open and large_open instead of __open
82496         and __open64.  This fixes a portability bug on HP-UX 11.11i
82497         reported by Simon Wing-Tang in
82498         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82499
82500 2006-05-24  Bruno Haible  <bruno@clisp.org>
82501
82502         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82503         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82504         Reported by Thorsten Maerz <torte@netztorte.de> via
82505         Aaron Stone <aaron@serendipity.cx>.
82506
82507 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82508
82509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82510         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82511         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82512         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82513         not really conditional on the cache.
82514         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82515
82516 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82517
82518         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82519         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82520         (my_usleep): Don't mishandle maximum value.
82521
82522 2006-05-19  Jim Meyering  <jim@meyering.net>
82523
82524         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82525
82526 2006-05-17  Bruno Haible  <bruno@clisp.org>
82527
82528         Cygwin portability.
82529         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82530
82531 2006-05-17  Bruno Haible  <bruno@clisp.org>
82532
82533         * lib/stdint_.h: Fix recognition of Cygwin.
82534
82535 2006-05-15  Bruno Haible  <bruno@clisp.org>
82536
82537         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82538         on libtool patch by Ralf Wildenhues.
82539
82540 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82541
82542         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82543         test for C99 conformance; (bool) 0.5 is an integer constant
82544         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82545         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82546
82547 2006-05-11  Simon Josefsson  <jas@extundo.com>
82548
82549         * m4/xvasprintf.m4: Fix obvious typo.
82550
82551 2006-05-11  Jim Meyering  <jim@meyering.net>
82552
82553         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82554         James Lemley.
82555
82556 2006-05-10  Simon Josefsson  <jas@extundo.com>
82557
82558         * lib/md4.c: Typo fix, update copyright years.
82559         (K1, K2): Don't use L because it turn computations into 64-bit on
82560         64-bit platforms.
82561
82562 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82563
82564         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82565         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82566         unwanted sign propagation, e.g., on hosts with 64-bit int.
82567         There still are some problems with reeelly weird theoretical hosts
82568         (e.g., 33-bit int) but it's not worth worrying about now.
82569         * lib/sha1.c (rol): Likewise.
82570         (K1, K2, K3, K4): Remove unnecessary L suffix.
82571
82572 2006-05-10  Bruno Haible  <bruno@clisp.org>
82573
82574         * lib/des.c: Cast to avoid warnings.
82575
82576 2006-05-09  Bruno Haible  <bruno@clisp.org>
82577
82578         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82579         (Depends-on): Depend also on xsize, stdarg.
82580         (configure.ac): Add gl_XVASPRINTF.
82581
82582 2006-05-09  Bruno Haible  <bruno@clisp.org>
82583
82584         * m4/xvasprintf.m4: New file.
82585
82586 2006-05-09  Bruno Haible  <bruno@clisp.org>
82587
82588         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82589         (EOVERFLOW): Define fallback value.
82590         (xstrcat): New function.
82591         (xvasprintf): Recognize the special case of a string concatenation.
82592
82593 2006-05-08  Eric Blake  <ebb9@byu.net>
82594
82595         * gnulib-tool (func_version): Base copyright year on CVS date.
82596         (func_emit_copyright_notice): New function.
82597         (func_emit_lib_Makefile_am): Use it.
82598         (func_emit_tests_Makefile_am): Likewise.
82599         (func_import): Likewise.
82600
82601 2006-05-08  Bruno Haible  <bruno@clisp.org>
82602
82603         * modules/stdarg: New file.
82604         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82605
82606 2006-05-08  Bruno Haible  <bruno@clisp.org>
82607
82608         * m4/stdarg.m4: New file, from GNU gettext.
82609
82610 2006-05-08  Bruno Haible  <bruno@clisp.org>
82611
82612         * config/srclist.txt (build-aux/config.rpath): different from latest
82613         release.
82614
82615 2006-05-08  Bruno Haible  <bruno@clisp.org>
82616
82617         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82618
82619 2006-05-05  Jim Meyering  <jim@meyering.net>
82620
82621         * m4/warning.m4: New file, derived from bison's file by the same name.
82622
82623 2006-05-03  Bruno Haible  <bruno@clisp.org>
82624
82625         * lib/stdint_.h: Shorter URL.
82626         * lib/inttypes.h: Likewise.
82627
82628 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82629
82630         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82631
82632 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82633
82634         * lib/verify.h: Document the internals better.  Most of this change
82635         was written by Bruno Haible.
82636
82637 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82638
82639         * doc/verify.texi: New file, partly based on a proposal by
82640         Bruno Haible.
82641
82642 2006-05-02  Bruno Haible  <bruno@clisp.org>
82643
82644         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82645         test from here...
82646         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82647
82648 2006-04-29  Bruno Haible  <bruno@clisp.org>
82649
82650         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82651         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82652
82653 2006-04-29  Bruno Haible  <bruno@clisp.org>
82654
82655         * gnulib-tool: Make --update option actually work.
82656
82657 2006-04-29  Bruno Haible  <bruno@clisp.org>
82658
82659         * doc/gcd.texi: New file.
82660         * doc/gnulib.texi: Include it.
82661
82662 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82663
82664         * lib/getdate.y (get_date): When adding relative date, start with the
82665         initial time, not with the result of the first mktime call.
82666
82667 2006-04-25  Bruno Haible  <bruno@clisp.org>
82668
82669         * gnulib-tool (func_import): Output the include directives in three
82670         blocks, sorted separately.
82671         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82672
82673 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82674
82675         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82676         to define main with arguments, for C++.  Reported by Eric Blake.
82677         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82678         Prefer 'int main ()' to 'int main (void)', for C++.
82679         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82680         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82681         for 'main', for C99 and C++.
82682
82683 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82684
82685         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82686         Don't assume that exit status -1 is valid.
82687         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82688         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82689         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82690         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82691         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82692         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82693         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82694         functions can be used without declaring them, or that you can
82695         exit with status -1.
82696         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82697
82698 2006-04-24  Karl Berry  <karl@gnu.org>
82699
82700         * config/srclist.txt (longdouble.m4): sync lost.
82701
82702 2006-04-24  Eric Blake  <ebb9@byu.net>
82703
82704         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82705
82706 2006-04-24  Bruno Haible  <bruno@clisp.org>
82707
82708         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82709         poll() implementation in AIX.
82710         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82711
82712 2006-04-24  Bruno Haible  <bruno@clisp.org>
82713
82714         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82715         assigned exactly once.
82716
82717 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82718             Bruno Haible  <bruno@clisp.org>
82719
82720         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82721         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82722         for AM_CPPFLAGS.
82723
82724 2006-04-23  Bruno Haible  <bruno@clisp.org>
82725
82726         * modules/copy-file: Depend on unistd.
82727         * modules/execute: Likewise.
82728         * modules/fatal-signal: Likewise.
82729         * modules/findprog: Likewise.
82730         * modules/mkdtemp : Likewise.
82731         * modules/pipe: Likewise.
82732         * modules/wait-process: Likewise.
82733
82734 2006-04-23  Bruno Haible  <bruno@clisp.org>
82735
82736         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82737         condition was already detected.
82738         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82739
82740 2006-04-23  Bruno Haible  <bruno@clisp.org>
82741
82742         * lib/copy-file.c: Include <unistd.h> unconditionally.
82743         * lib/execute.c: Likewise.
82744         * lib/fatal-signal.c: Likewise.
82745         * lib/findprog.c: Likewise.
82746         * lib/mkdtemp.c: Likewise.
82747         * lib/pipe.h: Likewise.
82748         * lib/pipe.c: Likewise.
82749         * lib/wait-process.h: Likewise.
82750
82751 2006-04-23  Bruno Haible  <bruno@clisp.org>
82752
82753         * gnulib-tool (func_usage): Fix --import description. Document
82754         --update.
82755         (func_import): Create temporary file in a temporary directory, if
82756         --dry-run is specified. Silence errors from 'grep' when there are no
82757         m4 files in $m4dir.
82758         (func_create_testdir): Silence errors from 'grep' when there are no
82759         m4 files in $m4dir.
82760         Reported by Karl Berry <karl@freefriends.org>.
82761
82762 2006-04-20  Bruno Haible  <bruno@clisp.org>
82763
82764         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82765         one argument, so that the code will be portable to Autoconf 2.60.
82766         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82767         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82768         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82769
82770 2006-04-19  Derek Price  <derek@ximbiot.com>
82771             Eric Blake  <ebb9@byu.net>
82772
82773         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82774         rather than "/full/path.h".  Update comment to match.  Shorten &
82775         generalize m4_translit call via AS_TR_CPP.
82776
82777 2006-04-19  Derek Price  <derek@ximbiot.com>
82778             Eric Blake  <ebb9@byu.net>
82779
82780         * lib/inttypes.h: Correct grammar in comment.
82781
82782 2006-04-18  Derek Price  <derek@ximbiot.com>
82783             Paul Eggert  <eggert@cs.ucla.edu>
82784
82785         * modules/inttypes: New file.
82786         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82787
82788 2006-04-18  Derek Price  <derek@ximbiot.com>
82789             Paul Eggert  <eggert@cs.ucla.edu>
82790
82791         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82792         New files.
82793
82794 2006-04-18  Derek Price  <derek@ximbiot.com>
82795             Paul Eggert  <eggert@cs.ucla.edu>
82796
82797         * lib/inttypes.h: New file.
82798         * lib/strtoimax.c: Assume <inttypes.h>.
82799
82800 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82801
82802         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82803         isn't mounted.  Problem reported by Kir Kolyshkin.
82804
82805 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82806
82807         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82808         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82809         Derek R. Price.
82810         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82811         implementation.
82812
82813 2006-04-12  Eric Blake  <ebb9@byu.net>
82814
82815         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82816         is now done automatically by the corresponding Autoconf macro.
82817
82818 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82819
82820         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82821         time_r.h.
82822
82823 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82824
82825         Merge regex changes from libc, removing some of our
82826         POSIX-conformance changes that were rejected and redoing them in a
82827         less-intrusive way.
82828
82829         * lib/regcomp.c (re_compile_internal, init_dfa):
82830         Length arg is now size_t, not Idx.  All uses changed.
82831         (peek_token): Forward decl now says internal_function.
82832         (__re_error_msgid, __re_error_msgid_idx):
82833         Now static rather than extern with attribute_hidden.
82834         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82835         For some reason libc prefers K&R style defns for external functions.
82836         (regerror) [!defined _LIBC]: Likewise.
82837         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82838         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82839         (build_range_exp, build_collating_symbol):
82840         Use K&R-style defn.
82841         (re_compile_fastmap): Use '\0' to memset, not 0.
82842         (utf8_sb_map): Make the calculations more obvious.
82843         (init_dfa, parse_bracket_exp, build_charclass_op):
82844         Call calloc and cast result, as glibc does.
82845         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82846         (build_range_exp, build_collating_symbol):
82847         Now internal functions.
82848
82849         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82850
82851         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82852         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82853         Don't depend on VMS; depend on __VMS instead, for POSIX
82854         namespace cleanness.
82855         (regoff_t): Define to ssize_t, not long int.
82856
82857         Remove the REG_ macros named below.  Instead, make the old names
82858         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82859         __USE_GNU_REGEX.
82860         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82861         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82862         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
82863         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
82864         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
82865         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
82866         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
82867         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
82868         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
82869         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
82870         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
82871         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
82872         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
82873         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
82874         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
82875         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
82876         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
82877         (REG_NREGS):
82878         Remove.  All uses replaced by the old RE_* names.
82879         (RE_BACKSLASH_ESCAPE_IN_LISTS):
82880         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
82881         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
82882         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
82883         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
82884         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
82885         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
82886         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
82887         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
82888         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
82889         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
82890         Don't bother having these macros be independent of each others'
82891         values, since they no longer exist in the POSIX name space.
82892
82893         Rename the following member names back to their old names,
82894         unless !__USE_GNU_REGEX.  All uses changed back.
82895         (buffer): Renamed from re_buffer.
82896         (allocated): Renamed from re_allocated.
82897         (used): Renamed from re_used.
82898         (syntax): Renamed from re_syntax.
82899         (fastmap): Renamed from re_fastmap.
82900         (translate): Renamed from re_translate.
82901         (can_be_null): Renamed from re_can_be_null.
82902         (regs_allocated): Renamed from re_regs_allocated.
82903         (fastmap_accurate): Renamed from re_fastmap_accurate.
82904         (no_sub): Renamed from re_no_sub.
82905         (not_bol): Renamed from re_not_bol.
82906         (not_eol): Renamed from re_not_eol.
82907         (newline_anchor): Renamed from re_newline_anchor.
82908         (num_regs): Renamed from rm_num_regs.
82909         (start): Renamed from rm_start.
82910         (end): Renamed from rm_end.
82911
82912         (free_state): Move up a bit.
82913
82914         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82915         #define to be empty.
82916         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82917         when that is what is intended.
82918         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82919         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82920         (MAX): New macro.
82921         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82922         All uses changed back to re_malloc, etc.  It's now the caller's
82923         responsibility to check for overflow; all callers changed.
82924         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82925         (re_x2nrealloc): Remove.
82926         (free_state): Remove decl.
82927
82928         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82929         (re_set_registers, re_exec):
82930         Use K&R-style defn.
82931
82932         2006-01-31  Roland McGrath  <roland@redhat.com>
82933
82934         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82935         Reported by Mike Frysinger <vapier@gentoo.org>.
82936
82937         2006-01-15  Andreas Jaeger  <aj@suse.de>
82938
82939         [BZ #1950]
82940         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82941         build_wcs_upper_buffer change.
82942         (build_wcs_upper_buffer): Change return type.
82943
82944         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82945
82946         * lib/regex_internal.h: Include <stdint.h> if available.
82947
82948         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82949
82950         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82951
82952         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82953
82954         * lib/regcomp.c: Adjust for changed secondary hash function.
82955
82956         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82957
82958         * lib/regex.h: Pretty printing.
82959         Clean up namespace a bit.
82960
82961         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82962
82963         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82964         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82965
82966         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82967                     Ulrich Drepper  <drepper@redhat.com>
82968
82969         [BZ #1302]
82970         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82971         changed.
82972         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82973
82974         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82975
82976         [BZ #281]
82977         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82978         * lib/regcomp.c: Remove unnecessary uses of
82979         unsigned RE_TRANSLATE_TYPE.
82980         * lib/regex_internal.h: Likewise.
82981         * lib/regex_internal.c: Likewise.
82982         * lib/regexec.c: Likewise.
82983         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82984
82985         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82986
82987         * lib/regexec.c (find_recover_state): Remove unnecessary
82988         initialization.
82989         (transit_state_bkref): Make DFA a const pointer.
82990         (get_subexp): Likewise.
82991         (check_arrival): Likewise.
82992         (update_cur_sifted_state): Likewise.
82993         (re_search_internal): Likewise.
82994         (prune_impossible_nodes): Likewise.
82995         (acquire_init_state_context): Likewise.
82996         (proceed_next_node): Likewise.
82997         (set_regs): Likewise.
82998         (free_fail_stack_return): Likewise.
82999         (check_arrival_expand_ecl): Mark DFA parameter as const.
83000         (check_arrival_expand_ecl_sub): Likewise.
83001         (check_subexp_limits): Likewise.
83002         (sub_epsilon_src_nodes):  Likewise.
83003         (add_epsilon_src_nodes):  Likewise.
83004         (merge_state_array): Likewise.
83005         (update_regs): Likewise.
83006         (build_trtable): Likewise.
83007         (sift_states_backward): Mark MCTX parameter as const.
83008         (build_sifted_states): Likewise.
83009         (update_cur_sifted_state): Likewise.
83010         (sift_states_mkref): Likewise.
83011         (check_arrival_expand_ecl): Mark eclosure as const.
83012         (check_dst_limits_calc_pos_1): Likewise.
83013         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83014         pointer.
83015
83016         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83017
83018         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83019         (transit_state_sb): Likewise.
83020         (transit_state_mb): Likewise.
83021         (sift_states_iter_mb): Likewise.
83022         (check_arrival_add_next_nodes): Likewise.
83023         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83024         [_LIBC] (re_search_2_stub): Use mempcpy.
83025
83026         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83027         mbrtowc for very simple UTF-8 case.
83028
83029         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83030         a pointer-to-const.
83031         (re_acquire_state_context): Likewise.
83032         * lib/regex_internal.h: Adjust prototypes.
83033
83034         * lib/regex.c: Prevent using C++ compilers.
83035
83036         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83037         (re_acquire_state_context): Likewise.
83038
83039 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         * modules/regex (Depends-on): Add ssize_t.
83042
83043 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83044
83045         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83046         translation table.
83047
83048 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83049
83050         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83051
83052 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83053             Bruno Haible  <bruno@clisp.org>
83054
83055         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83056         <sys/types.h> and <inttypes.h>.
83057
83058 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83059
83060         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83061         `__error_t_defined', so argp.h will not typedef the former.
83062
83063 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83064
83065         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83066         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83067         glibc names.  Even if glibc is changed to conform to POSIX, the
83068         traditional names will be available anyway, since regex depends on
83069         the extensions module.  Also, fix a longstanding typo in the
83070         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83071         reported by Emanuele Giaquinta.  Also, change sense of cached
83072         variable, so that the message makes sense.
83073
83074 2006-03-24  Simon Josefsson  <jas@extundo.com>
83075
83076         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83077         including some doc fixes.
83078         (base64_encode_alloc): Fix +1 bug on allocation failures.
83079
83080 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83081
83082         * lib/base64.c (base64_encode): Do not read past end of array with
83083         unsanitized input on systems with CHAR_BIT > 8.
83084
83085 2006-03-24  Eric Blake  <ebb9@byu.net>
83086
83087         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83088
83089 2006-03-22  Karl Berry  <karl@gnu.org>
83090
83091         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83092         * config/srclistvars.sh (COREUTILS): new var.
83093
83094 2006-03-17  Jim Meyering  <jim@meyering.net>
83095
83096         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83097         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83098
83099 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83100
83101         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83102         no longer needs it.  Instead, check that regoff_t is as least
83103         as wide as ptrdiff_t.
83104
83105         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83106         so that our regex.h stays compatible with the installed regex.
83107         This is helpful for installers who configure --without-included-regex.
83108         Problem reported by Emanuele Giaquinta.
83109
83110 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83111
83112         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83113         Typedef to long int, not to off_, as POSIX will likely change
83114         in that direction.
83115
83116 2006-03-15  Eric Blake  <ebb9@byu.net>
83117
83118         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83119
83120 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83121
83122         * lib/argp-help.c (validate_uparams): Fix typo
83123         * lib/argp-parse.c (argp_default_options): Consistently begin help
83124         messages with a lowercase letter.
83125
83126 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83127
83128         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83129         overrun buffers and shouldn't be used (much as gets shouldn't be
83130         used).
83131         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83132
83133 2006-03-08  Simon Josefsson  <jas@extundo.com>
83134
83135         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83136         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83137
83138 2006-03-08  Simon Josefsson  <jas@extundo.com>
83139
83140         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83141         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83142
83143 2006-03-08  Simon Josefsson  <jas@extundo.com>
83144
83145         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83146         signal that configure disabled the device.
83147
83148 2006-03-08  Simon Josefsson  <jas@extundo.com>
83149
83150         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83151         languages.
83152
83153 2006-03-07  Simon Josefsson  <jas@extundo.com>
83154
83155         * modules/getopt (Depends-on): Add unistd.
83156
83157         * modules/unistd: New file.
83158
83159 2006-03-07  Simon Josefsson  <jas@extundo.com>
83160
83161         * modules/gc-random: New file.
83162
83163 2006-03-07  Simon Josefsson  <jas@extundo.com>
83164
83165         * m4/unistd_h.m4: New file.
83166
83167 2006-03-07  Simon Josefsson  <jas@extundo.com>
83168
83169         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83170         test to be side-effect free by storing the result in the cache
83171         variable gl_cv_lib_readline, and moving the assignment of
83172         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83173         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83174
83175 2006-03-07  Simon Josefsson  <jas@extundo.com>
83176
83177         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83178         error on missing devices (the functions will return an error).
83179
83180         * m4/gc.m4: Move random stuff to gc-random.m4
83181
83182 2006-03-07  Simon Josefsson  <jas@extundo.com>
83183
83184         * lib/unistd_.h: New file.
83185
83186 2006-03-07  Simon Josefsson  <jas@extundo.com>
83187
83188         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83189
83190 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83191
83192         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83193         Problem reported by Juan Manuel Guerrero.
83194
83195 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83196
83197         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83198         the unistd module.
83199         * lib/getlogin_r.c: Likewise.
83200         * lib/getlogin_r.h: Likewise.
83201         * lib/glob.c: Likewise.
83202         * lib/pagealign_alloc.c: Likewise.
83203         * lib/unistd_.h: Remove; no longer needed.
83204
83205 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83206
83207         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83208         Add unistd.
83209         * modules/c-stack (Depends-on): Add unistd.
83210         * modules/getlogin_r: Likewise.
83211         * modules/glob: Likewise.
83212         * modules/pagealign_alloc: Likewise.
83213         * modules/unistd (Files): Remove lib/unistd_.h.
83214         (EXTRA_DIST): Remove.
83215         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83216         need unistd_.h.
83217         (MOSTLYCLEANFILES): Remove unistd.h-t.
83218
83219 2006-03-03  Simon Josefsson  <jas@extundo.com>
83220
83221         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83222
83223 2006-03-03  Simon Josefsson  <jas@extundo.com>
83224
83225         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83226         libidn and bison.
83227
83228 2006-03-03  Simon Josefsson  <jas@extundo.com>
83229
83230         * build-aux/maint.mk: Add indent target.
83231
83232 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83233
83234         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83235         our replacement poll.h in any case, to avoid a differing
83236         declaration from a system header.  Seen on AIX.
83237
83238 2006-03-01  Simon Josefsson  <jas@extundo.com>
83239
83240         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83241         <kasal@ucw.cz>.
83242
83243 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83244
83245         * modules/gettime (Depends-on): Add extensions module.
83246         * modules/nanosleep (Depends-on): Likewise.
83247         * modules/settime (Depends-on): Likewise.
83248
83249 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83250
83251         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83252         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83253         pedantically.
83254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83255         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83256
83257         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83258         not "==".  Reported by Ralf Wildenhues.
83259
83260 2006-03-01  Karl Berry  <karl@gnu.org>
83261
83262         * doc/Copyright/request-*: new files, synced from gnuorg.
83263
83264 2006-03-01  Karl Berry  <karl@gnu.org>
83265
83266         * config/srclist.txt (Copyright/*): new entries.
83267
83268 2006-02-28  Simon Josefsson  <jas@extundo.com>
83269
83270         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83271
83272 2006-02-27  Simon Josefsson  <jas@extundo.com>
83273
83274         * lib/base64.h: Indent #define's.  From Jim Meyering
83275         <jim@meyering.net>.
83276
83277 2006-02-27  Jim Meyering  <jim@meyering.net>
83278
83279         Revert the change of 2006-02-24, so these files can continue
83280         to be sync'd from gettext.
83281         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83282         of `config.h'.
83283
83284 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83285
83286         * modules/intprops: New file.
83287         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83288         Add intprops.
83289         * modules/getloadavg (Files): Remove lib/intprops.h.
83290         (Depends-on): Add intprops.
83291         * modules/human: Likewise.
83292         * modules/inttostr: Likewise.
83293         * modules/openat: Likewise.
83294         * modules/sig2str: Likewise.
83295         * modules/userspec: Likewise.
83296         * modules/utimecmp: Likewise.
83297         * modules/xnanosleep: Likewise.
83298         * modules/xstrtol: Likewise.
83299
83300 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83301
83302         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83303         * modules/lock-tests (TESTS): Use $(EXEEXT).
83304         * modules/tls-tests: Likewise.
83305         * modules/argp-tests: Likewise.
83306         (check_PROGRAMS): New var, replacing...
83307         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83308
83309 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83310
83311         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83312         `config.h'.
83313
83314 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83315
83316         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83317
83318 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83319
83320         Sync from coreutils.
83321         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83322         gl_CHDIR_SAFER.
83323
83324 2006-02-22  Jim Meyering  <jim@meyering.net>
83325
83326         Sync from coreutils.
83327         * m4/chdir-safer.m4: New file.
83328
83329 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83330
83331         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83332         AT_FDCWD exceeds INT_MAX.
83333         * lib/openat.h (AT_FDCWD): Likewise.
83334
83335 2006-02-17  Eric Blake  <address@hidden>
83336
83337         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83338
83339 2006-02-16  Simon Josefsson  <jas@extundo.com>
83340
83341         * modules/getaddrinfo (Depends-on): Add sys_socket.
83342
83343 2006-02-15  Simon Josefsson  <jas@extundo.com>
83344
83345         * build-aux/maint.mk: Add dsyntax-check rule.
83346
83347 2006-02-15  Eric Blake  <ebb9@byu.net>
83348
83349         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83350         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83351         'present but cannot compile' warnings on cygwin.
83352         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83353         use ws2tcpip.h if sys/socket.h works.
83354         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83355         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83356
83357 2006-02-14  Simon Josefsson  <jas@extundo.com>
83358
83359         * modules/maintainer-makefile (Files): Rename.
83360
83361         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83362         and (the local) Makefile.cfg to maint-cfg.mk.
83363
83364         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83365         to the latter.
83366
83367         * modules/maintainer-makefile: New module.
83368
83369         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83370         severaly stripped to make it possible to build it up from scratch
83371         with reliable tests.
83372
83373         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83374         fixes to permit overriding the default actions when configure and
83375         makefile are not available.
83376
83377 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83378
83379         Sync from coreutils.
83380         * modules/lstat (Depends-on): Don't depend on xalloc.
83381         (License): Change from GPL to LGPL, since this is now simply a
83382         replacement for a libc function.
83383
83384 2006-02-14  Jim Meyering  <jim@meyering.net>
83385
83386         Sync from coreutils.
83387
83388         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83389         failure on deficient systems, and simplify gnulib lgpl dependencies.
83390         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83391         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83392
83393         * lib/xalloc-die.c: Remove unused definition of N_.
83394
83395 2006-02-14  Jim Meyering  <jim@meyering.net>
83396
83397         Sync from coreutils.
83398         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83399         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83400         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83401         double-quote uses of that variable, to accommodate the rare case in
83402         which getmntent is available in none of the libraries checked.  This
83403         happens at least on FreeBSD 5.0.
83404
83405 2006-02-13  Simon Josefsson  <jas@extundo.com>
83406
83407         * gnulib-tool (Usage): Fix --import, from
83408         karl@freefriends.org (Karl Berry).
83409
83410 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83411
83412         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83413
83414 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83415
83416         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83417         "autoupdate" on 2005-12-12.
83418
83419 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83420
83421         * modules/closeout (Depends-on): Remove atexit.
83422
83423 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83424
83425         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83426         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83427
83428 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83429
83430         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83431         __EXTENSIONS__ if this causes compilation to fail.  Problem
83432         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83433         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83434
83435 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83436
83437         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83438         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83439         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83440         All uses changed.
83441
83442 2006-01-26  Simon Josefsson  <jas@extundo.com>
83443
83444         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83445         prototype is visible on mingw32.
83446
83447         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83448         for mingw32.
83449
83450         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83451         mingw32).
83452
83453 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83454
83455         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83456         attempt to open for write; this always fails, at least on POSIX
83457         hosts.  This reinstates the 2006-01-09 change, which was
83458         inadvertently removed.
83459
83460 2006-01-26  Bruno Haible  <bruno@clisp.org>
83461
83462         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83463         Reported by Paul Eggert.
83464
83465 2006-01-26  Bruno Haible  <bruno@clisp.org>
83466             Paul Eggert  <eggert@cs.ucla.edu>
83467
83468         * lib/stdbool_.h (_Bool)
83469         [(! (defined __cplusplus || defined __BEOS__)
83470           && !defined __GNUC__
83471           && !(defined __HP_cc || defined __xlc__
83472                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83473                || defined __sgi))]:
83474         #define to signed char in these cases too; this simplifies
83475         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83476         etc., separately) and makes it more conservative.
83477
83478 2006-01-25  Simon Josefsson  <jas@extundo.com>
83479
83480         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83481         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83482         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83483
83484 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83485
83486         * lib/argp-namefrob.h: Bugfix. Remove stray #
83487
83488 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83489
83490         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83491         so that we test the test.
83492         Check for yet another HP-UX cc bug involving *bool |= bool.
83493
83494 2006-01-25  Karl Berry  <karl@gnu.org>
83495
83496         * config/srclist.txt (vasnprintf.c): sync lost.
83497
83498 2006-01-25  Jim Meyering  <jim@meyering.net>
83499
83500         Sync from the stable (b5) branch of coreutils:
83501
83502         * lib/fts.c (fts_children): Don't let close() clobber errno from
83503         failed fchdir().
83504
83505         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83506         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83507         a dangling symlink.  That can also happen at least for ELOOP.
83508         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83509         FYI, this bug predates the inclusion of fts.c in coreutils.
83510
83511         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83512         in their own block, so pre-c99 compilers don't object.
83513
83514         Avoid the double-free (first in fts_read, second in fts_close) that
83515         would occur when an `active' directory is made inaccessible (e.g.,
83516         via chmod a-x) during a traversal.
83517         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83518         before returning.  Reproduce this failure by
83519         mkdir -p a/b; cd a; chmod a-x . b
83520         Reported by Stavros Passas.
83521
83522 2006-01-25  Jim Meyering  <jim@meyering.net>
83523
83524         * lib/fileblocks.c: Remove more useless parentheses.
83525         * lib/readutmp.h: Likewise.
83526
83527 2006-01-25  Bruno Haible  <bruno@clisp.org>
83528
83529         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83530         warnings.
83531         Reported by Paul Eggert.
83532
83533 2006-01-25  Bruno Haible  <bruno@clisp.org>
83534
83535         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83536         rid of a trap command. For Solaris sh.
83537         Reported by Mark D. Baushke <mdb@gnu.org>.
83538
83539 2006-01-24  Simon Josefsson  <jas@extundo.com>
83540
83541         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83542         Bruno.
83543
83544 2006-01-24  Karl Berry  <karl@gnu.org>
83545
83546         * config/srclist.txt (argp-namefrob.h): sync lost.
83547
83548 2006-01-24  Jim Meyering  <jim@meyering.net>
83549
83550         * modules/openat (Files): Add lib/intprops.h.
83551         From Mark D. Baushke.
83552
83553 2006-01-24  Jim Meyering  <jim@meyering.net>
83554
83555         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83556         Reported by Mark D. Baushke.
83557
83558 2006-01-24  Jim Meyering  <jim@meyering.net>
83559
83560         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83561
83562 2006-01-24  Bruno Haible  <bruno@clisp.org>
83563
83564         * modules/strnlen (Maintainer): Change from glibc to all.
83565
83566 2006-01-24  Bruno Haible  <bruno@clisp.org>
83567
83568         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83569         Patch by Paul Eggert.
83570
83571 2006-01-24  Bruno Haible  <bruno@clisp.org>
83572
83573         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83574         already has it.
83575         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83576         2005-11-26.
83577
83578         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83579         'signed char' to avoid problems with the built-in _Bool type.
83580         Reported by Paul Eggert on 2005-11-26.
83581
83582 2006-01-24  Bruno Haible  <bruno@clisp.org>
83583
83584         * gnulib-tool (func_import): Avoid constructing complicated sed
83585         expressions inside backquote.
83586         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83587
83588 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83589
83590         These changes imported from libc.
83591         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83592         test and two separate function calls.
83593         * lib/strndup.c (__strndup): Add libc_hidden_def.
83594
83595 2006-01-23  Simon Josefsson  <jas@extundo.com>
83596
83597         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83598         Remove the test_*_SOURCES variable: automake infers it by default.
83599         * modules/tls-tests: Likewise.
83600
83601 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83602
83603         Work around porting bugs reported by Dieter in
83604         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83605         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83606         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83607         Include "getopt.h" first, to check interface.
83608         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83609         !HAVE_DECL_GETENV.
83610         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83611         (__strndup): Revert to K&R-style function dfns, the glibc style.
83612         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83613         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83614         Include strnlen.h first, to get prototype properly.
83615         (strnlen): Renamed from __strnlen.
83616         Remove weak alias.
83617
83618 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83619
83620         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83621
83622 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83623
83624         * config/srclist.txt: Adjust to reflect glibc reorganization.
83625         This affects only comments.
83626
83627 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83628
83629          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83630          Reported by Bruce Korb <bkorb@gnu.org>.
83631
83632 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83633
83634         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83635         to pacify gcc -Wswitch-default.
83636
83637 2006-01-22  Bruno Haible  <bruno@clisp.org>
83638
83639         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83640         temporary buffer for sprintf, take into account the precision also
83641         for 'd', 'i', 'u', 'o', 'x', 'X'.
83642
83643 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83644
83645         * modules/argp-tests: New module
83646         * tests/test-argp.c: New file
83647         * tests/test-argp-2.sh: New file
83648
83649 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83650
83651         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83652         (__argp_base_name): Removed
83653         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83654         typo.
83655         (__argp_base_name): Provide macro definition or extern declaration
83656         depending on the configuration
83657
83658 2006-01-20  Simon Josefsson  <jas@extundo.com>
83659
83660         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83661
83662 2006-01-20  Simon Josefsson  <jas@extundo.com>
83663
83664         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83665
83666 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83667
83668         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83669         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83670         Suggested by Bruno Haible.
83671
83672 2006-01-20  Karl Berry  <karl@gnu.org>
83673
83674         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83675         until changes propagate, I guess.
83676
83677 2006-01-19  Simon Josefsson  <jas@extundo.com>
83678
83679         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83680
83681 2006-01-19  Simon Josefsson  <jas@extundo.com>
83682
83683         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83684
83685 2006-01-19  Simon Josefsson  <jas@extundo.com>
83686
83687         * gnulib-tool: Set check_PROGRAMS.
83688
83689         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83690         modules/des-tests, modules/gc-arcfour-tests,
83691         modules/gc-arctwo-tests, modules/gc-des-tests,
83692         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83693         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83694         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83695         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83696         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83697         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83698         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83699         test_*_SOURCES.
83700
83701 2006-01-18  Simon Josefsson  <jas@extundo.com>
83702
83703         * modules/socklen (Depends-on): Depend on sys_socket.
83704
83705 2006-01-18  Simon Josefsson  <jas@extundo.com>
83706
83707         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83708         modules/des-tests, modules/gc-arcfour-tests,
83709         modules/gc-arctwo-tests, modules/gc-des-tests,
83710         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83711         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83712         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83713         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83714         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83715         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83716         $(EXEEXT) to automake TESTS variable, for mingw32.
83717
83718 2006-01-17  Simon Josefsson  <jas@extundo.com>
83719
83720         * modules/socklen (Include): Need sys/socket.h.
83721
83722 2006-01-17  Bruno Haible  <bruno@clisp.org>
83723
83724         * modules/ssize_t (Include): Add <sys/types.h>.
83725
83726 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83727
83728         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83729         it's not portable and it doesn't work with cross-compiles.
83730         Problem reported by Bruno Haible.  Fix missing-$ typo in
83731         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83732         -zignore from being used with Sun's C compiler.
83733
83734 2006-01-12  Simon Josefsson  <jas@extundo.com>
83735
83736         * lib/base64.c: Fix warning, reported by Bruno Haible
83737         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83738
83739 2006-01-12  Bruno Haible  <bruno@clisp.org>
83740
83741         * modules/ldd: New file.
83742         * build-aux/ldd.sh.in: New file.
83743         * MODULES.html.sh (Support for building libraries and executables): Add
83744         ldd.
83745
83746 2006-01-12  Bruno Haible  <bruno@clisp.org>
83747
83748         * m4/ldd.m4: New file.
83749
83750 2006-01-12  Bruno Haible  <bruno@clisp.org>
83751
83752         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83753         endless loop while replacing $auxdir with build-aux.
83754
83755 2006-01-11  Simon Josefsson  <jas@extundo.com>
83756
83757         * lib/stdint_.h (SIZE_MAX): Add missing (.
83758
83759 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83760
83761         Sync from coreutils.
83762         * lib/md5.c: Fix commentary typos.
83763         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83764         * lib/md5.h (__attribute__): Remove; unused.
83765         * lib/sha1.c: Fix commentary to match md5 better.
83766         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83767         so that we don't need to worry about alignment.  All uses changed.
83768         This merges the 2005-10-28 md5 change into sha1.
83769
83770 2006-01-11  Jim Meyering  <jim@meyering.net>
83771
83772         Sync from coreutils.
83773         * lib/md5.c (OP): Fix spacing.
83774
83775 2006-01-11  Bruno Haible  <bruno@clisp.org>
83776
83777         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83778         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83779         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83780
83781 2006-01-11  Bruno Haible  <bruno@clisp.org>
83782
83783         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83784         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83785         the "early" section as well.
83786
83787 2006-01-11  Bruno Haible  <bruno@clisp.org>
83788
83789         Avoid "ar: no archive members specified" error on MacOS X.
83790         * gnulib-tool (func_modules_add_dummy): New function.
83791         (func_import, func_create_testdir): Invoke it.
83792
83793 2006-01-11  Bruno Haible  <bruno@clisp.org>
83794
83795         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83796         with $auxdir in AC_CONFIG_FILES statements.
83797
83798 2006-01-11  Bruno Haible  <bruno@clisp.org>
83799
83800         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83801         Initialize also noinst_HEADERS to empty.
83802
83803 2006-01-11  Bruno Haible  <bruno@clisp.org>
83804
83805         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83806         variables.
83807         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83808         autoreconf.
83809
83810 2006-01-11  Bruno Haible  <bruno@clisp.org>
83811
83812         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83813         overridable by the user.
83814         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83815
83816 2006-01-10  Simon Josefsson  <jas@extundo.com>
83817
83818         * modules/sys_socket: New file.
83819
83820 2006-01-10  Simon Josefsson  <jas@extundo.com>
83821
83822         * m4/sys_socket_h.m4: New file.
83823
83824 2006-01-10  Simon Josefsson  <jas@extundo.com>
83825
83826         * lib/socket_.h: New file.
83827
83828 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83829
83830         * modules/readutmp (Maintainer): Add myself.
83831
83832 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83833
83834         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83835         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83836         People who are still concerned with buggy memcmp implementations
83837         can invoke gl_FUNC_MEMCMP themselves.
83838
83839 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83840
83841         * lib/regex_internal.h (BITSET_WORD_BITS):
83842         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83843         preprocessor mishandles large unsigned values as if they were signed.
83844         Problem reported by Claudio Fontana in
83845         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83846
83847 2006-01-10  Jim Meyering  <jim@meyering.net>
83848
83849         Avoid the double-free (first in fts_read, second in fts_close) that
83850         would occur when an `active' directory is made inaccessible (e.g.,
83851         via chmod a-x) during a traversal.
83852         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83853         before returning.  Reproduce this failure by
83854         mkdir -p a/b; cd a; chmod a-x . b
83855         Reported by Stavros Passas.
83856
83857         Sync from coreutils.
83858         * lib/sha1.c: Tweak grammar in a comment.
83859
83860 2006-01-10  Jim Meyering  <jim@meyering.net>
83861
83862         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
83863         Patch by Joerg Sonnenberger.
83864
83865 2006-01-10  Bruno Haible  <bruno@clisp.org>
83866
83867         * modules/readutmp: Depend on module free.
83868         * modules/strtok_r: Depend on module restrict.
83869
83870 2006-01-10  Bruno Haible  <bruno@clisp.org>
83871
83872         * modules/gettext (configure.ac): Add an invocation of
83873         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
83874
83875 2006-01-10  Bruno Haible  <bruno@clisp.org>
83876
83877         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
83878         Reported by Werner Lemberg <wl@gnu.org>.
83879
83880 2006-01-10  Bruno Haible  <bruno@clisp.org>
83881
83882         * lib/localcharset.c: Update from GNU gettext.
83883
83884 2006-01-10  Bruno Haible  <bruno@clisp.org>
83885
83886         * lib/argp.h (__const): Remove macro. Use const instead.
83887         * lib/argp-fmtstream.h (__const): Likewise.
83888         * lib/glob_.h (__const): Remove macro.
83889         * lib/glob-libc.h: Use const instead of __const.
83890
83891 2006-01-10  Bruno Haible  <bruno@clisp.org>
83892
83893         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
83894         variable.
83895         Needed to avoid an automake error regarding the 'gettext' module.
83896
83897 2006-01-09  Simon Josefsson  <jas@extundo.com>
83898
83899         * modules/inet_ntop (Depends-on): Add restrict.
83900
83901 2006-01-09  Simon Josefsson  <jas@extundo.com>
83902
83903         * modules/gc-rijndael-tests (License): Put under LGPL.
83904
83905         * modules/gc-des-tests (License): Likewise.
83906
83907         * modules/gc-arcfour-tests (License): Likewise.
83908
83909         * modules/gc-arctwo-tests (License): Likewise.
83910
83911         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83912
83913         * modules/gc-hmac-sha1-tests (Files): Likewise.
83914
83915         * modules/gc-hmac-md5-tests (License): Likewise.
83916
83917         * modules/gc-sha1-tests (License): Likewise.
83918
83919         * modules/gc-md5-tests (License): Likewise.
83920
83921         * modules/gc-md4-tests (License): Likewise.
83922
83923         * modules/gc-md2-tests (License): Likewise.
83924
83925         * modules/gc-tests (License): Likewise.
83926
83927         * modules/des-tests (License): Likewise.
83928
83929         * modules/md4-tests (License): Likewise.
83930
83931         * modules/md2-tests (License): Likewise.
83932
83933 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83934
83935         Sync from coreutils:
83936
83937         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83938         * modules/lib-ignore: New file.
83939         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83940         chdir-safer.m4, lchmod.m4.
83941         * modules/openat: Add mkdirat.c, openat-priv.h.
83942
83943 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83944
83945         Sync from coreutils.
83946         * m4/lib-ignore.m4: New file.
83947         * m4/lchmod.m4: New file.
83948
83949 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83950
83951         Sync from coreutils.
83952         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83953         for write access: POSIX says that must fail.
83954         * lib/fts.c (diropen): Likewise.
83955         * lib/save-cwd.c (save_cwd): Likewise.
83956         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83957         well, for minor improvements on hosts that lack O_DIRECTORY.
83958         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83959         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83960         Fall back on chown if open failed with EACCES.
83961
83962         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83963         Report an error at compile-time if only a 1-second nominal clock
83964         resolution is found.
83965
83966         * lib/lchmod.h: New file.
83967         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83968         (make_dir_parents): Use lchown rather than chown, and
83969         lchmod rather than chmod.
83970
83971         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83972         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83973         "proc" reported by n0dalus.
83974
83975         * lib/mountlist.c: Include <limits.h>.
83976         (dev_from_mount_options)
83977         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83978         New function.  It no longer assumes "dev=" has the System V meaning
83979         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83980         (read_file_system_list)
83981         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83982         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83983         dev= in that case.
83984
83985         * lib/posixtm.h (PDS_PRE_2000): New macro.
83986         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83987         allow_century.  All usages changed.  Reject dates outside the range
83988         1969-1999 if PDS_PRE_2000 is used.
83989
83990 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83991
83992         Sync from coreutils.
83993         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83994         (Time of day items): Mention the possibility of leap seconds.
83995         Problem reported by Dr. David Alan Gilbert.
83996
83997 2006-01-09  Jim Meyering  <jim@meyering.net>
83998
83999         Sync from coreutils.
84000
84001         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84002
84003         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84004
84005         * lib/modechange.c (mode_compile): Reject an invalid mode string
84006         that starts with an octal digit.  From Andreas Gruenbacher.
84007
84008         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84009         and dup to open_safer and dup_safer, respectively.
84010         (openat_permissive): Fix typo in comment.
84011
84012         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84013         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84014         (_): Remove; no longer needed.
84015         (openat): Renamed from rpl_openat; no need for rpl_openat
84016         since openat.h renames openat for us.
84017         Replace most of the body with a call to openat_permissive,
84018         to avoid duplicate code.
84019         Port to (probably hypothetical) environments were mode_t is
84020         wider than int.
84021         (openat_permissive): Require mode arg, so that we can check
84022         types better.  Put it just after flags.  Change cwd failure
84023         indicator from pointer-to-bool to pointer-to-errno-value.
84024         All callers changed.
84025         Invoke openat_save_fail and/or openat_restore_fail if
84026         cwd_errno is null, so that openat can call us.
84027         (openat_permissive, fdopendir, fstatat, unlinkat):
84028         Simplify errno handling to avoid some duplicate code,
84029         as it's OK to set errno on success.
84030         * lib/openat.h: Revamp code so that function macros depend on
84031         __OPENAT_PREFIX only, not also on AT_FDCWD.
84032         (openat_ro): Remove.  Caller changed to use openat_permissive.
84033         (openat_permissive): Now a macro, if not a function.
84034         (openat_restore_fail, openat_save_fail): Now always functions,
84035         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84036
84037         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84038         and openat.c.
84039         * lib/mkdirat.c: Include openat-priv.h.
84040         Remove definitions of macros defined therein.
84041         * lib/openat.c: Likewise.
84042
84043         * lib/mkdirat.c (mkdirat): New file and function.
84044         * lib/openat.h (mkdirat): Declare.
84045
84046         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84047
84048         * lib/openat.h (openat_permissive): Declare.
84049         (openat_ro): Define.
84050
84051         * lib/openat.c (EXPECTED_ERRNO): New macro.
84052         (openat_permissive): New function -- used in remove.c rewrite.
84053         (all functions): Set errno just before returning, only if there
84054         was an actual failure.
84055         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84056
84057         Emulate openat-family functions using Linux's procfs, if possible.
84058         Idea and some code based on Ulrich Drepper's glibc changes.
84059
84060         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84061         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84062         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84063         before falling back on save_cwd and restore_cwd.
84064         (fdopendir, fstatat, unlinkat): Likewise.
84065
84066         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84067         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84068
84069         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84070         as second argument to va_arg.  Otherwise, some versions of gcc
84071         warn that `if this code is reached, the program will abort'.
84072
84073 2006-01-09  Jim Meyering  <jim@meyering.net>
84074
84075         Sync from coreutils.
84076         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84077         Require openat-priv.h.
84078
84079 2006-01-09  Bruno Haible  <bruno@clisp.org>
84080
84081         * modules/strnlen (Include): Use strnlen.h.
84082
84083 2006-01-09  Bruno Haible  <bruno@clisp.org>
84084
84085         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84086
84087 2006-01-09  Bruno Haible  <bruno@clisp.org>
84088
84089         * lib/sysexit_.h (EX_OK): New macro.
84090         Suggested by Martin Lambers <marlam@marlam.de>.
84091
84092 2006-01-09  Bruno Haible  <bruno@clisp.org>
84093
84094         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84095         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84096
84097 2006-01-09  Bruno Haible  <bruno@clisp.org>
84098
84099         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84100         numbers.
84101
84102 2006-01-09  Bruno Haible  <bruno@clisp.org>
84103
84104         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84105         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84106         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84107         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84108
84109 2006-01-09  Bruno Haible  <bruno@clisp.org>
84110
84111         * build-aux/javacomp.sh.in: New file, moved from lib/.
84112         * modules/javacomp-script (Files): Update.
84113         (configure.ac): Add AC_CONFIG_FILES invocation.
84114         (EXTRA_DIST): Remove variable.
84115
84116         * build-aux/javaexec.sh.in: New file, moved from lib/.
84117         * modules/javaexec (Files): Update.
84118         (configure.ac): Add AC_CONFIG_FILES invocation.
84119         (EXTRA_DIST): Remove javaexec.sh.in.
84120
84121         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84122         * modules/csharpcomp-script (Files): Update.
84123         (configure.ac): Add AC_CONFIG_FILES invocation.
84124         (EXTRA_DIST): Remove variable.
84125
84126         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84127         * modules/csharpexec (Files): Update.
84128         (configure.ac): Add AC_CONFIG_FILES invocation.
84129         (EXTRA_DIST): Remove csharpexec.sh.in.
84130
84131 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84132
84133         Sync from coreutils.
84134
84135         Add POSIX ACL support
84136         * lib/acl.h (copy_acl, set_acl): Add declarations.
84137         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84138         systems other than Linux.
84139         (chmod_or_fchmod): New function: use fchmod when possible,
84140         and chmod otherwise.
84141         (file_has_acl): Add a POSIX ACL implementation, with a
84142         Linux-specific subcase.
84143         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84144         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84145         acls are unsupported.
84146         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84147         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84148         are unsupported.
84149
84150 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84151
84152         Sync from coreutils.
84153         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84154
84155 2006-01-07  Bruno Haible  <bruno@clisp.org>
84156
84157         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84158         gl_EARLY.
84159
84160 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84161
84162         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84163         Problem reported for Mingw by Mark Junker.
84164
84165 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84166
84167         * README: Gnulib normally doesn't generate a tarball.
84168
84169 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84170
84171         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84172         long int, not int, for nanosecond counts, so that people who are
84173         used to POSIX struct timespec won't be surprised.  Reported by Jim
84174         Meyering.
84175
84176 2005-12-28  Bruno Haible  <bruno@clisp.org>
84177
84178         * build-aux/config.rpath: Update from GNU gettext.
84179
84180 2005-12-16  Jim Meyering  <jim@meyering.net>
84181
84182         * modules/fprintftime: New module.
84183         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84184
84185 2005-12-16  Jim Meyering  <jim@meyering.net>
84186
84187         * m4/fprintftime.m4: New file.
84188
84189 2005-12-16  Jim Meyering  <jim@meyering.net>
84190
84191         * lib/fprintftime.c, lib/fprintftime.h: New files.
84192
84193 2005-12-15  Simon Josefsson  <jas@extundo.com>
84194
84195         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84196         new m4/socklen.m4.
84197
84198 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84199
84200         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84201         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84202
84203 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84204
84205         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84206         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84207         struct uparams is valid. Fall back to the default values if it is
84208         not.
84209
84210 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84211
84212         * modules/argp (Files): Add argp-pin.c
84213         (Depends-on): dirname
84214         (lib_SOURCES): Add argp-pin.c
84215
84216 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84217
84218         * m4/argp.m4:  Check if program_invocation_name and
84219         program_invocation_short_name are declared and define appropriate
84220         macros if they are not.
84221
84222 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84223
84224         * lib/argp-help.c (__argp_base_name): New function
84225         (__argp_short_program_name): Rewrite using __argp_base_name
84226         * lib/argp-namefrob.h: Define program_invocation_name and
84227         program_invocation_short_name if requested
84228         (__argp_base_name): Add prototype
84229         * lib/argp-parse.c (argp_def): Use gettext wrappers
84230         (argp_default_parser): Use __argp_base_name
84231         * lib/argp-pin.c: New file. Defines program_invocation_name and
84232         program_invocation_short_name on systems that lack them.
84233
84234 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84235
84236         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84237         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84238         porting problem reported by Georg Schwarz in
84239         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84240
84241 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84242
84243         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84244         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84245         porting problem reported by Georg Schwarz in
84246         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84247
84248 2005-12-05  Bruno Haible  <bruno@clisp.org>
84249
84250         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84251         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84252         Reported by Mark Junker <mjscod@gmx.de>.
84253
84254 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84255
84256         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84257         Use implementation from Albert Chin, with some
84258         comments/corrections by Stepan Kasal and myself.
84259
84260 2005-12-02  Bruno Haible  <bruno@clisp.org>
84261
84262         * gnulib-tool (func_import): Accept GPLed build tool modules when
84263         --lgpl is given.
84264         * modules/csharpcomp-script: New file.
84265         * modules/csharpcomp: Depend on it.
84266         * modules/javacomp-script: New file.
84267         * modules/javacomp: Depend on it.
84268         Suggested by Simon Josefsson.
84269
84270 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84271
84272         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84273         statement, to work around an HP-UX 10.20 compiler bug reported by
84274         Peter O'Gorman.
84275
84276 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84277
84278         * modules/savedir (Depends-on): Add openat.
84279
84280 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84281
84282         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84283         (uintmax_t) [defined uintmax_t]: Do not declare.
84284         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84285         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84286         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84287         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84288         sake of portability to weird hosts that C allows (though we don't
84289         know of any practical examples).
84290
84291         * lib/savedir.h (fdsavedir): New decl.
84292         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84293         contains most of the former guts of savedir.
84294         (savedir): Use savedirstream.
84295         Include "openat.h".
84296
84297 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84298
84299         * modules/obstack (Files): Add m4/ulonglong.m4.
84300         Problem reported by Davide Angelocola.
84301
84302 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84303
84304         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84305         coreutils no longer futzes with rounding modes.
84306
84307 2005-11-14  Jim Meyering  <jim@meyering.net>
84308
84309         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84310         replacement of mkstemp.
84311
84312 2005-11-10  Simon Josefsson  <jas@extundo.com>
84313
84314         * lib/readline.c: Remove EOL.
84315
84316 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * modules/gethrxtime (Depends-on): Add gettime.
84319
84320 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84323         or gettimeofday; no longer needed.
84324
84325 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84326
84327         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84328         time business.
84329         (gethrxtime) [! (HAVE_NANOUPTIME
84330         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84331         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84332         our own approximation.
84333
84334 2005-11-08  Eric Blake  <ebb9@byu.net>
84335
84336         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84337
84338 2005-11-08  Eric Blake  <ebb9@byu.net>
84339
84340         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84341
84342 2005-11-04  Bruno Haible  <bruno@clisp.org>
84343
84344         * gnulib-tool: Implement --update mode.
84345
84346 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84347
84348         Fix porting problem reported by Theodoros V. Kalamatianos.
84349         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84350         Don't assume that futimes failing means we must fail.
84351
84352 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84353
84354         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84355         variables to suggest the intended function of the PATH_MAX check.
84356
84357 2005-10-30  Kean Johnston  <jkj@sco.com>
84358
84359         Trivial changes to support SCO systems.
84360         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84361         as PATH_MAX.
84362         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84363         where __ptr is null when no I/O is pending.
84364
84365 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84366
84367         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84368         leave errno alone.  Problem reported by Dmitry V. Levin.
84369
84370 2005-10-28  Simon Josefsson  <jas@extundo.com>
84371
84372         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84373         Test more.
84374
84375         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84376
84377         * modules/md2, modules/md2-tests: New files.
84378
84379 2005-10-28  Simon Josefsson  <jas@extundo.com>
84380
84381         * m4/inet_ntop.m4: More tests.
84382
84383         * m4/gc-md2.m4, md2.m4: New file.
84384
84385 2005-10-28  Simon Josefsson  <jas@extundo.com>
84386
84387         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84388         "restrict" keywords, as per POSIX.  Protect the function
84389         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84390         Don't use K&R prototypes.  Check the sprintf return values.
84391         Re-define EAFNOSUPPORT if not present.  Indent.
84392
84393         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84394         suggested by Bruno Haible <bruno@clisp.org>.
84395
84396         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84397
84398         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84399
84400         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84401         libgcrypt).
84402
84403         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84404
84405         * lib/md2.h, lib/md2.c: New files.
84406
84407 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84408
84409         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84410         errno alone.  Problem reported by Frederic Jolliton.
84411
84412 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84413
84414         * modules/verify (License): Change from GPL to LGPL.  This is a
84415         tiny module and there are apparently near-equivalents that are
84416         under the BSD license.
84417
84418 2005-10-24  Simon Josefsson  <jas@extundo.com>
84419
84420         * modules/sha1: Relicense to LGPL.
84421
84422 2005-10-24  Simon Josefsson  <jas@extundo.com>
84423
84424         * lib/md4.h: Shrink buffer size, now that we changed the type.
84425
84426 2005-10-23  Simon Josefsson  <jas@extundo.com>
84427
84428         * gnulib-tool (func_import): Fix --tests-base.
84429
84430 2005-10-22  Simon Josefsson  <jas@extundo.com>
84431
84432         * modules/arcfour (Depends-on): Need stdint.
84433
84434 2005-10-22  Simon Josefsson  <jas@extundo.com>
84435
84436         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84437         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84438
84439 2005-10-22  Simon Josefsson  <jas@extundo.com>
84440
84441         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84442         suggested by Bruno Haible <bruno@clisp.org>.
84443
84444 2005-10-22  Simon Josefsson  <jas@extundo.com>
84445
84446         * lib/crc.h: Include stddef.h, for size_t.
84447
84448 2005-10-22  Simon Josefsson  <jas@extundo.com>
84449
84450         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84451         arcfour_context struct (simplify test vector testing in GNU
84452         Shishi).
84453
84454 2005-10-21  Simon Josefsson  <jas@extundo.com>
84455
84456         * modules/des, modules/des-tests: New files.
84457
84458         * modules/gc-des, modules/gc-des-tests: New files.
84459
84460         * tests/test-des.c, tests/test-gc-des.c: New file.
84461
84462 2005-10-21  Simon Josefsson  <jas@extundo.com>
84463
84464         * modules/arctwo, modules/arctwo-tests: New files.
84465
84466         * tests/test-arctwo.c: New file.
84467
84468         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84469
84470         * tests/test-gc-arctwo.c: New file.
84471
84472 2005-10-21  Simon Josefsson  <jas@extundo.com>
84473
84474         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84475         Bruno Haible <bruno@clisp.org>.
84476
84477         * m4/gc-des.m4: New file.
84478
84479 2005-10-21  Simon Josefsson  <jas@extundo.com>
84480
84481         * m4/arctwo.m4: New file.
84482
84483         * m4/gc-arctwo.m4: New file.
84484
84485 2005-10-21  Simon Josefsson  <jas@extundo.com>
84486
84487         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84488         block.
84489
84490 2005-10-21  Simon Josefsson  <jas@extundo.com>
84491
84492         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84493         <bruno@clisp.org>.
84494
84495         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84496
84497         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84498         Bruno Haible <bruno@clisp.org>.
84499
84500         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84501         <bruno@clisp.org>.
84502
84503 2005-10-21  Simon Josefsson  <jas@extundo.com>
84504
84505         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84506
84507 2005-10-21  Simon Josefsson  <jas@extundo.com>
84508
84509         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84510
84511 2005-10-21  Simon Josefsson  <jas@extundo.com>
84512
84513         * lib/des.h, lib/des.c: New files.
84514
84515         * lib/gc-gnulib.c: Support DES.c
84516
84517 2005-10-21  Simon Josefsson  <jas@extundo.com>
84518
84519         * lib/arctwo.h, lib/arctwo.c: New files.
84520
84521         * lib/gc-gnulib.c: Support ARCTWO.
84522
84523 2005-10-21  Simon Josefsson  <jas@extundo.com>
84524
84525         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84526         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84527
84528 2005-10-21  Simon Josefsson  <jas@extundo.com>
84529
84530         * gnulib-tool (func_import, func_create_testdir): Define automake
84531         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84532         Makefile.am snippet),
84533         suggested by Bruno Haible <bruno@clisp.org>.
84534
84535         * modules/gc (Makefile.am): Use it.
84536
84537 2005-10-21  Bruno Haible  <bruno@clisp.org>
84538
84539         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84540         patch.
84541
84542 2005-10-19  Simon Josefsson  <jas@extundo.com>
84543
84544         * tests/test-gc-rijndael.c: New file.
84545
84546         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84547
84548 2005-10-19  Simon Josefsson  <jas@extundo.com>
84549
84550         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84551         interface too.
84552
84553 2005-10-19  Simon Josefsson  <jas@extundo.com>
84554
84555         * tests/test-gc-arcfour.c: New file.
84556
84557         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84558
84559 2005-10-19  Simon Josefsson  <jas@extundo.com>
84560
84561         * modules/gc-md4, modules/gc-md4-tests: New file.
84562
84563         * tests/test-gc-md4.c: New file.
84564
84565 2005-10-19  Simon Josefsson  <jas@extundo.com>
84566
84567         * m4/gc-md4.m4: New file.
84568
84569 2005-10-19  Simon Josefsson  <jas@extundo.com>
84570
84571         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84572         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84573         <kasal@ucw.cz>.
84574
84575 2005-10-19  Simon Josefsson  <jas@extundo.com>
84576
84577         * m4/gc-arcfour.m4: New file.
84578
84579         * m4/gc-rijndael.m4: New file.
84580
84581 2005-10-19  Simon Josefsson  <jas@extundo.com>
84582
84583         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84584
84585 2005-10-19  Simon Josefsson  <jas@extundo.com>
84586
84587         * lib/gc-gnulib.c: Support ARCFOUR.
84588
84589 2005-10-19  Simon Josefsson  <jas@extundo.com>
84590
84591         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84592         support.
84593
84594         * lib/gc.h: Add ECB enum type.
84595
84596         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84597
84598 2005-10-18  Simon Josefsson  <jas@extundo.com>
84599
84600         * tests/test-md5.c: New file.
84601
84602         * modules/md5-tests: New file.
84603
84604 2005-10-18  Simon Josefsson  <jas@extundo.com>
84605
84606         * tests/test-md4.c: New file.
84607
84608         * modules/md4, modules/md4-tests: New files.
84609
84610 2005-10-18  Simon Josefsson  <jas@extundo.com>
84611
84612         * m4/md4.m4: New file.
84613
84614 2005-10-18  Simon Josefsson  <jas@extundo.com>
84615
84616         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84617
84618 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84619
84620         * gnulib-tool (func_create_testdir): Omit the second check whether
84621         BUILT_SOURCES in nonempty.
84622
84623 2005-10-17  Simon Josefsson  <jas@extundo.com>
84624
84625         * tests/test-rijndael.c: New file.
84626
84627 2005-10-17  Simon Josefsson  <jas@extundo.com>
84628
84629         * modules/sha1: Depend on stdint instead of md5.
84630
84631         * modules/md5: Depend on stdint, remove uint32_t.
84632
84633 2005-10-17  Simon Josefsson  <jas@extundo.com>
84634
84635         * modules/gc-sha1-tests: New file.
84636
84637         * tests/test-gc-sha1.c: New file.
84638
84639 2005-10-17  Simon Josefsson  <jas@extundo.com>
84640
84641         * m4/md5.m4: Remove call to uint32_t.m4.
84642
84643 2005-10-17  Simon Josefsson  <jas@extundo.com>
84644
84645         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84646
84647         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84648         md5.h.
84649
84650         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84651
84652         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84653
84654 2005-10-17  Simon Josefsson  <jas@extundo.com>
84655
84656         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84657
84658 2005-10-17  Simon Josefsson  <jas@extundo.com>
84659
84660         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84661
84662 2005-10-17  Simon Josefsson  <jas@extundo.com>
84663
84664         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84665
84666         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84667
84668 2005-10-17  Bruno Haible  <bruno@clisp.org>
84669
84670         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84671         that it can also be used in a test.
84672
84673 2005-10-16  Bruno Haible  <bruno@clisp.org>
84674
84675         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84676         TESTS_ENVIRONMENT, so that individual tests can augment it.
84677
84678         * gnulib-tool (func_create_testdir): Use an intermediate target for
84679         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84680         macros, like $(ALLOCA_H), which cannot be passed through the command
84681         line.
84682
84683 2005-10-15  Simon Josefsson  <jas@extundo.com>
84684
84685         * modules/rijndael-tests: New file.
84686
84687         * modules/rijndael: New file.
84688
84689 2005-10-15  Simon Josefsson  <jas@extundo.com>
84690
84691         * m4/rijndael.m4: New file.
84692
84693 2005-10-15  Simon Josefsson  <jas@extundo.com>
84694
84695         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84696
84697         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84698
84699 2005-10-14  Simon Josefsson  <jas@extundo.com>
84700
84701         * tests/test-arcfour.c: New file.
84702
84703         * modules/arcfour, modules/arcfour-tests: New files.
84704
84705 2005-10-14  Simon Josefsson  <jas@extundo.com>
84706
84707         * m4/arcfour.m4: New file.
84708
84709 2005-10-14  Simon Josefsson  <jas@extundo.com>
84710
84711         * lib/arcfour.h, lib/arcfour.c: New files.
84712
84713 2005-10-14  Roland McGrath  <roland@redhat.com>
84714
84715         Import from libc.  [BZ #1331]
84716         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84717         macro argument.
84718         Reported by Matej Vela <vela@debian.org>.
84719
84720 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84721
84722         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84723         include <wchar.h>; no longer needed.
84724
84725 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84726
84727         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84728
84729 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84730         and  Ulrich Drepper  <drepper@redhat.com>
84731
84732         Import from libc.
84733         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84734         instead of inline stream orientation test and two separate
84735         function calls.  Pay no attention to USE_IN_LIBIO.
84736
84737 2005-10-13  Simon Josefsson  <jas@extundo.com>
84738
84739         * modules/gc-hmac-md5-tests: New file.
84740
84741         * tests/test-gc-hmac-sha1.c: New file.
84742
84743         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84744
84745         * modules/gc-hmac-md5-tests: New file.
84746
84747         * tests/test-gc-md5.c: New file.
84748
84749         * modules/gc-md5-tests: New file.
84750
84751 2005-10-13  Simon Josefsson  <jas@extundo.com>
84752
84753         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84754         Move memory allocation outside of loop.
84755
84756 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84757
84758         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84759         intermediate directory is in a read-only file system.  Problem
84760         reported by Eric Blake.
84761
84762 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84763
84764         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84765
84766 2005-10-12  Simon Josefsson  <jas@extundo.com>
84767
84768         * tests/test-hmac-sha1.c: New file.
84769
84770         * modules/hmac-sha1-tests: New file.
84771
84772         * modules/hmac-sha1: New file.
84773
84774 2005-10-12  Simon Josefsson  <jas@extundo.com>
84775
84776         * modules/gc-sha1: New file.
84777
84778 2005-10-12  Simon Josefsson  <jas@extundo.com>
84779
84780         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84781
84782         * tests/test-gc-pbkdf2-sha1.c: New file.
84783
84784 2005-10-12  Simon Josefsson  <jas@extundo.com>
84785
84786         * modules/gc-md5, modules/gc-hmac-md5: New files.
84787
84788         * modules/gc (Files): Remove md5, memxor and hmac files.
84789
84790 2005-10-12  Simon Josefsson  <jas@extundo.com>
84791
84792         * m4/gc-pbkdf2-sha1.m4: New file.
84793
84794         * m4/gc-hmac-sha1.m4: New file.
84795
84796         * m4/gc-sha1: New file.
84797
84798         * m4/hmac-sha1.m4: New file.
84799
84800 2005-10-12  Simon Josefsson  <jas@extundo.com>
84801
84802         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84803
84804         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84805
84806 2005-10-12  Simon Josefsson  <jas@extundo.com>
84807
84808         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84809         suggested by Bruno Haible <bruno@clisp.org>.
84810
84811 2005-10-12  Simon Josefsson  <jas@extundo.com>
84812
84813         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84814
84815 2005-10-12  Simon Josefsson  <jas@extundo.com>
84816
84817         * lib/gc-pbkdf2-sha1.c: New file.
84818
84819         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84820
84821 2005-10-12  Simon Josefsson  <jas@extundo.com>
84822
84823         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84824
84825         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84826
84827 2005-10-12  Simon Josefsson  <jas@extundo.com>
84828
84829         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84830         GC_USE_HMAC_MD5, respectively.
84831
84832         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84833         (gc_md5): Fix typo.
84834
84835         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84836
84837         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84838
84839         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84840
84841 2005-10-12  Bruno Haible  <bruno@clisp.org>
84842
84843         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84844         Reported by Stepan Kasal <kasal@ucw.cz>.
84845
84846 2005-10-11  Simon Josefsson  <jas@extundo.com>
84847
84848         * tests/test-crc.c: New file.
84849
84850         * modules/crc, modules/crc-tests: New files.
84851
84852 2005-10-11  Simon Josefsson  <jas@extundo.com>
84853
84854         * m4/crc.m4: New file.
84855
84856 2005-10-11  Simon Josefsson  <jas@extundo.com>
84857
84858         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84859
84860         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84861
84862         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
84863
84864 2005-10-11  Simon Josefsson  <jas@extundo.com>
84865
84866         * lib/crc.h, lib/crc.c: New files.
84867
84868         * lib/gc.h (gc_hash_buffer): Add doc.
84869
84870 2005-10-11  Bruno Haible  <bruno@clisp.org>
84871
84872         * modules/c-strcasestr: New file.
84873         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
84874
84875 2005-10-11  Bruno Haible  <bruno@clisp.org>
84876
84877         * modules/c-strcase: New file.
84878         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
84879
84880 2005-10-11  Bruno Haible  <bruno@clisp.org>
84881
84882         * lib/strcasecmp.c: Include limits.h.
84883         (strcasecmp): Avoid integer overflow on exotic platforms.
84884         * lib/strncasecmp.c: Include limits.h.
84885         (strncasecmp): Avoid integer overflow on exotic platforms.
84886         Reported by Paul Eggert.
84887
84888 2005-10-11  Bruno Haible  <bruno@clisp.org>
84889
84890         * lib/c-strcasestr.h: New file, from GNU gettext.
84891         * lib/c-strcasestr.c: New file, from GNU gettext.
84892
84893 2005-10-11  Bruno Haible  <bruno@clisp.org>
84894
84895         * lib/c-strcase.h: New file, from GNU gettext.
84896         * lib/c-strcasecmp.c: New file, from GNU gettext.
84897         * lib/c-strncasecmp.c: New file, from GNU gettext.
84898
84899 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84900
84901         * modules/mempcpy (License): GPL -> LGPL.
84902         * modules/strchrnul (License): Likewise.
84903         * modules/sysexits (License): Likewise.
84904
84905 2005-10-08  Simon Josefsson  <jas@extundo.com>
84906
84907         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
84908
84909 2005-10-07  Simon Josefsson  <jas@extundo.com>
84910
84911         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84912
84913 2005-10-06  Simon Josefsson  <jas@extundo.com>
84914
84915         * tests/test-hmac-md5.c: New file.
84916
84917         * modules/hmac-md5-tests: New file.
84918
84919         * modules/hmac-md5: New file.
84920
84921 2005-10-06  Simon Josefsson  <jas@extundo.com>
84922
84923         * m4/hmac-md5.m4: New file.
84924
84925         * m4/memxor.m4: Require gl_C_RESTRICT.
84926
84927 2005-10-06  Simon Josefsson  <jas@extundo.com>
84928
84929         * lib/memxor.c (memxor): Avoid casts and warnings.
84930
84931 2005-10-06  Simon Josefsson  <jas@extundo.com>
84932
84933         * lib/hmac-md5.c: New file.
84934
84935         * lib/hmac.h: New file.
84936
84937 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84938
84939         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84940         promotes to int, not unsigned int, to catch the AIX 5.3
84941         compiler bug.
84942
84943 2005-10-05  Simon Josefsson  <jas@extundo.com>
84944
84945         * modules/memxor: New file.
84946
84947         * modules/iconv (Files): Move config.rpath to havelib, it is used
84948         there.
84949
84950         * modules/havelib (Files): Add config.rpath.
84951
84952 2005-10-05  Simon Josefsson  <jas@extundo.com>
84953
84954         * m4/memxor.m4: New file.
84955
84956 2005-10-05  Simon Josefsson  <jas@extundo.com>
84957
84958         * lib/memxor.c (memxor): Fix compiler error.
84959
84960         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84961         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84962
84963         * lib/memxor.h, lib/memxor.c: New files.
84964
84965         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84966         we assume all systems have it, suggested by Jim Meyering
84967         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84968         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84969         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84970         same reasons.
84971
84972 2005-10-05  Simon Josefsson  <jas@extundo.com>
84973
84974         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84975
84976 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84977
84978         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84979         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84980         needed, since the source code now assumes these .h files.
84981
84982 2005-10-05  Derek Price  <derek@ximbiot.com>
84983
84984         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84985
84986 2005-10-05  Bruno Haible  <bruno@clisp.org>
84987
84988         * modules/stdint (License): Change to LGPL.
84989
84990 2005-10-04  Simon Josefsson  <jas@extundo.com>
84991
84992         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84993         D. Baushke" <mdb@gnu.org>.
84994
84995 2005-10-04  Bruno Haible  <bruno@clisp.org>
84996
84997         * lib/verify.h (verify_true): Provide alternative definition for C++.
84998
84999 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85000
85001         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85002         (SSIZE_MAX): New macro, if not already defined.
85003         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85004         than 2 GiB.
85005
85006 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85007
85008         Sync from coreutils.
85009         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85010         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85011         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85012         ULLONG_MAX doesn't work with 2.7.2.1.
85013
85014 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85015
85016         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85017         From Ben Pfaff.
85018
85019         * modules/exclude (Depends-on): Depend on verify.
85020         * modules/strtoimax (Depends-on): Likewise.
85021         * modules/utimecmp (Depends-on): Likewise.
85022
85023 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85024
85025         * lib/exclude.c: Include verify.h.
85026         (verify): Remove.  All callers changed to use verify.h's version.
85027         * lib/strtoimax.c: Likewise.
85028         * lib/utimecmp.c: Likewis.e
85029
85030         Sync from coreutils.
85031         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85032         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85033         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85034         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85035         bother returning ENOSYS if settimeofday or stime fails; just let
85036         them return whatever errno they want to return.
85037         * lib/utimens.c: Include unistd.h, for dup2.
85038         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85039         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85040
85041 2005-10-02  Jim Meyering  <jim@meyering.net>
85042
85043         Sync from coreutils.
85044         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85045         from glibc-2.2.5 that fails for read-only files.
85046
85047 2005-10-02  Jim Meyering  <jim@meyering.net>
85048
85049         Sync from coreutils.
85050         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85051         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85052         `#if HAVE_CONFIG_H'.
85053         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85054         Remove AT_FDCWD test.
85055         Do not consume the fd unless successful.
85056         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85057         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85058         block, so that we don't even try to compile it if settimeofday is
85059         available.  This works around a compilation failure on OSF1 V5.1,
85060         due to stime requiring a `long int*' while tv_sec is `int'.
85061
85062 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85063
85064         Sync from coreutils.
85065         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85066         against `yes', rather than just testing for nonempty.
85067
85068 2005-10-01  Simon Josefsson  <jas@extundo.com>
85069
85070         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85071         and Darwin.
85072
85073         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85074         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85075         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85076         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85077         Check if struct addrinfo is declared.
85078
85079 2005-10-01  Simon Josefsson  <jas@extundo.com>
85080
85081         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85082         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85083         AI_* and EAI_* definitions.  Protect function declarations.
85084
85085 2005-10-01  Jim Meyering  <jim@meyering.net>
85086
85087         Sync from coreutils.
85088
85089         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85090         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85091         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85092         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85093         in the inet and nsl libraries.  Required on Solaris 5.7.
85094
85095 2005-10-01  Jim Meyering  <jim@meyering.net>
85096
85097         Sync from coreutils.
85098         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85099         in the inet and nsl libraries.  Required on Solaris 5.7.
85100
85101 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85102
85103         * lib/getdelim.c (getdelim): Remove unused variables.
85104
85105 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85106
85107         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85108         so that the code works even with ancient cpp.  Portability problem
85109         with GCC 2.7.2.1 reported by Thomas M.Ott.
85110
85111 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85112
85113         * modules/regex (Depends-on): Add strcase.
85114
85115         * modules/gethostname (Licence): Change from GPL to LGPL, since
85116         gethostname.c is a trivial implementation of a standard library
85117         function.
85118         * modules/poll (License): Change from GPL to LGPL, since it's
85119         derived from LGPL code.
85120
85121 2005-09-27  Jim Meyering  <jim@meyering.net>
85122
85123         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85124         HAVE_CONFIG_H.
85125
85126         * lib/intprops.h (signed_type_or_expr__): Define.
85127         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85128         for unsigned types.
85129
85130 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85131
85132         * lib/verify.h (verify_expr): Remove, replacing with:
85133         (verify_true): New macro that returns true instead of void.
85134         (verify_type__): Remove.
85135         (verify): Use verify_true rather than verify_type__.
85136
85137 2005-09-26  Bruno Haible  <bruno@clisp.org>
85138
85139         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85140         is necessary.
85141         (lib_SOURCES): Remove mbchar.c.
85142         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85143         (Files): Add m4/mbrtowc.m4.
85144         * modules/mbiter: Likewise.
85145         * modules/mbuiter: Likewise.
85146
85147 2005-09-26  Bruno Haible  <bruno@clisp.org>
85148
85149         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85150         compile mbchar.c if they are not both present.
85151         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85152         * m4/mbiter.m4 (gl_MBITER): Likewise.
85153         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85154         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85155         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85156
85157 2005-09-25  Jim Meyering  <jim@meyering.net>
85158
85159         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85160         also uses socklen_t.
85161
85162 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85163
85164         * lib/utimens.c (ENOSYS): Define if not already defined.
85165         (futimens): Support having a null PATH if the file descriptor
85166         is nonnegative.
85167
85168         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85169         Remove.
85170         (__attribute): Define to empty unless GCC 3.1 or later.
85171         This works around a core dump on OpenBSD 3.4, which has GCC
85172         2.95.3, which dumps core when given __attribute__(()).  It also
85173         simplifies other tests, since we really don't want to bother with
85174         worrying about which ancient version of GCC supported what.
85175         Original problem reported by Yoann Vandoorselaere, with part of
85176         the fix suggested by Derek Price.
85177
85178 2005-09-24  Jim Meyering  <jim@meyering.net>
85179
85180         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85181         so we can once again use a positive bitfield width of 1 -- now we
85182         don't have to explain why we were using a bitfield width of 2.
85183
85184 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85185
85186         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85187         and similarly for the other external symbols.  Problem reported
85188         by James Gallager.
85189
85190         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85191         bug reported by Jim Meyering.
85192
85193         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85194         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85195         not needed, since socklen is a prerequisite module.
85196
85197 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85198
85199         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85200         Problem reported by Eric Blake.
85201         (getaddrinfo): Initialize se so that it's not garbage.
85202         Redo internal storage allocation so that it doesn't make unportable
85203         assumptions about alignment.
85204         Fix a memory leak.
85205
85206         * lib/utimens.c (futimens): Use futimesat if available.
85207         Prefer it to futimes since it doesn't have the futimes bug.
85208
85209         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85210         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85211         Instead, declare a function that returns a pointer to an array,
85212         and use verify_type__ to declare the size of the array.
85213         Problem and germ of a solution reported by Bruno Haible.
85214         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85215         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85216
85217 2005-09-23  Jim Meyering  <jim@meyering.net>
85218
85219         Sync from coreutils.
85220         Correct build failure (socklen_t not defined) on at least
85221         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85222         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85223
85224 2005-09-23  Jim Meyering  <jim@meyering.net>
85225
85226         * modules/getaddrinfo (Depends-on): Add socklen.
85227
85228 2005-09-23  Bruno Haible  <bruno@clisp.org>
85229
85230         * tests/test-verify.c: New file.
85231
85232 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85233
85234         Sync from coreutils.
85235
85236         * modules/argmatch (Depends-on): Add verify.
85237         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85238         unistd-safer.
85239         * modules/save-cwd (Depends-on): Likewise.
85240
85241         * modules/openat (Files): Add lib/openat-die.c.
85242         (Depends-on): Remove error, exitfail.
85243         Add dirname.
85244
85245         * modules/verify: New file.
85246         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85247         with "verify" module.
85248
85249 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85250
85251         Sync from coreutils.
85252
85253         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85254         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85255         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85256         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85257         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85258         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85259         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85260         Don't bother checking for string.h, stdlib.h, unistd.h.
85261         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85262         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85263         module's job.
85264         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85265         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85266
85267         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85268         (gl_GETDATE): Use it.
85269
85270         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85271
85272 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85273
85274         Sync from coreutils.
85275
85276         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85277         stat-time.h.
85278         * lib/argmatch.h: Include verify.h
85279         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85280         (ARGMATCH_ASSERT): Remove; unused.
85281         * lib/canonicalize.c: Assume STDC_HEADERS.
85282         * lib/exclude.c: Include "strcase.h".
85283         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85284         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85285         and stdio-safer.h.
85286         (getusershell): Call fopen, not fopen_safer.
85287         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85288         Do not include unistd-safer.h.
85289         (save_cwd): Don't call fd_safer; no longer needed
85290         now that we include fcntl--.h.
85291
85292         * lib/getdate.y (relative_time): New type.
85293         (RELATIVE_TIME_0): New constant.
85294         (parser_control): Use relative_time instead of doing it ourselves.
85295         (%union): Add new relative_time rel member.
85296         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85297         Now typeless.
85298         (relunit, relunit_snumber): Now of type rel.
85299         (zone, rel, relunit, get_date): Adjust to above changes.
85300
85301         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85302         Do not include unistd-safer.h.
85303         (getloadavg): Don't call fd_safer; no longer needed
85304         now that we include fcntl--.h.
85305
85306         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85307         (make_dir_parents): Treat ENOSYS like EEXIST.
85308
85309         Improve quality of diagnostics on restore_cwd failure.
85310         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85311         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85312         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85313         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85314         each time through the loop.  Do not diagnose restore_cwd failure;
85315         that is the caller's job (and perhaps the caller does not care).
85316
85317         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85318         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85319         If the file already exists but is not a directory, don't bother
85320         to try to make its parents.
85321         Close potential file descriptor leak if we can't chdir("/") (!).
85322         Don't always return true if chdir($PWD) fails; return true only
85323         if the requested action was done successfully (except for the
85324         chdir($PWD)).
85325         Don't log final directory unless we actually made it.
85326         Refactor to avoid duplicate code to fix up permissions.
85327         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85328
85329         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85330         to make it a bit faster and (I hope) clearer.
85331         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85332         Fix bug in formats like %2N.
85333
85334         * lib/verify.h: New file.
85335
85336 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85337
85338         Sync from coreutils.
85339         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85340
85341 2005-09-22  Jim Meyering  <jim@meyering.net>
85342
85343         Sync from coreutils.
85344
85345         * m4/lstat.m4 (gl_FUNC_LSTAT):
85346         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85347         Remove obsolete comment.
85348         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85349         * m4/xstrtod.m4: Likewise.
85350
85351         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85352
85353 2005-09-22  Jim Meyering  <jim@meyering.net>
85354
85355         Sync from coreutils.
85356
85357         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85358
85359         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85360         the .tm_year member, since otherwise gcc-4.0 would now warn about
85361         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85362
85363         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85364         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85365
85366         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85367         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85368         when run in a time zone for which daylight savings time is in effect
85369         for the starting date.
85370
85371         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85372         stop us from restricting permissions of just-created absolute-named
85373         directories.
85374         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85375         to restore initial working directory.
85376         * lib/mkdir-p.c (make_dir_parents): New parameter:
85377         different_working_dir, to tell caller if/when we change the working
85378         directory and are unable to return to the initial one.
85379         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85380         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85381         `return false'.  This fixes a bug introduced on 2004-07-30.
85382
85383         * lib/openat.c (fdopendir): Be sure to close the supplied
85384         file descriptor before returning.  This makes our replacement
85385         implementation a little closer to Solaris's, where fdopendir
85386         ties the file descriptor to the returned DIR* pointer.
85387         * lib/openat.c (unlinkat): New function.
85388         * lib/openat.h (unlinkat): Add prototype.
85389         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85390         (openat_restore_fail): Rename from openat_restore_die.
85391         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85392
85393         Provide an alternative to exiting immediately upon save_cwd or
85394         restore_cwd failure.  Now, an application can arrange e.g.,
85395         to perform a longjump in that case.
85396         * lib/openat.c: Include dirname.h.
85397         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85398         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85399         and openat_restore_die rather than calling error directly.
85400         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85401
85402         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85403         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85404         define.
85405
85406         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85407         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85408                             int utc, int nanoseconds);
85409         Background:
85410         date should not have to allocate a megabyte of virtual memory to
85411         handle a format argument like +%1048575T.  When implemented with
85412         strftime, it must allocate such a buffer, use strftime to fill it
85413         in, print it, then free it.
85414         With fprintftime, it simply prints everything and exits.
85415         With no need for memory allocation, that's one fewer way to fail.
85416         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85417         optional field width, not before, so we accept %9:z, not %:9z.
85418         (my_strftime): Be sure to use L_('x') for literals.
85419
85420         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85421         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85422         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85423         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85424         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85425         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85426         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85427         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85428         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85429         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85430         * lib/xgethostname.c, lib/xreadlink.c:
85431         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85432
85433         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85434         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85435         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85436         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85437         and don't include <sys/file.h>).
85438
85439 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85440
85441         Sync from coreutils.
85442
85443         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85444         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85445         [!LDAV_DONE]: Avoid unused variable warning.
85446
85447 2005-09-21  Bruno Haible  <bruno@clisp.org>
85448
85449         * lib/unicodeio.h (unicode_to_mb): New declaration.
85450
85451 2005-09-20  Derek Price  <derek@ximbiot.com>
85452
85453         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85454         getaddrinfo.h.
85455
85456 2005-09-20  Bruno Haible  <bruno@clisp.org>
85457
85458         * gnulib-tool: Remove trailing slashes from the values specified for
85459         --source-base, --m4-base, --tests-base, --aux-dir.
85460         Suggested by Simon Josefsson <jas@extundo.com>.
85461
85462 2005-09-20  Bruno Haible  <bruno@clisp.org>
85463
85464         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85465         func_modules_to_filelist, func_import, func_create_testdir): Make all
85466         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85467         change when gnulib-tool is invoked in a different locale.
85468
85469 2005-09-19  Simon Josefsson  <jas@extundo.com>
85470
85471         * m4/socklen.m4: Fix typo.
85472
85473 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85474
85475         Use a consistent style for including <config.h>.
85476         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85477         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85478         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85479         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85480         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85481         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85482         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85483         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85484         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85485         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85486         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85487         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85488         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85489         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85490         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85491         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85492         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85493         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85494         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85495         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85496         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85497         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85498         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85499         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85500         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85501         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85502         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85503         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85504         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85505         lib/xstrtoumax.c, lib/yesno.c:
85506         Standardize inclusion of config.h.
85507         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85508         lib/inttostr.h:  Removed inclusion of config.h from header files.
85509         * lib/inttostr.c:  Adjusted in-tree users.
85510         * lib/timespec.h: Remove superfluous warning to include config.h.
85511         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85512         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85513         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85514         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85515         config.h with HAVE_CONFIG_H.
85516
85517 2005-09-19  Jim Meyering  <jim@meyering.net>
85518
85519         * modules/pathmax (License): Change to LGPL.
85520
85521 2005-09-19  Derek Price  <derek@ximbiot.com>
85522
85523         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85524
85525 2005-09-19  Bruno Haible  <bruno@clisp.org>
85526
85527         * gnulib-tool (import): Provide default for --tests-base.
85528
85529 2005-09-19  Bruno Haible  <bruno@clisp.org>
85530
85531         * doc/quote.texi: New file, extracted from gnulib.texi.
85532         * doc/ctime.texi: New file, extracted from gnulib.texi.
85533         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85534         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85535         * doc/gnulib.texi: Include them.
85536
85537 2005-09-18  Bruno Haible  <bruno@clisp.org>
85538
85539         Portability fix.
85540         * gnulib-tool (func_readlink): New function.
85541         (func_ln_if_changed): Use it.
85542
85543 2005-09-18  Bruno Haible  <bruno@clisp.org>
85544
85545         * gnulib-tool: Support --with-tests also with --import.
85546         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85547         (func_import): Use variables $testsbase and $inctests. Emit a
85548         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85549         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85550         SUBDIRS += $testsdir.
85551         (func_create_testdir): Update.
85552
85553 2005-09-18  Bruno Haible  <bruno@clisp.org>
85554
85555         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85556         instead of $dry_run.
85557         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85558         (func_ln_if_changed): Don't handle dry-run here.
85559         (func_import): In dry-run mode, detect more precisely which actions
85560         would be performed, and don't use "...ing" verbs.
85561
85562 2005-09-18  Bruno Haible  <bruno@clisp.org>
85563
85564         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85565         (func_import): Use join on two temporary files instead of three nested
85566         loops, in order to determine which files are new or old.
85567
85568 2005-09-18  Bruno Haible  <bruno@clisp.org>
85569
85570         * gnulib-tool (func_import): Comment out code that spits out the
85571         new files with --dry-run.
85572
85573 2005-09-18  Bruno Haible  <bruno@clisp.org>
85574
85575         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85576
85577 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85578
85579         * lib/stat-time.h: New file.
85580         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85581         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85582         in a different way.
85583         (timespec_cmp): New function.
85584         * lib/utimecmp.c: Include stat-time.h.
85585         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85586         members exist, not on the obsolescent ST_MTIM_NSEC.
85587         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85588
85589 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85590
85591         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85592
85593 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85594
85595         * MODULES.html.sh (File system functions): Add stat-time.
85596         * modules/stat-time: New file.
85597         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85598         is now done in a different way, by the stat-time module.
85599         * modules/utimecmp (Depends-on): Add stat-time.
85600
85601 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85602
85603         * m4/st_mtim.m4: Remove.  Superseded by...
85604         * m4/stat-time.m4: New file.
85605         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85606         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85607
85608 2005-09-15  Derek Price  <derek@ximbiot.com>
85609
85610         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85611
85612 2005-09-15  Derek Price  <derek@ximbiot.com>
85613
85614         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85615         * lib/regex_internal.c: Ditto, using this...
85616         (__GNUC_PREREQ): ...new macro.
85617         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85618         using...
85619         (__GNUC_PREREQ): ...this new macro.
85620
85621         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85622
85623 2005-09-15  Derek Price  <derek@ximbiot.com>
85624             Paul Eggert  <eggert@cs.ucla.edu>
85625
85626         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85627         changes, consolidating in...
85628         * lib/regex_internal.h: ...this file.
85629
85630 2005-09-13  Jim Meyering  <jim@meyering.net>
85631
85632         * lib/canon-host.c: Filter through gnu indent and reword comments
85633         slightly.
85634         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85635
85636 2005-09-13  Derek Price  <derek@ximbiot.com>
85637
85638         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85639         failure.
85640         Reported by Jim Meyering  <jim@meyering.net>.
85641
85642 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85643
85644         * lib/base64.c: Typo.
85645         (base64_encode): Put b64str in initialized data section.
85646
85647 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85648
85649         Merge glibc and coreutils changes into gnulib, plus a few
85650         extra fixes.
85651         * lib/md5.c: Use #error rather than a string.
85652         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85653         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85654         (__attribute__): Define to empty for non recent-GCC.
85655         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85656         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85657         Renamed from their non-__ counterparts, with new macros replacing
85658         them if not _LIBC.  Add __THROW attribute.
85659         (rol): Remove.
85660         (struct md5_ctx): Align buffer if using GCC.
85661         * lib/sha1.h (struct sha1_ctx): Likewise.
85662         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85663         The old name was backwards.
85664         (NOTSWAP): Remove; not used.
85665         (rol): New macro, moved here from md5.h.
85666         (sha1_process_block): Remove a FIXME that doesn't make sense.
85667
85668 2005-09-12  Derek Price  <derek@ximbiot.com>
85669
85670         Return usable errors from canon-host.
85671         * lib/canon-host.h: New file.
85672         * lib/canon-host.c (canon_host): Wrap...
85673         (canon_host_r): ...this new function, which now relies exclusively on
85674         getaddrinfo.
85675         (ch_strerror): New function.
85676         (last_cherror): New global.
85677         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85678         interface.
85679         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85680         void *.
85681         (freeaddrinfo): Free ai->ai_canonname when set.
85682
85683 2005-09-12  Derek Price  <derek@ximbiot.com>
85684
85685         Make canon-host require getaddrinfo.
85686         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85687         AC_LIBSOURCE canon-host.h.  Call...
85688         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85689         gl_GETADDRINFO.
85690         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85691
85692 2005-09-12  Derek Price  <derek@ximbiot.com>
85693
85694         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85695         LGPL.
85696         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85697
85698 2005-09-12  Derek Price  <derek@ximbiot.com>
85699
85700         * lib/gai_strerror.c: Include config.h when available.  Include
85701         getaddrinfo.h before other headers to test interface.
85702         Reported by Larry Jones <lawrence.jones@ugs.com>.
85703
85704 2005-09-12  Derek Price  <derek@ximbiot.com>
85705             Paul Eggert  <eggert@cs.ucla.edu>
85706
85707         * modules/glob (Files): Add glob-libc.h.
85708
85709 2005-09-12  Derek Price  <derek@ximbiot.com>
85710             Paul Eggert  <eggert@cs.ucla.edu>
85711
85712         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85713         glob_.h, glob-libc.h.
85714         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85715
85716 2005-09-12  Derek Price  <derek@ximbiot.com>
85717             Paul Eggert  <eggert@cs.ucla.edu>
85718
85719         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85720         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85721         protecting things that should be done only in gnulib contexts.
85722         * lib/glob_.h: New file, containing only the glob things needed for
85723         gnulib.
85724         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85725         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85726         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85727         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85728         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85729         and to respect the namespace rules better.
85730
85731 2005-09-08  Simon Josefsson  <jas@extundo.com>
85732
85733         * modules/socklen: New file.
85734
85735 2005-09-08  Simon Josefsson  <jas@extundo.com>
85736
85737         * m4/socklen.m4: New file.
85738
85739 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85740
85741         * modules/utimens (Files): Add m4/utimbuf.m4, since
85742         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85743         Reported by Sergey Poznyakoff.
85744
85745 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85746
85747         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85748         definitions, since that's the preferred style in glibc.
85749         Fix a minor spacing issue, and update copyright notice to match
85750         glibc's.
85751
85752 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85753
85754         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85755
85756 2005-09-06  Simon Josefsson  <jas@extundo.com>
85757
85758         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85759         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85760
85761 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85762
85763         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85764         warning.
85765
85766 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85767
85768         * config/srclist.txt: Add glibc bug 1302.
85769
85770 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85771
85772         Change bitset word type from unsigned int to unsigned long int,
85773         as this has better performance on typical 64-bit hosts.
85774         Port bitset code to hosts with unusual word sizes.
85775         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85776         (build_collating_symbol):
85777         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85778         argument is a bitset.  This is merely a style issue, but it makes
85779         it clearer that an entire array is expected.
85780         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85781         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85782         Port to the case where bitset_word is not the same as unsigned int.
85783         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85784         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85785         Likewise.
85786         * lib/regexec.c (check_dst_limits_calc_pos_1,
85787         check_subexp_matching_top):
85788         (build_trtable, group_nodes_into_DFAstates):
85789         Likewise.
85790         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85791         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85792         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85793         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85794         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85795         * lib/regcomp.c (optimize_subexps, lower_subexp):
85796         Work even if bitset_word has holes in its bitwise representation.
85797         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85798         * lib/regexec.c (check_dst_limits_calc_pos_1,
85799         check_subexp_matching_top):
85800         Likewise.
85801         * lib/regex_internal.c (re_string_reconstruct):
85802         Don't assume UCHAR_MAX == 255.
85803         * lib/regex_internal.h (bitset_set_all): Likewise.
85804         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85805         All uses changed.
85806         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85807         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85808         All uses changed.
85809         (BITSET_WORD_MAX): New macro.
85810         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85811         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85812         (bitset_empty, bitset_copy):
85813         Prefer sizeof (bitset) to multiplying it out ourselves.
85814         (bitset_not_merge): Remove; unused.
85815         (bitset_contain): Return bool, not unsigned int with one bit on.
85816         All callers changed.
85817         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85818         alignment than re_node_set; do this by defining a new internal
85819         type struct dests_alloc and using it to allocate memory.
85820
85821 2005-09-05  Bruno Haible  <bruno@clisp.org>
85822
85823         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85824         links.
85825
85826 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85827
85828         * modules/size_max (Makefile.am): Add size_max.h
85829
85830 2005-09-04  Derek Price  <derek@ximbiot.com>
85831
85832         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85833
85834 2005-09-03  Simon Josefsson  <jas@extundo.com>
85835
85836         * gnulib-tool: Fix typo.
85837
85838 2005-09-03  Simon Josefsson  <jas@extundo.com>
85839
85840         * config/srclist.txt: Add glibc bug 1293.
85841
85842 2005-09-03  Derek Price  <derek@ximbiot.com>
85843
85844         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85845         From Larry Jones <lawrence.jones@ugs.com>.
85846
85847 2005-09-02  Simon Josefsson  <jas@extundo.com>
85848
85849         * modules/socklen: New file.
85850
85851 2005-09-02  Simon Josefsson  <jas@extundo.com>
85852
85853         * modules/havelib: New module.
85854
85855         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85856         Use havelib.
85857
85858 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85859
85860         Check for arithmetic overflow when calculating sizes, to prevent
85861         some buffer-overflow issues.  These patches are conservative, in the
85862         sense that when I couldn't determine whether an overflow was possible,
85863         I inserted a run-time check.
85864         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
85865         macros.
85866         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
85867         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
85868         (re_xnrealloc, re_x2nrealloc): New inline functions.
85869         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
85870         parse_bracket_exp):
85871         (build_equiv_class, build_charclass): Check for arithmetic overflow
85872         in size expression calculations.
85873         * lib/regex_internal.c (re_string_realloc_buffers):
85874         (build_wcs_upper_buffer, re_node_set_add_intersect):
85875         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
85876         (re_dfa_add_node, register_state): Likewise.
85877         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
85878         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
85879         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
85880         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
85881
85882 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85883
85884         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85885         m4/ulonglong.m4.  Problem reported by Martin Lambers.
85886
85887 2005-09-02  Bruno Haible  <bruno@clisp.org>
85888
85889         Support for lib vs. lib64 distinction on biarch platforms.
85890         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
85891         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
85892         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
85893
85894 2005-09-02  Bruno Haible  <bruno@clisp.org>
85895
85896         * gnulib-tool (import): In the other first-use case, provide defaults
85897         as well.
85898
85899 2005-09-02  Bruno Haible  <bruno@clisp.org>
85900
85901         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
85902         patches not yet found in the latest gettext release.
85903
85904 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85905
85906         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
85907         to avoid a collision with bits/local_lim.h in glibc.
85908         All uses changed.  Problem reported by Dmitry V. Levin in
85909         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
85910
85911         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85912         bugs in int versus size_t comparisons.
85913         (re_string_context_at): Fix bug where the code assumed that
85914         Idx is signed.
85915
85916         Use bool where appropriate.
85917         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85918         All callers changed.
85919         (calc_eclosure_iter): Likewise, for ROOT arg.
85920         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85921         (build_charclass_op): Likewise, for NON_MATCH arg.
85922         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85923         (re_string_construct_common): Likewise, for ICASE arg.
85924         * lib/regexec.c (re_search_2_stub, re_search_stub):
85925         Likewise, for RET_LEN arg.
85926         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85927         (set_regs): Likewise, for FL_BACKTRACK arg.
85928         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85929         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85930         (calc_eclosure_iter, parse_bracket_exp):
85931         Use bool for internal variables that are booleans.
85932         * lib/regexec.c (re_search_internal, check_matching,
85933         proceed_next_node):
85934         (set_regs, build_sifted_states, sift_states_bkref):
85935         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85936         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85937         (find_collation_sequence_value):
85938         Likewise.
85939         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85940         (re_node_set_compare):
85941         Return bool, not int. All callers changed.
85942         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85943         (build_trtable, check_node_accept): Likewise.
85944         * lib/regex_internal.h: Include stdbool.h.
85945
85946         Fix bugs uncovered when converting to bool.
85947         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85948         failure instead of charging ahead blindly.
85949         * lib/regex_internal.c (register_state): Likewise.
85950         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85951         for freeing internal storage.
85952         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85953         bitset pieces used as boolean, to avoid undefined behavior
85954         on hosts that do int overflow checking.
85955
85956 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85957
85958         * config/srclist.txt: Add glibc bugs 1285-1287.
85959
85960 2005-09-01  Jim Meyering  <jim@meyering.net>
85961
85962         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85963         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85964         Require gl_STAT_MACROS, too.
85965
85966 2005-09-01  Bruno Haible  <bruno@clisp.org>
85967
85968         * gnulib-tool (import): In the first-use case, provide defaults.
85969
85970 2005-09-01  Bruno Haible  <bruno@clisp.org>
85971
85972         * gnulib-tool (func_import): Remove the .tmp files.
85973
85974 2005-09-01  Bruno Haible  <bruno@clisp.org>
85975
85976         * gnulib-tool (func_import): Fix handling of symbolic links.
85977
85978 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85979
85980         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85981         old glibc regex code mishandles strings longer than 2**31 bytes.
85982         This patch fixes this when the regex code is used in gnulib
85983         (i.e., outside glibc).
85984
85985         This patch should not affect the use of the regex code inside
85986         glibc.  No doubt this problem also needs to be handled for glibc
85987         as well, but the result will be an incompatible change to the
85988         glibc ABI, and the old ABI will have to be supported too.  That
85989         can be the the subject for another patch.
85990
85991         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85992         governing whether the rest of this patch is active.  By default,
85993         the macro is disabled and the patch has no effect.
85994         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85995         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85996         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85997         (re_match_2, re_set_registers): Use the new types.
85998         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85999         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86000         New macros.
86001         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86002         (re_string_context_at, bin_tree_t, re_dfastate_t):
86003         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86004         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86005         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86006         (re_string_char_size_at, re_string_wchar_at):
86007         (re_string_elem_size_at):
86008         Use the new types and macros to port to 64-bit hosts.
86009         Use unsigned types for internal values, so that the code
86010         mostly works even for arrays larger than SSIZE_MAX.
86011         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86012         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86013         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86014         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86015         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86016         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86017         (calc_inveclosure, parse_dup_op, build_range_exp):
86018         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86019         (fetch_number, create_token_tree, mark_opt_subexp):
86020         Likewise.
86021         * lib/regex_internal.c (re_string_construct_common,
86022         create_ci_newstate):
86023         (create_cd_newstate, re_string_allocate, re_string_construct):
86024         (re_string_realloc_buffers, build_wcs_upper_buffer):
86025         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86026         (re_string_reconstruct, re_string_peek_byte_case):
86027         (re_string_fetch_byte_case, re_string_context_at):
86028         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86029         (re_node_set_init_copy, re_node_set_add_intersect):
86030         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86031         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86032         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86033         (re_acquire_state, re_acquire_state_context, register_state):
86034         Likewise.
86035         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86036         search_cur_bkref_entry):
86037         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86038         (re_search_internal, re_search_2_stub, re_search_stub)
86039         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86040         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86041         (update_cur_sifted_state, check_dst_limits):
86042         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86043         (check_subexp_limits, sift_states_bkref, merge_state_array):
86044         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86045         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86046         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86047         (expand_bkref_cache, check_node_accept_bytes):
86048         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86049         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86050         (acquire_init_state_context, check_halt_node_context):
86051         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86052         (sift_states_backward, clean_state_log_if_needed):
86053         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86054         (find_recover_state, transit_state_sb, transit_state_mb):
86055         (transit_state_bkref, build_trtable, match_ctx_clean):
86056         Likewise.
86057         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86058         to work around an assumption that REG_MISSING is negative.
86059
86060         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86061         (seek_collating_symbol_entry) [defined _LIBC]:
86062         (lookup_collation_sequence_value) [defined _LIBC]:
86063         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86064         Use prototypes rather than old-style function definitions.
86065         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86066         (transit_state_sb) [0]:
86067         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86068
86069         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86070         rm_eo.
86071
86072         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86073         (optimize_subexps, lower_subexp):
86074         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86075         since the signed shift might overflow.  Use 1u<<31 instead.
86076         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86077         Likewise.
86078         * lib/regexec.c (check_dst_limits_calc_pos_1,
86079         check_subexp_matching_top): Likewise.
86080
86081         * lib/regcomp.c (optimize_subexps, lower_subexp):
86082         Use CHAR_BIT rather than 8, for clarity.
86083         * lib/regexec.c (check_dst_limits_calc_pos_1):
86084         (check_subexp_matching_top): Likewise.
86085         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86086         have to worry about portability issues when shifting it left.
86087         Remove no-longer-needed test for table_size > 0.
86088         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86089         in a word, as the resulting behavior is undefined.
86090         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86091         in one case, a <= should have been an <, and in another case the
86092         whole test was missing.
86093         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86094         the standard name CHAR_BIT.
86095         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86096         this is not true on one's complement and signed-magnitude hosts.
86097
86098         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86099         next_last_offset.
86100         (struct re_dfa_t): Remove unused member states_alloc.
86101         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86102
86103 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86106         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86107         and large-file glibc and in 32-bit large-file Solaris.
86108
86109 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86110
86111         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86112         lengths fit in regoff_t; this isn't true if regoff_t is the same
86113         width as size_t.
86114         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86115         (= START + RANGE) instead of RANGE.  This avoids overflow
86116         problems when regoff_t is the same width as size_t.
86117         All callers changed.
86118         (re_search_2_stub): Check for overflow when adding the
86119         sizes of the two strings.
86120         (re_search_stub): Check for overflow when adding START
86121         to RANGE; if it occurs, substitute the extreme value.
86122
86123 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86124
86125         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86126
86127 2005-08-31  Jim Meyering  <jim@meyering.net>
86128
86129         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86130         a pointer-to-const.
86131         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86132         (register_state): Likewise.
86133         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86134         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86135         (group_nodes_into_DFAstates): Likewise.
86136
86137 2005-08-31  Jim Meyering  <jim@meyering.net>
86138
86139         * check-module: Add a FIXME comment.
86140
86141 2005-08-31  Eric Blake  <ebb9@byu.net>
86142
86143         * modules/unistd-safer (Files): Add unistd--.h.
86144         * modules/stdio-safer (Files): Add stdio--.h.
86145
86146 2005-08-31  Derek Price  <derek@ximbiot.com>
86147
86148         * lib/getdelim.c (getdelim): Return EOF on EOF.
86149         Reported by Larry Jones <lawrence.jones@ugs.com>.
86150
86151 2005-08-31  Bruno Haible  <bruno@clisp.org>
86152
86153         Avoid unnecessary diffs in the generated lib/Makefile.am.
86154         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86155         the generated files.
86156         (func_import): Don't set cmd.
86157
86158 2005-08-31  Bruno Haible  <bruno@clisp.org>
86159
86160         * lib/strstr.c: Include <stddef.h>, for NULL.
86161         * lib/strcasestr.c: Likewise.
86162         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86163
86164 2005-08-31  Bruno Haible  <bruno@clisp.org>
86165
86166         * gnulib-tool: New option --macro-prefix.
86167         (func_import): Use macro_prefix.
86168         (import): Handle option --macro-prefix.
86169
86170 2005-08-31  Bruno Haible  <bruno@clisp.org>
86171
86172         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86173         Also use new variables cached_lgpl, cached_libtool.
86174
86175 2005-08-31  Bruno Haible  <bruno@clisp.org>
86176
86177         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86178         always instantiating them.
86179
86180 2005-08-31  Bruno Haible  <bruno@clisp.org>
86181
86182         * gnulib-tool (func_import): Read the previous cached settings
86183         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86184         earlier added by gnulib but are now dropped. Warn when a gnulib file
86185         overwrites a non-gnulib file.
86186
86187 2005-08-31  Bruno Haible  <bruno@clisp.org>
86188
86189         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86190         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86191         projects that don't keep autogenerated files in CVS. Put into
86192         actioncmd only the specified modules, not the transitive closure.
86193
86194 2005-08-31  Bruno Haible  <bruno@clisp.org>
86195
86196         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86197         Create directories that shall be filled.
86198         (import): Don't look for gl_* macros in configure.ac. Recurse across
86199         all directories containing a gnulib-cache.m4 files, if meaningful.
86200
86201 2005-08-31  Bruno Haible  <bruno@clisp.org>
86202
86203         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86204         (import): Set seen_libtool when we see gl_LIBTOOL.
86205
86206 2005-08-31  Bruno Haible  <bruno@clisp.org>
86207
86208         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86209         declaration macro definitions from generated gnulib.m4.
86210
86211 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86212
86213         * lib/iconvme.h: Add prototype for iconv_alloc.
86214
86215 2005-08-29  Simon Josefsson  <jas@extundo.com>
86216
86217         * lib/iconvme.c: Fix errno.
86218
86219 2005-08-29  Bruno Haible  <bruno@clisp.org>
86220
86221         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86222         that it works when the directory contains spaces.
86223
86224 2005-08-29  Bruno Haible  <bruno@clisp.org>
86225
86226         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86227
86228 2005-08-29  Bruno Haible  <bruno@clisp.org>
86229
86230         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86231         Emit more advice.
86232
86233 2005-08-29  Bruno Haible  <bruno@clisp.org>
86234         and Stepan Kasal  <kasal@ucw.cz>
86235
86236         * check-module: If more parameters are given, check each of them
86237         separately; add more exceptions, as noted by Jim Meyering.
86238         (check_module): New procedure.
86239         (%exempt_header): Now contains all exceptions.
86240
86241 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86242
86243         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86244
86245 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86246
86247         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86248
86249 2005-08-28  Bruno Haible  <bruno@clisp.org>
86250
86251         * m4/gnulib-tool.m4: New file.
86252
86253 2005-08-27  Jim Meyering  <jim@meyering.net>
86254
86255         * modules/unistd-safer (Files): Add pipe-safer.c.
86256         * modules/fcntl-safer (Files): Add creat-safer.c.
86257
86258 2005-08-27  Jim Meyering  <jim@meyering.net>
86259
86260         * m4/stdlib-safer.m4: New file.  From coreutils.
86261         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86262         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86263         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86264         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86265         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86266
86267 2005-08-27  Jim Meyering  <jim@meyering.net>
86268
86269         * lib/fopen-safer.c: Merge minor changes from coreutils.
86270         * lib/dup-safer.c: Likewise.
86271         * lib/fd-safer.c: Likewise.
86272
86273         Merge from coreutils.
86274         * lib/stdio--.h: New file.
86275         * lib/stdlib--.h: New file.
86276         * lib/mkstemp-safer.c: New file.
86277
86278         GNU tar needs these.
86279         * lib/pipe-safer.c: New file.
86280         * lib/creat-safer.c: New file.
86281         * lib/fcntl--.h (creat): Define to creat_safer.
86282         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86283         * lib/unistd--.h (pipe): Define to pipe_safer.
86284         * lib/unistd-safer.h: Declare pipe_safer.
86285
86286 2005-08-26  Simon Josefsson  <jas@extundo.com>
86287
86288         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86289         Haible <bruno@clisp.org>.
86290
86291 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86292
86293         * lib/regex_internal.h: Remove all references to
86294         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86295         or better.
86296         (bitset_not, bitset_merge, bitset_not_merge):
86297         (bitset_mask, re_string_allocate, re_string_construct):
86298         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86299         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86300         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86301         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86302         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86303         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86304         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86305         (re_acquire_state_context):
86306         Remove unnecessary forward decls.
86307         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86308         Put __attribute at function definition,
86309         now that the function decl has been removed.
86310         * lib/regex_internal.c (re_string_peek_byte_case):
86311         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86312         Likewise.
86313
86314 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86315
86316         * m4/regex.m4: Add AC_PREREQ(2.50).
86317         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86318
86319 2005-08-25  Simon Josefsson  <jas@extundo.com>
86320
86321         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86322         __fsetlocking.
86323
86324 2005-08-25  Simon Josefsson  <jas@extundo.com>
86325
86326         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86327         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86328         GLIBC specific code.
86329
86330 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86331
86332         Make regex safe for g++.  This fixes one real bug (an "err"
86333         that should have been "*err").  g++ problem reported by
86334         Sam Steingold.
86335         * lib/regex_internal.h (re_calloc): New macro, consistent with
86336         re_malloc etc.  All callers of calloc changed to use re_calloc.
86337         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86338         not int.  All callers changed.
86339         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86340         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86341         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86342         (find_recover_state): Change "err" to "*err"; this fixes what
86343         appears to be a real bug.
86344         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86345         versus int.
86346
86347 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86348
86349         * modules/regex (Depends-on): Add malloc, since the code
86350         assumes that !malloc(0) means failure.
86351
86352 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86353
86354         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86355
86356         alloca modernization/simplification for regex.
86357         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86358         needs to be at the start of the file, and can be moved into
86359         regex_internal.h and simplified.
86360         * lib/regex_internal.h: Include <alloca.h>.
86361         (__libc_use_alloca) [!defined _LIBC]: New macro.
86362         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86363         now works outside glibc.
86364
86365 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86366
86367         * config/srclist.txt: Add glibc bugs 1241, 1245.
86368
86369 2005-08-25  Jim Meyering  <jim@meyering.net>
86370
86371         * lib/open-safer.c: Include <config.h>.
86372         Otherwise, we'd lose LARGEFILE support in any file using
86373         e.g. "fcntl--.h"
86374
86375 2005-08-25  Bruno Haible  <bruno@clisp.org>
86376
86377         * m4/minmax.m4: Require autoconf 2.52.
86378         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86379         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86380         alternatives of translit over the alphabet.
86381         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86382
86383 2005-08-24  Simon Josefsson  <jas@extundo.com>
86384
86385         * tests/test-getpass.c: New file.
86386
86387 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86388
86389         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86390         for GNU regex features.
86391
86392 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86393
86394         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86395         * lib/regex.h (regerror): Likewise.
86396
86397         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86398         requires this.  (The code never needed it.)
86399
86400         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86401         All uses of recently-renamed identifiers changed to use the new,
86402         POSIX-compliant names.  The code will build and run just fine
86403         without these changes, but it's better to eat our own dog food
86404         and use the standard-conforming names.
86405
86406         * lib/regex.h: Fix a multitude of POSIX name space violations.
86407         These changes have an effect only for programs that define
86408         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86409         do not change anything for programs compiled in the normal way.
86410         Also, there is no effect on the ABI.
86411
86412         (_REGEX_SOURCE): New macro.
86413         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86414         defined and _GNU_SOURCE is not; this fixes a name space violation.
86415
86416         Rename the following macros to obey POSIX requirements.
86417         The old names are still visible as macros if _REGEX_SOURCE is defined.
86418         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86419         RE_BACKSLASH_ESCAPE_IN_LISTS.
86420         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86421         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86422         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86423         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86424         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86425         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86426         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86427         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86428         (REG_INTERVALS): renamed from RE_INTERVALS.
86429         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86430         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86431         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86432         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86433         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86434         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86435         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86436         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86437         RE_UNMATCHED_RIGHT_PAREN_ORD.
86438         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86439         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86440         (REG_DEBUG): renamed from RE_DEBUG.
86441         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86442         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86443         unusual, since we can't clash with the POSIX REG_ICASE.
86444         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86445         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86446         (REG_NO_SUB): renamed from RE_NO_SUB.
86447         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86448         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86449         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86450         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86451         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86452         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86453         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86454         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86455         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86456         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86457         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86458         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86459         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86460         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86461         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86462         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86463         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86464         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86465         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86466         (REG_FIXED): Renamed from REGS_FIXED.
86467         (REG_NREGS): Renamed from RE_NREGS.
86468
86469         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86470         of other REG_* macros, since POSIX says the user is allowed to
86471         #undef these macros selectively.
86472
86473         (reg_errcode_t): Update comment stating what other tables need
86474         to be consistent.
86475
86476         Rename the following enum values to obey POSIX requirements.
86477         The old names are still visible as macros.
86478         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86479         is not defined, since GNU is supposed to be a superset of POSIX as
86480         much as possible, and since we want reg_errcode_t to be a signed
86481         type for implementation consistency.
86482         (_REG_NOERROR): Renamed from REG_NOERROR.
86483         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86484         (_REG_BADPAT): Renamed from REG_BADPAT.
86485         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86486         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86487         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86488         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86489         (_REG_EBRACK): Renamed from REG_EBRACK.
86490         (_REG_EPAREN): Renamed from REG_EPAREN.
86491         (_REG_EBRACE): Renamed from REG_EBRACE.
86492         (_REG_BADBR): Renamed from REG_BADBR.
86493         (_REG_ERANGE): Renamed from REG_ERANGE.
86494         (_REG_ESPACE): Renamed from REG_ESPACE.
86495         (_REG_BADRPT): Renamed from REG_BADRPT.
86496         (_REG_EEND): Renamed from REG_EEND.
86497         (_REG_ESIZE): Renamed from REG_ESIZE.
86498         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86499         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86500         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86501         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86502         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86503
86504         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86505         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86506         changed.  But support the old name if the new one is not defined
86507         and if _REGEX_SOURCE.
86508
86509         Change the following member names in struct re_pattern_buffer.
86510         The old names are still supported if !_REGEX_SOURCE.
86511         The new names are always supported, regardless of _REGEX_SOURCE.
86512         (re_buffer): Renamed from buffer.
86513         (re_allocated): Renamed from allocated.
86514         (re_used): Renamed from used.
86515         (re_syntax): Renamed from syntax.
86516         (re_fastmap): Renamed from fastmap.
86517         (re_translate): Renamed from translate.
86518         (re_can_be_null): Renamed from can_be_null.
86519         (re_regs_allocated): Renamed from regs_allocated.
86520         (re_fastmap_accurate): Renamed from fastmap_accurate.
86521         (re_no_sub): Renamed from no_sub.
86522         (re_not_bol): Renamed from not_bol.
86523         (re_not_eol): Renamed from not_eol.
86524         (re_newline_anchor): Renamed from newline_anchor.
86525
86526         Change the following member names in struct re_registers.
86527         The old names are still supported if !_REGEX_SOURCE.
86528         The new names are always supported, regardless of _REGEX_SOURCE.
86529         (rm_num_regs): Renamed from num_regs.
86530         (rm_start): Renamed from start.
86531         (rm_end): Renamed from end.
86532
86533         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86534         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86535         Prepend __ to parameter names.
86536
86537         Undo yesterday's changes.
86538
86539 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86540
86541         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86542         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86543         lib/regex.c.
86544
86545 2005-08-24  Jim Meyering  <jim@meyering.net>
86546
86547         Sync from coreutils.
86548         * m4/fcntl-safer.m4: New file.
86549
86550         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86551         and object files for this module.
86552
86553 2005-08-24  Jim Meyering  <jim@meyering.net>
86554
86555         Sync from coreutils.
86556         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86557
86558 2005-08-24  Jim Meyering  <jim@meyering.net>
86559
86560         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86561         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86562
86563 2005-08-24  Jim Meyering  <jim@meyering.net>
86564
86565         * modules/fcntl-safer: New module.
86566         * modules/fts (Depends-on): Add fcntl-safer.
86567         * MODULES.html.sh (File descriptor based Input/Output):
86568         Add fcntl-safer.
86569
86570 2005-08-24  Bruno Haible  <bruno@clisp.org>
86571
86572         Support for unit test modules.
86573         * modules/README: Mention tests modules.
86574         * modules/TEMPLATE-TESTS: New file.
86575         * gnulib-tool: New options --extract-tests-module, --with-tests and
86576         --tests-base (unused for the moment).
86577         (testsbase, inctests): New variables.
86578         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86579         (func_verify_module): Exclude TEMPLATE-TESTS.
86580         (func_verify_nontests_module, func_verify_tests_module): New functions.
86581         (func_get_dependencies): Add implicit dependency for tests modules.
86582         (func_get_tests_module): New function.
86583         (func_modules_transitive_closure): When --with-tests was specified,
86584         include the unit tests as well, unless explicitly avoided.
86585         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86586         (func_emit_tests_Makefile_am): New function.
86587         (func_create_testdir): When --with-tests was specified, emit a
86588         tests/ directory.
86589         * MODULES.html.sh (Future developments): Update.
86590
86591 2005-08-24  Bruno Haible  <bruno@clisp.org>
86592
86593         * modules/tls-tests: New file.
86594         * tests/test-tls.c: New file, from GNU gettext.
86595
86596 2005-08-24  Bruno Haible  <bruno@clisp.org>
86597
86598         * modules/lock-tests: New file.
86599         * tests/test-lock.c: New file, from GNU gettext.
86600
86601 2005-08-24  Bruno Haible  <bruno@clisp.org>
86602
86603         * lib/lock.h: Add multiple inclusion guard.
86604         * lib/tls.h: Add multiple inclusion guard.
86605
86606 2005-08-24  Bruno Haible  <bruno@clisp.org>
86607
86608         * gnulib-tool: Add support for the --aux-dir option to
86609         --create-testdir, --create-megatestdir, --test, --megatest.
86610         (func_create_testdir, func_create_megatestdir): Optionally emit a
86611         AC_CONFIG_AUX_DIR directive.
86612         (create-testdir, create-megatestdir, test, megatest): Provide a
86613         default value for $auxdir.
86614
86615 2005-08-24  Bruno Haible  <bruno@clisp.org>
86616
86617         * gnulib-tool (import): Use compound statement instead of subshell
86618         where possible.
86619
86620 2005-08-24  Bruno Haible  <bruno@clisp.org>
86621
86622         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86623
86624 2005-08-24  Bruno Haible  <bruno@clisp.org>
86625
86626         * gnulib-tool (func_version): Update.
86627
86628 2005-08-24  Bruno Haible  <bruno@clisp.org>
86629
86630         * gnulib-tool (func_import, func_create_testdir,
86631         func_create_megatestdir): Quote all autoconf macro arguments.
86632
86633 2005-08-24  Bruno Haible  <bruno@clisp.org>
86634
86635         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86636         option --force, because --force causes the aclocal.m4 of each
86637         subdirectory to be newer than the corresponding config.h.in.
86638
86639 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86640
86641         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86642         All contents moved to gl_REGEX.
86643         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86644         assume that it does.
86645
86646 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86647
86648         * lib/regex.h (REG_NOSYS)
86649         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86650         Define, since POSIX requires it as of 2001.
86651         (_REG_ENOSYS)
86652         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86653         New private symbol, used to keep the enum signed in all cases.
86654         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86655         Youngman in
86656         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86657
86658         * lib/regex_internal.c (re_string_skip_chars, register_state):
86659         (calc_state_hash):
86660         Remove forward decls; no longer needed now that we use prototypes.
86661         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86662         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86663         (clean_state_log_if_needed): Likewise.
86664
86665 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86666
86667         * config/srclist.txt: Add glibc bugs 1231-1233.
86668
86669 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86670
86671         Fix problems reported by Sam Steingold in
86672         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86673         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86674         assumed that reg_errcode_t is a signed type, which is not
86675         necessarily true if _XOPEN_SOURCE is not defined.
86676         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86677         since some compilers warn about it otherwise.
86678
86679 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86680
86681         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86682         (init_word_char, create_initial_state, duplicate_node_closure):
86683         (fetch_token, peek_token_bracket, build_range_exp):
86684         (build_collating_symbol): Remove forward decls; no longer needed
86685         now that we use prototypes.
86686
86687         * lib/regcomp.c:
86688         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86689         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86690         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86691         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86692         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86693         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86694         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86695         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86696         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86697         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86698         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86699         (build_charclass, build_charclass_op, fetch_number, create_tree):
86700         (create_token_tree, mark_opt_subexp, duplicate_tree):
86701         Use prototypes rather than old-style definitions.
86702
86703         * lib/regex_internal.c:
86704         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86705         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86706         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86707         (re_string_reconstruct, re_string_peek_byte_case):
86708         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86709         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86710         (re_node_set_init_copy, re_node_set_add_intersect):
86711         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86712         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86713         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86714         (re_acquire_state, re_acquire_state_context, register_state):
86715         (create_ci_newstate, create_cd_newstate, free_state):
86716         Likewise.
86717         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86718         re_search_2):
86719         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86720         (re_search_internal, prune_impossible_nodes):
86721         (acquire_init_state_context, check_matching, static):
86722         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86723         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86724         (update_regs, sift_states_backward, build_sifted_states):
86725         (clean_state_log_if_needed, merge_state_array):
86726         (update_cur_sifted_state, add_epsilon_src_nodes):
86727         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86728         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86729         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86730         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86731         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86732         (check_arrival, check_arrival_add_next_nodes):
86733         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86734         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86735         (check_node_accept_bytes, check_node_accept, extend_buffers):
86736         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86737         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86738         (sift_ctx_init):
86739         Likewise.
86740
86741         * lib/regex_internal.h:
86742         (re_string_allocate, re_string_construct, re_string_reconstruct):
86743         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86744         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86745         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86746         (re_string_context_at, re_string_peek_byte_case):
86747         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86748         is defined, since we now use prototypes always.
86749
86750         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86751         C89 or better.  All uses removed.
86752
86753 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86754
86755         * config/srclist.txt: Add glibc bugs 1220-1227.
86756
86757 2005-08-20  Jim Meyering  <jim@meyering.net>
86758
86759         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86760         of unused local, dfa.
86761
86762 2005-08-20  Bruno Haible  <bruno@clisp.org>
86763
86764         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86765
86766 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86767
86768         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86769         (re_node_set_insert_last, re_dfa_add_node):
86770         Rename local variables to avoid GCC shadowing warnings.
86771
86772 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86773
86774         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86775         [defined lint]: Suppress bogus uninitialized-variable warnings.
86776
86777         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86778         and let the caller return REG_ESPACE if out of space.  This
86779         removes an uninitialied-variable warning with GCC 4.0.1, and also
86780         avoids taking the address of a local variable.  All callers
86781         changed.
86782
86783 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86784
86785         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86786         $LIBCSRC/posix/regexec.c.
86787         Add glibc bug 1217 for regcomp.c.
86788
86789 2005-08-19  Jim Meyering  <jim@meyering.net>
86790
86791         * lib/regexec.c (proceed_next_node): Redo local variables to
86792         avoid GCC shadowing warnings.
86793
86794 2005-08-18  Bruno Haible  <bruno@clisp.org>
86795
86796         * lib/strstr.c (strstr): Fix return value in multibyte case.
86797         * lib/strcasestr.c (strcasestr): Likewise.
86798
86799 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86800
86801         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86802
86803 2005-08-17  Jim Meyering  <jim@meyering.net>
86804
86805         Make the %s format (seconds since the epoch) work for a negative
86806         number and when used with a zero-padded field width, e.g. %015s.
86807
86808         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86809         label so that it precedes the code to set `digits'.  Otherwise,
86810         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86811         print `00-22'.  Now, it prints `-0022', as it should.
86812
86813 2005-08-17  Bruno Haible  <bruno@clisp.org>
86814
86815         * modules/strstr (Files): Add m4/mbrtowc.m4.
86816         (Depends-on): Add mbuiter.
86817
86818 2005-08-17  Bruno Haible  <bruno@clisp.org>
86819
86820         * modules/strcasestr: New file.
86821         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86822         strcasestr.
86823
86824 2005-08-17  Bruno Haible  <bruno@clisp.org>
86825
86826         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86827
86828 2005-08-17  Bruno Haible  <bruno@clisp.org>
86829
86830         * modules/mbuiter: New file.
86831         * MODULES.html.sh (Extended multibyte and wide character utilities):
86832         Add mbuiter.
86833
86834 2005-08-17  Bruno Haible  <bruno@clisp.org>
86835
86836         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86837         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86838
86839 2005-08-17  Bruno Haible  <bruno@clisp.org>
86840
86841         * m4/strcasestr.m4: New file.
86842
86843 2005-08-17  Bruno Haible  <bruno@clisp.org>
86844
86845         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86846         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86847
86848 2005-08-17  Bruno Haible  <bruno@clisp.org>
86849
86850         * lib/strcasestr.h: New file.
86851         * lib/strcasestr.c: New file.
86852
86853 2005-08-17  Bruno Haible  <bruno@clisp.org>
86854
86855         * lib/strcasecmp.c: Use mbuiter.h.
86856
86857 2005-08-17  Bruno Haible  <bruno@clisp.org>
86858
86859         * lib/mbuiter.h: New file.
86860
86861 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86862
86863         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
86864         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
86865         and gl_GETOPT are both invoked via different paths (as happens
86866         with GNU tar CVS because it uses both argp and getopt), the former
86867         wins.
86868
86869 2005-08-16  Bruno Haible  <bruno@clisp.org>
86870
86871         * modules/tls: New file.
86872         * MODULES.html.sh (Multithreading): Add tls.
86873
86874 2005-08-16  Bruno Haible  <bruno@clisp.org>
86875
86876         * modules/strnlen1: New file.
86877         * MODULES.html.sh (String handling): Add strnlen1.
86878
86879 2005-08-16  Bruno Haible  <bruno@clisp.org>
86880
86881         * modules/strcase (Files): Add m4/mbrtowc.m4.
86882         (Depends-on): Add strnlen1, mbchar.
86883
86884 2005-08-16  Bruno Haible  <bruno@clisp.org>
86885
86886         * modules/mbiter: New file.
86887         * MODULES.html.sh (Extended multibyte and wide character utilities):
86888         Add mbiter.
86889
86890 2005-08-16  Bruno Haible  <bruno@clisp.org>
86891
86892         * modules/mbfile: New file.
86893         * MODULES.html.sh (Extended multibyte and wide character utilities):
86894         Add mbfile.
86895
86896 2005-08-16  Bruno Haible  <bruno@clisp.org>
86897
86898         * modules/mbchar: New file.
86899         * MODULES.html.sh (Extended multibyte and wide character utilities):
86900         New section.
86901
86902 2005-08-16  Bruno Haible  <bruno@clisp.org>
86903
86904         * m4/tls.m4: New file, from GNU gettext.
86905
86906 2005-08-16  Bruno Haible  <bruno@clisp.org>
86907
86908         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
86909         always.
86910         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86911
86912 2005-08-16  Bruno Haible  <bruno@clisp.org>
86913
86914         * m4/mbiter.m4: New file.
86915
86916 2005-08-16  Bruno Haible  <bruno@clisp.org>
86917
86918         * m4/mbfile.m4: New file.
86919
86920 2005-08-16  Bruno Haible  <bruno@clisp.org>
86921
86922         * m4/mbchar.m4: New file.
86923
86924 2005-08-16  Bruno Haible  <bruno@clisp.org>
86925
86926         * lib/tls.h: New file, from GNU gettext.
86927         * lib/tls.c: New file, from GNU gettext.
86928
86929 2005-08-16  Bruno Haible  <bruno@clisp.org>
86930
86931         * lib/strnlen1.h: New file.
86932         * lib/strnlen1.c: New file.
86933
86934 2005-08-16  Bruno Haible  <bruno@clisp.org>
86935
86936         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86937         (mbi_init): Update.
86938         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86939         NUL byte, not after it.
86940
86941 2005-08-16  Bruno Haible  <bruno@clisp.org>
86942
86943         * lib/strcase.h (strcasecmp): Add note in comments.
86944         * lib/strncasecmp.c: Use code from strcasecmp.c.
86945         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86946         (strcasecmp): Work correctly in multibyte locales.
86947
86948 2005-08-16  Bruno Haible  <bruno@clisp.org>
86949
86950         * lib/mbiter.h: New file.
86951
86952 2005-08-16  Bruno Haible  <bruno@clisp.org>
86953
86954         * lib/mbfile.h: New file.
86955
86956 2005-08-16  Bruno Haible  <bruno@clisp.org>
86957
86958         * lib/mbchar.h: New file.
86959         * lib/mbchar.c: New file.
86960
86961 2005-08-16  Bruno Haible  <bruno@clisp.org>
86962
86963         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86964         the valid ones. Makes the comparison operations transitive:
86965         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86966         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86967
86968 2005-08-15  Simon Josefsson  <jas@extundo.com>
86969
86970         * modules/ssize_t (License): Change to 'unlimited'.
86971
86972         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86973
86974 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86975
86976         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86977         Add comments for each pending glibc patch.
86978
86979 2005-08-15  Bruno Haible  <bruno@clisp.org>
86980
86981         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86982         __cplusplus is defined.
86983
86984 2005-08-14  Jim Meyering  <jim@meyering.net>
86985
86986         Sync from coreutils.
86987
86988         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86989         Use the hash-table-based cycle-detection code not just when
86990         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86991         Reported by James Youngman in
86992         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86993         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86994         FTS_TIGHT_CYCLE_CHECK.
86995         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86996         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86997         once again.
86998         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86999         * lib/fts.c (fd_safer): Remove decl.
87000         Include fcntl--.h rather than unistd-safer.h
87001         (fts_safe_changedir): Don't call fd_safer; no longer needed
87002         now that we include fcntl--.h.
87003
87004 2005-08-12  Simon Josefsson  <jas@extundo.com>
87005
87006         * modules/getndelim2: Use ssize_t module.
87007         * modules/getnline: Likewise.
87008         * modules/safe-read: Likewise.
87009         * modules/xreadlink: Likewise.
87010
87011         * modules/ssize_t: New file.
87012
87013 2005-08-12  Simon Josefsson  <jas@extundo.com>
87014
87015         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87016
87017 2005-08-12  Simon Josefsson  <jas@extundo.com>
87018
87019         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87020         ssize_t.
87021
87022 2005-08-12  Simon Josefsson  <jas@extundo.com>
87023
87024         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87025         readline, getdelim and check_version.
87026         (Support for systems lacking ISO C 99: Sizes of integer types):
87027         Add size_max.
87028
87029 2005-08-12  Bruno Haible  <bruno@clisp.org>
87030
87031         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87032
87033 2005-08-11  Simon Josefsson  <jas@extundo.com>
87034
87035         * modules/readline: New file.
87036
87037         * modules/strnlen (Files): Add strnlen.h.
87038
87039 2005-08-11  Simon Josefsson  <jas@extundo.com>
87040
87041         * m4/readline.m4: New file.
87042
87043 2005-08-11  Simon Josefsson  <jas@extundo.com>
87044
87045         * lib/readline.h, readline.c: New file.
87046
87047 2005-08-11  Simon Josefsson  <jas@extundo.com>
87048
87049         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87050         gl_AVOID.
87051
87052 2005-08-11  Bruno Haible  <bruno@clisp.org>
87053
87054         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87055
87056 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87057
87058         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87059
87060 2005-08-10  Simon Josefsson  <jas@extundo.com>
87061
87062         * tests/test-iconvme.c: New file.
87063
87064 2005-08-10  Simon Josefsson  <jas@extundo.com>
87065
87066         * m4/strnlen.m4: New file.
87067
87068         * m4/strndup.m4: Don't check for strnlen declaration, done in
87069         strnlen.m4.
87070
87071 2005-08-10  Simon Josefsson  <jas@extundo.com>
87072
87073         * lib/strndup.c: Use strnlen.h.
87074
87075         * lib/strnlen.h: New file.
87076
87077 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87078
87079         * README: Typos.
87080
87081 2005-08-02  Simon Josefsson  <jas@extundo.com>
87082
87083         * modules/readline: New file.
87084
87085 2005-08-02  Simon Josefsson  <jas@extundo.com>
87086
87087         * modules/getdelim: New file.
87088
87089         * modules/getline: Rewrite, don't use getndelim2.
87090
87091 2005-08-02  Simon Josefsson  <jas@extundo.com>
87092
87093         * m4/getline.m4: Separate out getdelim stuff into separate module.
87094
87095         * m4/getdelim.m4: New file.
87096
87097 2005-08-02  Simon Josefsson  <jas@extundo.com>
87098
87099         * lib/getline.h, getline.c: Rewrite.
87100
87101         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87102
87103 2005-07-31  Bruno Haible  <bruno@clisp.org>
87104
87105         * lib/lock.h (gl_lock_initializer): New macro.
87106         (gl_lock_define_initialized): Use it.
87107         (gl_rwlock_initializer): New macro.
87108         (gl_rwlock_define_initialized): Use it.
87109         (gl_recursive_lock_initializer): New macro.
87110         (gl_recursive_lock_define_initialized): Use it.
87111
87112 2005-07-30  Karl Berry  <karl@gnu.org>
87113
87114         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87115         Report from Ben Pfaff, regarding getopt.
87116
87117 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87118
87119         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87120         normal way.
87121         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87122         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87123         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87124         (gl_GETOPT): Use the new macros.  Most of the implementation
87125         is moved to the new macros.  This is for programs like Emacs
87126         that don't want all the functionality of gl_GETOPT.
87127
87128 2005-07-26  Bruno Haible  <bruno@clisp.org>
87129
87130         * m4/lock.m4: Update from GNU gettext.
87131
87132 2005-07-26  Bruno Haible  <bruno@clisp.org>
87133
87134         * lib/lock.h: Update from GNU gettext.
87135         * lib/lock.c: Update from GNU gettext.
87136
87137 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87138
87139         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87140         obsolescent AC_TRY_RUN.  Include the default includes files, for
87141         'exit'.
87142
87143 2005-07-24  Bruno Haible  <bruno@clisp.org>
87144
87145         * modules/visibility: New file.
87146         * MODULES.html.sh (Misc): Add visibility.
87147
87148 2005-07-24  Bruno Haible  <bruno@clisp.org>
87149
87150         * m4/visibility.m4: New file.
87151
87152 2005-07-24  Bruno Haible  <bruno@clisp.org>
87153
87154         * doc/visibility.texi: New file.
87155
87156 2005-07-22  Bruno Haible  <bruno@clisp.org>
87157
87158         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87159         $(ALLOCA_H), redundant through BUILT_SOURCES.
87160         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87161         redundant through BUILT_SOURCES.
87162         * modules/byteswap (Makefile.am): Remove explicit dependency on
87163         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87164         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87165         $(FNMATCH_H), redundant through BUILT_SOURCES.
87166         * modules/getopt (Makefile.am): Remove explicit dependency on
87167         $(GETOPT_H), redundant through BUILT_SOURCES.
87168         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87169         redundant through BUILT_SOURCES.
87170         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87171         redundant through BUILT_SOURCES.
87172         * modules/stdbool (Makefile.am): Remove explicit dependency on
87173         $(STDBOOL_H), redundant through BUILT_SOURCES.
87174         * modules/stdint (Makefile.am): Remove explicit dependency on
87175         $(STDINT_H), redundant through BUILT_SOURCES.
87176         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87177         Remove explicit dependency on $(SYSEXITS_H).
87178         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87179
87180 2005-07-18  Simon Josefsson  <jas@extundo.com>
87181
87182         * lib/check-version.c (check_version): Accept identical versions too.
87183
87184 2005-07-18  Bruno Haible  <bruno@clisp.org>
87185
87186         * modules/lock: New file.
87187         * MODULES.html.sh (Multithreading): New section.
87188
87189 2005-07-18  Bruno Haible  <bruno@clisp.org>
87190
87191         * m4/lock.m4: New file, from GNU gettext.
87192
87193 2005-07-18  Bruno Haible  <bruno@clisp.org>
87194
87195         * lib/lock.h: New file, from GNU gettext.
87196         * lib/lock.c: New file, from GNU gettext.
87197
87198 2005-07-18  Bruno Haible  <bruno@clisp.org>
87199
87200         * lib/lock.h (gl_once_t): New type.
87201         (gl_once_define, gl_once): New macros.
87202         * lib/lock.c (fresh_once): New variable.
87203         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87204         functions.
87205
87206 2005-07-16  Simon Josefsson  <jas@extundo.com>
87207
87208         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87209         workaround, suggested by Bruno.
87210
87211 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87212
87213         * modules/xalloc (Depends-on): Add xalloc-die.
87214         * modules/xvasprintf (Depends-on): Add xalloc-die.
87215
87216 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87217
87218         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87219         with a minor change.
87220
87221 2005-07-15  Bruno Haible  <bruno@clisp.org>
87222
87223         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87224         When using lib/poll.c, define poll as rpl_poll.
87225
87226 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87227
87228         * modules/argp (Depends-on): Remove unlocked-io.
87229
87230 2005-07-14  Derek Price  <derek@ximbiot.com>
87231
87232         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87233         for glob symlink bug.
87234
87235 2005-07-14  Bruno Haible  <bruno@clisp.org>
87236
87237         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87238         Instead, test for *_unlocked function declarations directly.
87239
87240 2005-07-11  Simon Josefsson  <jas@extundo.com>
87241
87242         * modules/size_max: New file.
87243
87244         * modules/xsize: Depend on size_max module for size_max.m4.
87245
87246 2005-07-11  Simon Josefsson  <jas@extundo.com>
87247
87248         * lib/size_max.h: New file.
87249
87250 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87251
87252         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87253         copyright symbol and the year.
87254         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87255         (version_etc_va): Use parameterized copyright notice.
87256         Reword to conform to the current GNU coding standards.
87257
87258 2005-07-11  Karl Berry  <karl@gnu.org>
87259
87260         * doc/gnulib.texi (Quoting): new node.
87261         (Initial import): more info, from Patrice.
87262
87263 2005-07-11  Bruno Haible  <bruno@clisp.org>
87264
87265         * gnulib-tool (func_usage): Document option --avoid.
87266         (Command line options): Handle --avoid.
87267         (func_acceptable): New function.
87268         (func_modules_transitive_closure): Use it.
87269
87270 2005-07-11  Bruno Haible  <bruno@clisp.org>
87271
87272         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87273         Reported by Jim Meyering.
87274
87275 2005-07-10  Bruno Haible  <bruno@clisp.org>
87276
87277         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87278         Needed when size_t is smaller than 'unsigned int'.
87279         Reported by Paul Eggert.
87280
87281 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87282
87283         * modules/argp (Depends-on): Add unlocked-io
87284
87285 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87286
87287         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87288         block of defines.
87289
87290 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87291
87292         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87293         fix now.
87294
87295 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87296         and Paul Eggert  <eggert@cs.ucla.edu>
87297
87298         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87299         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87300
87301 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87302
87303         * modules/regex (Files): Add lib/regex_internal.c,
87304         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87305         (Depends-on): Add extensions.
87306         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87307
87308 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87309
87310         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87311         pathconf.
87312         * m4/same.m4 (gl_SAME): Likewise.
87313         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87314
87315         * m4/regex.m4: Adjust to new libc regex implementation.
87316         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87317         all the .c and .h parts of (the new) regex.
87318         Quote the m4 stuff better.
87319         Check for RE_ICASE bug of old gnulib.
87320         Check for REG_STARTEND of recent libc.
87321         Rename local variables from jm_* to gl_*.
87322         Quote operand of "test -f".
87323         Say "recent enough" version of libc, not "version 2".
87324         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87325         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87326         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87327         Remove check for btowc, isascii.
87328         Require AM_LANGINFO_CODESET.
87329
87330 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87331
87332         * lib/regex.c, regex.h: Sync from libc.
87333         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87334         * lib/regexec.c:
87335         New files, synced from libc, except that regex_internal.h
87336         currently has a small porting fix.
87337
87338 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87339
87340         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87341         regex_internal.c, regexec.c.
87342         Add regex_internal.h too, but as a comment, since the libc version
87343         is currently broken in gnulib mode.
87344
87345 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87346
87347         Support programs like Emacs that use gnulib but not gettext.
87348         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87349         * modules/gettext-h: New file.
87350         * modules/gettext (Files): Remove lib/gettext.h.
87351         (Depends-on): Add gettext-h.
87352         (Makefile.am): Remove lib_SOURCES.
87353         * modules/argmatch, modules/c-stack, modules/closeout:
87354         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87355         * modules/execute, modules/file-type, modules/getaddrinfo:
87356         * modules/getopt, modules/human, modules/javacomp:
87357         * modules/javaexec, modules/mkdir-p, modules/obstack:
87358         * modules/openat, modules/pagealign_alloc, modules/pipe:
87359         * modules/quotearg, modules/regex, modules/rpmatch:
87360         * modules/unicodeio, modules/userspec, modules/version-etc:
87361         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87362         * modules/xsetenv:
87363         Depend on gettext-h, not gettext.
87364
87365 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87366
87367         * gnulib-tool (func_import): Add support for 'public domain' license.
87368         * modules/alloca, modules/atexit, modules/memmove:
87369         Now public domain, not GPL.
87370         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87371         * modules/realloc, modules/strerror, modules/strtod:
87372         Now LGPL, not GPL.
87373
87374 2005-07-05  Bruno Haible  <bruno@clisp.org>
87375
87376         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87377         autoconf CVS. Needed for mingw.
87378
87379 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87380
87381         Remove the dependency of the strftime module on the tzset module.
87382         * modules/strftime (Depends-on): Remove dependency on tzset.
87383
87384 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87385
87386         Remove the dependency of the strftime module on the tzset module.
87387         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87388         gl_FUNC_TZSET_CLOBBER.
87389
87390 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87391
87392         Remove the dependency of the strftime module on the tzset module.
87393         * lib/strftime.c (my_strftime)
87394         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87395         Copy the input structure, to work around some of the bug with
87396         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87397         Solaris releases, you should also use the tzset module, but we won't
87398         require it as a dependency any more since we don't want LGPLed code
87399         to depend on GPLed code.
87400
87401 2005-07-02  Jim Meyering  <jim@meyering.net>
87402
87403         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87404         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87405         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87406         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87407
87408 2005-07-02  Jim Meyering  <jim@meyering.net>
87409
87410         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87411
87412 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87413
87414         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87415         declares only 'struct timespec;' (!).
87416
87417 2005-07-01  Jim Meyering  <jim@meyering.net>
87418
87419         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87420         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87421         * lib/save-cwd.c, tempname.c:
87422         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87423         and don't include <sys/file.h>).
87424
87425 2005-06-29  Jim Meyering  <jim@meyering.net>
87426
87427         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87428         type name.  Use the variable name instead.
87429         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87430         Likewise.
87431
87432 2005-06-28  Simon Josefsson  <jas@extundo.com>
87433
87434         * modules/check-version (Files): Add check-version.m4.
87435
87436 2005-06-28  Simon Josefsson  <jas@extundo.com>
87437
87438         * m4/check-version.m4: New file, suggested by Jim Meyering
87439         <jim@meyering.net>.
87440
87441 2005-06-28  Simon Josefsson  <jas@extundo.com>
87442
87443         * lib/check-version.h, lib/check-version.c: New files.
87444
87445 2005-06-28  Simon Josefsson  <jas@extundo.com>
87446
87447         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87448         collision with global variable.  Better indentation.  Don't
87449         increment buffer pointer beyond buffer end.  Based on comments
87450         from Paul Eggert <eggert@cs.ucla.edu>.
87451
87452         * lib/base64.h: Indent.
87453
87454 2005-06-28  Simon Josefsson  <jas@extundo.com>
87455
87456         * doc/gnulib.texi (Library version handling): New section.
87457
87458 2005-06-28  Jim Meyering  <jim@meyering.net>
87459
87460         * check-module (find_included_lib_files): Hard-code another
87461         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87462         but modules/fts-lgpl (correctly) does not list those files.
87463
87464         * modules/canonicalize (Files): Add lib/pathmax.h.
87465
87466 2005-06-25  Simon Josefsson  <jas@extundo.com>
87467
87468         * modules/check-version: New file.
87469
87470 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87471
87472         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87473         initializer of struct addrinfo, as an indication that we don't
87474         care how many members the structure has.
87475
87476 2005-06-24  Derek Price  <derek@ximbiot.com>
87477         and Bruno Haible  <bruno@clisp.org>
87478
87479         Remove stat module & update lstat.
87480         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87481         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87482         * m4/stat.m4: Remove this file.
87483
87484 2005-06-24  Derek Price  <derek@ximbiot.com>
87485         and Bruno Haible  <bruno@clisp.org>
87486
87487         Remove stat module & update lstat.
87488         * lib/stat.c: Remove this file...
87489         (slash_aware_lstat): ...moving this content and its support...
87490         * lib/lstat.c (rpl_lstat): ...into here.
87491         * lib/lstat.h: New file.
87492
87493 2005-06-24  Derek Price  <derek@ximbiot.com>
87494         and Bruno Haible  <bruno@clisp.org>
87495
87496         Remove stat module & update lstat.
87497         * config/srclist.txt (libc sources): Remove stat.
87498
87499 2005-06-24  Derek Price  <derek@ximbiot.com>
87500         and Bruno Haible  <bruno@clisp.org>
87501
87502         Remove stat module & update lstat.
87503         * MODULES.html.sh (stat): Remove.
87504         * MODULES.html: Regenerated.
87505         * modules/lstat (Description): Correct function name.
87506         (Files): Add "lstat.h".
87507         (Depends-on): Remove stat, add xalloc, stat-macros.
87508         * modules/stat: Remove this file.
87509         (Include): Add "lstat.h", remove <sys/stat.h>.
87510
87511 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87512
87513         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87514         (ranged_convert): Don't save conversion in a temporary struct.
87515         This causes a warning with GCC 4.0.0, and anyway in the typical
87516         case it's not worth the extra 100 bytes or so of code.
87517         (ranged_convert, __mktime_internal): When calling a function via a
87518         pointer P, use P () rather than (*P) (), as we now assume C89 or
87519         better.
87520
87521 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87522
87523         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87524         "who -r" failed to give output.  Problem reported by Tim Waugh.
87525
87526         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87527         (xcalloc): Use it to avoid needless tests.
87528         Problem reported by Jim Meyering.
87529
87530 2005-06-20  Derek Price  <derek@ximbiot.com>
87531
87532         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87533         unnecessary for Autoconfs > 2.59c.
87534
87535 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87536
87537         * lib/argp.h (__option_is_short): Check upper limit of
87538         __key. Isprint() requires its argument to have the value
87539         of an unsigned char or EOF.
87540
87541 2005-06-16  Jim Meyering  <jim@meyering.net>
87542
87543         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87544         when either N or S is zero.
87545
87546 2005-06-16  Derek Price  <derek@ximbiot.com>
87547
87548         * m4/bison.m4: Declare YACC & YFLAGS precious.
87549
87550 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87551
87552         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87553         multibyte string or pattern, fall back on unibyte matching.
87554         Problem reported by James Youngman.
87555
87556 2005-06-08  Bruno Haible  <bruno@clisp.org>
87557
87558         * modules/csharpcomp: New file.
87559         * MODULES.html.sh (C#): Add csharpcomp.
87560
87561 2005-06-08  Bruno Haible  <bruno@clisp.org>
87562
87563         * m4/csharpcomp.m4: New file, from GNU gettext.
87564
87565 2005-06-08  Bruno Haible  <bruno@clisp.org>
87566
87567         * lib/csharpcomp.h: New file, from GNU gettext.
87568         * lib/csharpcomp.c: New file, from GNU gettext.
87569         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87570
87571 2005-06-08  Bruno Haible  <bruno@clisp.org>
87572
87573         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87574         warning on mingw.
87575
87576 2005-06-07  Derek Price  <derek@ximbiot.com>
87577
87578         Sync from CVS.
87579         * lib/glob_.h: Indent nested #ifdef.
87580
87581 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87582
87583         Sync from coreutils.
87584         Use "file name" when talking about file names, instead of "filename"
87585         or "path", as per the GNU coding standards.
87586         * lib/mkdir-p.c: Renamed from makepath.c.
87587         (make_dir_parents): Renamed from make_path.  All callers changed.
87588         * lib/mkdir-p.h: Likewise.  All includers changed.
87589         * lib/filenamecat.c: Renamed from path-concat.c.
87590         (file_name_concat): Renamed from path_concat.  All callers changed.
87591         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87592         * lib/filenamecat.h: Likewise.  All includers changed.
87593         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87594         in comments or local variable names.
87595         * lib/basename.c: Likewise.
87596         * lib/canonicalize.c, canonicalize.h: Likewise.
87597         * lib/dirname.c, dirname.h: Likewise.
87598         * lib/euidaccess.c: Likewise.
87599         * lib/exclude.c: Likewise
87600         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87601         * lib/fsusage.c, fsuage.h: Likewise.
87602         * lib/fts.c, fts_.h: Likewise.
87603         * lib/getcwd.c: Likewise.
87604         * lib/getloadavg.c: Likewise.
87605         * lib/mkstemp.c: Likewise.
87606         * lib/mountlist.c, mountlist.h: Likewise.
87607         * lib/openat.c, openat.h: Likewise.
87608         * lib/readlink-stub.c: Likewise.
87609         * lib/readutmp.c, readutmp.h: Likewise.
87610         * lib/rename.c: Likewise.
87611         * lib/rmdir.c: Likewise.
87612         * lib/same.c: Likewise.
87613         * lib/savedir.c: Likewise.
87614         * lib/stripslash.c: Likewise.
87615         * lib/tempname.c: Likewise.
87616         * lib/xreadlink.c: Likewise.
87617         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87618         All uses changed.
87619         * lib/exclude.h: Likewise.
87620
87621         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87622         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87623         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87624         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87625         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87626         files have been getting away with it for years (MORE/BSD 4.3
87627         is extinct now).
87628         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87629         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87630
87631         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87632         Define to 256, not 255, as per modern POSIX.
87633
87634 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87635
87636         Sync from coreutils.
87637         Use "file name" when talking about file names, instead of "filename"
87638         or "path", as per the GNU coding standards.
87639         * MODULES.html.sh: mkdir-p renamed from makepath.
87640         filenamecat renamed from path-concat.
87641         * modules/filenamecat: Renamed from modules/path-concat.
87642         (Files): filenamecat.h and filenamecat.c renamed from
87643         path-concat.h and path-concat.c.
87644         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87645         (Include): filenamecat.h, not path-concat.h.
87646         * modules/mkdir-p: Renamed from modules/makepath.
87647         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87648         makepath.c.
87649         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87650         (Include): mkdir-p.h, not makepath.h.
87651
87652 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87653
87654         Sync from coreutils.
87655         * m4/mkdir-p.m4: Renamed from makepath.m4.
87656         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87657         Rename files from makepath.c to mkdir-p.c, and from
87658         makepath.h to mkdir-p.h.
87659         * m4/filenamecat.m4: Renamed from path-concat.m4.
87660         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87661         Rename files from path-concat.c to filenamecat.c,
87662         and from path-concat.h to filenamecat.h.
87663         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87664         "file name" in local variables or comments.
87665         * m4/rename.m4: Likewise.
87666
87667 2005-06-01  Bruno Haible  <bruno@clisp.org>
87668
87669         * modules/csharpexec: New file.
87670         * MODULES.html.sh (C#): New section.
87671
87672 2005-06-01  Bruno Haible  <bruno@clisp.org>
87673
87674         * m4/csharp.m4: New file, from GNU gettext.
87675         * m4/csharpexec.m4: New file, from GNU gettext.
87676
87677 2005-06-01  Bruno Haible  <bruno@clisp.org>
87678
87679         * lib/csharpexec.h: New file, from GNU gettext.
87680         * lib/csharpexec.c: New file, from GNU gettext.
87681         * lib/csharpexec.sh.in: New file, from GNU gettext.
87682
87683 2005-05-31  Derek Price  <derek@ximbiot.com>
87684             Paul Eggert  <eggert@cs.ucla.edu>
87685
87686         Sync from cvs.
87687         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87688
87689 2005-05-31  Derek Price  <derek@ximbiot.com>
87690             Paul Eggert  <eggert@cs.ucla.edu>
87691
87692         Sync from cvs.
87693         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87694
87695 2005-05-29  Derek Price  <derek@ximbiot.com>
87696
87697         * config/srclist.txt (glob_.h, glob.c): Add these files.
87698
87699 2005-05-29  Derek Price  <derek@ximbiot.com>
87700
87701         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87702         * modules/glob: New file.
87703         * modules/getlogin_r: Add link to POSIX spec in description.
87704
87705 2005-05-29  Derek Price  <derek@ximbiot.com>
87706             Paul Eggert  <eggert@cs.ucla.edu>
87707
87708         * m4/glob.m4: New file.
87709
87710 2005-05-29  Derek Price  <derek@ximbiot.com>
87711             Paul Eggert  <eggert@cs.ucla.edu>
87712
87713         * lib/glob_.h, lib/glob.c: New files.
87714
87715 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87716
87717         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87718         * modules/fts-lgpl (Depends-on): Remove gettext.
87719
87720 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87721
87722         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87723         and don't require gt_INTTYPES_PRI.
87724
87725 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87726
87727         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87728
87729         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87730         the configuration hassle isn't worth it.
87731         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87732         (LONGEST_MODIFIER, PRIuMAX): Remove.
87733
87734 2005-05-27  Bruno Haible  <bruno@clisp.org>
87735
87736         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87737
87738 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87739
87740         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87741         _POSIX_PTHREAD_SEMANTICS for Solaris.
87742
87743 2005-05-25  Derek Price  <derek@ximbiot.com>
87744
87745         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87746
87747 2005-05-25  Derek Price  <derek@ximbiot.com>
87748             Paul Eggert  <eggert@cs.ucla.edu>
87749
87750         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87751         * lib/getlogin_r.c, getlogin_r.h: New files.
87752
87753 2005-05-25  Bruno Haible  <bruno@clisp.org>
87754             Derek Price  <derek@ximbiot.com>
87755
87756         * lib/getlogin_r.h: Simplify API documentation.
87757
87758 2005-05-23  Derek Price  <derek@ximbiot.com>
87759
87760         * modules/minmax (Files): Add m4/minmax.m4.
87761         (configure.ac): Add gl_MINMAX.
87762
87763 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87764
87765         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87766         so that unistd-safer.h (GPL'ed code) need not be included.
87767
87768 2005-05-22  Bruno Haible  <bruno@clisp.org>
87769
87770         * m4/minmax.m4: New file.
87771         Based on a patch by Derek Price <derek@ximbiot.com>.
87772
87773 2005-05-22  Bruno Haible  <bruno@clisp.org>
87774
87775         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87776         (INT64_MIN): Fix definition.
87777         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87778
87779         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87780         NEED_SIGNED_INT_TYPES.
87781
87782         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87783         HAVE_SYSTEM_INTTYPES.
87784
87785 2005-05-22  Bruno Haible  <bruno@clisp.org>
87786
87787         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87788         Also include <sys/param.h> if it defines MIN, MAX.
87789         Based on a patch by Derek Price <derek@ximbiot.com>.
87790
87791 2005-05-21  Jim Meyering  <jim@meyering.net>
87792
87793         * modules/fts (Files): Add m4/inttypes-pri.m4.
87794         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87795
87796 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87797
87798         New fts module.
87799         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87800         (setup_dir, free_dir): New functions.
87801         (enter_dir, leave_dir): Define trivial
87802         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87803         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87804         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87805         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87806         Move to fts-cycle.c.
87807         (fts_open): Use setup_dir.
87808         (fts_close): Use free_dir.
87809         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87810         This adds a label and some gotos, but the alternatives were messier.
87811         Check for memory allocation failure when entering a dir.
87812         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87813         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87814         (FTS): New member fts_cycle, that is a union that contains the
87815         old active_dir_ht and cycle_state.  All uses changed to mention
87816         fts_cycle.ht and fts_cycle.state.
87817         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87818         fts.c, with the following changes:
87819         (setup_dir, free_dir): New functions.
87820         (enter_dir): Now returns bool.  Return true if successful, false
87821         if memory exhausted.  All callers changed.
87822         Do not bother partly cleaning up on
87823         memory allocation failure; that is free_dir's job.
87824         However, free ad if hash_insert fails, to avoid memory leak.
87825         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87826         fts->fts_options to see which union member to use.
87827
87828 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87829
87830         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87831         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87832
87833 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87834
87835         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87836
87837 2005-05-20  Jim Meyering  <jim@meyering.net>
87838
87839         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87840         Now a macro, to pacify GCC.
87841
87842 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87843
87844         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87845         of -1.
87846
87847 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87848
87849         * lib/chown.c (rpl_chown): Return -1 on failure.
87850
87851 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87852
87853         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87854         Don't check for stddef.h.
87855         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87856         don't use its results.
87857         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87858         since we include them unconditionally.  Don't require
87859         AM_STDBOOL_H, since stdbool is a prerequisite.
87860         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87861         since we assume C89 or better.
87862         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
87863         as we don't use their results.
87864         Don't check for fchdir, memmove, memset, strrchr, as we use
87865         them unconditionally.
87866         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
87867         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
87868
87869 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87870
87871         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
87872         Include <stddef.h> unconditionally, since we assume C89 now.
87873         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
87874         * lib/fts.c: Include fts_.h first, to check interface.
87875         Do not include intprops.h; no longer needed.
87876         Include cycle-check.h and hash.h, since fts_.h no longer does.
87877         Remove unnecessary casts of closedir to void.
87878         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
87879         decide whether to decrement nlinks.
87880         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
87881         (FTS): Use struct hash_table * instead of Hash_table, so that
87882         we no longer need to include hash.h here.
87883
87884 2005-05-18  Jim Meyering  <jim@meyering.net>
87885
87886         * modules/dirfd (License): Change to LGPL.  Most of the code
87887         is already in the public domain.
87888
87889 2005-05-18  Jim Meyering  <jim@meyering.net>
87890
87891         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
87892         Reported by Yoann Vandoorselaere.
87893
87894 2005-05-17  Jim Meyering  <jim@meyering.net>
87895
87896         * m4/fts.m4: New file, from coreutils.
87897
87898 2005-05-17  Jim Meyering  <jim@meyering.net>
87899
87900         * lib/fts.c, lib/fts_.h: New files, from coreutils.
87901
87902 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87903
87904         Sync from coreutils.
87905         * m4/unlinkdir.m4: New file.
87906
87907 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87908
87909         Sync from coreutils.
87910         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87911         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87912         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87913         White space changes only.
87914         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87915         special.
87916         * lib/yesno.c: Include getline.h, not ctype.h.
87917         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87918         Use getline to remove arbitrary restriction on response length.
87919
87920 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87921
87922         * config/srclist-update: Spell out "Street" in FSF postal
87923         mail address; this is the style the FSF seems to prefer.
87924
87925         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87926         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87927         this updates FSF postal mail address.
87928
87929         Sync from coreutils.
87930         * modules/unlinkdir: New file.
87931         * modules/yesno (Depends-on): Add getline.
87932         * MODULES.html.sh (File system functions): Add unlinkdir.
87933
87934 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87935
87936         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87937         lib/strsep.h:
87938         Change the initial comment to refer to GPL, not LGPL.
87939         gnulib-tool will change it to LGPL as needed.
87940
87941         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87942         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87943         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87944         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87945         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87946         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87947         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87948         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87949         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87950         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87951         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87952         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87953         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87954         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87955         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87956         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87957         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87958         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87959         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87960         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87961         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87962         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87963         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87964         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87965         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87966         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87967         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87968         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87969         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87970         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87971         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87972         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87973         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87974         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87975         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87976         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87977         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87978         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87979         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87980         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87981         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87982         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87983         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87984         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87985         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87986         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87987         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87988         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87989         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87990         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87991         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87992         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87993         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87994         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87995         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87996         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87997         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87998         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87999         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88000         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88001         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88002         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88003         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88004         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88005         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88006         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88007         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88008         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88009         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88010         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88011         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88012         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88013         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88014         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88015         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88016         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88017         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88018         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88019         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88020         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88021         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88022         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88023         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88024         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88025         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88026         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88027         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88028         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88029         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88030         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88031         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88032         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88033         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88034         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88035         lib/yesno.c, lib/yesno.h:
88036         Update FSF postal mail address.
88037
88038 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88039
88040         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88041         tests/test-memmem.c, tests/test-stpncpy.c:
88042         Update FSF postal mail address.
88043
88044 2005-05-13  Bruno Haible  <bruno@clisp.org>
88045
88046         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88047         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88048         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88049         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88050         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88051         Add support for 64-bit integers in the MSVC compiler.
88052
88053 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88054
88055         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88056
88057 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88058
88059         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88060
88061 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88062
88063         * doc/getdate.texi (General date syntax): Don't say that date
88064         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88065         Problem reported by Nic Ferrier.
88066
88067 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88068
88069         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88070         specified in ai_socktype. Fix invalid ai_protocol
88071         check. ai_protocol is usually set to 0 or depending on
88072         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88073         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88074         ai_socktype / ai_protocol in the returned addrinfo structure.
88075
88076 2005-05-10  Simon Josefsson  <jas@extundo.com>
88077
88078         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88079         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88080
88081 2005-05-10  Karl Berry  <karl@gnu.org>
88082
88083         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88084         (from http://www.gnu.org/licenses).
88085         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88086         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88087         fdl.texi suffices.
88088
88089 2005-05-10  Karl Berry  <karl@gnu.org>
88090
88091         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88092         (COPYING.DOC): remove.
88093
88094         * config/srclist-update: new FSF address.
88095
88096 2005-05-10  Derek Price  <derek@ximbiot.com>
88097
88098         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88099         possible.
88100
88101 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88102             Bruno Haible  <bruno@clisp.org>
88103
88104         * modules/inet_ntop: New file.
88105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88106         inet_ntop.
88107
88108 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88109             Bruno Haible  <bruno@clisp.org>
88110
88111         * m4/inet_ntop.m4: New file.
88112
88113 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88114             Bruno Haible  <bruno@clisp.org>
88115
88116         * lib/inet_ntop.h: New file.
88117         * lib/inet_ntop.c: New file, from glibc with modifications.
88118
88119 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88120
88121         * modules/time_r (License): Change to LGPL.
88122         * modules/extensions (License): Change to LGPL.  Actually,
88123         the license is more permissive than that, but currently gnulib-tool
88124         doesn't know how to handle more-permissive licenses.
88125
88126         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88127         Problem reported by Dave Love.
88128
88129 2005-05-08  Jim Meyering  <jim@meyering.net>
88130
88131         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88132         blank.
88133
88134 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88135
88136         * modules/argmatch (Depends-on): Add stdbool.
88137         * modules/backupfile (Depends-on): Likewise.
88138         * modules/chdir-long (Depends-on): Likewise.
88139         * modules/closeout (Depends-on): Likewise.
88140         * modules/cycle-check (Depends-on): Likewise.
88141         * modules/dirname (Depends-on): Likewise.
88142         * modules/fnmatch (Depends-on): Likewise.
88143         * modules/fsusage (Depends-on): Likewise.
88144         * modules/fwriteerror (Depends-on): Likewise.
88145         * modules/getcwd (Depends-on): Likewise.
88146         * modules/getloadavg (Depends-on): Likewise.
88147         * modules/hard-locale (Depends-on): Likewise.
88148         * modules/makepath (Depends-on): Likewise.
88149         * modules/mountlist (Depends-on): Likewise.
88150         * modules/nanosleep (Depends-on): Likewise.
88151         * modules/posixtm (Depends-on): Likewise.
88152         * modules/quotearg (Depends-on): Likewise.
88153         * modules/readtokens (Depends-on): Likewise.
88154         * modules/readtokens0 (Depends-on): Likewise.
88155         * modules/readutmp (Depends-on): Likewise.
88156         * modules/save-cwd (Depends-on): Likewise.
88157         * modules/strftime (Depends-on): Likewise.
88158         * modules/userspec (Depends-on): Likewise.
88159         * modules/utimecmp (Depends-on): Likewise.
88160         * modules/xgetcwd (Depends-on): Likewise.
88161         * modules/xnanosleep (Depends-on): Likewise.
88162         * modules/xstrtod (Depends-on): Likewise.
88163         * modules/yesno (Depends-on): Likewise.
88164
88165 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88166
88167         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88168         needless checks.
88169
88170 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88171
88172         Merge from coreutils.  Among other things,
88173         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88174         * lib/fd-safer.c: New file.
88175         * lib/fcntl-safer.h, open-safer.c: Remove.
88176         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88177         * lib/dup-safer.c: Include unistd-safer.h first.
88178         Don't include errno.h.
88179         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88180         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88181         * lib/file-type.c: Rely on file-type.h change.
88182         * lib/getloadavg.c: Include unistd-safer.h.
88183         (getloadavg): Use safer open.
88184         * lib/getusershell.c: Include "stdio-safer.h".
88185         (getusershell): Use safer fopen.
88186         * lib/long-options.c (long_options): Use NULL rather than 0.
88187         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88188         'free'.
88189         * lib/modechange.c: Likewise.
88190         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88191         (MODE_DONE): New constant.
88192         (struct mode_change): Remove 'next' member.
88193         (make_node_op_equals): New function; like the old one of the
88194         same name, except it allocates an array.
88195         (mode_compile, mode_create_from_ref): Use it.
88196         (mode_compile): Allocate result as an array, not a linked list.
88197         Parse octal string ourself, so that we catch mistakes like "+0".
88198         (mode_adjust): Arg is an array, not a linked list.
88199         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88200         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88201         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88202         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88203         Remove.  This is now stat-macros.h's job.
88204         (talloc): Remove.  All callers replaced by xalloc, so that
88205         our invokers don't have to worry about reporting memory failures.
88206         (make_node_op_equals): Remove.
88207         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88208         New constants.
88209         (struct mode_change): Moved here from modechange.h.
88210         (mode_append_entry): Remove.
88211         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88212         apps to have incorrect behavior.  Use simpler algorithm for head
88213         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88214         Detect more invalid usages rather than having somewhat-random behavior.
88215         Don't insert an "a=" action, as that leads to incorrect behavior.
88216         (mode_compile, mode_create_from_ref): Return NULL on error instead
88217         of an enum, since now there's only one way to have an error.  All
88218         callers changed.
88219         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88220         at the correct time.  Simplify calculation of "+u" and its ilk.
88221         Don't mishandle "+X".
88222         (mode_free): Remove "register" and localize decls.
88223         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88224         (struct mode_change): Move to modechange.c; callers don't
88225         need to see this stuff.
88226         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88227         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88228         (mode_change, mode_adjust): Reflect the new signatures noted above.
88229         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88230         that might redefine system include files.
88231         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88232         (my_usleep): Use NULL rather than (void *) 0.
88233         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88234         Use siginterrupt to specify that system calls should be interrupted.
88235         (rpl_nanosleep): Move initialization of suspended closer to call of
88236         my_usleep.
88237         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88238         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88239         (desirable_utmp_entry): New function.
88240         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88241         using x2nrealloc, to simplify logic.
88242         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88243         size calculation.  Do not assume utmp file is a regular file.
88244         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88245         (READ_UTMP_CHECK_PIDS): New constant.
88246         * lib/save-cwd.c: Include unistd-safer.h.
88247         (save_cwd): Use fd_safer.
88248         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88249         [!_LIBC] Include "stat-macros.h" instead.
88250         * lib/unistd-safer.h (fd_safer): New decl.
88251
88252 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88253
88254         * modules/getloadavg (Depends-on): Add unistd-safer.
88255         * modules/getusershell (Depends-on): Add stdio-safer.
88256         * modules/lstat (Depends-on): Remove xalloc.
88257         * modules/mkstemp (Depends-on): Add stat-macros.
88258         * modules/modechange (Depends-on): Remove xstrtol.
88259         Add stat-macros, xalloc.
88260         * modules/save-cwd (Depends-on): Add unistd-safer.
88261         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88262         * modules/unistd-safer (Files): Add lib/fd-safer.c
88263         (Makefile.am): Remove lib_SOURCES.
88264
88265         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88266         Remove fcntl-safer; unistd-safer supersedes it.
88267
88268 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88269
88270         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88271         AC_HEADER_STAT.
88272         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88273         (gl_PREREQ_CHOWN): Remove.
88274         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88275         it.  Don't require AC_HEADER_STAT.
88276         (gl_PREREQ_LSTAT): Remove.
88277         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88278         Don't require AC_HEADER_STAT.
88279         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88280         (gl_PREREQ_RMDIR): Remove.
88281         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88282         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88283         the stat-macros module a prerequisite.
88284         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88285         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88286         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88287         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88288         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88289         variable names.
88290         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88291         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88292         variable prefixes.
88293         * m4/fcntl-safer.m4: Remove.
88294         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88295         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88296         Invoke gl_PREREQ_FD_SAFER.
88297         (gl_PREREQ_FD_SAFER): New macro.
88298         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88299         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88300         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88301         Remove duplicate call to AC_LIBOBJ(readutmp).
88302         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88303
88304         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88305         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88306
88307 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88308
88309         * MODULES.html.sh (Misc): Add byteswap.
88310
88311 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88312
88313         * modules/getcwd (Depends-on): Add extensions.
88314         * modules/openat (Depends-on): Likewise.
88315
88316 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88317
88318         * modules/byteswap: New file.
88319
88320 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88321
88322         * m4/byteswap.m4: New file.
88323
88324 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88325
88326         * lib/byteswap_.h: New file.
88327
88328 2005-04-25  Karl Berry  <karl@gnu.org>
88329
88330         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88331
88332 2005-04-25  Albert Chin  <china@thewrittenword.com>
88333
88334         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88335         Toolkit C bug.
88336
88337 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88338
88339         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88340         (func_ln_if_changed): Remove forcibly for no error message
88341         in case file does not exist.
88342
88343 2005-04-19  Simon Josefsson  <jas@extundo.com>
88344
88345         * gnulib-tool (Options): Make --symlink mean --symbolic.
88346
88347 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88348
88349         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88350
88351 2005-04-16  Simon Josefsson  <jas@extundo.com>
88352
88353         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88354
88355 2005-04-15  Simon Josefsson  <jas@extundo.com>
88356
88357         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88358
88359 2005-04-15  Simon Josefsson  <jas@extundo.com>
88360
88361         * gnulib-tool: Rename --symlink to --symbolic.
88362
88363 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88364
88365         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88366         symbolic links to files instead of copying/moving.  Add --aux-dir,
88367         specifying directory relative --dir where auxiliary build tools
88368         are placed.
88369
88370 2005-04-14  Bruno Haible  <bruno@clisp.org>
88371
88372         * modules/allocsa (License): Change to LGPL.
88373         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88374
88375 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88376
88377         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88378         that "UTC +1 second" continues to work.  Problem reported
88379         by Dmitry V. Levin.
88380         (relunit_snumber): New rule.
88381         (relunit): Use it.
88382
88383 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88384
88385         * lib/getdate.y (universal_time_zone_table): New constant.
88386         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88387         universal_time_zone_table.
88388         (lookup_zone): Prefer universal_time_zone_table to
88389         local_time_zone_table, so that "GMT" time stamps are allowed in
88390         London during the summer.  Problem reported by Ian Abbott.
88391
88392 2005-04-12  Jim Meyering  <jim@meyering.net>
88393
88394         * lib/human.c (humblock): Set *options even when returning due to
88395         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88396         warning from gcc-4.
88397
88398 2005-04-09  Jim Meyering  <jim@meyering.net>
88399
88400         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88401         -Wuninitialized: initialize tm0.tm_year.
88402
88403 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88404
88405         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88406         count, since there's no maximum.  All uses changed.
88407         Add member dsts_seen.
88408         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88409         not being INT_MAX.
88410         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88411         Use pc_rels_seen to decide whether a date is absolute.
88412
88413         * lib/getdate.y (number): Don't overwrite year.
88414         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88415         check.
88416
88417 2005-04-02  Simon Josefsson  <jas@extundo.com>
88418
88419         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88420         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88421
88422 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88423
88424         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88425         where no absolute path name can be longer than PATH_MAX.
88426
88427 2005-03-27  Jim Meyering  <jim@meyering.net>
88428
88429         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88430
88431 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88432
88433         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88434         "one's complement" -> "ones' complement" in comment, as per Knuth.
88435         "value of type" -> "type or expression" in comment.
88436         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88437
88438 2005-03-26  Jim Meyering  <jim@meyering.net>
88439
88440         Comment nits.
88441         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88442         Correct typos: s/or/of/.
88443
88444 2005-03-26  Jim Meyering  <jim@meyering.net>
88445
88446         * modules/check-include-files: Move to ../ and rename to...
88447         * check-module: ...this.
88448
88449 2005-03-25  Jim Meyering  <jim@meyering.net>
88450
88451         * modules/xvasprintf (Files): Add xalloc.h.
88452
88453 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88454
88455         * modules/gettext (Files): config/config.rpath ->
88456         build-aux/config.rpath
88457         * modules/iconv (Files): Likewise.
88458         Problem reported by Oskar Liljeblad.
88459
88460 2005-03-23  Jim Meyering  <jim@meyering.net>
88461
88462         * modules/check-include-files: New script to check for
88463         missing dependencies, multiple includes, etc.
88464
88465         * modules/c-strtold (Depends-on): Add xalloc.
88466         * modules/c-strtod (Depends-on): Add xalloc.
88467         * modules/hash (Depends-on): Add xalloc.
88468         (Files): Remove lib/xalloc.h.
88469
88470         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88471         * modules/userspec (Files): Add lib/inttostr.h.
88472
88473 2005-03-23  Jim Meyering  <jim@meyering.net>
88474
88475         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88476
88477 2005-03-22  Jim Meyering  <jim@meyering.net>
88478
88479         * modules/stat-macros: New module.
88480         * modules/canonicalize, modules/euidaccess, modules/file-type,
88481         * modules/filemode, modules/lchown, modules/makepath,
88482         * modules/rmdir, modules/stat: Depend on new stat-macros module
88483         rather than listing lib/stat-macros.h manually.
88484         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88485
88486 2005-03-22  Jim Meyering  <jim@meyering.net>
88487
88488         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88489
88490 2005-03-22  Bruno Haible  <bruno@clisp.org>
88491
88492         * config/srclist.txt: Replace target directory 'config' with
88493         'build-aux'.
88494         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88495         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88496         ../build-aux/.
88497
88498 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88499
88500         * modules/chdir-long (Depends-on): Add mempcpy.
88501
88502         * modules/acl, modules/backupfile, modules/c-strtod,
88503         modules/c-strtold, modules/canon-host, modules/canonicalize,
88504         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88505         modules/exclude, modules/exitfail, modules/file-type,
88506         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88507         modules/getdate, modules/getline, modules/getpagesize,
88508         modules/getpass, modules/getugroups, modules/group-member,
88509         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88510         modules/inttostr, modules/long-options, modules/makepath,
88511         modules/md5, modules/memcasecmp, modules/memcoll,
88512         modules/modechange, modules/mountlist, modules/path-concat,
88513         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88514         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88515         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88516         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88517         modules/strftime, modules/strndup, modules/strverscmp,
88518         modules/timespec, modules/unlocked-io, modules/userspec,
88519         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88520         modules/yesno:
88521         Remove lib_SOURCES line from Makefile.am section, as this is now
88522         done automatically by the corresponding Autoconf macro.
88523
88524 2005-03-21  Jim Meyering  <jim@meyering.net>
88525
88526         Changes imported from coreutils.
88527
88528         * lib/cycle-check.c: Don't include xalloc.h.
88529
88530         * lib/path-concat.c: Don't include assert.h.
88531         (path_concat): Remove assertion that would have triggered
88532         for ABASE starting with more than one slash.
88533         Reported by Andreas Schwab.
88534
88535         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88536         properly when ABASE is an absolute file name.
88537         Correct the description of this function.
88538         Include <assert.h>.
88539         Add an assertion and a test driver.
88540         This fixes a bug introduced on 2004-07-02.
88541         Andreas Schwab reported the resulting failure of cp --parents:
88542         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88543
88544 2005-03-21  Jim Meyering  <jim@meyering.net>
88545
88546         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88547         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88548
88549 2005-03-21  Jim Meyering  <jim@meyering.net>
88550         and  Paul Eggert  <eggert@cs.ucla.edu>
88551
88552         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88553         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88554         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88555         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88556         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88557         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88558         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88559         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88560         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88561         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88562         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88563         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88564         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88565         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88566         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88567         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88568         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88569         for these modules.
88570
88571 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88572
88573         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88574         (which shouldn't happen), generate nothing instead of returning 0
88575         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88576
88577 2005-03-16  Bruno Haible  <bruno@clisp.org>
88578
88579         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88580         HAVE_LONGLONG_64BIT.
88581
88582 2005-03-16  Bruno Haible  <bruno@clisp.org>
88583
88584         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88585         HAVE_LONGLONG_64BIT.
88586
88587 2005-03-16  Bruno Haible  <bruno@clisp.org>
88588
88589         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88590         HAVE_LONGLONG_64BIT.
88591
88592 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88593
88594         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88595         reliably distinguish strftime failure from empty output on POSIX
88596         hosts.
88597
88598 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88599
88600         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88601         (iconv_string): Don't guess a size-zero buffer, as that might cause
88602         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88603         result would be 'too large', where 'too large' is (heuristically)
88604         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88605         overflow concerns.  This will prevent some unwanted malloc failures
88606         when the inputs are very large.
88607
88608 2005-03-15  Karl Berry  <karl@gnu.org>
88609
88610         * config/srclist.txt (config.rpath): from gettext.
88611         * config/config.rpath: update.
88612
88613 2005-03-15  Bruno Haible  <bruno@clisp.org>
88614
88615         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88616         to 'negate'.
88617
88618         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88619         variable.
88620
88621         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88622         results.
88623
88624 2005-03-14  Simon Josefsson  <jas@extundo.com>
88625
88626         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88627         <fx@gnu.org>.
88628
88629 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88630
88631         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88632         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88633         intprops.h.
88634         * lib/strtol.c: Likewise.
88635
88636 2005-03-14  Jim Meyering  <jim@meyering.net>
88637
88638         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88639         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88640         to be nonzero so that we (and caller) can detect the difference
88641         between a valid zero-length expansion and an error return, even
88642         when the underlying strftime fails before writing anything into
88643         that location.
88644
88645 2005-03-14  Bruno Haible  <bruno@clisp.org>
88646
88647         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88648         Update from GNU gettext 0.14.3.
88649
88650 2005-03-10  Jim Meyering  <jim@meyering.net>
88651
88652         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88653
88654 2005-03-10  Jim Meyering  <jim@meyering.net>
88655
88656         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88657         so that this module works on systems without fchdir.
88658
88659 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88660
88661         Factor int-properties macros into a single file, except for
88662         glibc-related files.
88663         * lib/intprops.h: New file.
88664         * lib/getloadavg.c: Include it instead of limits.h.
88665         (INT_STRLEN_BOUND): Remove.
88666         * lib/human.c: Include intprops.h.
88667         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88668         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88669         302/1000.
88670         * lib/inttostr.h: Include intprops.h instead of limits.h.
88671         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88672         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88673         for consistency with intprops.h.
88674         (time_t_is_integer, twos_complement_arithmetic): Use them.
88675         * lib/sig2str.h: Include <signal.h>, intprops.h.
88676         (INT_STRLEN_BOUND): Remove.
88677         * lib/strftime.c (TYPE_SIGNED): Remove.
88678         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88679         * lib/strtol.c: Adjust comments to match intprops.h.
88680         * lib/userspec.c: Include intprops.h.
88681         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88682         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88683         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88684         instead of rolling our own expressions.
88685         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88686
88687         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88688         instead of int.
88689         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88690         the right thing even if adding 1900 would overflow.  Similarly
88691         for tm_mon + 1 and tm_yday + 1.
88692         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88693         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88694         (DO_SIGNED_NUMBER): New macro.
88695         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88696
88697 2005-03-07  Bruno Haible  <bruno@clisp.org>
88698
88699         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88700
88701 2005-03-07  Bruno Haible  <bruno@clisp.org>
88702
88703         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88704
88705 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88706
88707         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88708         (func_import): Only replace files via --import when they have actually
88709         changed.
88710
88711 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88712
88713         * m4/mmap-anon.m4: New file.
88714         * m4/pagealign_alloc.m4: New file.
88715
88716 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88717             Bruno Haible  <bruno@clisp.org>
88718
88719         * modules/pagealign_alloc: New file.
88720         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88721
88722 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88723             Bruno Haible  <bruno@clisp.org>
88724
88725         * lib/pagealign_alloc.h: New file.
88726         * lib/pagealign_alloc.c: New file.
88727
88728 2005-03-03  Bruno Haible  <bruno@clisp.org>
88729
88730         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88731         Use an all-permissive copyright notice, recommended by RMS.
88732
88733 2005-03-02  Bruno Haible  <bruno@clisp.org>
88734
88735         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88736         of AIX, the replacement has to be done only after <string.h> is
88737         included, therefore not in config.h. stpncpy.h does the replacement,
88738         and stpncpy.c uses it.
88739
88740 2005-03-02  Bruno Haible  <bruno@clisp.org>
88741
88742         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88743         stpncpy.c uses it.
88744
88745 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88746
88747         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88748         The workaround isn't strictly needed for POSIX conformance, and
88749         it's too much of a pain to configure and maintain.  We'll ask
88750         people to fix their kernels instead.
88751         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88752         (NANOSLEEP_BUG_WORKAROUND): Remove.
88753         (xnanosleep): Remove the workaround.
88754
88755 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88756
88757         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88758         Reported by Derek Price.
88759         (Include): Add "timespec.h".
88760
88761         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88762
88763 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88764
88765         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88766         to detect nanosleep bug.
88767
88768 2005-03-01  Bruno Haible  <bruno@clisp.org>
88769
88770         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88771
88772 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88773
88774         * modules/gethrxtime: New file.
88775         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88776         (Depends-on): Add gethrxtime.
88777         (configure.ac): Add gl_XNANOSLEEP.
88778         (Makefile.am): Remove lib_SOURCES line.
88779
88780 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88781
88782         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88783         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88784
88785 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88786
88787         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88788         * lib/timespec.h (gettime): Return void, since it always
88789         succeeds now.  All uses changed.
88790         * lib/gettime.c (gettime): Likewise.
88791         [HAVE_NANOTIME]: Prefer nanotime.
88792         Assume gettimeofday succeeds, as POSIX requires.
88793         Assime time () succeeds, since other code already does.
88794         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88795         (timespec_subtract): Remove.
88796         (NANOSLEEP_BUG_WORKAROUND): New constant.
88797         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88798         things considerably.  Use it only on GNU/Linux hosts, since the
88799         workaround shouldn't be needed elsewhere.
88800
88801 2005-02-24  Bruno Haible  <bruno@clisp.org>
88802
88803         * modules/gettext (Files): Add m4/glibc2.m4.
88804
88805 2005-02-24  Bruno Haible  <bruno@clisp.org>
88806
88807         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88808         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88809         * m4/progtest.m4:
88810         Update from GNU gettext 0.14.2.
88811         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88812
88813 2005-02-24  Bruno Haible  <bruno@clisp.org>
88814
88815         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88816         * lib/config.charset: Update from GNU gettext 0.14.2.
88817
88818 2005-02-24  Bruno Haible  <bruno@clisp.org>
88819
88820         * lib/gettext.h: Update from GNU gettext 0.14.2.
88821
88822 2005-02-23  Simon Josefsson  <jas@extundo.com>
88823
88824         * m4/iconvme.m4: New file.
88825
88826 2005-02-23  Jim Meyering  <jim@meyering.net>
88827
88828         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88829         change.
88830         Thanks to Bruno Haible for catching it.
88831
88832 2005-02-22  Simon Josefsson  <jas@extundo.com>
88833
88834         * modules/iconvme: New file.
88835
88836         * MODULES.html.sh: Add iconvme.
88837
88838 2005-02-22  Simon Josefsson  <jas@extundo.com>
88839
88840         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88841
88842 2005-02-22  Simon Josefsson  <jas@extundo.com>
88843
88844         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88845
88846 2005-02-22  Jim Meyering  <jim@meyering.net>
88847
88848         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88849         s/ifndef/ifdef/.
88850
88851 2005-02-20  Neil Conway  <neilc@samurai.com>
88852
88853         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88854         returned by OSX/Darwin if the specified buffer is not large
88855         enough for the hostname.
88856
88857 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88858
88859         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88860         pass it to _help, otherwise the latter coredumps trying to
88861         dereference state.root_argp.
88862
88863 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88864
88865         * modules/chdir-long (Depends-on): Add memrchr.
88866         * modules/memrchr (Files): Add lib/memrchr.h.
88867         (Include): "memrchr.h".
88868
88869 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88870
88871         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
88872
88873 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88874
88875         * lib/memrchr.h: New file.
88876         * lib/chdir-long.c: Include it.
88877         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
88878         Don't bother including stddef.h.
88879
88880 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88881
88882         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
88883         inclusion.
88884         Include <sys/types.h>, for dev_t.
88885         (ME_DUMMY, ME_REMOTE): Move from here....
88886         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
88887         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
88888         Dmitry V. Levin.
88889         Include mountlist.h first, to test the interface.
88890
88891 2005-01-29  Bruno Haible  <bruno@clisp.org>
88892
88893         * lib/progname.c (program_name): Initialize.
88894         Needed when linking statically on MacOS X.
88895
88896 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88897
88898         Sync from coreutils.
88899         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
88900         (Depends-on): Add c-strtod.
88901         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
88902
88903 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88904
88905         Sync from coreutils.
88906         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
88907
88908         Remove files that are specific to coreutils.
88909         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
88910
88911 2005-01-28  Bruno Haible  <bruno@clisp.org>
88912
88913         * modules/javacomp: New file.
88914         * MODULES.html.sh (Java): Add javacomp.
88915
88916 2005-01-28  Bruno Haible  <bruno@clisp.org>
88917
88918         * m4/javacomp.m4: New file, from GNU gettext.
88919
88920 2005-01-28  Bruno Haible  <bruno@clisp.org>
88921
88922         * lib/javacomp.sh.in: New file, from GNU gettext.
88923         * lib/javacomp.h: New file, from GNU gettext.
88924         * lib/javacomp.c: New file, from GNU gettext.
88925
88926 2005-01-26  Simon Josefsson  <jas@extundo.com>
88927
88928         * lib/gai_strerror.c: Use GPL in header.
88929
88930 2005-01-26  Bruno Haible  <bruno@clisp.org>
88931
88932         * modules/javaexec: New file.
88933         * MODULES.html.sh (Java): Add javaexec.
88934
88935 2005-01-26  Bruno Haible  <bruno@clisp.org>
88936
88937         * m4/javaexec.m4: New file, from GNU gettext.
88938
88939 2005-01-26  Bruno Haible  <bruno@clisp.org>
88940
88941         * lib/javaexec.sh.in: New file, from GNU gettext.
88942         * lib/javaexec.h: New file, from GNU gettext.
88943         * lib/javaexec.c: New file, from GNU gettext.
88944
88945 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88946
88947         * modules/lchown (Depends-on): Remove lchown.h
88948
88949 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88950
88951         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88952         must be defined if the header file was not found, in order
88953         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88954
88955 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88956
88957         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88958         initializers for struct pentry_state.
88959         (__argp_error): Check return value of __asprintf
88960         (__argp_failure): Translate error message
88961
88962         * lib/argp-parse.c: Removed braces around the expansion of N_()
88963
88964 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88965
88966         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88967         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88968         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88969         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88970         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88971         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88972         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88973         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88974         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88975         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88976         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88977         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88978         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88979         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88980         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88981         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88982         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88983         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88984         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88985         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88986         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88987         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88988         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88989         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88990         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88991         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88992         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88993         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88994         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88995         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88996         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88997         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88998         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88999         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89000         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89001         Use an all-permissive copyright notice, recommended by RMS.
89002
89003 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89004
89005         * modules/chdir-long (Depends-on): Remove mempcpy.
89006
89007 2005-01-21  Jim Meyering  <jim@meyering.net>
89008
89009         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89010         same value as for Solaris 9.
89011
89012         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89013         component length.  This included changing the parameter to be
89014         of type `char *' rather than `char const *'.
89015         * lib/chdir-long.h (chdir_long): Update prototype.
89016
89017         * lib/openat.c (fdopendir, fstatat): New functions.
89018         * lib/openat.h: Include headers required for use of DIR and struct
89019         stat.
89020         [AT_SYMLINK_NOFOLLOW]: Define.
89021         (fdopendir, fstatat): Add prototypes.
89022
89023 2005-01-21  Bruno Haible  <bruno@clisp.org>
89024
89025         * modules/classpath: New file.
89026         * MODULES.html.sh (Java): Add classpath.
89027
89028 2005-01-21  Bruno Haible  <bruno@clisp.org>
89029
89030         * lib/classpath.h: New file, from GNU gettext.
89031         * lib/classpath.c: New file, from GNU gettext.
89032
89033 2005-01-20  Simon Josefsson  <jas@extundo.com>
89034
89035         * modules/version-etc-fsf: New file.
89036
89037 2005-01-20  Simon Josefsson  <jas@extundo.com>
89038
89039         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89040         * lib/version-etc.c: Remove version_etc_copyright.
89041         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89042         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89043
89044 2005-01-20  Simon Josefsson  <jas@extundo.com>
89045
89046         * lib/base64.h (isbase64): Add.
89047
89048         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89049         using a unsigned prototype, don't inline.
89050         (base64_decode): Use it.
89051
89052 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89053
89054         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89055         it.
89056
89057 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89058
89059         * lib/save-cwd.c (save_cwd): Remove code to support the case
89060         where fchdir is missing or flaky.
89061
89062 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89063
89064         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89065
89066 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89067
89068         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89069         AC_LIBSOURCES now does this.
89070         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89071         with new ullong_max module.
89072
89073 2005-01-19  Bruno Haible  <bruno@clisp.org>
89074
89075         * modules/sh-quote: New file.
89076         * MODULES.html.sh (Executing programs): Add sh-quote.
89077
89078 2005-01-19  Bruno Haible  <bruno@clisp.org>
89079
89080         * lib/sh-quote.h: New file, from GNU gettext.
89081         * lib/sh-quote.c: New file, from GNU gettext.
89082
89083 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89084
89085         Merge from coreutils.
89086         * m4/ullong_max.m4: New file.
89087         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89088         (gl_MACROS): Assume localeconv exists.
89089
89090 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89091
89092         Merge changes from coreutils, as described below in several
89093         changelogs dated today.
89094
89095         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89096         (O_DIRECTORY): Remove; not needed here, since "." must be
89097         a directory.  All uses removed.
89098         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89099         universal on Suns, and we also need to test for IRIX.
89100         Revamp code to use 'if' rather than '#if'.
89101         Avoid unnecessary comparison of cwd->desc to 0.
89102
89103         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89104         for known valid error numbers rather than observed invalid ones.
89105
89106 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89107
89108         * modules/ullong_max: New file.
89109
89110         * modules/chdir-long, modules/openat: New files.
89111         * modules/save-cwd (Depends-on): Depend on chdir-long.
89112         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89113
89114 2005-01-18  Jim Meyering  <jim@meyering.net>
89115
89116         Merge from coreutils.
89117         * m4/chdir-long.m4, m4/openat.m4: New files.
89118         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89119         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89120         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89121         is sane and DOES follow symlinks.  Besides, testing 20 different
89122         systems found no broken chown implementations.
89123         Prompted by a change in rsync's copy of this macro.
89124         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89125
89126         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89127
89128         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89129         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89130         NULL-means-set-to-current-time semantics.
89131         Remove temporary file immediately, rather than waiting
89132         for configure's at-exit trap code to do it.
89133
89134 2005-01-18  Jim Meyering  <jim@meyering.net>
89135
89136         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89137
89138         * lib/utimens.c (futimens): Account for the fact that futimes
89139         can also fail with errno == ENOSYS or errno == ENOENT.
89140         Patch from Dmitry V. Levin.
89141
89142         Change the name of the robust chdir function from chdir to chdir_long.
89143         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89144         (restore_cwd): Use chdir_long, not chdir.
89145         * lib/chdir-long.c: Renamed from chdir.c.
89146         * lib/chdir-long.h: Renamed from chdir.h.
89147         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89148         Hurd.
89149
89150 2005-01-18  Bruno Haible  <bruno@clisp.org>
89151
89152         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89153         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89154         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89155         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89156         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89157         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89158         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89159         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89160         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89161         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89162         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89163         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89164         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89165         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89166         Use an all-permissive copyright notice, recommended by RMS.
89167
89168 2005-01-18  Bob Proulx  <bob@proulx.com>
89169
89170         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89171         simplify offsetof() macro construct to avoid compile failure with
89172         native HP-UX 11.0 ANSI C compiler.
89173
89174 2005-01-17  Bruno Haible  <bruno@clisp.org>
89175
89176         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89177         redundant because stpncpy.m4 takes care of it.
89178
89179 2005-01-17  Bruno Haible  <bruno@clisp.org>
89180
89181         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89182
89183 2005-01-17  Bruno Haible  <bruno@clisp.org>
89184
89185         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89186         used.
89187
89188 2005-01-17  Bruno Haible  <bruno@clisp.org>
89189
89190         * lib/fwriteerror.h (fwriteerror): Change specification to include
89191         fclose.
89192         * lib/fwriteerror.c: Include <stdbool.h>.
89193         (fwriteerror): At the end, close the file stream. Record whether
89194         stdout was already closed.
89195
89196 2005-01-17  Bruno Haible  <bruno@clisp.org>
89197
89198         * lib/execute.c (environ): Declare if needed.
89199         * lib/pipe.c (environ): Likewise.
89200         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89201
89202 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89203
89204         * modules/argp: Depend on vsnprintf
89205
89206 2005-01-10  Jim Meyering  <jim@meyering.net>
89207
89208         * modules/closeout (Depends-on): Add atexit.
89209
89210 2005-01-06  Bruno Haible  <bruno@clisp.org>
89211
89212         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89213
89214 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89215
89216         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89217         definitions to be after all include files, to avoid collisions.
89218         Problem reported by Bob Proulx.
89219
89220 2005-01-04  Jim Meyering  <jim@meyering.net>
89221
89222         Changes imported from coreutils.
89223         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89224         as the mkstemp template, use a temporary directory and an
89225         8.3-friendly template to avoid trouble on systems like DJGPP.
89226         Reported by Juan M. Guerrero via Stepan Kasal.
89227         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89228         close. Remove the temporary directory right away, rather than waiting
89229         for configure's at-exit trap code to do it.
89230         Suggestion from Stepan Kasal.
89231
89232 2005-01-01  Simon Josefsson  <jas@extundo.com>
89233
89234         * gnulib-tool: Print #include directives when --import'ing.
89235
89236 2004-12-28  Simon Josefsson  <jas@extundo.com>
89237
89238         * tests/test-base64.c: Include required header files.  Remove
89239         unused variables.
89240
89241 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89242
89243         * modules/error (Depends-on): Remove gettext.
89244
89245 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89246
89247         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89248         not needed.  This removes a dependency on the gettext module.
89249         [defined _LIBC]: Do not include <libintl.h>; not needed.
89250
89251 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89252
89253         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89254         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89255
89256 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89257
89258         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89259         HAVE_DECL_STRTOLD.
89260
89261 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89262
89263         * modules/getdate (Depends-on): Remove alloca-opt.
89264
89265 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89266
89267         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89268
89269 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89270
89271         * lib/argp-parse.c: Include <stddef.h>.
89272         (alignof, alignto): New macros.
89273         (parser_init): Don't assume that void * is aligned sufficiently
89274         for struct option.
89275
89276         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89277         need to extend the stack.
89278         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89279         large.
89280
89281 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89282
89283         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89284
89285 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89286
89287         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89288         (2004-10-24) change.  Apparently this was a false alarm.
89289
89290         * modules/getdate: Depend on alloca-opt, not alloca.
89291
89292 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89293
89294         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89295         Remove now-obsolete comment about AIX.
89296         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89297         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89298         (YYMAXDEPTH): New macro.
89299
89300 2004-12-18  Simon Josefsson  <jas@extundo.com>
89301
89302         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89303
89304 2004-12-18  Bruno Haible  <bruno@clisp.org>
89305
89306         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89307
89308 2004-12-18  Bruno Haible  <bruno@clisp.org>
89309
89310         * lib/fatal-signal.c (fatal_signals): Make non-const.
89311         (init_fatal_signals): New function.
89312         (uninstall_handlers, install_handlers): Ignore signals that were set to
89313         SIG_IGN.
89314         (at_fatal_signal): Call init_fatal_signals.
89315         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89316         SIG_IGN.
89317         Reported by Paul Eggert.
89318
89319 2004-12-18  Bruno Haible  <bruno@clisp.org>
89320
89321         * doc/alloca.texi: New file.
89322         * doc/alloca-opt.texi: New file.
89323
89324 2004-12-17  Jim Meyering  <jim@meyering.net>
89325
89326         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89327         Otherwise, install-sh could exit with improper exit status when
89328         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89329
89330 2004-12-16  Simon Josefsson  <jas@extundo.com>
89331
89332         * tests/test-base64.c: Add license.
89333
89334 2004-12-15  Stepan Kasal  <address@hidden>
89335
89336         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89337
89338 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89339
89340         * modules/getcwd (Files): Add m4/d-ino.m4.
89341         Suggested by Mark D. Baushke.
89342
89343 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89344
89345         * lib/getdate.y (textint): New member "negative".
89346         (time_zone_hhmm): New function.
89347         Expect 14 shift-reduce conflicts, not 13.
89348         (o_colon_minutes): New rule.
89349         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89350         (yylex): Set the "negative" member of signed numbers.
89351
89352 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89353
89354         * doc/getdate.texi (Time of day items, Time zone items):
89355         Describe new formats +00:00, UTC+00:00.
89356
89357 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89358
89359         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89360         spurious "-l"s.  Problem reported by Stepan Kasal.
89361
89362 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89363
89364         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89365         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89366
89367 2004-12-04  Simon Josefsson  <jas@extundo.com>
89368
89369         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89370         Vandoorselaere <yoann@prelude-ids.org>.
89371
89372 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89373
89374         Changes imported from coreutils.
89375         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89376         exist.
89377         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89378
89379 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89380
89381         Changes imported from coreutils.
89382         * lib/hard-locale.c: Assume <locale.h> exists.
89383         Include "strdup.h".
89384         (GLIBC_VERSION): New macro.
89385         (hard_locale): Assume setlocale exists.
89386         Rewrite to avoid #ifdef.
89387         Use strdup rather than malloc + strcpy.
89388         * lib/human.c: Assume <locale.h> exists.
89389         (human_readable): Assume localeconv exists.
89390
89391 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89392
89393         * modules/hard-locale (Depends-on): Add strdup.
89394
89395 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89396
89397         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89398         convert T2, not T.  (Imported from libc.)
89399
89400 2004-11-30  Simon Josefsson  <jas@extundo.com>
89401
89402         * modules/restrict (License): Change to LGPL.
89403
89404 2004-11-30  Simon Josefsson  <jas@extundo.com>
89405
89406         * m4/restrict.m4: Add copyright and copying conditions.
89407
89408 2004-11-30  Simon Josefsson  <jas@extundo.com>
89409
89410         * m4/base64.m4: New file.
89411
89412 2004-11-30  Simon Josefsson  <jas@extundo.com>
89413
89414         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89415         base64.
89416
89417         * tests/test-base64.c: New file.
89418
89419         * modules/base64: New file.
89420
89421 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89422
89423         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89424         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89425
89426         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89427
89428 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89429
89430         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89431         (__getcwd.c): Don't restore errno; glibc doesn't.
89432         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89433         first, falling back to our code only if its results look suspicious.
89434         Ensure that the resulting buffer is only as large as necessary.
89435
89436         * lib/readutmp.c: Include readutmp.h first.
89437         Include <errno.h>, since readutmp.h no longer does that.
89438         * lib/readutmp.h: Don't include <errno.h>,
89439         <sys/param.h>, <time.h>; not needed to establish interface.
89440         (errno): Remove decl.
89441         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89442         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89443         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89444
89445 2004-11-28  Simon Josefsson  <jas@extundo.com>
89446
89447         * lib/base64.h, base64.c: New file.
89448
89449 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89450
89451         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89452
89453 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89454
89455         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89456         (Depends-on): Remove pathmax, same.  Add mempcpy.
89457         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89458         (Makefile.am): Append getcwd.h to lib_SOURCES.
89459         (Include): Add getcwd.h.
89460         (Maintainer): Change from Jim Meyering to "all, glibc",
89461         since getdate now uses intended-for-glibc code.
89462         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89463         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89464
89465 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89466
89467         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89468         HP's ANSI C compiler.
89469         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89470         Declaring int functions causes warnings on some modern systems and
89471         shouldn't be needed to compile on ancient ones.
89472         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89473         defined.
89474
89475         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89476         with the following changes.
89477         (__set_errno): Parenthesize properly.
89478         Include <stdbool.h>.
89479         (MIN, MAX, MATCHING_INO): New macros.
89480         (__getcwd): Define with prototype, not K&R form.
89481         Use heuristics to allocate default buffer on stack if possible.
89482         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89483         behavior, and to avoid the PATH_MAX limit when computing
89484         ../../../../...
89485         Use MATCHING_INO to compare inode number to file.
89486         Check for arithmetic overflow in size calculations.
89487         Fix bug in reallocation of dot array that caused getcwd to fail
89488         on directories nested deeper than 75.
89489         Be more careful about saving errno on error.
89490         Do not use realloc; use only free+malloc, as this is a bit
89491         more flexible and avoids a needless copy operation.
89492         Do not inspect st_dev and st_ino for symbolic links; POSIX
89493         doesn't specify the latter.
89494         Check for closedir errors.
89495         Avoid needless casts.
89496         Use "#ifdef weak_alias" around weak_alias, to be like other
89497         glibc code.
89498         The following changes to getcwd.c have effect only when used in
89499         gnulib; they have no effect inside glibc proper.
89500         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89501         as alloca isn't used.
89502         (alloca, __alloca): Likewise.
89503         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89504         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89505         unconditionally, as gnulib assumes C89 or better.
89506         Do not include <sys/param.h>.
89507         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89508         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89509         better.
89510         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89511         Include <dirent.h> in a way that is compatible with modern Autoconf.
89512         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89513         New macros, if not already defined.
89514         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89515         Use "_LIBC", not "defined _LIBC", for consistency.
89516         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89517         a mempcpy module.
89518         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89519         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89520         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89521         credit only to Jim Meyering and adjust the copyright dates.
89522         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89523         <stdlib.h>, <unistd.h>, "pathmax.h".
89524         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89525         (INITIAL_BUFFER_SIZE): Remove.
89526         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89527
89528 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89529
89530         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89531         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89532         Use the _ONCE methods, for efficiency.
89533         Check for fcntl.h.  In test program, include <errno.h>
89534         and <fcntl.h> if available.  Remove old K&R cruft from
89535         test program.  Check for common errors in GNU/Linux,
89536         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89537         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89538         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89539         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89540         name accordingly.
89541         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89542         accommodate new getcwd.c.
89543         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89544         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89545         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89546         that's all we need now.
89547
89548 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89549
89550         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89551         argp-parse.c depends on getopt internals, that means we should
89552         always use our getopt, to be on the safe side.
89553         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89554         order not to spoil the result of an eventual previous invocation
89555         of gl_GETOPT_SUBSTITUTE.
89556
89557 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89558
89559         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89560         redefinition warnings. To avoid them, include the defines
89561         in `#if !defined __need_getopt ... #endif'. The only place
89562         where __getopt_argv_const is used is in definitions
89563         of getopt_long and getopt_long_only below, which are as well
89564         protected by `#ifndef __need_getopt'.
89565         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89566         __need_getopt after including <stdio.h> and <unistd.h> These
89567         headers might have defined it.
89568
89569 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89570
89571         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89572
89573 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89574
89575         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89576         (futimens): New function, which uses futimes if available.
89577         (futimens, utimens): Support timespec==NULL, with same semantics
89578         as utime and utimens.
89579         * lib/utimens.h (futimens): New decl.
89580
89581 2004-11-23  Jim Meyering  <jim@meyering.net>
89582
89583         * lib/getopt_.h: Remove trailing blanks.
89584
89585 2004-11-23  Jim Meyering  <jim@meyering.net>
89586
89587         * lib/__fpending.c: Add comment.
89588
89589 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89590
89591         * modules/canonicalize (Depends-on): Add xreadlink.
89592         Problem reported by James Youngman.
89593
89594 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89595
89596         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89597         New macros.
89598         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89599         optopt): Use them instead of invoking ## directly; otherwise, the
89600         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89601
89602 2004-11-19  Bruno Haible  <bruno@clisp.org>
89603
89604         * lib/strtok_r.c: Move comments from here...
89605         * lib/strtok_r.h: ... to here.
89606
89607 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89608
89609         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89610         implementations that mishandle size_t overflow.
89611
89612 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89613
89614         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89615         might fail.  Problem reported by Yoann Vandoorselaere.
89616         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89617         implementations that mishandle size_t overflow.
89618
89619 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89620
89621         * modules/canon-host (Depends-on): Add strdup.
89622
89623 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89624
89625         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89626
89627 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89628
89629         * lib/canon-host.c: Include "strdup.h".
89630         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89631         Use strdup instead of malloc/strcpy to duplicate strings.
89632
89633         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89634         (human_space_before_unit): New constant.
89635         * lib/human.c (human_readable): Support it.
89636
89637         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89638         (xgetcwd): Set errno correctly when failing.
89639         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89640         the failure is actually due to a PATH_MAX problem.
89641
89642         Further getopt changes to make it more likely that glibc will
89643         buy the changes back.
89644         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89645         (getopt): Use it, so to preserve glibc semantic
89646         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89647         when compiling for libc.
89648         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89649         (getopt_long, getopt_long_only): Use it.
89650
89651         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89652         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89653         (getopt): Argv is now char * const *, as per standard.
89654         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89655         not char *__getopt_argv_const *.
89656         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89657         _getopt_long_only_r): Likewise.
89658         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89659         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89660         _getopt_long_r, _getopt_long_only_r): Likewise.
89661         * lib/getopt_.h (__getopt_argv_const): Remove.
89662         (getopt): Argv is now char * const *, as per standard.
89663
89664         * lib/getdate.y (tORDINAL): New token.
89665         (day, relunit): Allow it for relative times.
89666         (relative_time_table): Use tORDINAL for ordinals.
89667
89668 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89669
89670         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89671         Document that "second" isn't allowed as an ordinal number.
89672
89673 2004-11-16  Jim Meyering  <jim@meyering.net>
89674
89675         * modules/closeout (Depends-on): Add fpending.
89676
89677 2004-11-15  Jim Meyering  <jim@meyering.net>
89678
89679         * lib/closeout.c: Include "__fpending.h" once again.
89680         Include <stdbool.h>.
89681         (close_stdout): Don't fail just because stdout was closed initially,
89682         since some programs don't write to stdout in the normal course of
89683         operation (other than --version and --help), and we don't want this
89684         function to make e.g. `touch file >&-' fail.
89685         But do fail if it was closed and someone has tried to write to it.
89686         E.g., `printf foo >&-' must fail.
89687
89688 2004-11-13  Jim Meyering  <jim@meyering.net>
89689
89690         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89691
89692 2004-11-12  Simon Josefsson  <jas@extundo.com>
89693
89694         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89695         small doc fix is still pending.
89696
89697 2004-11-11  Simon Josefsson  <jas@extundo.com>
89698
89699         * modules/strtok_r: New file.
89700
89701         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89702         strtok_r.
89703
89704 2004-11-11  Simon Josefsson  <jas@extundo.com>
89705
89706         * m4/strtok_r.m4: New file.
89707
89708         * m4/getopt.m4: Replace opterr.
89709
89710 2004-11-11  Simon Josefsson  <jas@extundo.com>
89711
89712         * lib/strtok_r.h, strtok_r.c: New file.
89713
89714 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89715
89716         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89717         of replacing opterr, getopt, etc.  This should handle the
89718         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89719
89720 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89721
89722         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89723         we can stop lying to compilers about the constness of argv when we
89724         are compiled outside glibc.
89725         (getopt, getopt_long, getopt_long_only): Use it.
89726         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89727         _getopt_internal, getopt): Likewise.
89728         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89729         _getopt_long_only_r): Likewise.
89730         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89731         _getopt_long_r, _getopt_long_only_r): Likewise.
89732
89733         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89734         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89735         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89736         the other external symbols.
89737         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89738         declaration, since the above renaming now works around collisions.
89739
89740 2004-11-11  Jim Meyering  <jim@meyering.net>
89741
89742         * lib/linebreak.c: Remove trailing blanks.
89743         * lib/alloca_.h: Likewise.
89744         * lib/acosl.c: Likewise.
89745         * lib/euidaccess.c: Likewise.
89746         * lib/allocsa.h: Likewise.
89747
89748 2004-11-10  Simon Josefsson  <jas@extundo.com>
89749
89750         * m4/getaddrinfo.m4: New file.
89751
89752 2004-11-10  Simon Josefsson  <jas@extundo.com>
89753
89754         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89755
89756 2004-11-10  Simon Josefsson  <jas@extundo.com>
89757
89758         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89759         getaddrinfo.
89760
89761         * modules/getaddrinfo: New file.
89762
89763 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89764
89765         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89766
89767 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89768
89769         * lib/mktime.c (SHR): New macro, which is a portable
89770         substitute for >> that should work even on Crays.
89771         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89772         Problem reported by Mark D. Baushke in
89773         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89774         * lib/getdate.y (SHR): Likewise.
89775         (tm_diff): Use it.
89776         * lib/strftime.c (SHR): Likewise.
89777         (tm_diff): Use it.
89778         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89779         quote_these_too, so that right shifts are well defined.  All uses
89780         changed.
89781
89782 2004-11-10  Jim Meyering  <jim@meyering.net>
89783
89784         Ensure that no close failure goes unreported.
89785         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89786         return early when it seems there's nothing to flush.
89787         Don't include __fpending.h.
89788
89789 2004-11-10  Jim Meyering  <jim@meyering.net>
89790
89791         * modules/closeout (Depends-on): Remove fpending.
89792
89793 2004-11-10  Jim Meyering  <jim@meyering.net>
89794
89795         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89796
89797 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89798
89799         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89800         gl_FUNC_STRFTIME.
89801         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89802         and AC_REQUIRE when possible, to avoid duplicate checks.
89803         Check for <wchar.h>.
89804
89805 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89806
89807         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89808
89809 2004-11-09  Bruno Haible  <bruno@clisp.org>
89810
89811         * m4/sockpfaf.m4: New file.
89812
89813 2004-11-05  Bruno Haible  <bruno@clisp.org>
89814
89815         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89816         Reported by Mark D. Baushke <mdb@cvshome.org>.
89817
89818 2004-11-04  Bruno Haible  <bruno@clisp.org>
89819
89820         2004-09-11  Bruno Haible  <bruno@clisp.org>
89821                 * allocsa.valgrind: New file.
89822         2004-02-06  Bruno Haible  <bruno@clisp.org>
89823                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89824                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89825                 Reported by Christopher Seip <chris.seip@hp.com>.
89826
89827 2004-11-04  Bruno Haible  <bruno@clisp.org>
89828
89829         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89830         (Makefile.am): Distribute it.
89831
89832 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89833
89834         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89835         with errno == ERANGE if the buffer is too small.
89836         Problem reported by Mark D. Baushke.
89837
89838 2004-11-03  Albert Chin  <china@thewrittenword.com>
89839             Paul Eggert  <eggert@cs.ucla.edu>
89840
89841         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89842         equivalent, substitute $ac_type for equivalent type rather than
89843         blindly using uint32_t *always* which won't work if uint32_t is not
89844         available.  Define _UINT32_T to work around typedef of uint32_t if
89845         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89846         2.5.1.
89847
89848 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89849
89850         * m4/jm-macros.m4: Sync from coreutils.
89851         (gl_MACROS): Check for mbrlen, for pathchk.
89852         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89853
89854 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89855
89856         * lib/xreadlink.c (MAXSIZE): New macro.
89857         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89858         size does not exceed MAXSIZE.  Avoid cast.
89859         As suggested by Mark D. Baushke in
89860         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89861         if readlink fails with buffer size just under MAXSIZE, try again
89862         with MAXSIZE.
89863
89864 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89865
89866         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
89867
89868 2004-11-02  Derek R. Price  <derek@ximbiot.com>
89869         and  Paul Eggert  <eggert@cs.ucla.edu>
89870
89871         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
89872         (get_date): Overparenthesize to avoid GCC warning.
89873
89874 2004-11-02  Bruno Haible  <bruno@clisp.org>
89875
89876         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
89877         returns void.
89878
89879 2004-11-02  Bruno Haible  <bruno@clisp.org>
89880
89881         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
89882         function returns void.
89883
89884 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89885
89886         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
89887         fflush_unlocked, flockfile, funlockfile, funlockfile,
89888         fputs_unlocked, putc_unlocked.
89889
89890 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89891
89892         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89893         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
89894         already declared.
89895
89896 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89897
89898         * modules/getdate (Files): Add doc/getdate.texi.
89899         (Depends-on): Add setenv, xalloc.
89900
89901 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89902
89903         * lib/getdate.y: Add support for TZ="foo" within a date string.
89904         Fix some bugs near time_t boundaries.  Reject dates with
89905         out-of-range components, e.g., "Sept 31".
89906         Include <stdlib.h>, "setenv.h", "xalloc.h".
89907         (ISDIGIT_LOCALE): Remove; unused.
89908         Note that the TZ and time functions used here are not reentrant.
89909         (mktime_ok, get_tz): New functions.
89910         (TZBUFSIZE): New constant.
89911         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89912         This requires that we sometimes generate our own TZ="XXX..." setting.
89913
89914 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89915
89916         * doc/getdate.texi: New file, from coreutils with modifications for
89917         the new TZ parsing.
89918
89919 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89920
89921         * lib/mktime.c (not_equal_tm): Remove redundant check.
89922
89923 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89924
89925         * modules/regex (lib_SOURCES): Add regex.c.
89926         Reported by James Youngman in
89927         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89928
89929 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89930
89931         * lib/getdate.y: Use Bison 1.875 features, and some minor
89932         code cleanups.  This change does not affect semantics.
89933         Don't include <stdlib.h>; no longer needed.
89934         Don't include unlocked-io.h; only the "#if TEST" code uses
89935         stdio, and performance isn't crucial there.
89936         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89937         Bison 1.875 features as described below.
89938         All uses of "PC." replaced by "pc->".
89939         (YYSTYPE): Add a forward declaration.
89940         (yylex, yyerror): Use full prototypes in forward decls.
89941         Use "%pure-parser" rather than obsolescent "%pure_parser".
89942         Use %parse-param and %lex-param instead of obsolescent
89943         YYPARSE_PARAM and YYLEX_PARAM.
89944         (meridian_table, month_and_day_table, time_units_table,
89945         relative_time_table, time_zone_table, military_table,
89946         lookup_zone, lookup_word, get_date):
89947         Use NULL instead of 0 where appropriate.
89948         (to_hour): Avoid abort (), to avoid a dependency on
89949         stdlib.h.
89950         (yyerror, yylex): Now accepts parser_control * arg.
89951         (main) [TEST]: Use '\0' rather than 0 for char.
89952
89953 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89954
89955         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89956
89957 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89958
89959         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89960         It's now the caller's responsibility to handle the case where
89961         !HAVE_GETPAGESIZE && !defined getpagesize.
89962
89963         * lib/mktime.c (leapyear): Arg is long int, not int.
89964
89965 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89966
89967         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89968
89969 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89970
89971         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89972         missing.  Problem reported by James Youngman.
89973
89974 2004-10-16  Simon Josefsson  <jas@extundo.com>
89975
89976         * gnulib-tool: Fix comments.  Fix parse problem.
89977         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89978
89979 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89980
89981         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89982         implementation of getopt_long.  Problem reported by Alexander Taler in:
89983         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89984
89985 2004-10-15  Bruno Haible  <bruno@clisp.org>
89986
89987         * gnulib-tool: Untabify. Initialize supplied_libname.
89988         (func_usage): More homogenous output.
89989         (func_modules_transitive_closure, func_modules_to_filelist,
89990         func_emit_lib_Makefile_am): New functions.
89991         (func_import): New function, extracted from big case statement. Use
89992         func_get_license, func_modules_transitive_closure,
89993         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89994         opt_lgpl. Don't use test -a, as it's not portable.
89995         (func_create_testdir): Use func_modules_transitive_closure,
89996         func_modules_to_filelist, func_emit_lib_Makefile_am.
89997
89998 2004-10-15  Bruno Haible  <bruno@clisp.org>
89999
90000         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90001
90002 2004-10-15  Bruno Haible  <bruno@clisp.org>
90003
90004         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90005         the portions belonging to each module.
90006         Suggested by Derek Robert Price <derek@ximbiot.com>.
90007
90008 2004-10-12  Simon Josefsson  <jas@extundo.com>
90009
90010         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90011         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90012         to real functions.
90013
90014 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90015
90016         * modules/vsnprintf: New file.
90017
90018 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90019
90020         * m4/vsnprintf.m4: New file.
90021
90022 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90023
90024         * lib/vsnprintf.h: New file.
90025         * lib/vsnprintf.c: New file.
90026
90027 2004-10-11  Bruno Haible  <bruno@clisp.org>
90028
90029         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90030         vsnprintf.
90031
90032 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90033
90034         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90035
90036 2004-10-07  Bruno Haible  <bruno@clisp.org>
90037
90038         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90039         fits into the provided buffer.
90040
90041 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90042
90043         * lib/diacrit.c, diacrit.h: Add GPL notice.
90044
90045         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90046         notice.
90047         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90048         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90049         This avoids a potential constant-folding bug.
90050
90051 2004-10-05  Bruno Haible  <bruno@clisp.org>
90052
90053         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90054         for the declaration of strsep.
90055
90056 2004-10-05  Bruno Haible  <bruno@clisp.org>
90057
90058         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90059
90060 2004-10-04  Simon Josefsson  <jas@extundo.com>
90061
90062         * modules/memmem: New file.
90063         * tests/test-memmem.c: New file.
90064         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90065
90066 2004-10-04  Simon Josefsson  <jas@extundo.com>
90067
90068         * m4/memmem.m4: New file.
90069
90070 2004-10-04  Simon Josefsson  <jas@extundo.com>
90071
90072         * lib/memmem.h: New file.
90073         * lib/memmem.c: New file, taken from glibc.
90074
90075 2004-10-04  Simon Josefsson  <jas@extundo.com>
90076
90077         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90078         '#ifdef USE_UNLOCKED_IO'.
90079
90080 2004-10-04  Simon Josefsson  <jas@extundo.com>
90081
90082         * config/srclist.txt: Add memmem from glibc.
90083
90084 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90085
90086         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90087
90088         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90089         modules/exclude, modules/getdate, modules/getline,
90090         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90091         modules/getusershell, modules/linebuffer, modules/md5,
90092         modules/mountlist, modules/posixtm, modules/readtokens,
90093         modules/readutmp, modules/regex, modules/sha1,
90094         modules/version-etc, modules/yesno:
90095         Remove dependency on unlocked-io.
90096
90097 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90098
90099         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90100
90101         * m4/unlocked-io.m4: Add copyright notice.
90102         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90103
90104 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90105
90106         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90107         * lib/xmalloc.c (xmemdup): Likewise.
90108         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90109         XFREE): Remove these long-obsolescent macros.
90110         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90111         * lib/xstrdup.c: Remove.
90112
90113         * lib/regex.c (re_comp): Cast gettext return value to char *,
90114         Problem reported by Martin Neitzel via Mark D. Baushke.
90115
90116 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90117
90118         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90119         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90120         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90121         regex.c, sha1.c, version-etc.c, yesno.c:
90122         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90123         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90124         the includer's responsibility.
90125
90126         Sync from coreutils.
90127
90128         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90129         points to the start of a string, as the C Standard says the
90130         resulting behavior is undefined.
90131
90132         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90133         simple -> simple_backups, numbered_existing ->
90134         numbered_existing_backups, numbered -> numbered_backups
90135         to avoid shadowing problems.  All uses changed.
90136         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90137         * lib/backupfile.c (check_extension, numbered_backup):
90138         Rename locals to avoid shadowing 'basename'.
90139         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90140         once.
90141
90142         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90143         * lib/.cvsignore: Add getopt.h.
90144
90145 2004-10-04  Bruno Haible  <bruno@clisp.org>
90146
90147         * modules/README: New file.
90148         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90149         not a module.
90150
90151 2004-10-02  Jim Meyering  <jim@meyering.net>
90152
90153         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90154
90155 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90156
90157         * modules/strsep: New file.
90158
90159 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90160
90161         * m4/strsep.m4: New file.
90162
90163 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90164
90165         * lib/strsep.h: New file.
90166         * lib/strsep.c: New file.
90167
90168 2004-10-01  Simon Josefsson  <jas@extundo.com>
90169
90170         * lib/snprintf.c (snprintf): Handle size==0.
90171
90172 2004-10-01  Simon Josefsson  <jas@extundo.com>
90173             Bruno Haible  <bruno@clisp.org>
90174
90175         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90176         (snprintf): Declare 'args'.
90177
90178 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90179
90180         * lib/snprintf.c: Remove comments as to why each header is needed.
90181
90182 2004-10-01  Bruno Haible  <bruno@clisp.org>
90183
90184         * MODULES.html.sh: Add strsep.
90185
90186 2004-09-30  Simon Josefsson  <jas@extundo.com>
90187
90188         * modules/snprintf: New file.
90189
90190 2004-09-30  Simon Josefsson  <jas@extundo.com>
90191
90192         * m4/snprintf.m4: New file.
90193
90194 2004-09-30  Simon Josefsson  <jas@extundo.com>
90195
90196         * lib/snprintf.h, lib/snprintf.c: New files.
90197
90198 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90199
90200         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90201         (hol_entry_help): Never translate an empty string.
90202         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90203         * lib/argp.h (OPTION_NO_TRANS): New option.
90204
90205 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90206
90207         * modules/argp (Maintainer): Replace Simon Josefsson
90208         by Sergey Poznyakoff.
90209
90210 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90211
90212         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90213         changes merged back into glibc.
90214
90215 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90216
90217         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90218
90219 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90220
90221         * lib/xvasprintf.c: Include xalloc.h.
90222         (xvasprintf): Use xalloc_die, not xmalloc_die.
90223
90224 2004-09-29  Bruno Haible  <bruno@clisp.org>
90225
90226         * modules/alloca-opt: New file, derived from modules/alloca.
90227         * modules/allocsa: Depend on alloca-opt instead of alloca.
90228         * modules/setenv: Likewise.
90229         * modules/vasnprintf: Likewise.
90230         * MODULES.html.sh: Add alloca-opt.
90231
90232 2004-09-28  Simon Josefsson  <jas@extundo.com>
90233
90234         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90235         LGPL, and to replace license template from GPL to LGPL.
90236
90237 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90238
90239         * modules/dummy: Change license to LGPL.
90240
90241 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90242
90243         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90244
90245 2004-09-24  Simon Josefsson  <jas@extundo.com>
90246
90247         * modules/minmax (License): Change from GPL to LGPL.
90248
90249 2004-09-23  Simon Josefsson  <jas@extundo.com>
90250
90251         * gnulib-tool (--import): Typo.
90252
90253 2004-09-23  Simon Josefsson  <jas@extundo.com>
90254
90255         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90256
90257 2004-09-22  Bruno Haible  <bruno@clisp.org>
90258
90259         * modules/*: Add 'License' field.
90260         * gnulib-tool: Accept --extract-license option.
90261         (func_get_license): New function.
90262
90263 2004-09-21  Bruno Haible  <bruno@clisp.org>
90264
90265         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90266         Reported by Simon Josefsson.
90267
90268 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90269
90270         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90271         gl_AC_TYPE_LONG_LONG.
90272
90273 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90274
90275         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90276
90277 2004-09-18  Simon Josefsson  <jas@extundo.com>
90278         and  Paul Eggert  <eggert@cs.ucla.edu>
90279
90280         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90281         calls with autoreconf.  Define GL_LIB.
90282
90283 2004-09-14  Karl Berry  <karl@gnu.org>
90284
90285         * config/srclist.txt: unsync setenv.c, sigh.
90286
90287 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90288
90289         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90290         Problem reported by Bruno Haible in:
90291         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90292
90293 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90294
90295         * config/srclist.txt: Comment out argp-pvh.c.
90296
90297 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90298
90299         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90300         in case some system header has #define'd it.  Problem reported by
90301         Soeren D. Schulze in
90302         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90303
90304 2004-09-09  Karl Berry  <karl@gnu.org>
90305
90306         * regex.[ch]: delete from the root.  These were supposed to be
90307                 synced with emacs cvs, but this has not happened for about
90308                 a year, and anyway nothing else uses emacs regex.[ch].
90309                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90310                 lib/regex[.ch] is untouched.
90311
90312 2004-09-09  Bruno Haible  <bruno@clisp.org>
90313
90314         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90315
90316 2004-09-09  Bruno Haible  <bruno@clisp.org>
90317
90318         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90319         modifications.
90320         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90321
90322 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90323
90324         * modules/xvasprintf: New file.
90325         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90326
90327 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90328
90329         * lib/xvasprintf.h: New file.
90330         * lib/xvasprintf.c: New file.
90331         * lib/xasprintf.c: New file.
90332
90333 2004-09-08  Bruno Haible  <bruno@clisp.org>
90334
90335         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90336
90337 2004-09-08  Bruno Haible  <bruno@clisp.org>
90338
90339         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90340         length is > INT_MAX.
90341         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90342         more.
90343
90344 2004-09-08  Bruno Haible  <bruno@clisp.org>
90345
90346         * lib/stdint_.h: New file, taken from GNU clisp.
90347
90348 2004-09-08  Bruno Haible  <bruno@clisp.org>
90349             Oskar Liljeblad  <oskar@osk.mine.nu>
90350
90351         * modules/stdint: New file.
90352         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90353
90354 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90355
90356         Import from coreutils.
90357         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90358         strings on unbounded length.  alloca's performance benefits aren't
90359         that important here.
90360         (V_STRDUP): Remove.
90361         (parse_with_separator): New function, with most of the internals
90362         of the old parse_user_spec.  Allow user to omit both user and group,
90363         for compatibility with FreeBSD.
90364         Clone only the user name, not the entire spec.
90365         Do not set *uid, *gid unless entirely successful.
90366         Avoid memory leak in some failing cases.
90367         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90368         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90369         (parse_user_spec): Rewrite to use parse_with_separator.
90370
90371 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90372
90373         * modules/userspec: Don't depend on alloca.
90374
90375 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90376
90377         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90378
90379 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90380
90381         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90382         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90383         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90384
90385 2004-08-16  Simon Josefsson  <jas@extundo.com>
90386
90387         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90388         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90389         Add --dry-run for --import.
90390         Let user provided command line parameters override configure.ac
90391         settings.
90392
90393 2004-08-12  Simon Josefsson  <jas@extundo.com>
90394
90395         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90396         as discussed with Paul Eggert in threads rooted at
90397         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90398         and
90399         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90400         Before, the test was empty, and relied on ELIDE_CODE in source
90401         code.)
90402         (gl_PREREQ_GETOPT): New macro.
90403         (gl_GETOPT): Use them.
90404
90405 2004-08-12  Simon Josefsson  <jas@extundo.com>
90406
90407         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90408         * lib/getopt_.h: Renamed from getopt.h.
90409
90410 2004-08-12  Simon Josefsson  <jas@extundo.com>
90411
90412         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90413         Change default library name from libfoo to libgnu.
90414         Now, if you have a configure.ac that says:
90415                 gl_SOURCE_BASE(gl)
90416                 gl_M4_BASE(gl/m4)
90417                 gl_MODULES(error getopt etcetera)
90418                 gl_INIT
90419         you can import all you need by running:
90420                 ../gnulib/gnulib-tool --import
90421
90422         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90423         (Makefile.am): Rewrite, use logic from argz.
90424         (Include): Use <getopt.h> instead of "getopt.h".
90425
90426 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90427
90428         * modules/argp (Files): Add m4/unlocked-io.m4.
90429         (Depends-on): Add extensions.
90430
90431 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90432
90433         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90434         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90435         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90436         Check for program_invocation_name, program_invocation_short_name,
90437         flockfile, funlockfile, features.h, _getopt_long_only_r.
90438
90439 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90440
90441         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90442         its complicated substitute.
90443         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90444         and program_invocation_name.
90445         (__argp_basename) [!_LIBC]: Remove; the only use was
90446         replaced by its body.
90447         (__argp_short_program_name): Change condition from
90448         !defined __argp_short_program_name to
90449         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90450         to match argp-namefrob.h.
90451         (__argp_failure): Don't assume strerror_r returns char *.
90452         * lib/argp-parse.c (N_): Define unconditionally.
90453         (argp_default_options): Fill out initializers with 0 to avoid
90454         gcc warnings.
90455
90456 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90457
90458         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90459         getopt1.c.
90460
90461 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90462
90463         Merge from coreutils.
90464
90465         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90466
90467         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90468         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90469
90470 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90471
90472         Merge from coreutils.
90473
90474         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90475         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90476         for Reliant Unix 5.43.
90477
90478         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90479         (union fooround): Use uintmax_t, not long int.
90480         The rest is a merge from libc:
90481         [defined _LIBC]: Include <shlib-compat.h>.
90482         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90483
90484         * lib/settime.c (settime): Recode to avoid warning with
90485         Sun Forte C 6U2.
90486
90487         * lib/strverscmp.c: Convert to UTF-8.
90488
90489 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90490
90491         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90492         m4/uintmax_t.m4.
90493
90494 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90495
90496         * modules/xalloc-die: New file.
90497         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90498
90499         * modules/md5 (Files): Add m4/uint32_t.m4.
90500         * modules/sha1: Renamed from modules/sha.
90501         (Files):
90502         Rename lib/sha.h to lib/sha1.h.
90503         Rename lib/sha.c to lib/sha1.c.
90504         Rename m4/sha.m4 to m4/sha1.m4.
90505         (lib_SOURCES): Likewise.
90506         (configure.ac): Rename gl_SHA to gl_SHA1.
90507         (Include): sha.h -> sha1.h.
90508
90509 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90510
90511         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90512         * m4/sha1.m4: Renamed from sha.m4.
90513         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90514
90515 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90516
90517         * lib/obstack.h (obstack_empty_p):
90518         Don't assume that chunk->contents is suitably aligned.
90519         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90520         Likewise. Problem reported by Benno in
90521         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90522
90523         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90524         readable.  This could be improved further but it'd take some work.
90525
90526 2004-08-08  Simon Josefsson  <jas@extundo.com>
90527
90528         * modules/xgethostname (Depends-on): Remove exit and error (not
90529         used).
90530
90531         * modules/getpass-gnu: Add getpass.h.
90532         (Depends-on): Add stdbool.
90533         * modules/getpass: Add getpass.h.
90534
90535 2004-08-08  Simon Josefsson  <jas@extundo.com>
90536
90537         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90538         Check getpass declaration.
90539
90540 2004-08-08  Simon Josefsson  <jas@extundo.com>
90541
90542         * lib/xgethostname.c: Don't include error.h (not used).
90543
90544         * lib/getpass.h: Add.
90545         * lib/getpass.c: Include getpass.h first.
90546
90547 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90548
90549         * lib/xalloc-die.c: New file.
90550         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90551         All uses removed.
90552         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90553         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90554         xalloc-die.c.
90555         (_, N_, xalloc_die): Move to xalloc-die.c.
90556         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90557         so that we needn't mess with xalloc_msg_memory_exhausted.
90558
90559         * lib/sha1.h: Renamed from sha.h.
90560         (SHA1_H): Renamed from _SHA_H.
90561         (sha1_ctx): Renamed from sha_ctx.
90562         (sha1_init_ctx): Renamed from sha_init_ctx.
90563         (sha1_process_block): Renamed from sha_process_block.
90564         (sha1_process_bytes): Renamed from sha_process_bytes.
90565         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90566         (sha1_read_ctx): Renamed from sha_read_ctx.
90567         (sha1_stream): Renamed from sha_stream.
90568         (sha1_buffer): Renamed from sha_buffer.
90569         * lib/sha1.c: Likewise; renamed from sha.c.
90570         Do not include <sys/types.h>.
90571         Include <stddef.h> rather than <stdlib.h>.
90572
90573 2004-08-08  Bruno Haible  <bruno@clisp.org>
90574
90575         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90576         FILESYSTEM_PREFIX_LEN.
90577         * lib/progreloc.c: Likewise.
90578         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90579
90580 2004-08-06  Simon Josefsson  <jas@extundo.com>
90581
90582         * modules/progname (Depends-on): Don't depend on stdbool.
90583
90584 2004-08-06  Simon Josefsson  <jas@extundo.com>
90585
90586         * modules/getsubopt: New file.
90587         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90588         getsubopt.
90589
90590 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90591
90592         More merge from coreutils.
90593
90594         * m4/utimens.m4, m4/utimecmp.m4: New files.
90595         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90596         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90597         prereq.m4, sha.m4: Import changes from coreutils.
90598
90599 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90600
90601         More merge from coreutils.
90602         * modules/raise, modules/readtokens0, modules/utimens:
90603         * modules/utimecmp, module/xnanosleep: New files.
90604         * modules/strftime: Add lib/strftime.h.
90605         Change include from <time.h> to "strftime.h".
90606         * modules/yesno: Add lib/yesno.h.
90607         * modules/backupfile: Remove lib/addext.c.
90608         * modules/euidaccess: Add stat-macros.h.
90609         * modules/canonicalize, modules/euidaccess,
90610         modules/filemode, modules/lchown, modules/makepath,
90611         modules/rmdir, modules/stat: Likewise.
90612
90613 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90614
90615         Merge from tar.
90616         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90617         SIZE_MAX is a valid preprocessor constant.
90618         (__argp_basename): Change from "#ifndef _LIBC"
90619         to "#ifndef __argp_short_program_name", so that
90620         we don't compile these functions for tar.
90621
90622         More merges from coreutils.
90623         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90624         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90625         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90626         * lib/addext.c: Remove; no longer needed.
90627         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90628         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90629         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90630         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90631         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90632         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90633         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90634         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90635         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90636         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90637         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90638         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90639         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90640         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90641         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90642         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90643         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90644         Import changes from coreutils.
90645
90646 2004-08-05  Simon Josefsson  <jas@extundo.com>
90647
90648         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90649
90650 2004-08-05  Simon Josefsson  <jas@extundo.com>
90651
90652         * m4/getsubopt.m4: New file.
90653
90654 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90655
90656         Merge from coreutils.
90657
90658         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90659         * m4/getcwd-path-max.m4: New files.
90660
90661         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90662         FILESYSTEM_PREFIX_LEN ->
90663         FILE_SYSTEM_PREFIX_LEN.
90664         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90665         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90666         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90667         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90668
90669         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90670         prerequisite modules now handle the DOS stuff.
90671         Don't check for unistd.h.
90672
90673 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90674
90675         Merge from coreutils.
90676
90677         * lib/.gdb-history: Remove; this doesn't belong here.
90678
90679         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90680         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90681         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90682         * lib/getcwd.c: New files.
90683
90684         * lib/dirname.h: Include <stdbool.h>.
90685         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90686         for consistency with POSIX terminology.  All uses changed.
90687         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90688         (strip_trailing_slashes): Use bool for booleans.
90689         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90690
90691         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90692         sometimes returns a positive errno value even when it succeeds.
90693         (print_errno_message) [!LIBC]: Fall back on strerror if
90694         __strerror_r fails.
90695
90696         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90697         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90698         (longest_relative_suffix): New function.
90699         (path_concat): Use it.  Assume first argument is not NULL.
90700         Port to DOS.  Omit redundant separators.
90701         Report an error instead of returning NULL.
90702         Use mempcpy instead of memcpy.
90703         (xpath_concat): Remove: not declared or used.
90704
90705         * lib/same.h: Include <stdbool.h>
90706         (same_name): Return bool, not int.
90707         * lib/same.c (same_name): Likewise.
90708         (errno): Don't declare; we assume C89 or better now.
90709
90710         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90711         if not already defined.
90712
90713         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90714         * lib/dup-safer.c (errno): Likewise.
90715
90716 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90717
90718         Merge from coreutils.
90719         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90720         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90721         * modules/path-concat: Don't depend on strdup.
90722
90723 2004-08-03  Simon Josefsson  <jas@extundo.com>
90724
90725         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90726         * lib/progname.h: Don't include stdbool.h.
90727
90728 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90729
90730         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90731         * MODULES.html.sh (func_all_modules): Remove fatal.
90732
90733 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90734
90735         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90736
90737 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90738
90739         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90740         working.
90741
90742 2004-08-02  Simon Josefsson  <jas@extundo.com>
90743
90744         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90745         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90746         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90747
90748 2004-08-01  Simon Josefsson  <jas@extundo.com>
90749
90750         * lib/xgetdomainname.c: Include stdlib.h, for free().
90751
90752 2004-07-19  Bruno Haible  <bruno@clisp.org>
90753
90754         * MODULES.html.sh (func_all_modules): Add dummy.
90755
90756 2004-07-16  Simon Josefsson  <jas@extundo.com>
90757
90758         * modules/dummy: New file.
90759
90760 2004-07-16  Simon Josefsson  <jas@extundo.com>
90761
90762         * lib/dummy.c: New file.
90763
90764 2004-07-16  Bruno Haible  <bruno@clisp.org>
90765
90766         * lib/backupfile.h: Add extern "C" for C++.
90767         * lib/closeout.h: Likewise.
90768         * lib/copy-file.h: Likewise.
90769         * lib/findprog.h: Likewise.
90770         * lib/full-write.h: Likewise.
90771         * lib/pathname.h: Likewise.
90772         * lib/progname.h: Likewise.
90773         * lib/stpcpy.h: Likewise.
90774         * lib/stpncpy.h: Likewise.
90775         * lib/strcase.h: Likewise.
90776         * lib/strstr.h: Likewise.
90777         * lib/xalloc.h: Likewise.
90778
90779         * lib/mbswidth.h: Add extern "C" for C++.
90780         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90781
90782 2004-07-13  Robert Millan  <robertmh@gnu.org>
90783
90784         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90785
90786 2004-07-09  Simon Josefsson  <jas@extundo.com>
90787
90788         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90789         failed without this.)
90790
90791 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90792
90793         * modules/chown (Files): Add lib/fchown-stub.c, since
90794         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90795
90796 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90797
90798         * lib/fchown-stub.c: New file.
90799
90800 2004-06-24  Jim Meyering  <jim@meyering.net>
90801
90802         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90803
90804 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90805
90806         * modules/argz: Omit "#include".
90807
90808         * MODULES.html.sh (func_all_modules): Add calloc, to match
90809         2004-06-01 addition of calloc module.
90810
90811 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90812
90813         * m4/argz.m4: New file, which is autoupdated from libtool.
90814
90815 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90816
90817         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90818         libtool.
90819
90820 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90821
90822         * config/srclist-update: Don't insist on "USA." before the
90823         close-comment, as libtool omits the period and puts the */ on a
90824         separate line.
90825         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90826         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90827
90828 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90829
90830         * modules/argz: New file.
90831         * MODULES.html.sh (func_all_modules): Add argz.
90832
90833 2004-06-12  Jim Meyering  <jim@meyering.net>
90834         and  Paul Eggert  <eggert@cs.ucla.edu>
90835
90836         * modules/hash (Files): Add lib/xalloc.h.
90837         * modules/pipe (Depends-on): Add wait-process.
90838         * modules/stat (Depends-on): Add xalloc.
90839         * modules/userspec (Files): Add lib/userspec.h.
90840         * modules/xstrto
90841
90842         Upgrade from gettext-0.13.
90843         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90844         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90845         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90846
90847 2004-06-10  Jim Meyering  <jim@meyering.net>
90848
90849         * lib/calloc.c: New file.
90850
90851 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90852
90853         * lib/getdate.y (yylex): Allow space between sign and number.
90854         Problem reported by Dan Jacobson.
90855
90856 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90857
90858         Merge from coreutils CVS.
90859
90860         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90861         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90862         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
90863         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
90864         xstrtol.m4: Fix copyright date and/or serial number.
90865
90866         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
90867         See if we need an fchown replacement.
90868         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
90869         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
90870         and use the replacement function if we detect either defect.
90871
90872         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
90873         gl_UTIMECMP.
90874
90875 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90876         and  Jim Meyering  <jim@meyering.net>
90877
90878         Merge from coreutils CVS.
90879
90880         * lib/stat-macros.h: New file, with contents from file-type.h
90881         and coreutils' system.h.
90882         * lib/file-type.c: Include "stat-macros.h".
90883         * lib/file-type.h (file_type): Move all macro definitions to new file,
90884         stat-macros.h.
90885
90886         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
90887         Wrap old code with this conditional.
90888         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
90889         function that does not dereference symlinks.
90890         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
90891
90892         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
90893         dependency problems.
90894         (xreadlink): Accept new arg SIZE, for efficiency.
90895         All decls and uses changed.
90896         * lib/xreadlink.h: Include <stddef.h>, for size_t.
90897
90898         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
90899         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
90900
90901         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
90902         sysexits.h.
90903
90904 2004-06-01  Jim Meyering  <jim@meyering.net>
90905
90906         * m4/calloc.m4: New file.
90907
90908 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
90909
90910         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90911         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90912         Also, fix a typo in a diagnostic.
90913
90914 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90915
90916         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90917         or AC_FUNC_REALLOC.
90918
90919 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90920
90921         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90922         macros to be defined.
90923         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90924         the allocator returns NULL because the requested size is zero.
90925
90926 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90927
90928         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90929         var.  Add comment explaining why libc still defines it.  This
90930         merges the following patch from glibc:
90931         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90932
90933 2004-05-20  Andreas Schwab  <schwab@suse.de>
90934
90935         * m4/free.m4: Replace free if it not known to work, not the other
90936         way round.
90937
90938 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90939
90940         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90941         present in glibc since revision 1.1 of this file.
90942         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90943         obstack_alignment_mask, obstack_alloc, obstack_base,
90944         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90945         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90946         obstack_grow0, obstack_init, obstack_int_grow,
90947         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90948         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90949         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90950         nonexistent functions.
90951
90952 2004-05-18  Karl Berry  <karl@gnu.org>
90953
90954         * config/srclist.txt: break link for vasnprintf.c.
90955
90956 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90957
90958         Port obstack to the AS/400, where pointers are 16 bytes wide and
90959         you cannot cast an integer to a valid pointer.  This patch is
90960         currently waiting to be integrated into glibc; see
90961         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90962
90963         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90964         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90965         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90966         (struct obstack): temp member is now a union of a pointer and
90967         an integer, instead of an integer.  All integer uses changed.
90968         This does not affect the physical layout of struct obstack,
90969         except on hosts (like the AS/400) where the size or alignment of
90970         void * is greater than that of ptrdiff_t.
90971         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90972         __STDC__)]: Store temporary in pointer member of union, not
90973         integer member.
90974         * lib/obstack.c: Include <stddef.h>, for offsetof.
90975         (struct fooalign): Remove; it doesn't need a name.
90976         (union fooround): Change double to long double, and add void *.
90977         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90978         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90979         not a macro.  Hence the values are always int; so remove all
90980         casts-to-int in uses.
90981
90982 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90983
90984         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90985         we can get this patch merged into glibc.
90986
90987 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90988             Paul Eggert  <eggert@cs.ucla.edu>
90989
90990         * m4/argp: Depend on alloca.
90991
90992 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90993             Paul Eggert  <eggert@cs.ucla.edu>
90994
90995         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90996         freecoding.
90997
90998 2004-05-17  Bruno Haible  <bruno@clisp.org>
90999
91000         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91001         precision that consists of a '.' followed by an empty digit string.
91002         Patch by Tor Lillqvist <tml@iki.fi>.
91003
91004 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91005
91006         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91007         for backward compatibility with older code.  We need our own
91008         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91009         it under some other name, and our alloca.h will define it.
91010
91011 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91012             Derek Price  <derek@ximbiot.com>
91013
91014         * lib/alloca.c: Include <alloca.h>, to get our interface.
91015         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91016         include <alloca.h> first.  Use C89 prototype for alloca; this
91017         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91018         Use #elif for simplicity, since we can assume C89 now.
91019         Don't try to source the system alloca.h since it will not be found
91020         and to prevent recursively including its replacement.
91021         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91022         * lib/regex.c: Likewise.
91023
91024 2004-05-16  Derek Price  <derek@ximbiot.com>
91025             Paul Eggert  <eggert@cs.ucla.edu>
91026
91027         getline cleanup.  This changes the getndelim2 API: both order of
91028         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91029         no delimiter).
91030
91031         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91032         interface does that.
91033         (getline): Always use getdelim, so that we don't have two
91034         copies of this code.
91035         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91036         if available.
91037         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91038         (GETNDELIM2_MAXIMUM): New macro.
91039         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91040         instead of the old practice of delim2==0.  All callers changed.
91041         Return -1 on overflow, instead of returning junk.
91042         Do not set *linesize unless allocation succeeds.
91043         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91044         that we include sys/types.h.
91045         * lib/getnline.h: Likewise.
91046         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91047         (getndelim2): Reorder arguments.
91048         * lib/getnline.c (getnline, getndelim):
91049         Don't discard the NMAX argument.
91050         (getnline): Invoke getndelim, to avoid code duplication.
91051         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91052         of (size_t) -1 by callers of the getnline family.
91053
91054 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91055
91056         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91057         Check for gettimeofday.
91058         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91059         Check for settimeofday, stime.
91060
91061 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91062
91063         * lib/nanosleep.c (suspended): Change its type from int to
91064         sig_atomic_t volatile.
91065         (first_call): Make it private to rpl_nanosleep, and have it
91066         be zero initially as that's a bit faster.
91067         (my_usleep): Round up fractional times instead of truncating them,
91068         as this is the usual meaning for 'sleep'.
91069
91070         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91071         doesn't work.
91072         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91073         (ENOSYS): Define if not defined.
91074         (settime): Fall back on stime if it exists and settimeofday fails.
91075         But don't bother with fallbacks if a method fails with errno == EPERM.
91076
91077 2004-05-11  Jim Meyering  <jim@meyering.net>
91078
91079         Prior to this change, the save_cwd caller required read access to the
91080         current directory on most systems (ones with the fchdir function).
91081
91082         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91083         fails, try write-only, and finally, resort to using xgetcwd.
91084
91085 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91086
91087         * lib/obstack.c, obstack.h: Import changes from libc.
91088
91089 2004-04-28  Bruno Haible  <bruno@clisp.org>
91090
91091         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91092         also implicitly appends .exe to executables.
91093         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91094         accepts Windows pathnames.
91095         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91096         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91097         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91098         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91099         Reported by Derek Robert Price <derek@ximbiot.com>.
91100
91101 2004-04-21  Karl Berry  <karl@gnu.org>
91102
91103         * config/srclist.txt (localcharset.c): break sync.
91104
91105 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91106
91107         * m4/host-os.m4: Add a copyright notice.
91108
91109 2004-04-20  Jim Meyering  <jim@meyering.net>
91110
91111         Change UTILS_ to gl_ in AC_DEFINE'd names.
91112         Change utils_- and jm_-prefixed variables, too.
91113         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91114         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91115         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91116
91117         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91118         Don't emit trailing blanks.
91119         Also rename jm_-prefixed variables to have gl_ prefix.
91120
91121         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91122         Also rename jm_-prefixed variables to have gl_ prefix.
91123
91124         * m4/jm-macros.m4: Reflect the renamings.
91125         * m4/prereq.m4: Likewise.
91126
91127 2004-04-20  Jim Meyering  <jim@meyering.net>
91128
91129         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91130         memory.
91131
91132 2004-04-20  Jim Meyering  <jim@meyering.net>
91133             Bruno Haible  <bruno@clisp.org>
91134
91135         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91136         memory when realloc fails.
91137
91138 2004-04-19  Jim Meyering  <jim@meyering.net>
91139
91140         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91141         now that readutmp.c may call `free (0)'.
91142
91143 2004-04-19  Bruno Haible  <bruno@clisp.org>
91144
91145         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91146         * m4/inttypes_h.m4: Likewise.
91147         * m4/stdint_h.m4: Likewise.
91148         * m4/intmax_t.m4: Likewise.
91149         * m4/uintmax_t.m4: Likewise.
91150
91151 2004-04-18  Jim Meyering  <jim@meyering.net>
91152
91153         * m4/prereq.m4: Don't forbid jm_ prefix.
91154
91155         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91156         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91157         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91158         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91159         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91160         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91161         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91162         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91163         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91164         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91165         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91166         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91167         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91168         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91169         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91170         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91171         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91172         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91173         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91174
91175 2004-04-18  Jim Meyering  <jim@meyering.net>
91176
91177         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91178         failure, don't leak memory and do call END_UTMP_ENT.
91179
91180 2004-04-16  Jim Meyering  <jim@meyering.net>
91181
91182         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91183         coreutils' stat program.
91184         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91185
91186 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91187
91188         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91189         C89.
91190         (CHAR_BIT): Remove, since we assume C89.
91191         Include <stdint.h> if available, as per current Autoconf CVS advice.
91192
91193 2004-03-31  Jim Meyering  <jim@meyering.net>
91194
91195         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91196         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91197         * m4/xalloc.m4: Likewise.
91198
91199 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91200
91201         Merge from coreutils.
91202
91203         * m4/inttostr.m4: New file.
91204         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91205         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91206         Require gl_CLOCK_TIME.
91207         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91208
91209 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91210
91211         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91212         not bool, to be more consistent with Unix conventions.
91213         Suggested by Bruno Haible.
91214
91215         Merge from coreutils.
91216
91217         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91218         * lib/umaxtostr.c: New files.
91219
91220         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91221         the usual <time.h> dance.
91222         (get_date): Change signature to support fractional time stamps.
91223         All callers changed.
91224         * lib/getdate.y: Include "getdate.h" first, as we can now
91225         assume C89 and don't need to worry about 'const'.
91226         Similarly, include "unlocked-io.h" near start, not in middle.
91227         Include <limits.h>.
91228         (textint.value): Use long int rather than int.
91229         (textint.digits): Use size_t rather than int.
91230         (BILLION, LOG10_BILLION): New constants.
91231         (parser_control): New member rel_ns.  Members day_ordinal,
91232         time_zone, month, day, hour, minutes, rel_year, rel_month,
91233         rel_day, rel_hour, rel_minutes, rel_seconds
91234         are now long int, not int.  Member seconds is now struct timespec,
91235         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91236         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91237         not int.
91238         (%union.intval): Now long int, not int.
91239         New member timespec.
91240         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91241         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91242         (spec): Now is a timespec or an item list.
91243         (timespec, items): New nonterminals.
91244         (time, rel, relunit, number, get_date):
91245         Add support for fractional seconds.
91246         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91247         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91248         (to_hour): First arg is now long int, not int.
91249         (to_year): Returns long int, not int.
91250         Don't treat year -70 like 70.
91251         (tm_diff): Returns long int, not int.
91252         (lookup_word): Use bool instead of int when appropriate.
91253         (yylex): Use size_t for count, not int.
91254         Detect overflow when parsing large integer constants.
91255         Add support for fractions.
91256         (get_date): Make pointers 'const' if possible.
91257         Use more-portable code to detect integer overflow.
91258         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91259         Don't use ctime; it's not reliable if the year has >4 digits.
91260
91261         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91262         This is for compatibility with BSD.
91263
91264         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91265         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91266         From coreutils' system.h.
91267
91268         * lib/userspec.c: Don't include "posixver.h".
91269         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91270         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91271         compatible extension.  Simplify code by removing a boolean int
91272         that was always nonzero if a string was nonnull.
91273
91274 2004-03-30  Jim Meyering  <jim@meyering.net>
91275
91276         Merge from coreutils.
91277
91278         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91279         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91280         on some systems one must include <grp.h> before it.
91281         Reported by Christian Krackowizer.
91282
91283 2004-03-30  Jim Meyering  <jim@meyering.net>
91284
91285         Merge from coreutils.
91286
91287         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91288
91289         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91290         an empty input stream.
91291
91292         * lib/readtokens.c: Include <stdbool.h>.
91293         (readtoken): Use `size_t' rather than int/long.
91294         All callers adjusted.
91295         Use `bool' rather than `int' where appropriate.
91296         Use memset rather than an explicit loop.
91297         Use x2nrealloc rather than xrealloc.
91298         Allow the use of `\0' as a delimiter.
91299         (readtokens): Likewise.
91300         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91301
91302 2004-03-30  Jim Meyering  <jim@meyering.net>
91303
91304         * m4/realloc.m4: Remove file, since now it does no more than
91305         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91306         the `configure.ac' section of module/realloc.
91307         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91308
91309 2004-03-30  Bruno Haible  <bruno@clisp.org>
91310
91311         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91312         nonnull.
91313
91314 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91315
91316         Merge changes to getloadavg.c from coreutils and Emacs.
91317
91318         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91319         Define to an expression, not to the empty string.
91320         Include cloexec.h and xalloc.h.
91321         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91322         Use set_cloexec_flag rather than rolling our own.
91323         * lib/cloexec.c, lib/cloexec.h: New files.
91324
91325 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91326
91327         * m4/cloexec.m4: New file.
91328
91329 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91330
91331         * lib/getopt.h: Sync with libc CVS.
91332
91333 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91334             Bruno Haible  <bruno@clisp.org>
91335
91336         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91337         mbswidth.
91338
91339 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91340             Bruno Haible  <bruno@clisp.org>
91341
91342         * lib/mbswidth.h: Include <wchar.h> only if
91343         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91344         <wchar.h>.
91345         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91346
91347 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91348
91349         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91350         Sync with libc CVS.
91351         * lib/getopt_int.h: New file, also synced from libc.
91352
91353 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91354
91355         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91356         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91357         Bring back getopt.c, getopt.h, getopt1.c.
91358
91359 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91360
91361         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91362         All uses changed.  Check for sa_sigaction member; this fixes
91363         a bug first reported by Jason Andrade in
91364         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91365
91366 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91367
91368         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91369         '#if' expressions.  Unlike the code it replaces, it does not
91370         depend on (defined _SC_PAGESIZE).  However, it does depend on
91371         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91372         first reported by Jason Andrade in
91373         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91374
91375 2004-02-25  Simon Josefsson  <jas@extundo.com>
91376
91377         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91378
91379 2004-02-25  Simon Josefsson  <jas@extundo.com>
91380
91381         * lib/strdup.h: New file.
91382         * lib/strdup.c: Include it.
91383         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91384         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91385
91386 2004-02-23  Karl Berry  <karl@gnu.org>
91387
91388         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91389         (from fencepost.gnu.org:/gd/gnuorg).
91390
91391 2004-02-23  Karl Berry  <karl@gnu.org>
91392
91393         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91394         * config/srclist.txt: add maintain/standards documents.
91395
91396 2004-02-18  Bruno Haible  <bruno@clisp.org>
91397
91398         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91399         Reported by Derek Robert Price <derek@ximbiot.com>.
91400
91401 2004-02-16  Karl Berry  <karl@gnu.org>
91402
91403         * config/mkinstalldirs, install-sh: update from automake.
91404
91405 2004-02-06  Karl Berry  <karl@gnu.org>
91406
91407         * m4/po.m4: update from gettext 0.14.1.
91408
91409 2004-02-06  Karl Berry  <karl@gnu.org>
91410
91411         * lib/config.charset: update from gettext 0.14.1.
91412
91413 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91414
91415         Add comments and code, prompted by suggestions from Bruno Haible
91416         for sh-quote.
91417         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91418         describing the enum quoting_style values.
91419         * lib/quotearg.c (quotearg_alloc): New function.
91420         (quotearg_buffer_restyled): Treat lone { and } as special.
91421         Treat = as special.  Work around bug with older shells
91422         that "see" a '\' that is really the 2nd byte of a multibyte char.
91423         Quote empty string with shell_quoting_style.
91424
91425 2004-02-03  Bruno Haible  <bruno@clisp.org>
91426
91427         * m4/pipe.m4: New file, from GNU gettext.
91428
91429 2004-02-03  Bruno Haible  <bruno@clisp.org>
91430
91431         * lib/pipe.h: New file, from GNU gettext.
91432         * lib/pipe.c: New file, from GNU gettext.
91433
91434 2004-01-27  Bruno Haible  <bruno@clisp.org>
91435
91436         * m4/execute.m4: New file, from GNU gettext.
91437
91438 2004-01-27  Bruno Haible  <bruno@clisp.org>
91439
91440         * lib/execute.h: New file, from GNU gettext.
91441         * lib/execute.c: New file, from GNU gettext.
91442         * lib/w32spawn.h: New file, from GNU gettext.
91443
91444 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91445
91446         Merge from diffutils.
91447
91448         * lib/file-type.c (file_type): Add typed memory objects.
91449         * lib/file-type.h (S_TYPEISTMO): New macro.
91450
91451         * lib/c-stack.h (c_stack_action): Remove argv argument.
91452         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91453         (die): Don't calculate message unless segv_action returns.
91454         (get_stack_location, min_address_from_argv, max_address_from_argv,
91455         volatile stack_base, volatile_stack_size): Remove.
91456         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91457         that every segmentation violation is a stack overflow.  (Ouch!)
91458         See Debian bug 136249 (still outstanding) for more info about why
91459         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91460
91461 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91462
91463         Exit-status fix from coreutils.
91464
91465         Use exit_failure consistently in place of EXIT_FAILURE,
91466         so that program exit statuses are consistent on failure.
91467
91468         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91469         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91470         * lib/argmatch.h: Comment fix to match the above.
91471         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91472         Now a macro referring to exit_failure, instead of a separate
91473         variable.  Include "exitfail.h" to get it.
91474         * lib/xstrtol.h: Include "exitfail.h".
91475         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91476
91477         * lib/long-options.c (parse_long_options): Use prototype
91478         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91479         for clarity.
91480
91481 2004-01-21  Jim Meyering  <jim@meyering.net>
91482
91483         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91484         so as not to conflict with a different-sized __mktime_internal
91485         function in GNU libc.
91486         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91487         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91488
91489 2004-01-20  Karl Berry  <karl@gnu.org>
91490
91491         * config/config.guess: update from config.
91492
91493         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91494
91495 2004-01-20  Bruno Haible  <bruno@clisp.org>
91496
91497         Safer stack allocation.
91498         * lib/setenv.c: Include allocsa.h.
91499         (alloca): Remove fallback definition.
91500         (freea): Remove macro.
91501         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91502         instead of freea.
91503
91504 2004-01-20  Bruno Haible  <bruno@clisp.org>
91505
91506         * m4/eealloc.m4: New file, from GNU gettext.
91507
91508 2004-01-20  Bruno Haible  <bruno@clisp.org>
91509
91510         * m4/allocsa.m4: New file, from GNU gettext.
91511
91512 2004-01-20  Bruno Haible  <bruno@clisp.org>
91513
91514         * lib/xallocsa.h: New file, from GNU gettext.
91515         * lib/xallocsa.c: New file, from GNU gettext.
91516
91517 2004-01-20  Bruno Haible  <bruno@clisp.org>
91518
91519         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91520
91521 2004-01-20  Bruno Haible  <bruno@clisp.org>
91522
91523         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91524         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91525         specially.
91526
91527 2004-01-20  Bruno Haible  <bruno@clisp.org>
91528
91529         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91530         patch.
91531
91532 2004-01-20  Bruno Haible  <bruno@clisp.org>
91533
91534         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91535
91536 2004-01-20  Bruno Haible  <bruno@clisp.org>
91537
91538         * lib/eealloc.h: New file.
91539
91540 2004-01-20  Bruno Haible  <bruno@clisp.org>
91541
91542         * lib/binary-io.h: Avoid warnings on Cygwin.
91543
91544 2004-01-20  Bruno Haible  <bruno@clisp.org>
91545
91546         * lib/allocsa.h: New file, from GNU gettext.
91547         * lib/allocsa.c: New file, from GNU gettext.
91548
91549 2004-01-18  Karl Berry  <karl@gnu.org>
91550
91551         * doc/gpl.texi, doc/lgpl.texi: new files.
91552
91553 2004-01-18  Karl Berry  <karl@gnu.org>
91554
91555         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91556         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91557
91558 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91559
91560         Merge from coreutils.
91561
91562         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91563         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91564         (gl_DEFAULT_POSIX2_VERSION): Move
91565         the documentation from 'configure' into 'config.hin',
91566         so that 'configure --help' isn't burdened by it and
91567         we don't have to worry about its formatting there.
91568         Reword the documentation so that it's more succinct
91569         and can be run together into a single paragraph.
91570         * m4/same.m4 (gl_SAME): Check for pathconf.
91571
91572 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91573
91574         Merge from coreutils.
91575
91576         * lib/posixver.c: Include posixver.h.
91577
91578         * lib/same.c: Include <stdbool.h>, <limits.h>.
91579         (_POSIX_NAME_MAX): Define if not defined.
91580         (MIN): New macro.
91581         (same_name): If file names are silently truncated, report
91582         that the file names are the same if they are the same after
91583         the silent truncation.
91584
91585         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91586         conversion function.
91587         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91588         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91589         longer needed.
91590
91591 2004-01-15  Jim Meyering  <jim@meyering.net>
91592
91593         Merge from coreutils.
91594
91595         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91596         if no library is required.
91597         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91598         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91599         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91600         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91601         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91602         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91603         value, $ac_cv_search_crypt, if it's "none required".
91604         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91605         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91606         not gl_FUNC_GETLOADAVG.
91607         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91608         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91609
91610 2004-01-15  Jim Meyering  <jim@meyering.net>
91611
91612         Merge from coreutils.
91613
91614         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91615         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91616         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91617
91618         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91619         optional configure-time default.
91620
91621         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91622
91623         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91624
91625 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91626
91627         Merge from coreutils.
91628
91629         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91630         value, $ac_cv_search_nanosleep, if it's "none required".
91631
91632 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91633
91634         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91635         with like-named macro in fnmatch.c.
91636         (EXT): Use an internal constant instead.
91637
91638         Merge fnmatch patches from glibc.
91639         * lib/fnmatch.c (mbsinit): Remove define.
91640         Add libc_hidden_ver (__fnmatch, fnmatch).
91641         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91642         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91643
91644 2004-01-14  Karl Berry  <karl@gnu.org>
91645
91646         * config/install-sh: update from automake.
91647
91648 2004-01-13  Karl Berry  <karl@gnu.org>
91649
91650         * config/install-sh: update from automake.
91651
91652 2004-01-09  Karl Berry  <karl@gnu.org>
91653
91654         * config/install-sh: update from automake.
91655
91656 2004-01-05  Karl Berry  <karl@gnu.org>
91657
91658         * config/config.{sub,guess}: update from config.
91659
91660 2003-12-31  Karl Berry  <karl@gnu.org>
91661
91662         * config/depcomp: update from automake.
91663
91664 2003-12-14  Karl Berry  <karl@gnu.org>
91665
91666         * lib/config.charset: update from gettext-runtime.
91667
91668 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91669
91670         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91671         Bug reported by Alfred M. Szmidt.
91672
91673 2003-12-03  Bruno Haible  <bruno@clisp.org>
91674
91675         * m4/gettext.m4: Upgrade from gettext-0.13.
91676         * m4/po.m4: Upgrade from gettext-0.13.
91677         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91678         * m4/intmax.m4: New file, from gettext-0.13.
91679         * m4/printf-posix.m4: New file, from gettext-0.13.
91680
91681 2003-11-29  Karl Berry  <karl@gnu.org>
91682
91683         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91684
91685 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91686             Bruno Haible  <bruno@clisp.org>
91687
91688         * lib/printf-parse.h: Don't include sys/types.h.
91689         (ARG_NONE): New macro.
91690         (char_directive): Change type of *arg_index fields to size_t.
91691         * lib/printf-parse.c: Don't include sys/types.h.
91692         (SSIZE_MAX): Remove macro.
91693         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91694         Remove unnecessary overflow check.
91695         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91696         fields.
91697
91698 2003-11-25  Bruno Haible  <bruno@clisp.org>
91699
91700         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91701
91702 2003-11-25  Bruno Haible  <bruno@clisp.org>
91703
91704         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91705         gt_TYPE_SSIZE_T.
91706
91707 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91708
91709         * modules/alloca: Remove dependency on xalloc.
91710
91711 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91712
91713         * lib/alloca.c: Remove dependency on xalloc module.
91714         (xalloc_die): Remove.
91715         (memory_full) [!defined emacs]: New macro.
91716         [!defined emacs]: Don't include xalloc.h.
91717         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91718         address arithmetic overflows.  Change datatypes a bit to avoid
91719         unnecessary casts.
91720
91721 2003-11-22  Jim Meyering  <jim@meyering.net>
91722
91723         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91724         s/size/size_t/.
91725
91726 2003-11-21  Karl Berry  <karl@gnu.org>
91727
91728         * config/config.{sub,guess}: update from config.
91729
91730 2003-11-18  Karl Berry  <karl@gnu.org>
91731
91732         * config/config.{sub,guess}: update from config.
91733
91734         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91735
91736 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91737
91738         * README: Mention that S+T cannot overflow if S is the size of
91739         an existing object and T is sufficiently small.
91740
91741 2003-11-17  Jim Meyering  <jim@meyering.net>
91742
91743         On systems without utime and without a utimes function capable of
91744         dealing with a NULL struct utimbuf* argument, this utime replacement
91745         could -- in unusual circumstances -- leak a file descriptor.
91746         * lib/utime.c: Include <unistd.h> and <errno.h>.
91747         (utime_null): Be sure to close `fd' and to preserve errno.
91748         Reported by Geoff Collyer via Arnold Robbins.
91749
91750 2003-11-17  Bruno Haible  <bruno@clisp.org>
91751
91752         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91753         (Depends-on): Add xsize.
91754
91755 2003-11-17  Bruno Haible  <bruno@clisp.org>
91756
91757         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91758
91759 2003-11-17  Bruno Haible  <bruno@clisp.org>
91760
91761         * lib/vasnprintf.c (alloca): Remove fallback definition.
91762         (freea): Remove definition.
91763         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91764         Reported by Paul Eggert.
91765
91766 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91767             Bruno Haible  <bruno@clisp.org>
91768
91769         Protect against address arithmetic overflow.
91770         * lib/printf-args.h: Include stddef.h.
91771         (arguments): Change type of field 'count' to size_t.
91772         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91773         'unsigned int' where appropriate.
91774         * lib/printf-parse.h: Include sys/types.h.
91775         (char_directive): Change type of *arg_index fields to ssize_t.
91776         (char_directives): Change type of fields 'count', max_*_length to
91777         size_t.
91778         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91779         (SSIZE_MAX): Define fallback value.
91780         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91781         instead of 'int' where appropriate. Check a_allocated, d_allocated
91782         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91783         * lib/vasnprintf.c: Include xsize.h.
91784         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91785         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91786         overflow. Avoid wraparound when converting a width or precision from
91787         decimal to binary.
91788
91789 2003-11-16  Bruno Haible  <bruno@clisp.org>
91790
91791         Update from GNU gettext.
91792         * lib/printf-parse.c: Generalize to it can be compiled for wide
91793         strings.
91794         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91795         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91796         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91797         SNPRINTF): New macros.
91798         Don't include <alloca.h> if the file is used inside libintl.
91799         (local_wcslen): New function, for Solaris 2.5.1.
91800         (VASNPRINTF): Use it instead of wcslen.
91801
91802 2003-11-16  Bruno Haible  <bruno@clisp.org>
91803
91804         * lib/xsize.h (xmax): New function.
91805         (xsum, xsum3, xsum4): Declare as "pure" functions.
91806
91807 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91808
91809         * modules/xalloc (Files): Undo latest change, since xalloc.h
91810         no longer needs SIZE_MAX or PTRDIFF_MAX.
91811
91812 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91813
91814         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91815         gl_PTRDIFF_MAX.
91816
91817 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91818
91819         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91820         "return", to pacify some unknown compiler.  Problem reported
91821         by Joerg Schilling.
91822
91823 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91824
91825         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91826         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91827         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91828         heuristic is just as accurate as far as we know, and it removes a
91829         dependency on size_max.m4 and ptrdiff_max.m4.
91830
91831 2003-11-11  Bruno Haible  <bruno@clisp.org>
91832
91833         * modules/xsize (Files): Add m4/size_max.m4.
91834         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91835
91836 2003-11-11  Bruno Haible  <bruno@clisp.org>
91837
91838         * m4/size_max.m4: New file.
91839         * m4/ptrdiff_max.m4: New file.
91840         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91841         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91842         (gl_XALLOC): Invoke it.
91843
91844 2003-11-11  Bruno Haible  <bruno@clisp.org>
91845
91846         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91847         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91848         defined.
91849
91850 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91851
91852         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91853         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91854         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91855         From Bruno Haible.
91856         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91857         not (size_t) -1, since it's defined here.
91858
91859 2003-11-09  Karl Berry  <karl@gnu.org>
91860
91861         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91862
91863 2003-11-06  Paul Eggert  <eggert@twinsun.com>
91864
91865         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
91866         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
91867         Reject sizes of exactly SIZE_MAX bytes.
91868         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
91869         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
91870
91871 2003-11-05  Bruno Haible  <bruno@clisp.org>
91872
91873         * lib/xsize.h: Include limits.h, to avoid a possible collision with
91874         SIZE_MAX defined in <limits.h> on Solaris.
91875
91876 2003-11-04  Jim Meyering  <jim@meyering.net>
91877
91878         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
91879         variable names, rather than @VAR@.
91880         * modules/poll: Likewise.
91881
91882 2003-11-04  Bruno Haible  <bruno@clisp.org>
91883
91884         * modules/xsize: New file.
91885         * modules/linebreak: Depend on xsize.
91886         * MODULES.html.sh (func_all_modules): Add xsize.
91887
91888 2003-11-04  Bruno Haible  <bruno@clisp.org>
91889
91890         * m4/xsize.m4: New file.
91891
91892 2003-11-04  Bruno Haible  <bruno@clisp.org>
91893
91894         * lib/xsize.h: New file.
91895         * lib/linebreak.c: Include xsize.h.
91896         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
91897         argument for overflow.
91898         Suggested by Paul Eggert.
91899
91900 2003-11-03  Karl Berry  <karl@gnu.org>
91901
91902         * config/config.{guess,sub}: update from config.
91903
91904 2003-11-03  Jim Meyering  <jim@meyering.net>
91905
91906         * modules/userspec (lib_SOURCES): Add userspec.h.
91907         (Include): Add "userspec.h".
91908         Improve description.
91909
91910 2003-11-03  Jim Meyering  <jim@meyering.net>
91911
91912         * lib/userspec.c: Include "userspec.h".
91913         * lib/userspec.h: New file.
91914
91915 2003-11-03  Bruno Haible  <bruno@clisp.org>
91916
91917         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91918
91919 2003-11-03  Bruno Haible  <bruno@clisp.org>
91920
91921         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91922         available, to avoid (extremely rare) race condition.
91923         Suggested by Paul Eggert.
91924
91925 2003-11-02  Karl Berry  <karl@gnu.org>
91926
91927         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91928
91929 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91930
91931         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91932         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91933         (read_filesystem_list): Set and use me_type_malloced.
91934         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91935         whatever the type happens to be), for brevity and consistency.
91936         Check for size calculation overflow on Alphas running OSF/1.
91937
91938 2003-10-31  Jim Meyering  <jim@meyering.net>
91939
91940         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91941
91942         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91943
91944 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91945             Bruno Haible  <bruno@clisp.org>
91946
91947         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91948         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91949
91950 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91951
91952         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91953         netbsd*-gnu*.  Suggested by Robert Millan.
91954
91955 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91956
91957         * modules/group-member: Depend on stdbool.
91958
91959 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91960
91961         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91962
91963 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91964
91965         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91966         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91967         after the 'gnu' in these cases.  This fixes some bugs in the
91968         previous change, and is based on suggestions by Robert Millan.
91969
91970 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91971
91972         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91973         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91974         no longer needed.
91975         * lib/quotearg.c (quotearg_n_options): Use it.
91976         * lib/group-member.c: Include <stdbool.h>.
91977         (free_group_info): Arg is now const *; don't free arg.
91978         (get_group_info): Now returns bool and accepts struct group_info *,
91979         rather than returning a malloc'ed struct group_info *.
91980         All uses changed.  Check for overflow in internal size calculation.
91981
91982         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91983         rather than xmalloc/xrealloc.
91984         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91985         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91986         conformance bug: the old code used a pointer after freeing the
91987         storage that it addressed.
91988         * lib/hash.c (hash_initialize): Simplify the code by using
91989         xalloc_oversized rather than doing it by hand.
91990         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91991         the buffer preserved.  Use free and xmalloc instead.
91992         * lib/quotearg.c (quotearg_n_options): Likewise.
91993         Use a simpler test for size overflow.  Don't use xalloc_oversized
91994         because unsigned int might be wider than size_t (!); this suggests
91995         that we should switch from unsigned int to size_t for slot numbers.
91996
91997 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91998
91999         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92000         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92001         NetBSD kernels.  Requested by Richard Stallman.
92002
92003 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92004
92005         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92006         to allocate the returned structure.  Do not allocate a subarray,
92007         as x2nrealloc will do that.
92008         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92009         instead of xnrealloc.
92010         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92011
92012 2003-10-27  Bruno Haible  <bruno@clisp.org>
92013
92014         * lib/stdbool_.h: Better support for BeOS.
92015
92016 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92017
92018         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92019         now uses inline.
92020
92021 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92022
92023         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92024         callers that want to do their own size-overflow checking.  Include
92025         <stdbool.h>, since xalloc_oversized returns bool.
92026         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92027         to use xalloc_oversized.
92028
92029         Add two functions x2realloc, x2nrealloc, for programs that grow
92030         arrays dynamically by doubling their sizes.
92031         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92032         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92033         New functions.
92034
92035         Port to C99 semantics for 'inline' of external functions.
92036         Bug reported by Bruno Haible.
92037         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92038         with the old contents of xnmalloc.
92039         (xnmalloc, xmalloc): Use it.
92040         (xnrealloc_inline): New static inline function,
92041         with the old contents of xnrealloc.
92042         (xnrealloc, xrealloc): Use it.
92043
92044         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92045         that.
92046
92047 2003-10-26  Karl Berry  <karl@gnu.org>
92048
92049         * config/srclist.txt (COPYING.DOC): no longer available from
92050         /gd/gnuorg; don't know where the ultimate source is.
92051
92052 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92053
92054         Fix several address-calculation bugs in the hash modules,
92055         plus some minor code cleanup.
92056
92057         * lib/hash.h: Include <stdbool.h>, for bool.
92058         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92059         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92060         hash_get_n_entries, hash_get_max_bucket_length,
92061         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92062         hash_rehash): Use size_t rather than unsigned.
92063         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92064         hash_get_n_buckets_used, hash_get_n_entries,
92065         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92066         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92067         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92068         Likewise.
92069         (SIZE_MAX): Define if not defined.
92070         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92071         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92072         hash_print):
92073         Use const * when possible.
92074         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92075         (check_tuning): Fix bug: if tuning parameters were very close to
92076         0 or 1, rounding errors could have caused subscript violations.
92077         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92078         (hash_initialize): Add 'fail:' label
92079         to free table and return NULL, and use it to simplify code.
92080         Use calloc rather than clearing the storage ourself.
92081         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92082         buffer size calculations.
92083         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92084         Include <stddef.h>, for size_t.
92085         * lib/hash-pjw.c (hash_pjw): Likewise.
92086         Switch to method described by Bruno Haible.
92087         Include <limits.h>, for CHAR_BIT.
92088         (SIZE_BITS): New macro.
92089
92090 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92091
92092         * m4/getline.m4 (AM_FUNC_GETLINE):
92093         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92094         hosts.  Problem reported by Derek Robert Price in
92095         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92096         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92097         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92098
92099 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92100
92101         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92102         ceiling the allocation at NMAX bytes rather than silently
92103         discarding input bytes before NMAX is reached.  This makes
92104         a difference only if NMAX exceeds SIZE_MAX / 2.
92105
92106         * lib/obstack.c: Merge from glibc.
92107         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92108         Add libc_hidden_def (_obstack_newchunk).
92109         (_obstack_free) [! defined _LIBC]: Remove.
92110         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92111         a clone of the function body.
92112         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92113         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92114
92115         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92116         glibc.
92117         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92118         arg to memcpy.
92119
92120         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92121         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92122         Don't use lvalue casts, as GCC plans to remove support for them
92123         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92124         was also present in the non-GCC version, indicating that this
92125         code had always been buggy and had never been widely used.
92126         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92127         Use the fast variant of each macro, rather than copying the
92128         definiens of the fast variant; that way, we'll be more likely to
92129         catch future bugs in the fast variants.
92130
92131 2003-10-20  Bruno Haible  <bruno@clisp.org>
92132
92133         * modules/wait-process: New file.
92134         * MODULES.html.sh (func_all_modules): Add wait-process.
92135
92136 2003-10-20  Bruno Haible  <bruno@clisp.org>
92137
92138         * m4/wait-process.m4: New file.
92139
92140 2003-10-20  Bruno Haible  <bruno@clisp.org>
92141
92142         * lib/wait-process.h: New file, from GNU gettext.
92143         * lib/wait-process.c: New file, from GNU gettext.
92144
92145 2003-10-19  Jim Meyering  <jim@meyering.net>
92146
92147         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92148         HPUX 10.20.
92149
92150 2003-10-18  Karl Berry  <karl@gnu.org>
92151
92152         * config/config.guess: update from config.
92153
92154 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92155
92156         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92157         (getgroups): First arg is int, not size_t.
92158         Don't let 'free' mangle errno.
92159
92160 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92161
92162         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92163
92164 2003-10-16  Karl Berry  <karl@gnu.org>
92165
92166         * config/config.{guess,sub}: update from config.
92167
92168 2003-10-16  Jim Meyering  <jim@meyering.net>
92169
92170         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92171         memcpy.
92172
92173 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92174
92175         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92176         (SIZE_MAX): Remove.
92177         (new_exclude, add_exclude_file): Initial size no longer needs to
92178         be a power of 2.
92179         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92180         our own address arithmetic overflow checking.
92181
92182         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92183         (fnmatch): Do not alloca more than 2000 wide characters;
92184         instead, use malloc for large buffers.
92185         Check for address arithmetic overflow, and return -1
92186         with errno set to ENOMEM in that case.
92187         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92188         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92189         instead, return -1.  Check for address arithmetic overflow.
92190
92191 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92192
92193         Handle invalid suffixes and overflow independently, so that
92194         callers can treat them independently as needed.  Fix some bugs in
92195         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92196         suffix for a human-readable blocksize.  The major caller-visible
92197         change is the addition of a new
92198         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92199         that both overflow and suffix chars were found.
92200
92201         * lib/human.c (humblock): Don't check separately for invalid suffix
92202         char; that is xstrtoumax's job (now that its bug is fixed).
92203         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92204         INTMAX_MAX]: New macros.
92205         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92206         TYPE_MAXIMUM): New macros.
92207         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92208         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92209         if overflow occurs, as it's what __strtol does and it's more useful
92210         in practice.
92211         (__xstrtol): If __strtol reports some error other than ERANGE,
92212         reflect it to the caller as LONGINT_INVALID.  If it reports
92213         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92214         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92215         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92216         value.
92217         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92218         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92219         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92220         [defined UINTMAX_MAX]: New macros.
92221
92222 2003-10-14  Bruno Haible  <bruno@clisp.org>
92223
92224         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92225
92226 2003-10-14  Bruno Haible  <bruno@clisp.org>
92227
92228         * m4/sig_atomic_t: New file, from GNU gettext.
92229         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92230
92231 2003-10-14  Bruno Haible  <bruno@clisp.org>
92232
92233         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92234         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92235         Also use volatile where needed.
92236
92237 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92238
92239         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92240         Change maintainer from Bruno Haible to 'all'.
92241
92242 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92243
92244         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92245
92246 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92247
92248         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92249         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92250         and define in terms of the other primitives.
92251         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92252         (SIZE_MAX): Define if not already defined.
92253         (array_size_overflow): New function.
92254         (xalloc_die): Abort instead of exiting if 'error' returns.
92255         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92256         (xmalloc, xrealloc): Use them.
92257         (xcalloc): Check for address arithmetic overflow.
92258         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92259         a bit faster than strcpy.
92260
92261 2003-10-10  Simon Josefsson  <jas@extundo.com>
92262
92263         * modules/argp (Depends-on): Add restrict and strcase.
92264
92265 2003-10-10  Simon Josefsson  <jas@extundo.com>
92266
92267         * m4/argp.m4: Add AC_C_INLINE.
92268
92269 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92270
92271         Merge getpass from libc, plus a few fixes.
92272
92273         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92274         Include <stdbool.h>.
92275         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92276         __fsetlocking to empty.
92277         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92278         do include <bits/libc-lock.h>.
92279         Do not include <fcntl.h>; not needed.
92280         [_LIBC]: Include <wchar.h>.
92281         (NOTCANCEL_MODE): New macro.
92282         (flockfile, funlockfile) [_LIBC]: New macros.
92283         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92284         [!_LIBC]: New macros.
92285         (call_fclose): New function.
92286         (getpass): Use it.  Save tty stream separately; this simplifies the
92287         code and makes it more reliable if stdin happens to equal stdout.
92288         Invoke __fsetlocking on tty.
92289         Handle thread cancellation if needed.
92290         Namespace cleanup (use __tcgetattr, __getline).
92291         Use bool for Booleans.
92292         [USE_IN_LIBIO]: Handle wide streams.
92293         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92294         stream might go where.
92295
92296         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92297         doesn't have to include <stdio.h> before us.
92298         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92299         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92300         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92301         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92302         if not declared, so that we can use getpass.c code from libc without
92303         rewriting it.
92304         (flockfile, ftrylockfile, funlockfile): New macros.
92305
92306 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92307
92308         * modules/getpass: Depend on stdbool.
92309
92310 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92311
92312         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92313
92314 2003-10-07  Karl Berry  <karl@gnu.org>
92315
92316         * config/config.{guess,sub}: update from config.
92317
92318 2003-10-06  Jim Meyering  <jim@meyering.net>
92319             Bruno Haible  <bruno@clisp.org>
92320
92321         This lets translators provide better translations for the
92322         "Written by ..." part of --version output.
92323         * lib/version-etc.h: Include stdarg.h.
92324         (version_etc_copyright): Declare as readonly.
92325         (version_etc): Make this function variadic with a NULL-terminated list
92326         of author name strings.
92327         (version_etc_va): New declaration.
92328         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92329         (version_etc_copyright): Declare as readonly.
92330         (version_etc_va): New function. Provide a different translatable string
92331         for each possible number of authors < 10. Abbreviate when there are 10
92332         authors or more.
92333         (version_etc): Make this function variadic. Call version_etc_va.
92334         Suggestion from Gary V. Vaughan.
92335
92336         * lib/long-options.h (parse_long_options): Change prototype: the
92337         authors string is moved to the end and becomes variadic.
92338         * lib/long-options.c: Include stdarg.h.
92339         (parse_long_options): Make this function variadic, too.
92340         Call version_etc_va, not version_etc.
92341
92342 2003-10-06  Bruno Haible  <bruno@clisp.org>
92343
92344         * modules/version-etc-2: Remove file.
92345         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92346
92347 2003-10-06  Bruno Haible  <bruno@clisp.org>
92348
92349         * modules/fatal-signal: New file.
92350         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92351
92352 2003-10-06  Bruno Haible  <bruno@clisp.org>
92353
92354         * m4/fatal-signal.m4: New file.
92355         * m4/signalblocking.m4: New file, from GNU gettext.
92356
92357 2003-10-06  Bruno Haible  <bruno@clisp.org>
92358
92359         * lib/version-etc-2.h: Remove file.
92360         * lib/version-etc-2.c: Remove file.
92361
92362 2003-10-06  Bruno Haible  <bruno@clisp.org>
92363
92364         * lib/fatal-signal.h: New file, from GNU gettext.
92365         * lib/fatal-signal.c: New file, from GNU gettext.
92366
92367 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92368
92369         * README: Rework advice for preventing empty .o files.
92370         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92371         not <sys/types.h>.
92372
92373 2003-10-04  Karl Berry  <karl@gnu.org>
92374
92375         * lib/argp*: update from libc.
92376
92377 2003-10-04  Karl Berry  <karl@gnu.org>
92378
92379         * config/config.{guess,sub}: update from config.
92380
92381 2003-10-02  Bruno Haible  <bruno@clisp.org>
92382
92383         * modules/lchown (Include): Add lchown.h.
92384         * modules/time_r (Include): Use "..." syntax.
92385         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92386
92387 2003-10-01  Simon Josefsson  <jas@extundo.com>
92388
92389         * MODULES.html.sh (func_all_modules): Move gethostname from section
92390         'based on' to section 'lacking' POSIX:2001.
92391
92392 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92393
92394         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92395         to output mode on the same stream.
92396
92397 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92398
92399         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92400         Fix arg typo in previous patch.
92401
92402 2003-09-28  Jim Meyering  <jim@meyering.net>
92403
92404         * lib/error.c: Correct cpp indentation.
92405
92406 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92407
92408         * modules/free: New file.
92409
92410 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92411
92412         * m4/free.m4: New file.
92413
92414 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92415
92416         * lib/minmax.h (MIN, MAX)
92417         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92418         Omit the special code that used __typeof__, since we worry that
92419         it could be more trouble than it's worth.  See:
92420         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92421         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92422
92423         * lib/free.c: New file.
92424
92425 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92426
92427         Trivial fixes to Makefile.am parts of module listings.
92428         * modules/strstr: Append strstr.h to lib_SOURCES.
92429         * modules/strcase: Likewise, for strcase.h.
92430
92431 2003-09-27  Karl Berry  <karl@gnu.org>
92432
92433         * config/mkinstalldirs: update from automake.
92434
92435 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92436
92437         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92438         (error_tail): Do not loop, reallocating temporary buffer, since
92439         the output cannot contain more wide characters than the input
92440         contains bytes, the size must be big enough already.  This avoids
92441         one potential size overflow calculation.  Check for size overflow
92442         when calculating temporary buffer size.  Free temporary buffer
92443         when done, if it was allocated with malloc; this plugs a memory
92444         leak.  Remove casts from void * to pointers, that are no longer
92445         needed now that we're assuming C89 or better.
92446
92447         Merge error changes from glibc.
92448
92449         * lib/error.c, error.h: Update copyright notice header to match glibc.
92450         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92451         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92452         Disable cancellation while printing error.
92453         * lib/error.h: Prepend __ to parameter names.
92454
92455 2003-09-26  Jim Meyering  <jim@meyering.net>
92456
92457         * lib/error.c (error_tail): Move some declarations
92458         into inner scope where the local variables are used.
92459
92460 2003-09-26  Bruno Haible  <bruno@clisp.org>
92461
92462         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92463         stpncpy().
92464         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92465
92466 2003-09-26  Bruno Haible  <bruno@clisp.org>
92467
92468         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92469         (stpncpy): Define as alias for gnu_stpncpy.
92470         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92471
92472 2003-09-25  Simon Josefsson  <jas@extundo.com>
92473
92474         * lib/xgetdomainname.h: New file.
92475         * lib/xgetdomainname.c: New file.
92476
92477 2003-09-25  Simon Josefsson  <jas@extundo.com>
92478             Bruno Haible  <bruno@clisp.org>
92479
92480         * modules/getdomainname: New file.
92481         * modules/xgetdomainname: New file.
92482         * MODULES.html.sh (func_all_modules): Add getdomainname,
92483         xgetdomainname.
92484
92485 2003-09-25  Simon Josefsson  <jas@extundo.com>
92486             Bruno Haible  <bruno@clisp.org>
92487
92488         * m4/getdomainname.m4: New file.
92489
92490 2003-09-25  Simon Josefsson  <jas@extundo.com>
92491             Bruno Haible  <bruno@clisp.org>
92492
92493         * lib/getdomainname.h: New file.
92494         * lib/getdomainname.c: New file.
92495
92496 2003-09-25  Karl Berry  <karl@gnu.org>
92497
92498         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92499
92500 2003-09-25  Karl Berry  <karl@gnu.org>
92501
92502         * config/install-sh: update from automake.
92503
92504 2003-09-25  Bruno Haible  <bruno@clisp.org>
92505
92506         * modules/version-etc-2: New file, from modules/version-etc with
92507         modifications.
92508         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92509
92510 2003-09-25  Bruno Haible  <bruno@clisp.org>
92511
92512         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92513         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92514
92515 2003-09-24  Simon Josefsson  <jas@extundo.com>
92516
92517         * modules/xgethostname: Add xgethostname.h.
92518
92519 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92520
92521         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92522         the buffer associated with the argument.  Bug reported by
92523         Simon Josefsson.
92524
92525 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92526
92527         * README: Document assumptions that 'int' is at least 32 bits
92528         wide, that integer arithmetic is 2's complement without overflow,
92529         that there are no holes in integer values, that adding sizes of
92530         two nonoverlapping objects can't overflow, and that all-bits-zero
92531         yields scalar zero.  Fix spelling and capitalization typos.
92532
92533 2003-09-19  Karl Berry  <karl@gnu.org>
92534
92535         * lib/argp.h: update from libc.
92536
92537 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92538
92539         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92540         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92541         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92542
92543 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92544
92545         * gnulib-tool: Use "test -h", not "test -L", for portability
92546         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92547         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92548         (sed_extract_prog): Issue s commands one-by-one, rather than
92549         using \| in one s command.
92550
92551 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92552
92553         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92554         input error, instead of returning NULL the next time we are called
92555         (and therefore losing track of errno).
92556
92557 2003-09-16  Bruno Haible  <bruno@clisp.org>
92558
92559         * gnulib-tool (func_create_testdir): Warn about duplicated
92560         dependencies.
92561
92562 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92563
92564         * modules/argmatch, modules/fatal, modules/obstack,
92565         modules/xalloc, modules/xgethostname: Sort dependencies by
92566         importance, not alphabetically.
92567
92568 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92569
92570         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92571         fails, so that the caller gets the proper errno.
92572
92573         * lib/readutmp.c (read_utmp): Likewise.
92574         Check for fstat error.  Close stream and free storage
92575         when failing.
92576
92577 2003-09-14  Karl Berry  <karl@gnu.org>
92578
92579         * config/srclist.txt (strdup.c): disable for c89 changes.
92580
92581 2003-09-14  Jim Meyering  <jim@meyering.net>
92582
92583         * lib/getloadavg.c: Correct cpp indentation.
92584         * lib/strdup.c: Likewise.
92585         * lib/vasnprintf.c: Likewise.
92586
92587 2003-09-14  Bruno Haible  <bruno@clisp.org>
92588
92589         * modules/fwriteerror: New file.
92590         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92591
92592 2003-09-14  Bruno Haible  <bruno@clisp.org>
92593
92594         * lib/fwriteerror.h: New file.
92595         * lib/fwriteerror.c: New file.
92596
92597 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92598
92599         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92600         modules/xgethostname, modules/xalloc: Depend on exit.
92601
92602 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92603
92604         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92605
92606         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92607         and AC_MINIX, too, so that their extensions are available.
92608
92609         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92610         This macro has been superseded by gl_BACKUPFILE.
92611
92612         More patches to assume C89 or better.
92613
92614         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92615
92616         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92617         unconditionally.
92618         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92619         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92620         Include <string.h>, <stdlib.h> unconditionally.
92621         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92622         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92623         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92624         headers or for string.h.
92625         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92626         or strtoul.
92627
92628         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92629         headers.
92630         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92631         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92632         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92633         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92634         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92635         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92636         memcpy, memset.
92637         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92638         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92639         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92640         strtol.
92641         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92642         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92643         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92644         strtoul.
92645
92646 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92647
92648         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92649         * lib/obstack.c [!defined _LIBC]: Likewise.
92650         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92651         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92652         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92653
92654         More changes to assume C89 or better.
92655
92656         * lib/error.c (error_tail): Assume vprintf.
92657
92658         * lib/argmatch.c (getenv): Remove decl.
92659         * lib/progreloc.c (get_full_program_name): Define via prototype.
92660         * lib/setenv.c (clearenv): Likewise.
92661         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92662         needed.
92663         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92664         (malloc, memcpy): Remove decls.
92665         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92666         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92667         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92668         (memcpy): Remove macro.
92669         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92670         (__P): Remove.  All uses removed.
92671         (PTR): Remove.  All uses changed to void *.
92672         (CHAR_BIT, NULL): Remove.
92673         (spaces, zeros, memset_space, memset_zero)
92674         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92675         Remove.
92676         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92677         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92678         Define with prototype.
92679         Remove now-unnecessary prototype decl.
92680         (extra_args_spec): Assume ANSI C.  All uses changed.
92681         (extra_args_spec_iso): Remove.
92682         (my_strftime, emacs_strftimeu): Define via prototype.
92683         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92684         unconditionally.
92685         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92686         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92687         (strtoul, strtol): Remove decls.
92688         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92689         LONG_MAX): Remove.
92690         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92691         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92692         (LOCALE_PARAM_PROTO): New macro.
92693         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92694         (INTERNAL (strtol), strtol): Define with a prototype.
92695         (PARAMS): Remove.  All uses removed.
92696         * lib/tempname.c: Include <string.h> unconditionally.
92697         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92698         * lib/xgethostname.c (main): Define with a prototype.
92699         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92700         Include <stdlib.h> unconditionally.
92701         (calloc, malloc, realloc, free): Remove decls.
92702         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92703         Include <stdlib.h> unconditionally.  Sort include file names.
92704         (strtod): Remove.
92705         (xstrtod): Define with a prototype.
92706         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92707         (strtol, strtoul): Remove decls.
92708
92709 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92710
92711         More patches to assume C89 or better.
92712         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92713         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92714         string.h, memchr, STDC_HEADERS.
92715
92716 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92717
92718         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92719         Include <stdlib.h>, <string.h> unconditionally.
92720         Remove now-unnecessary cast to char *.
92721         * lib/strnlen.c: Include <string.h> unconditionally.
92722         * lib/yesno.c (yesno): Define with a prototype.
92723
92724 2003-09-11  Bruno Haible  <bruno@clisp.org>
92725
92726         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92727
92728 2003-09-10  Jim Meyering  <jim@meyering.net>
92729
92730         * lib/error.c: Correct indentation of cpp directives.
92731
92732 2003-09-10  Bruno Haible  <bruno@clisp.org>
92733
92734         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92735         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92736         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92737         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92738         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92739         <stdlib.h> and <string.h> checks.
92740         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92741         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92742
92743 2003-09-10  Bruno Haible  <bruno@clisp.org>
92744
92745         * lib/strcspn.c: Include <string.h> unconditionally.
92746         * lib/strpbrk.c: Include <string.h> unconditionally.
92747         * lib/strstr.c: Include <string.h> unconditionally.
92748         * lib/unicodeio.c: Include <string.h> unconditionally.
92749         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92750         * lib/unsetenv.c: Likewise.
92751         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92752         * lib/yesno.c: Include <stdlib.h> unconditionally.
92753         (rpmatch): Add prototype.
92754
92755 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92756
92757         More patches to assume C89 or better.
92758         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92759         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92760         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92761         or for string.h.
92762         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92763         stdlib.h.
92764         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92765         C headers.
92766         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92767         string.h.
92768         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92769         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92770         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92771         or for string.h.
92772         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92773         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92774         C headers.
92775         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92776         memcpy.
92777         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92778         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92779         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92780         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92781         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92782         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92783         string.h, free.
92784         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92785         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92786         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92787         C headers, or for string.h.
92788         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92789         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92790         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92791         headers, memory.h, stdlib.h, string.h, strings.h.
92792         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92793         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92794         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92795         strchr.
92796         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92797         headers, memory.h, string.h.
92798         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92799         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92800         free.
92801         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92802         headers.
92803         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92804         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92805         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92806         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92807         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92808
92809 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92810
92811         More K&R removal.
92812
92813         * lib/acosl.c (main): Use a prototype.
92814         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92815         tanl.c: Likewise.
92816
92817         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92818
92819         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92820         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92821         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92822         with a prototype.
92823         * lib/getopt.c (const): Remove macro.
92824         Include <string.h> unconditionally.
92825         (my_index): Remove; all uses changed to strchr.
92826         (strlen): Remove decl.
92827         (exchange): Remove forward decl; no longer needed.
92828         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92829         Define with prototype.
92830         * lib/getopt1.c (const): Remove macro.
92831         (getopt_long, getopt_long_only, main): Define with prototype.
92832
92833         * lib/getugroups.c: Include <string.h> unconditionally.
92834
92835         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92836         (getusershell, setusershell, endusershell, readname, main):
92837         Define with prototypes.
92838
92839         * lib/group-member.c: Include group-member.h first.
92840         Include <stdlib.h> unconditionally.
92841
92842         * lib/hard-locale.c: Include hard-locale.h first.
92843         Include <stdlib.h>, <string.h> unconditionally.
92844
92845         * lib/hash.c (free, malloc): Remove decls.
92846         Include <stdlib.h> unconditionally.
92847
92848         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92849         (getenv): Do not declare.
92850
92851         * lib/idcache.c: Include <string.h> unconditionally.
92852
92853         * lib/long-options.c: Include long-options.h first, to test interface.
92854         Include <stdlib.h> unconditionally.
92855
92856         * lib/makepath.c: Include makepath.h first, to test interface.
92857         Include <stdlib.h> and <string.h> unconditionally.
92858
92859         * lib/linebuffer.c: Include <stdlib.h>.
92860         (free): Remove decl.
92861
92862         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
92863         stddef.h. rpl_malloc returns void *, not char *.
92864         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
92865         prototype.
92866
92867         * lib/md5.h: Include <limits.h> unconditionally.
92868         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
92869         (__P): Remove; all uses removed.
92870         * lib/md5.c: Include "md5.h" first.
92871         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
92872         md5_buffer, md5_process_bytes, md5_process_block):
92873         Define with prototypes.
92874         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
92875         * lib/sha.c: Include "sha.h" first.
92876         Include <stdlib.h>, <string.h> unconditionally.
92877
92878         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
92879         * lib/memcmp.c (__ptr_t): Likewise.
92880         * lib/memrchr.c (__ptr_t): Likewise.
92881         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
92882         Include <string.h> unconditionally.
92883         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
92884         * lib/memchr.c: Include <stdlib.h> unconditionally.
92885         * lib/memchr.c (LONG_MAX): Remove.
92886         * lib/memrchr.c (LONG_MAX): Likewise.
92887         * lib/memchr.c (__memchr): Define via a prototype.
92888         * lib/memrchr.c (__memrchr): Likewise.
92889         * lib/memcmp.c (__P): Remove, and remove all uses.
92890         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
92891         Remove forward decls; no longer needed.
92892         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
92893         Use types required by C89 in prototype.
92894
92895         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
92896         * lib/savedir.c: Likewise.
92897         * lib/mkdir.c (free): Remove decl.
92898         * lib/rmdir.c (rmdir): Define with a prototype.
92899         * lib/savedir.c: Include savedir.h first, to test interface.
92900
92901         * lib/mktime.c (STDC_HEADERS): Remove.
92902         Include <stdlib.h>, <string.h> unconditionally.
92903
92904         * lib/modechange.c: Include <stdlib.h> unconditionally.
92905         (malloc): Remove decl.
92906
92907         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
92908         (free): Remove decl.
92909
92910         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92911         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92912         (This type really should be intptr_t, but that's a C99ism.)
92913         (_obstack_memcpy): Remove: all uses changed to memcpy.
92914         Include <string.h> unconditionally.
92915         (struct obstack): Assume __STDC__ for types of members
92916         chunkfun, freefun, extra_arg.
92917         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92918         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92919         obstack_begin, obstack_specify_allocation,
92920         obstack_specify_allocation_with_arg, obstack_chunkfun,
92921         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92922         Remove unprototyped decls and the macros that use them.
92923         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92924         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92925         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92926         (defined __STDC__ && __STDC__)]:
92927         Remove nonprototyped code.
92928         Include <stdlib.h> unconditionally.
92929         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92930         _obstack_allocated_p, _obstack_free, obstack_free,
92931         _obstack_memory_used, print_and_abort):
92932         Define using prototypes.
92933         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92934         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92935         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92936         obstack_next_free, obstack_object_size, obstack_room) [0]:
92937         Remove unused, unprototyped code.
92938
92939         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92940
92941         * lib/physmem.c (physmem_total, physmem_available, main): Define
92942         with prototypes.
92943
92944         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92945         (main): Define with a prototype.
92946
92947         * lib/posixver.c (getenv): Remove decl.
92948
92949         * lib/putenv.c (malloc): Returns void *, not char *.
92950         Include <string.h> unconditionally.
92951         (strchr, memcpy, NULL): Do not define.
92952
92953         * lib/readtokens.c: Include readtokens.h first, to test interface.
92954         Include <stdlib.h>, <string.h> unconditionally.
92955         (init_tokenbuffer): Define with a prototype.
92956
92957         * lib/regex.c (PARAMS): Remove.  All uses removed.
92958         All uses of _RE_ARGS removed, too.
92959         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92960         unconditionally.
92961         (bzero): Assume memset exists.
92962         (memcmp, memcpy, NULL): Remove.
92963         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92964         char, or assignments to local vars of type signed char.
92965         (init_syntax_once, PREFIX(extract_number_and_incr),
92966         PREFIX(print_partial_compiled_pattern),
92967         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92968         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92969         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92970         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92971         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92972         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92973         wcs_compile_range, byte_compile_range, truncate_wchar,
92974         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92975         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92976         count_mbs_length, wcs_re_match_2_internal,
92977         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92978         PREFIX(alt_match_null_string_p),
92979         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92980         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92981         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92982         now-unnecessary declaration, if any.
92983         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92984         regcomp, regexec):
92985         Remove now-unnecessary casts among pointer types.
92986         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92987
92988         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92989         (free): Remove decl.
92990
92991         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92992
92993         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92994         (free): Remove decl.
92995
92996         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92997         * lib/xgetcwd.c: Likewise.
92998
92999         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93000         (free): Remove decl.
93001
93002         * lib/strchrnul.c (strchrnul): Define with a prototype.
93003         Fix bug: c_in was not converted to char before searching.
93004
93005         The following changes are not K&R related:
93006
93007         * lib/group-member.h: Include <sys/types.h>, so that this file is
93008         self-contained.
93009         * lib/makepath.h: Likewise.
93010
93011         * lib/getusershell.c (readname, default_index, line_size, readname):
93012         Use size_t, not int, for sizes.
93013         (readname): If the size overflows, report an error instead of
93014         looping forever.
93015
93016 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93017
93018         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93019         libc.
93020
93021 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93022
93023         * README: New section: portability guidelines.
93024
93025 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93026
93027         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93028         C89 spec.
93029
93030 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93031
93032         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93033
93034 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93035
93036         Assume C89 or better; remove K&R cruft.
93037         A few of these changes were first proposed by Derek Robert Price
93038         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93039
93040         * lib/addext.c: Include <string.h> unconditionally.
93041         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93042         Don't declare getenv or malloc.
93043
93044         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93045         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93046         (NULL): Remove.
93047         (find_stack_direction, alloca): Use prototypes.
93048
93049         * lib/atexit.c (atexit): Define using a prototype.
93050
93051         * lib/basename.c, dirname.c, stripslash.c:
93052         Include <string.h> unconditionally.
93053
93054         * lib/bcopy.c: Include <stddef.h>.
93055         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93056
93057         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93058
93059         * lib/error.h (error, error_at_line, error_print_progname)
93060         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93061         * lib/error.c: Include error.h first, to check interface.
93062         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93063         (VA_START): Remove; all uses changeed to va_start.
93064         (exit, strerror): Remove decls.
93065         (error_print_progname): Prototype uncondionally.
93066         Don't include <errno.h>; no longer needed.
93067         (private_strerror): Remove.
93068         (error_tail): Always define.
93069         (error, error_at_line): Assume C89 or better; always use prototypes.
93070         * lib/fatal.c: Include "fatal.h" first, to test interface.
93071         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93072         (VA_START): Remove; all uses changed to va_start.
93073         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93074         this case.
93075         (exit): Remove decl.
93076         (fatal): Prototype unconditionally.  Assume va_start works.
93077         Abort at end, to pacify gcc.
93078
93079         * lib/euidaccess.c (main): Define with a prototype.
93080
93081         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93082
93083         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93084
93085         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93086         prototypes.
93087         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93088         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93089         (getenv): Remove decl.
93090         (fnmatch): Define using a prototype.
93091         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93092         (FCT): Define using a prototype.
93093
93094         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93095
93096         * lib/gethostname.c: Include <stddef.h>.
93097         (gethostname): Define with prototype.  Length is size_t, not int.
93098
93099 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93100
93101         Assume C89 or better; remove K&R cruft.
93102         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93103         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93104         string.h, getenv, malloc.
93105         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93106         headers.
93107         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93108         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93109         do not check for strerror.
93110         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93111         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93112         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93113         do not check for doprnt or vprintf.
93114         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93115         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93116
93117 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93118
93119         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93120         getversion.c should have been removed then, but was accidentally
93121         preserved.
93122
93123         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93124         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93125
93126 2003-09-08  Karl Berry  <karl@gnu.org>
93127
93128         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93129                 config, forget about prep.
93130
93131         * config/depcomp, missing: update from automake.
93132
93133 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93134
93135         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93136         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93137
93138 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93139
93140         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93141         copy_tm_result.  Bug reported by Simon Josefsson in
93142         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93143
93144 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93145
93146         * m4/time_r.m4: New file.
93147         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93148         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93149         is. Check for timegm declaration.
93150         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93151         Do not check for gmtime_r.
93152         Replace mktime if __mktime_internal does not exist and if mktime
93153         hasn't been replaced already.
93154
93155 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93156
93157         * lib/time_r.c, lib/time_r.h: New files.
93158
93159         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93160         __localtime_r.
93161         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93162         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93163
93164         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93165         __gmtime_r.
93166         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93167         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93168         Include <time_r.h>.
93169
93170         * lib/timegm.c: Switch to glibc implementation, with the following
93171         changes:
93172         [defined HAVE_CONFIG_H]: Include <config.h>.
93173         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93174         (__mktime_internal) [!defined _LIBC]: New decl.
93175         (__gmtime_r) [!defined _LIBC]: New macro and function.
93176         (timegm): Use a prototype, since gnulib assumes C89.
93177         Do not bother declaring tmp to be const, as it's not really usefu.
93178         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93179         (timegm): Declare only if HAVE_DECL_TIMEGM.
93180
93181 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93182
93183         * MODULES.html.sh (func_all_modules): Add time_r.
93184         * modules/time_r: New file.
93185         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93186         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93187
93188 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93189
93190         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93191         Bug reported by Lute Kamstra in
93192         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93193
93194         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93195         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93196         course with correspondingly smaller numbers for tomorrow and
93197         yesterday.  From Tadayoshi Funaba.  Originally installed into
93198         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93199         coreutils merge?).
93200
93201 2003-08-31  Simon Josefsson  <jas@extundo.com>
93202
93203         * modules/timegm: New file.
93204         * MODULES.html.sh (func_all_modules): Add timegm.
93205
93206 2003-08-31  Simon Josefsson  <jas@extundo.com>
93207
93208         * m4/timegm.m4: New file.
93209
93210 2003-08-31  Simon Josefsson  <jas@extundo.com>
93211
93212         * lib/timegm.h: New file.
93213         * lib/timegm.c: New file.  Based on
93214         wget-1.8.2/src/http.c:mktime_from_utc.
93215
93216 2003-08-31  Karl Berry  <karl@gnu.org>
93217
93218         * lib/argp.h: update from libc.
93219
93220 2003-08-28  Bruno Haible  <bruno@clisp.org>
93221
93222         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93223         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93224         followed by '#define fnmatch fnmatch_posix' gives an error.
93225
93226 2003-08-28  Bruno Haible  <bruno@clisp.org>
93227
93228         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93229         warning on QNX, which defines O_BINARY to 000000.
93230
93231 2003-08-27  Jim Meyering  <jim@meyering.net>
93232
93233         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93234         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93235         would fail after 32.  Reported by Danny Levinson.  Details here:
93236         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93237
93238 2003-08-24  Bruno Haible  <bruno@clisp.org>
93239
93240         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93241         MSVC7 <stdio.h> is included later.
93242
93243 2003-08-22  Simon Josefsson  <jas@extundo.com>
93244
93245         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93246
93247 2003-08-20  Karl Berry  <karl@gnu.org>
93248
93249         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93250
93251 2003-08-20  Bruno Haible  <bruno@clisp.org>
93252
93253         * modules/progname: New file.
93254         * MODULES.html.sh (func_all_modules): Add progname.
93255
93256 2003-08-20  Bruno Haible  <bruno@clisp.org>
93257
93258         * lib/progname.h: New file, from GNU gettext.
93259         * lib/progname.c: New file, from GNU gettext.
93260         * lib/progreloc.c: New file, from GNU gettext.
93261
93262 2003-08-19  Jim Meyering  <jim@meyering.net>
93263
93264         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93265         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93266
93267 2003-08-19  Bruno Haible  <bruno@clisp.org>
93268
93269         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93270         more.
93271
93272 2003-08-19  Bruno Haible  <bruno@clisp.org>
93273
93274         * lib/xstrdup.c: Assume <string.h> exists.
93275
93276 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93277
93278         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93279         in makefile rules.
93280
93281 2003-08-18  Jim Meyering  <jim@meyering.net>
93282
93283         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93284         * m4/lib-ld.m4: Likewise.
93285
93286 2003-08-18  Jim Meyering  <jim@meyering.net>
93287
93288         * lib/setenv.h: Indent nested cpp directive.
93289         * lib/vasnprintf.c: Remove trailing blanks.
93290
93291 2003-08-17  Simon Josefsson  <jas@extundo.com>
93292
93293         * modules/xstrndup: New file.
93294         * MODULES.html.sh (func_all_modules): Add xstrndup.
93295
93296 2003-08-17  Simon Josefsson  <jas@extundo.com>
93297
93298         * modules/argp: Fix autoconf macro name. Add more dependencies.
93299
93300 2003-08-17  Simon Josefsson  <jas@extundo.com>
93301
93302         * m4/xstrndup.m4: New file.
93303
93304 2003-08-17  Simon Josefsson  <jas@extundo.com>
93305
93306         * m4/argp.m4: New file.
93307
93308 2003-08-17  Simon Josefsson  <jas@extundo.com>
93309             Bruno Haible  <bruno@clisp.org>
93310
93311         * lib/xstrndup.h: New file.
93312         * lib/xstrndup.c: New file.
93313
93314 2003-08-17  Bruno Haible  <bruno@clisp.org>
93315
93316         * modules/strndup (Files, Include): Add lib/strndup.h.
93317
93318 2003-08-17  Bruno Haible  <bruno@clisp.org>
93319
93320         * modules/euidaccess (Files): Add lib/euidaccess.h.
93321
93322 2003-08-17  Bruno Haible  <bruno@clisp.org>
93323
93324         * lib/strndup.h: New file.
93325
93326 2003-08-17  Bruno Haible  <bruno@clisp.org>
93327
93328         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93329         like AC_GNU_SOURCE.
93330         * modules/extensions (configure.ac): Comment out the invocation of
93331         gl_USE_SYSTEM_EXTENSIONS.
93332
93333 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93334
93335         Merges from coreutils, etc.
93336         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93337         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93338         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93339         fixing a typo.
93340         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93341         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93342
93343 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93344
93345         Document merge from coreutils.
93346         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93347         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93348         * modules/utime: Add m4/utimes-null.m4.
93349
93350 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93351
93352         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93353         space, undoing this 2003-08-12 change:
93354         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93355
93356 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93357
93358         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93359         strtoul.c from libc, undoing this 2003-08-12 change:
93360         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93361
93362 2003-08-16  Jim Meyering  <jim@meyering.net>
93363
93364         Merges from coreutils.
93365         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93366         prefix.  Adjust cache variables similarly.  Create 500 rather than
93367         just 300 files, to exercise bug on Darwin6.5, too.
93368         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93369         $missing_dir.
93370         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93371         AM_SYS_POSIX_TERMIOS.
93372         Reported by mkc@mathdogs.com.
93373         Also change use of $am_cv_sys_posix_termios
93374         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93375         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93376         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93377         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93378         in /proc/mounts until it finds one with matching device number.  This
93379         is unnecessary when the FILE argument *is* a mount point.  No stat call
93380         is necessary in that case.  So, disable the statvfs-testing code on
93381         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93382         as RedHat bug# 84846.
93383         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93384         to 1MB, so as not to render systems with no stack size limit (e.g.,
93385         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93386         Include <unistd.h>.  On some systems,
93387         it is required for the definition of _SC_PAGESIZE.
93388
93389 2003-08-16  Jim Meyering  <jim@meyering.net>
93390
93391         Merge from coreutils.
93392         * lib/xstrtoimax.c: #else #if -> #elif.
93393         * lib/xstrtoumax.c: Likewise.
93394
93395 2003-08-16  Jim Meyering  <jim@meyering.net>
93396
93397         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93398         * m4/utimes.m4: Removed.
93399         * m4/utimes-null.m4: Renamed from utimes.m4.
93400
93401         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93402         to 1MB, so as not to render systems with no stack size limit (e.g.,
93403         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93404         Include <unistd.h>.  On some systems,
93405         it is required for the definition of _SC_PAGESIZE.
93406
93407 2003-08-16  Jim Meyering  <jim@meyering.net>
93408         and Paul Eggert  <eggert@cs.ucla.edu>
93409
93410         Merges from coreutils, etc.
93411
93412         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93413         using the latest version from cvs.  This avoids problems with #line
93414         directives using a vendor (Sun) compiler.
93415         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93416         Don't set GETGROUPS_LIB here; now it's
93417         done via getgroups.m4's wrapper function.
93418         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93419         rather than just in sh-util/configure.in, so that the
93420         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93421         same.
93422         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93423         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93424         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93425         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93426         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93427         Remove code that is now done by the newly-required macros.
93428         Append $(EXEEXT) to DF_PROG.
93429         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93430         Do not invoke or require the following here,
93431         since prereq.m4 or some gnulib .m4 now does this for us:
93432         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93433         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93434         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93435         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93436         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93437         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93438         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93439         AC_FUNC_OBSTACK.
93440         Do not replace the following functions, as this is now the job
93441         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93442         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93443         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93444         atexit getpass, strdup, getpagesize.
93445         Replace 'raise'.
93446         Do not check for the following functions, as this is now the job
93447         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93448         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93449         setregid.
93450         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93451         Check for sys/sysctl.h.
93452         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93453         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93454         of checking for ssize_t ourselves.
93455
93456         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93457         Require every macro that gnulib/modules/* suggests for us.
93458         (jm_PREREQ_ADDEXT): New macro.
93459         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93460         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93461
93462         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93463         (gl_PHYSMEM): Use it.
93464         Also check for `table' function.
93465         Check for new headers and functions.
93466         Add check for sys/sysmp.h.
93467         With suggestions from Kaveh Ghazi.
93468         Ignore headers that are present but cannot be compiled.  This
93469         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93470         C 5.4.
93471
93472 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93473
93474         Document merge from coreutils.
93475         * modules/userspec: Depend on posixver.
93476         * modules/strftime: Depend on tzset.
93477
93478 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93479
93480         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93481         rather than tab, after '#' in shell-script copyright notices.
93482         Suggested by Bruno Haible.
93483
93484 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93485
93486         * config/srclist-update: Use three spaces, rather than tab, after '#'
93487         in shell-script copyright notices.  Suggested by Bruno Haible.
93488         Remove unnecessary parenthesization in regular expression.
93489
93490 2003-08-15  Jim Meyering  <jim@meyering.net>
93491
93492         Merge from coreutils.
93493         * lib/xgethostname.c: Include <stdlib.h>.
93494         (xghostname): Don't exit for anything other than memory-related
93495         failure; just return NULL.
93496         * lib/userspec.c: Include "posixver.h".
93497         (parse_user_spec): Accept `.' as a separator only
93498         in pre-POSIX-200112 mode.
93499         * lib/strtoimax.c: Use #elif rather than #else #if.
93500         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93501         Remove function, now that we can rely on a working tzset function.
93502         [!_LIBC]: Ensure that the required autoconf test has been run.
93503         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93504         Use underlying_strftime for %r.
93505         * lib/sha.c: Merge in some clean-up and optimization changes from
93506         glibc.
93507         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93508         Ensure that it is a multiple of 64.
93509         Rearrange loop exit tests so as to avoid performing an
93510         additional fread after encountering an error or EOF.
93511         * lib/realloc.c: Update copyright date.
93512
93513 2003-08-15  Jim Meyering  <jim@meyering.net>
93514         and Paul Eggert  <eggert@twinsun.com>
93515
93516         Merge from coreutils.
93517         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93518         member but strut utmpx does not.  Needed for AIX 4.3.3.
93519         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93520
93521 2003-08-15  Jim Meyering  <jim@meyering.net>
93522         and Paul Eggert  <eggert@cs.ucla.edu>
93523
93524         Merges from coreutils, etc.
93525         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93526         Require gl_FUNC_TZSET_CLOBBER.
93527         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93528         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93529         members.
93530
93531 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93532
93533         Help the merge from coreutils.
93534         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93535         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93536         * m4/tzset.m4: Use it too.
93537
93538 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93539
93540         * modules/tzset: New file.
93541
93542 2003-08-14  Jim Meyering  <jim@meyering.net>
93543
93544         Merges from coreutils.
93545         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93546         variable names, rather than @FNMATCH_H@.
93547         * modules/alloca: Likewise for $(ALLOCA_H).
93548
93549         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93550         the three copies of the literal target, `fnmatch.h'.
93551         * modules/alloca (alloca.h): Likewise.
93552
93553 2003-08-14  Jim Meyering  <jim@meyering.net>
93554
93555         Merge from coreutils.
93556         * m4/tzset.m4: New file.
93557         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93558         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93559         otherwise, AIX 5.1 systems would end up using the latter.
93560         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93561         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93562         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93563         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93564
93565 2003-08-14  Jim Meyering  <jim@meyering.net>
93566
93567         Merge from coreutils.
93568         * lib/obstack.h: Whitespace changes.
93569         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93570         and xcalloc return values.
93571         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93572         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93573         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93574         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93575         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93576         error from mntctl.
93577         Use mntctl's return value to drive the entry-processing loop, since
93578         we can't rely on the value of the vmt_length member in the last
93579         entry.  On some systems doing so could result in exhausting
93580         virtual memory.  Based in part on a patch from Mike Jetzer.
93581
93582 2003-08-14  Jim Meyering  <jim@meyering.net>
93583         and Paul Eggert  <eggert@twinsun.com>
93584
93585         Merges from coreutils, plus other fixes.
93586         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93587         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93588         for credits and details.  Thanks to Kaveh Ghazi for helping
93589         to keep these files in sync.
93590         (ARRAY_SIZE): Define it.
93591         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93592         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93593         (memcasecmp): Don't assume size_t fits in unsigned int.
93594         Remove casts and duplicate code.
93595         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93596         (memcpy): Remove definition.
93597         Merge in some clean-up and optimization changes from glibc.
93598         [BLOCKSIZE]: Move definition to top of file.
93599         Ensure that it is a multiple of 64.
93600         Rearrange loop exit tests so as to avoid performing an
93601         additional fread after encountering an error or EOF.
93602         * lib/md5.h (md5_uintptr): Define.
93603         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93604         return to the initial working directory.  Preserve errno
93605         for caller.
93606         * lib/idcache.c: Include "xalloc.h".
93607         (xmalloc, xrealloc): Remove decls.
93608         (getuser): Remove casts no longer required in C89.
93609         * lib/human.c: Include stdio.h, for sprintf.
93610         * lib/group-member.c: Include "xalloc.h".
93611         (xmalloc, xrealloc): Remove decls.
93612         (get_group_info): Remove casts no longer required in C89.
93613         * lib/getusershell.c (readname): Remove casts no longer required in
93614         C89.
93615         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93616         * lib/getline.c: Whitespace fix, from coreutils.
93617
93618 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93619
93620         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93621         Check for isascii.
93622
93623         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93624         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93625         Undo previous (whitespace-only) change.
93626
93627 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93628
93629         * lib/exclude.c: Include <ctype.h>
93630         (IN_CTYPE_DOMAIN): New macro.
93631         (is_space): New fn.
93632         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93633         and empty lines.
93634
93635         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93636         Undo previous (whitespace-only) change.
93637
93638 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93639
93640         * config/srclist-update: Change update back to the old behavior,
93641         leaving whitespace alone.  Use one 'sed' command rather than a
93642         pipeline.
93643         (fixlicense): Now a variable, not a function.
93644         (remove_trailing_blanks): Remove.
93645         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93646         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93647         Undo previous (whitespace-only) change.
93648
93649 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93650
93651         Merge from coreutils.
93652         * modules/euidaccess: Add lib_SOURCES, include for new
93653         file euidaccess.h
93654
93655 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93656
93657         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93658         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93659         Normalize leading white space and remove trailing white space.
93660
93661         Merge from coreutils
93662         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93663
93664         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93665         0.12.1.  These files are now being upgraded automatically by
93666         ../config/srclist-update.
93667
93668 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93669
93670         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93671         Normalize leading white space and remove trailing white space.
93672         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93673         notice, as per ../config/srclist-update.
93674
93675         Merge from coreutils.
93676         * lib/euidaccess.h: New file.
93677         * lib/euidaccess.c: Include it.
93678         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93679         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93680         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93681
93682 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93683
93684         * config/srclist-update: Add copyright notice.
93685         (remove_id_lines, remove_trailing_blanks): New constants.
93686         (fixfile): Use them to normalize spacing a bit in copied files.
93687         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93688         Normalize leading white space and remove trailing white space.
93689
93690         * config/texinfo.tex: Sync with texinfo.
93691
93692         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93693         strtoul.c from libc, to merge coreutils whitespace changes.
93694
93695         * config/srclist.txt: Get the following m4 files from gettext:
93696         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93697         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93698         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93699         wint_t.m4.
93700
93701 2003-08-12  Karl Berry  <karl@gnu.org>
93702
93703         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93704         been made.
93705
93706 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93707
93708         * modules/gnu-source, m4/gnu-source.m4:
93709         Remove; we're assuming Autoconf 2.54 or later now.
93710         Suggested by Bruno Haible.
93711         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93712
93713 2003-08-11  Bruno Haible  <bruno@clisp.org>
93714
93715         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93716
93717 2003-08-11  Bruno Haible  <bruno@clisp.org>
93718
93719         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93720         (vasnprintf): Use it instead of wcslen.
93721
93722 2003-08-11  Bruno Haible  <bruno@clisp.org>
93723
93724         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93725         value to ensure that _Bool promotes to int. Use #define for _Bool when
93726         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93727
93728 2003-08-10  Karl Berry  <karl@gnu.org>
93729
93730         * lib/regex.h: update from libc (whitespace fix).
93731
93732 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93733
93734         Merge some files from coreutils.  These changes were
93735         originally made by Jim Meyering.
93736         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93737         many older Unixes require this.
93738         * lib/alloca.c (alloca): Remove cast to argument of free;
93739         no longer needed in C89.
93740         * lib/alloca_.h, regex.h: Fix white space to match
93741         what GNU indent does.
93742
93743 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93744
93745         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93746         apparently Emacs's Unicode mode got confused before my 2003-08-05
93747         checkin.
93748
93749 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93750
93751         * m4/extensions.m4: New file.
93752         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93753         Require gl_USE_SYSTEM_EXTENSIONS.
93754         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93755         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93756
93757 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93758
93759         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93760         * modules/extensions, modules/gnu-source: New files.
93761         * modules/timespec, modules/unlocked-io: Depend on extensions.
93762
93763 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93764
93765         * modules/restrict: New file.
93766         * MODULES.html.sh (func_all_modules): Add restrict.
93767         * modules/regex: Depend on restrict.
93768
93769 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93770
93771         * m4/restrict.m4: New file.
93772         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93773
93774 2003-08-07  Bruno Haible  <bruno@clisp.org>
93775
93776         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93777         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93778
93779 2003-08-07  Bruno Haible  <bruno@clisp.org>
93780
93781         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93782         makes the module 'getndelim2' compatible with the module 'getline'.
93783
93784 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93785
93786         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93787         byte with "\201" to avoid glitches when editing that source file
93788         with multi-gnome-terminal.
93789
93790 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93791
93792         * lib/bumpalloc.h: Remove.
93793
93794 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93795
93796         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93797         * modules/bumpalloc: Remove.
93798
93799 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93800
93801         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93802         GNU coding style.
93803
93804         Merge from coreutils.
93805         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93806         1. From glibc.
93807         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93808         from Karl Berry, implemented by Jim Meyering.
93809         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93810         from Dmitry V. Levin.
93811         Remove anachronistic cast of xrealloc.
93812         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93813         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93814         type. Otherwise, it wouldn't compile with at least /bin/cc on
93815         ymp-cray-unicos9.0.2.X.
93816         Combine two mostly-identical uses of alloca into one.
93817         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93818
93819 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93820
93821         [From Emacs.]
93822
93823         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93824         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93825         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93826         obsolete NLIST_NAME_UNION.
93827         [__GNU__]: Undef BSD and FSCALE.
93828         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93829
93830 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93831
93832         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93833         an enum type, so that it's guaranteed to promote to int.  See:
93834         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93835
93836 2003-08-03  Karl Berry  <karl@gnu.org>
93837
93838         * config/depcomp: update from automake.
93839
93840 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93841
93842         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93843         (strerror): Don't assume that a printable int fits in 14 bytes.
93844
93845 2003-07-31  Bruno Haible  <bruno@clisp.org>
93846
93847         * modules/getpass-gnu: New file.
93848         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93849
93850 2003-07-31  Bruno Haible  <bruno@clisp.org>
93851
93852         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93853
93854 2003-07-24  Karl Berry  <karl@gnu.org>
93855
93856         * config/missing: update from automake.
93857
93858 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93859             Bruno Haible  <bruno@clisp.org>
93860
93861         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93862         * lib/getline.c (getline, getdelim): Likewise.
93863         Remove _GNU_SOURCE define; now it's defined in config.h through
93864         m4/getline.m4.
93865
93866 2003-07-23  Karl Berry  <karl@gnu.org>
93867
93868         * config/config.sub: update from prep.
93869
93870 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93871
93872         * modules/xalloc (Depends-on): Add exitfail.
93873         * modules/xmemcoll: Likewise.
93874
93875 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93876
93877         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
93878         over-parenthesization in macros.
93879
93880         Sync with coreutils.
93881
93882         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
93883         required by C99.
93884
93885         Use `exit_failure' for xalloc and xmemcoll instead of their own
93886         private exit-failure variables.
93887         * lib/xalloc.h (xalloc_exit_failure): Remove.
93888         * lib/xmalloc.c: Likewise.  Include exitfail.h.
93889         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
93890         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
93891         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
93892         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
93893
93894 2003-07-20  Jim Meyering  <jim@meyering.net>
93895
93896         * modules/closeout (Depends-on): Add exitfail.
93897         Suggestion from Bruno Haible.
93898
93899 2003-07-19  Karl Berry  <karl@gnu.org>
93900
93901         * config/config.sub: update from prep.
93902
93903 2003-07-18  Paul Eggert  <eggert@twinsun.com>
93904
93905         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
93906         Remove.
93907         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
93908         to test that it can stand by itself.  Include "exitfail.h".
93909         Clients should set exit_failure instead.
93910         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93911
93912 2003-07-18  Bruno Haible  <bruno@clisp.org>
93913
93914         * modules/getndelim2: New file.
93915         * modules/getline: Share files with module getndelim2.
93916         * modules/getnline: Depend on getndelim2 instead of sharing files with
93917         it. Add getnline.c to lib_SOURCES.
93918         * MODULES.html.sh (func_all_modules): Add getndelim2.
93919
93920 2003-07-18  Bruno Haible  <bruno@clisp.org>
93921
93922         * m4/getndelim2.m4: New file.
93923         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93924         invoke gl_PREREQ_GETNDELIM2.
93925         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93926         gl_PREREQ_GETNDELIM2.
93927         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93928         gl_GETNDELIM2.
93929
93930 2003-07-18  Bruno Haible  <bruno@clisp.org>
93931
93932         * lib/getndelim2.h: New file.
93933         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93934         getndelim2.h.
93935         (getndelim2): Make non-static. Change return type to ssize_t.
93936         * lib/getline.h: Change argument names.
93937         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93938         * lib/getnline.c: Include getndelim2.h.
93939
93940 2003-07-18  Andreas Schwab  <schwab@suse.de>
93941
93942         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93943
93944 2003-07-17  Karl Berry  <karl@gnu.org>
93945
93946         * config/config.sub: update from prep.
93947
93948 2003-07-17  Bruno Haible  <bruno@clisp.org>
93949
93950         * modules/getnline: New file.
93951         * modules/getline: Add lib/getndelim2.c to source file list.
93952         * MODULES.html.sh (func_all_modules): Add getnline.
93953
93954 2003-07-17  Bruno Haible  <bruno@clisp.org>
93955
93956         * m4/getnline.m4: New file.
93957
93958 2003-07-17  Bruno Haible  <bruno@clisp.org>
93959
93960         * m4/Makefile.am.in: Remove file.
93961         * m4/Makefile.am: Remove file.
93962         * m4/Makefile.in: Remove file.
93963
93964 2003-07-17  Bruno Haible  <bruno@clisp.org>
93965
93966         * lib/getnline.h: New file.
93967         * lib/getnline.c: New file.
93968         * lib/getndelim2.c: New file, extracted from getline.c.
93969         (getndelim2): Renamed from getdelim2, with added nmax argument.
93970         * lib/getline.c: Include getndelim2.c.
93971         (getdelim2): Moved out to getndelim2.c.
93972         (getline, getdelim): Update.
93973
93974 2003-07-17  Bruno Haible  <bruno@clisp.org>
93975
93976         * lib/Makefile.am: Remove file.
93977         * lib/Makefile.in: Remove file.
93978
93979 2003-07-17  Bruno Haible  <bruno@clisp.org>
93980
93981         * configure.in: Remove file.
93982         * Makefile.in: Remove file.
93983
93984 2003-07-17  Bruno Haible  <bruno@clisp.org>
93985
93986         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93987
93988 2003-07-16  Karl Berry  <karl@gnu.org>
93989
93990         * config/srclist-update: was running fixlicense twice, which caused
93991                 texinfo.tex to be nullified for some reason.  Simplify,
93992                 $gplsrc is no longer needed as far as I can see?
93993
93994 2003-07-16  Jim Meyering  <jim@meyering.net>
93995
93996         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93997
93998 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93999
94000         * config/srclist.txt: Get the following files from gettext-runtime/intl
94001         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94002         ref-del.sin.  From Bruno Haible.
94003         * config/srclist-update (fixfile): Change grep pattern again, since the
94004         previous fix didn't work (there was another trailing $).  Use
94005         '[$]' to escape the $s.
94006
94007 2003-07-15  Karl Berry  <karl@gnu.org>
94008
94009         * lib/vasnprintf.c: update from gettext.
94010
94011 2003-07-15  Karl Berry  <karl@gnu.org>
94012
94013         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94014         gets expanded when surrounded by '$'.
94015
94016 2003-07-15  Jim Meyering  <jim@meyering.net>
94017
94018         * modules/save-cwd: Don't depend on error.  From Derek Price.
94019
94020 2003-07-15  Jim Meyering  <jim@meyering.net>
94021
94022         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94023
94024 2003-07-14  Simon Josefsson  <jas@extundo.com>
94025
94026         * modules/mempcpy: New file.
94027         * MODULES.html.sh (func_all_modules): Add mempcpy.
94028
94029 2003-07-14  Simon Josefsson  <jas@extundo.com>
94030
94031         * m4/mempcpy.m4: New file.
94032
94033 2003-07-14  Simon Josefsson  <jas@extundo.com>
94034
94035         * lib/mempcpy.h: New file.
94036         * lib/mempcpy.c: New file.
94037
94038 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94039
94040         * modules/getdate, modules/posixtm: Depend on mktime.
94041
94042 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94043
94044         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94045         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94046         unicodeio.c, unicodeio.h, unlocked-io.h:
94047         Switch from LGPL to GPL.
94048
94049 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94050
94051         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94052         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94053         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94054         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94055         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94056         updated automatically by ../config/srclist-update.  This changes
94057         their license from LPGL to GPL.
94058
94059 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94060
94061         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94062         assumed to refer to the root of the most recent stable gettext version.
94063         * config/srclistvars.sh: Add defaults for eggert.
94064         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94065         Match "This program" as well as "The program".  This is needed
94066         for gettext.
94067
94068 2003-07-14  Jim Meyering  <jim@meyering.net>
94069
94070         Don't emit diagnostics.  Let callers do that.
94071         * lib/save-cwd.c: Don't include "error.h".
94072         (save_cwd): Don't call error.  Ensure that errno is valid
94073         when returning nonzero.
94074
94075         * lib/save-cwd.h (restore_cwd): Update prototype.
94076         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94077         Simplify.  Don't call error upon failure.  Let callers do that.
94078         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94079         when auditing is enabled.  But don't bother updating the #if.
94080
94081 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94082
94083         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94084         it breaks C++ compilation.
94085         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94086
94087 2003-07-10  Simon Josefsson  <jas@extundo.com>
94088
94089         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94090
94091 2003-07-10  Jim Meyering  <jim@meyering.net>
94092
94093         * m4/clock_time.m4: Remove trailing blank.
94094         * m4/intmax_t.m4: Likewise.
94095
94096 2003-07-10  Jim Meyering  <jim@meyering.net>
94097
94098         * lib/vasnprintf.c: Remove trailing blanks.
94099         Make cpp indentation consistent.
94100
94101 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94102
94103         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94104         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94105         Switch from LGPL to GPL.
94106
94107 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94108
94109         * config/srclist.txt: Sort sublists.  Add
94110         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94111         that differ from gnulib for one reason or another; we'd like this list
94112         to be smaller but for now let's document what we have.
94113
94114 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94115
94116         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94117         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94118         and sweeter "eval x=$x".
94119         * config/srclist.txt: Get lib/argp* from glibc.
94120
94121 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94122
94123         * lib/mktime.c: Fix some boundary cases and remove need for floating
94124         point.
94125
94126         Issue a compile-time diagnostic if time_t is floating point, or if
94127         two's complement arithmetic is not in effect, or if arithmetic
94128         right shift does not propagate the sign.  These assumptions were
94129         all in the original code but they weren't checked.
94130
94131         (TIME_T_MIDPOINT, verify): New macros.
94132         (__isleap): Remove; it has integer overflow problems.
94133         (leapyear): New function, without those problems.
94134         (ydhms_tm_diff): Remove; splitting into two parts.
94135         (ydhms_diff): New function, containing the arithmetic part of
94136         the old ydhms_tm_diff function.  Issue a compile-time
94137         diagnostic if we are not using C99 integer division.
94138         Avoid casts when possible.
94139         (guess_time_tm): New function, containing the checking part of
94140         the old ydhms_tm_diff function.  Return the new value, rather than
94141         the difference between it and the old.  Accept a new argument T
94142         so that *T specifies the old value.  Check for overflow in the result.
94143
94144         (__mktime_internal): Use a time_t offset, not a long int offset.
94145         This undoes the 2003-06-04 change, which is no longer needed now
94146         that we have better overflow checking.
94147         (localtime_offset): Likewise.
94148
94149         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94150         and long are 64-bit but int is only 32-bit.
94151         (ydhms_diff): Use long int to store year1 and yday1.
94152         Issue a compile-time diagnostic if long int is not wide enough.
94153
94154         (__mktime_internal): Use long int to store adjusted year and yday.
94155         Use plain C rather than preprocessor commands, if that doesn't
94156         affect efficiency.
94157         Check for overflow (and try to repair) after each probe
94158         rather than checking only at the very end.  This avoids some bugs
94159         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94160         does not equal GMT offset at maximum time).
94161         Use integer to check for overflow rather than floating point; this
94162         is more portable to non-IEEE hosts, and is a tad faster.
94163         When we detect that we are oscillating between two values,
94164         don't check whether tm_isdst has the requested value, since
94165         we already know the answer.  When tm_isdst has the wrong value,
94166         use a different heuristic to find the right one, based on the
94167         extreme values actually observed in practice in tz2003a,
94168         rather than the (overly optimistic) "previous 3 calendar quarters".
94169
94170         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94171         "T const" to accommodate glibc style.
94172         (check_result): Use less-confusing report format.  "long" -> "long int.
94173         (main): Likewise.
94174         Don't loop if the iteration overflows time_t.
94175         Allow a negative step in the iteration.
94176
94177 2003-07-06  Karl Berry  <karl@gnu.org>
94178
94179         * config/depcomp: update from automake.
94180         * config/config.sub: update from prep.
94181
94182 2003-07-03  Karl Berry  <karl@gnu.org>
94183
94184         * config/config.guess: update from prep.
94185
94186 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94187
94188         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94189         xreadlink.c now includes it unconditionally.
94190
94191 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94192
94193         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94194         having it depend on HAVE_SYS_TYPES_H.
94195
94196 2003-07-01  Bruno Haible  <bruno@clisp.org>
94197
94198         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94199         <sys/types.h> should be sufficient.
94200         Reported by Paul Eggert.
94201
94202 2003-06-26  Karl Berry  <karl@gnu.org>
94203
94204         * config/depcomp: update from automake.
94205
94206 2003-06-26  Bruno Haible  <bruno@clisp.org>
94207
94208         * modules/human: Depend on module stdbool.
94209
94210 2003-06-25  Bruno Haible  <bruno@clisp.org>
94211
94212         * modules/readlink: New file.
94213         * modules/xreadlink: Depend on it.
94214         * MODULES.html.sh (func_all_modules): Add readlink.
94215
94216 2003-06-25  Bruno Haible  <bruno@clisp.org>
94217
94218         * m4/readlink.m4: New file.
94219
94220 2003-06-25  Bruno Haible  <bruno@clisp.org>
94221
94222         * lib/readlink.c: New file.
94223
94224 2003-06-22  Karl Berry  <karl@gnu.org>
94225
94226         * config/srclist.txt: update mkinstalldirs from automake.
94227         * config/mkinstalldirs: update.
94228
94229 2003-06-22  Bruno Haible  <bruno@clisp.org>
94230
94231         Portability to mingw32.
94232         * m4/ssize_t.m4: New file, from GNU gettext.
94233         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94234         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94235
94236 2003-06-22  Bruno Haible  <bruno@clisp.org>
94237
94238         * modules/safe-read: Add m4/ssize_t.m4.
94239         * modules/xreadlink: Add m4/ssize_t.m4.
94240
94241 2003-06-20  Bruno Haible  <bruno@clisp.org>
94242
94243         Assume C89, so PARAMS isn't needed.
94244         * lib/unicodeio.h (PARAMS): Remove.
94245         * lib/unicodeio.c: Don't use PARAMS.
94246
94247 2003-06-18  Karl Berry  <karl@gnu.org>
94248
94249         * config/config.{guess,sub}: update from prep.
94250
94251 2003-06-18  Jim Meyering  <jim@meyering.net>
94252
94253         Merge changes from coreutils.
94254         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94255         Remove explicit declarations of xmalloc and realloc.
94256         Include xalloc.h.
94257         (read_utmp): Remove anachronistic cast of xmalloc.
94258
94259 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94260
94261         Assume C89, so PARAMS isn't needed.
94262         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94263         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94264         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94265         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94266         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94267         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94268         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94269         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94270         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94271         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94272         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94273         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94274         no longer needed. Anyway, config.h should always be included before any
94275         other file.
94276
94277 2003-06-11  Simon Josefsson  <jas@extundo.com>
94278
94279         * modules/sysexits: New file.
94280         * MODULES.html.sh (func_all_modules): Add sysexits.
94281
94282 2003-06-11  Simon Josefsson  <jas@extundo.com>
94283
94284         * lib/sysexit_.h: New file.
94285
94286 2003-06-11  Derek Price  <derek@ximbiot.com>
94287
94288         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94289         necessary.
94290
94291 2003-06-11  Bruno Haible  <bruno@clisp.org>
94292
94293         * m4/sysexits.m4: New file.
94294
94295 2003-06-10  Simon Josefsson  <jas@extundo.com>
94296
94297         * lib/argp.h: New file, from glibc.
94298         * lib/argp-ba.c: New file, from glibc.
94299         * lib/argp-eexst.c: New file, from glibc.
94300         * lib/argp-fmtstream.c: New file, from glibc.
94301         * lib/argp-fmtstream.h: New file, from glibc.
94302         * lib/argp-fs-xinl.c: New file, from glibc.
94303         * lib/argp-help.c: New file, from glibc.
94304         * lib/argp-namefrob.h: New file, from glibc.
94305         * lib/argp-parse.c: New file, from glibc.
94306         * lib/argp-pv.c: New file, from glibc.
94307         * lib/argp-pvh.c: New file, from glibc.
94308         * lib/argp-xinl.c: New file, from glibc.
94309
94310 2003-06-10  Simon Josefsson  <jas@extundo.com>
94311
94312         * modules/strchrnul: New file.
94313
94314 2003-06-10  Simon Josefsson  <jas@extundo.com>
94315
94316         * modules/argp: New file.
94317
94318 2003-06-10  Simon Josefsson  <jas@extundo.com>
94319
94320         * m4/strchrnul.m4: New file.
94321
94322 2003-06-10  Simon Josefsson  <jas@extundo.com>
94323
94324         * lib/strchrnul.h: New file.
94325         * lib/strchrnul.c: New file.
94326
94327 2003-06-10  Bruno Haible  <bruno@clisp.org>
94328
94329         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94330
94331 2003-06-07  Karl Berry  <karl@gnu.org>
94332
94333         * config/config.{guess,sub}: update from prep.
94334
94335 2003-06-07  Jim Meyering  <jim@meyering.net>
94336
94337         * modules/strtod: Use $(...) notation, not @...@ for
94338         AC_REPLACE'd variables.
94339         * modules/localcharset: Likewise.
94340
94341 2003-06-07  Jim Meyering  <jim@meyering.net>
94342
94343         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94344         in place of my name in the copyright comment.
94345         Remove definition and uses of __P.
94346
94347         From coreutils.
94348         * lib/stat.c: Don't declare xmalloc explicitly.
94349         Instead, include "xalloc.h".
94350         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94351         xrealloc, and xcalloc return values.
94352         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94353         Improve comment.
94354         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94355
94356 2003-06-07  Bruno Haible  <bruno@clisp.org>
94357
94358         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94359         avoid AC_CONFIG_LINKS.
94360         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94361         fnmatch.h, to avoid AC_CONFIG_LINKS.
94362         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94363
94364 2003-06-07  Bruno Haible  <bruno@clisp.org>
94365
94366         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94367         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94368         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94369         directory.
94370         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94371         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94372         directory.
94373
94374 2003-06-06  Jim Meyering  <jim@meyering.net>
94375
94376         Merge from coreutils.
94377         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94378         Consolidate declarations and initializations of *_base* locals.
94379
94380         Merge from coreutils.
94381         This avoids a core dump on systems without GNU putenv,
94382         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94383         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94384         (unsetenv): New static function, from GNU libc.
94385         (rpl_putenv): Use it.
94386
94387         * lib/modechange.c: Remove trailing blanks.
94388
94389         Merge from coreutils.
94390         * lib/fsusage.c: Remove declaration of statfs.
94391         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94392
94393         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94394
94395 2003-06-06  Jim Meyering  <jim@meyering.net>
94396
94397         * lib/stdbool_.h: Renamed from stdbool.h.in.
94398
94399 2003-06-06  Jim Meyering  <jim@meyering.net>
94400             Bruno Haible  <bruno@clisp.org>
94401
94402         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94403         Adjust Makefile.am snippet not to redirect directly to target.
94404         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94405
94406 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94407
94408         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94409         mismatch, look in future quarters as well as past.  This fixes a
94410         bug when processing fall-backwards gaps immediately after a long
94411         period of daylight-saving time.
94412
94413         * lib/mktime.c: Assume freestanding C89 or better.
94414         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94415         (__P): Remove; not used.
94416         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94417         (mktime, not_equal_tm, print_tm, check_result,
94418         main): Use prototypes.  Use const * where appropriate.
94419         (main): Fix typo in testing code that uncovered by above changes.
94420         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94421
94422 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94423
94424         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94425         locale.h, localeconv.  This merges changes from coreutils.
94426
94427         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94428         It can be removed after the next Autoconf is released.
94429         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94430         needed.
94431
94432 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94433
94434         * lib/mktime.c: Fix Debian bug 177940
94435         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94436         (localtime_offset): Now long int, not time_t, because we want it
94437         to be guaranteed to be signed.  All uses changed.
94438         (__mktime_internal): If overflow would occur when adding offset,
94439         don't add it.
94440
94441         Merge 'human' changes from coreutils.  Rewrite to support
94442         locale-specific notations like thousands separators.
94443         * lib/human.c: Simplify authorship notice.
94444         Include human.h immediately after config.h.
94445         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94446         <limits.h>: Do not include, since human.h does.
94447         (SIZE_MAX, UINTMAX_MAX): New macros.
94448         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94449         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94450         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94451         (power_letter): Renamed from suffixes.
94452         (generate_suffix_backwards): Remove.
94453         (adjust_value): Now takes int style (because of human.h changes)
94454         and long double value (for greater precision on some platforms).
94455         (group_number): New function.
94456         (human_readable): Use it.  Use integer options, not enum.
94457         Put the options before the sizes in the arg list.
94458         Support all the new options.
94459         The old human_readable function has been removed;
94460         use inttostr.h instead.
94461         (human_readable, default_block_size, humblock):
94462         Use uintmax_t, not int, for block sizes.
94463         (human_readable_inexact, block_size_types): Remove.
94464         (block_size_opts): New constant.
94465         (human_options): Renamed from human_block_size, with new signature
94466         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94467         * lib/human.h: Add copyright and authorship notice.
94468         Include <limits.h> and <stdbool.h> unconditionally.
94469         (PARAMS): Remove.  All uses removed.
94470         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94471         (enum human_inexact_style): Remove tag; now a nameless enum.
94472         (human_floor, human_ceiling, human_round_to_even): Now have
94473         values 2, 0, 1 rather than -1, 1, 0.
94474         (human_group_digits, human_suppress_point_zero, human_autoscale,
94475         human_base_1024, human_SI, human_B): New constants.
94476         (human_readable_inexact, human_block_size): Remove.
94477         (human_readable): Size args are now uintmax_t, not int.
94478         (human_options): New decl.
94479
94480         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94481         unnecessary now that we assume C89 or better.  This change
94482         imported from coreutils.
94483
94484         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94485         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94486         in the 2003-05-30 sync from glibc.
94487
94488         .h files should stand alone, but we shouldn't include <sys/types.h>
94489         if we can get away with just <stddef.h>.
94490
94491         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94492         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94493         rather than <sys/types.h>, as we merely need size_t.
94494         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94495         to get size_t.
94496         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94497         Include <stdio.h>, to get FILE.
94498         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94499         memcasecmp.h has included <stddef.h> and all we need is size_t.
94500         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94501         our interface, instead of including <sys/types.h>
94502
94503 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94504
94505         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94506         now, as glibc mktime is buggy on non-glibc systems.
94507
94508 2003-06-03  Karl Berry  <karl@gnu.org>
94509
94510         * config/config.sub: update from prep.
94511
94512 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94513
94514         [from coreutils]
94515         Fix some minor time-related bugs with POSIX time arguments.
94516         Some valid time stamps were being rejected (notably -1, and
94517         time stamps before 1900 on 64-bit hosts).  And some invalid
94518         time stamps were being accepted, e.g. September 31.
94519
94520         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94521         that we can return (time_t) -1 successfully.
94522         * lib/posixtm.c: Likewise.
94523         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94524         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94525         (t): Remove static var.
94526         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94527         of static var.  All uses changed.
94528         (year): Do not reject years before 1900; they can occur with
94529         64-bit time_t.
94530         (posix_time_parse): Do not check for out-of-range components;
94531         that is now the caller's responsibility, since our checks were
94532         only approximations.
94533         (posixtime): Use mktime to check for out-of-range components,
94534         since it knows them exactly.
94535         If mktime returns (time_t) -1, check whether an error actually occurred
94536         by invoking localtime on -1.
94537         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94538         posixtime failures better.
94539         Improve the test data (in comments only).
94540
94541 2003-06-02  Karl Berry  <karl@gnu.org>
94542
94543         * config/mkinstalldirs (version): new variable.
94544         (--version): new option.
94545         (usage): improve message.
94546
94547 2003-05-30  Karl Berry  <karl@gnu.org>
94548
94549         * lib/mktime.c: update from libc.
94550
94551 2003-05-30  Bruno Haible  <bruno@clisp.org>
94552
94553         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94554         * config/config.rpath: Upgrade to gettext-0.12.1.
94555
94556 2003-05-30  Bruno Haible  <bruno@clisp.org>
94557
94558         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94559         * m4/nls.m4: New file, from gettext-0.12.1.
94560         * m4/po.m4: New file, from gettext-0.12.1.
94561         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94562
94563 2003-05-30  Bruno Haible  <bruno@clisp.org>
94564
94565         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94566         * lib/localcharset.h: Likewise.
94567         * lib/localcharset.c: Likewise.
94568
94569 2003-05-29  Karl Berry  <karl@gnu.org>
94570
94571         * config/config.rpath: update from gettext.
94572
94573 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94574
94575         Assume the headers required for C89 freestanding compilers.
94576         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94577         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94578         * m4/human.m4 (gl_HUMAN): Likewise.
94579         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94580         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94581         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94582         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94583         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94584         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94585
94586 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94587
94588         Assume the headers required for C89 freestanding compilers.
94589         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94590         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94591         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94592         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94593         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94594         define, since <limits.h> is guaranteed to do that.
94595         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94596         * lib/exclude.c: Include <stdbool.h> unconditionally.
94597         * lib/tempname.c: Include <stddef.h> unconditionally.
94598         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94599         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94600         <stddef.h> does that.
94601         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94602         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94603         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94604         needed.
94605         * lib/xstrtol.c: Likewise.
94606         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94607         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94608
94609         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94610         warnings on some platforms.
94611
94612         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94613         arbitrarily.
94614
94615 2003-05-26  Jim Meyering  <jim@meyering.net>
94616
94617         Merge in a change from coreutils:
94618         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94619         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94620         that condition, rather than `-1' which is slightly misleading.
94621         Change the name of the cache variable to have the gl_ prefix.
94622         Prompted by a patch from Richard Dawe for DJGPP.
94623
94624 2003-05-24  Karl Berry  <karl@gnu.org>
94625
94626         * config/config.guess: update from prep.
94627
94628 2003-05-22  Karl Berry  <karl@gnu.org>
94629
94630         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94631
94632 2003-05-20  Karl Berry  <karl@gnu.org>
94633
94634         * config/config.guess: update from prep.
94635
94636 2003-05-18  Karl Berry  <karl@gnu.org>
94637
94638         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94639         might actually be set by the user.
94640
94641         * config/depcomp, install-sh, mdate-sh: update from automake.
94642
94643 2003-05-17  Bruno Haible  <bruno@clisp.org>
94644
94645         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94646         invalid expansion for AC_EGREP_CPP.
94647         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94648         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94649         Suggested by Akim Demaille <akim@epita.fr> in
94650         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94651
94652 2003-05-12  Jim Meyering  <jim@meyering.net>
94653
94654         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94655         the space-padded-by-default conversion specifiers, %e, %k, %l.
94656
94657 2003-05-12  Bruno Haible  <bruno@clisp.org>
94658
94659         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94660         the string is longer than 4 KB.
94661
94662 2003-05-11  Karl Berry  <karl@gnu.org>
94663
94664         * config/config.{guess,sub}: update from prep.
94665
94666 2003-05-09  Bruno Haible  <bruno@clisp.org>
94667
94668         * modules/error: Add m4/strerror_r.m4 to file list.
94669
94670 2003-05-03  Bruno Haible  <bruno@clisp.org>
94671
94672         Upgrade to Unicode-4.0.
94673         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94674         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94675         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94676         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94677         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94678         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94679         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94680         Change width of U+E0100..U+E01EF from 1 to 0.
94681
94682 2003-04-25  Jim Meyering  <jim@meyering.net>
94683
94684         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94685         of type size_t, not int.
94686
94687 2003-04-25  Bruno Haible  <bruno@clisp.org>
94688
94689         * lib/copy-file.c: Include <stddef.h>, for size_t.
94690
94691 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94692
94693         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94694         code which expansion is under static control.  Patch imported from
94695         Akim Demaille's patch to Bison; see
94696         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94697
94698 2003-04-14  Bruno Haible  <bruno@clisp.org>
94699
94700         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94701
94702 2003-04-11  Jim Meyering  <jim@meyering.net>
94703
94704         Merge changes from Coreutils.
94705
94706         2003-03-22  Jim Meyering  <jim@meyering.net>
94707
94708         * lib/strftime.c (widen): Cast alloca return value to proper type.
94709
94710         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94711
94712         From GNU libc.
94713         * lib/strftime.c (my_strftime): Handle very large width
94714         specifications for numeric values correctly.  Improve checks for
94715         overflow.
94716
94717         2003-01-19  Jim Meyering  <jim@meyering.net>
94718
94719         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94720         definitions.
94721         (nl_get_alt_digit) [! defined my_strftime]: Define.
94722         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94723         _nl_get_alt_digit and _nl_get_walt_digit.
94724
94725         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94726         libc. These changes have no effect outside of _LIBC.
94727
94728 2003-04-10  Bruno Haible  <bruno@clisp.org>
94729
94730         * modules/findprog: New file.
94731         * MODULES.html.sh (func_all_modules): Add it.
94732
94733 2003-04-10  Bruno Haible  <bruno@clisp.org>
94734
94735         * m4/findprog.m4: New file.
94736         * m4/eaccess.m4: New file.
94737
94738 2003-04-10  Bruno Haible  <bruno@clisp.org>
94739
94740         * lib/findprog.h: New file, from GNU gettext.
94741         * lib/findprog.c: New file, from GNU gettext.
94742
94743 2003-04-05  Jim Meyering  <jim@meyering.net>
94744
94745         Merge changes from Coreutils.
94746
94747         * lib/exclude.h (PARAMS): Remove definition and uses.
94748         * lib/exclude.c: Remove uses of `PARAMS'.
94749
94750         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94751         Add test-cases for DOS filenames. Declare program_name.
94752         (main): Set up program_name.  Patch by Rich Dawe.
94753
94754         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94755         error from mntctl.
94756         Use mntctl's return value to drive the entry-processing loop, since
94757         we can't rely on the value of the vmt_length member in the last
94758         entry.  On some systems doing so could result in exhausting
94759         virtual memory.  Based in part on a patch from Mike Jetzer.
94760
94761 2003-04-04  Bruno Haible  <bruno@clisp.org>
94762
94763         * modules/linebreak: New file.
94764         * MODULES.html.sh (func_all_modules): Add it.
94765
94766 2003-04-04  Bruno Haible  <bruno@clisp.org>
94767
94768         * m4/linebreak.m4: New file.
94769
94770 2003-04-04  Bruno Haible  <bruno@clisp.org>
94771
94772         * lib/linebreak.h: New file, from GNU gettext.
94773         * lib/linebreak.c: New file, from GNU gettext with slight
94774         modifications.
94775         * lib/lbrkprop.h: New file, from GNU gettext.
94776
94777 2003-04-03  Bruno Haible  <bruno@clisp.org>
94778
94779         * modules/utf8-ucs4: New file.
94780         * modules/utf16-ucs4: New file.
94781         * modules/ucs4-utf8: New file.
94782         * modules/ucs4-utf16: New file.
94783         * MODULES.html.sh (func_all_modules): Add them.
94784
94785 2003-04-03  Bruno Haible  <bruno@clisp.org>
94786
94787         * m4/utf-ucs4.m4: New file.
94788         * m4/ucs4-utf.m4: New file.
94789
94790 2003-04-03  Bruno Haible  <bruno@clisp.org>
94791
94792         * lib/utf8-ucs4.h: New file, from GNU gettext.
94793         * lib/utf16-ucs4.h: New file, from GNU gettext.
94794         * lib/ucs4-utf8.h: New file, from GNU gettext.
94795         * lib/ucs4-utf16.h: New file, from GNU gettext.
94796
94797 2003-04-02  Bruno Haible  <bruno@clisp.org>
94798
94799         * modules/binary-io: New file.
94800         * MODULES.html.sh (func_all_modules): Add it.
94801
94802 2003-04-02  Bruno Haible  <bruno@clisp.org>
94803
94804         * lib/binary-io.h: New file, from GNU gettext.
94805
94806 2003-04-01  Bruno Haible  <bruno@clisp.org>
94807
94808         * modules/pathname: New file.
94809         * MODULES.html.sh (func_all_modules): Add it.
94810
94811 2003-04-01  Bruno Haible  <bruno@clisp.org>
94812
94813         * lib/pathname.h: New file, from GNU gettext.
94814         * lib/concatpath.c: New file, from GNU gettext.
94815
94816 2003-03-30  Bruno Haible  <bruno@clisp.org>
94817
94818         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94819
94820 2003-03-30  Bruno Haible  <bruno@clisp.org>
94821
94822         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94823         function chown() doesn't exist.
94824
94825 2003-03-28  Bruno Haible  <bruno@clisp.org>
94826
94827         * modules/copy-file: New file.
94828         * MODULES.html.sh (func_all_modules): Add it.
94829
94830 2003-03-28  Bruno Haible  <bruno@clisp.org>
94831
94832         * m4/copy-file.m4: New file.
94833
94834 2003-03-28  Bruno Haible  <bruno@clisp.org>
94835
94836         * lib/copy-file.h: New file, from GNU gettext.
94837         * lib/copy-file.c: New file, from GNU gettext.
94838
94839 2003-03-18  Jim Meyering  <jim@meyering.net>
94840
94841         * lib/quote.c (quote_n): Fix typo in comment.
94842
94843 2003-03-18  Bruno Haible  <bruno@clisp.org>
94844
94845         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94846         checking.
94847         * m4/onceonly_2_57.m4: Likewise.
94848
94849 2003-03-17  Bruno Haible  <bruno@clisp.org>
94850
94851         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94852         (m4_quote): Remove macro.
94853         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94854
94855 2003-03-14  Jim Meyering  <jim@meyering.net>
94856
94857         Merge changes from Coreutils.
94858         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94859         to be const, in order to avoid warnings.
94860         (obstack_room): Likewise.
94861         (obstack_empty_p): Likewise.
94862
94863 2003-03-14  Bruno Haible  <bruno@clisp.org>
94864
94865         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
94866         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
94867
94868 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94869
94870         Merge changes from Bison.
94871         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
94872         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
94873         when compiling Bison 1.875's `bitset bset = obstack_alloc
94874         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
94875         * lib/hash.c: Include <stdbool.h> unconditionally.
94876
94877 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94878
94879         * m4/onceonly.m4 (m4_quote): New macro.
94880         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
94881         Quote AC_FOREACH variable-expansions properly.
94882
94883 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94884
94885         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
94886
94887 2003-03-09  Paul Eggert  <eggert@twinsun.com>
94888
94889         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
94890         Reported by Bruce Becker; see:
94891         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
94892
94893 2003-03-03  Paul Eggert  <eggert@twinsun.com>
94894             Bruno Haible  <bruno@clisp.org>
94895
94896         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
94897         Reported by John Hughes, see
94898         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
94899
94900 2003-02-20  Bruno Haible  <bruno@clisp.org>
94901
94902         * MODULES.html.sh (func_all_modules): Add poll.
94903
94904 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94905
94906         * modules/poll: New file.
94907
94908 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94909
94910         * lib/poll_.h: New file.
94911         * lib/poll.c: New file.
94912
94913 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94914
94915         * m4/poll.m4: New file.
94916
94917 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94918
94919         * modules/mathl: New file.
94920
94921 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94922
94923         * lib/mathl.h: New file.
94924         * lib/acosl.c: New file.
94925         * lib/asinl.c: New file.
94926         * lib/atanl.c: New file.
94927         * lib/ceill.c: New file.
94928         * lib/cosl.c: New file.
94929         * lib/expl.c: New file.
94930         * lib/floorl.c: New file.
94931         * lib/frexpl.c: New file.
94932         * lib/ldexpl.c: New file.
94933         * lib/logl.c: New file.
94934         * lib/sincosl.c: New file.
94935         * lib/sinl.c: New file.
94936         * lib/sqrtl.c: New file.
94937         * lib/tanl.c: New file.
94938         * lib/trigl.c: New file.
94939         * lib/trigl.h: New file.
94940
94941 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94942
94943         * m4/mathl.m4: New file.
94944
94945 2003-02-18  Bruno Haible  <bruno@clisp.org>
94946
94947         * MODULES.html.sh (func_all_modules): Add mathl.
94948
94949 2003-02-17  Bruno Haible  <bruno@clisp.org>
94950
94951         * modules/mkdtemp: New module.
94952         * MODULES.html.sh (func_all_modules): Add it.
94953
94954 2003-02-17  Bruno Haible  <bruno@clisp.org>
94955
94956         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94957
94958 2003-02-17  Bruno Haible  <bruno@clisp.org>
94959
94960         * lib/mkdtemp.h: New file, from GNU gettext.
94961         * lib/mkdtemp.c: New file, from GNU gettext.
94962
94963 2003-02-02  Jim Meyering  <jim@meyering.net>
94964
94965         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94966         e.g. glibc-2.2.93.
94967
94968 2003-01-31  Bruno Haible  <bruno@clisp.org>
94969
94970         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94971         'rpl_rename'.
94972         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94973         'rpl_strnlen'.
94974         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94975         'rpl_strtod'.
94976         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94977         'rpl_utime'.
94978
94979 2003-01-31  Bruno Haible  <bruno@clisp.org>
94980
94981         * lib/rename.c: #undef rename before defining rpl_rename.
94982         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94983
94984 2003-01-30  Bruno Haible  <bruno@clisp.org>
94985
94986         * modules/vasnprintf, modules/vasprintf: New modules.
94987         * MODULES.html.sh (func_all_modules): Add them.
94988
94989 2003-01-30  Bruno Haible  <bruno@clisp.org>
94990
94991         * m4/signed.m4: New file, from GNU gettext.
94992         * m4/longdouble.m4: New file, from GNU gettext.
94993         * m4/wchar_t.m4: New file, from GNU gettext.
94994         * m4/wint_t.m4: New file, from GNU gettext.
94995         * m4/vasnprintf.m4: New file.
94996         * m4/vasprintf.m4: New file.
94997
94998 2003-01-30  Bruno Haible  <bruno@clisp.org>
94999
95000         * lib/printf-args.h: New file, from GNU gettext.
95001         * lib/printf-args.c: New file, from GNU gettext.
95002         * lib/printf-parse.h: New file, from GNU gettext.
95003         * lib/printf-parse.c: New file, from GNU gettext.
95004         * lib/vasnprintf.h: New file, from GNU gettext.
95005         * lib/vasnprintf.c: New file, from GNU gettext.
95006         * lib/asnprintf.c: New file, from GNU gettext.
95007         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95008         * lib/vasprintf.c: New file, from GNU gettext.
95009         * lib/asprintf.c: New file, from GNU gettext.
95010
95011 2003-01-29  Bruno Haible  <bruno@clisp.org>
95012
95013         * modules/stpncpy: New module.
95014         * MODULES.html.sh (func_all_modules): Add it.
95015
95016 2003-01-29  Bruno Haible  <bruno@clisp.org>
95017
95018         * m4/stpncpy.m4: New file.
95019
95020 2003-01-29  Bruno Haible  <bruno@clisp.org>
95021
95022         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95023         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95024
95025 2003-01-28  Bruno Haible  <bruno@clisp.org>
95026
95027         * modules/c-ctype: New module.
95028         * MODULES.html.sh (func_all_modules): Add it.
95029
95030 2003-01-28  Bruno Haible  <bruno@clisp.org>
95031
95032         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95033         Paul Eggert.
95034         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95035         Paul Eggert.
95036
95037 2003-01-27  Bruno Haible  <bruno@clisp.org>
95038
95039         * modules/xsetenv: New module.
95040         * MODULES.html.sh (func_all_modules): Add it.
95041
95042 2003-01-27  Bruno Haible  <bruno@clisp.org>
95043
95044         * lib/xsetenv.h: New file, from GNU gettext.
95045         * lib/xsetenv.c: New file, from GNU gettext.
95046
95047 2003-01-23  Jim Meyering  <jim@meyering.net>
95048
95049         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95050         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95051
95052 2003-01-23  Bruno Haible  <bruno@clisp.org>
95053
95054         * modules/minmax: New module.
95055         * MODULES.html.sh (func_all_modules): Add it.
95056
95057 2003-01-23  Bruno Haible  <bruno@clisp.org>
95058
95059         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95060         Eggert.
95061
95062 2003-01-22  Bruno Haible  <bruno@clisp.org>
95063
95064         * modules/exit: New module.
95065         * MODULES.html.sh (func_all_modules): Add it.
95066
95067 2003-01-22  Bruno Haible  <bruno@clisp.org>
95068
95069         * lib/exit.h: New file, from GNU gettext.
95070
95071 2003-01-19  Bruno Haible  <bruno@clisp.org>
95072
95073         * gnulib-tool: Recognize option --extract-maintainer.
95074         (func_get_maintainer): New function.
95075         * modules/*: Add Maintainer entry.
95076
95077 2003-01-16  Jim Meyering  <jim@meyering.net>
95078
95079         * m4/regex.m4: The `regex' struct is both input and output.
95080         Initialize it before each use.  Patch by Tim Waugh.
95081
95082 2003-01-16  Bruno Haible  <bruno@clisp.org>
95083
95084         * MODULES.html.sh: Add a table of contents. Add the module name as
95085         leftmost column. Add hyperlinks.
95086
95087 2003-01-15  Bruno Haible  <bruno@clisp.org>
95088
95089         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95090
95091 2003-01-15  Bruno Haible  <bruno@clisp.org>
95092
95093         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95094         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95095         suffix.
95096
95097 2003-01-15  Bruno Haible  <bruno@clisp.org>
95098
95099         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95100
95101 2003-01-15  Bruno Haible  <bruno@clisp.org>
95102
95103         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95104         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95105
95106 2003-01-14  Jim Meyering  <jim@meyering.net>
95107
95108         * lib/same.c (same_name): Tweak a comment.
95109
95110 2003-01-14  Bruno Haible  <bruno@clisp.org>
95111
95112         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95113         when a string comparison is sufficient.
95114
95115 2003-01-14  Bruno Haible  <bruno@clisp.org>
95116
95117         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95118         'unsigned int'.
95119
95120 2003-01-14  Bruno Haible  <bruno@clisp.org>
95121
95122         * lib/hash-pjw.c: Add comment about low quality of this function.
95123
95124 2003-01-13  Bruno Haible  <bruno@clisp.org>
95125
95126         * modules/stpcpy: Distribute lib/stpcpy.h.
95127         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95128
95129 2003-01-13  Bruno Haible  <bruno@clisp.org>
95130
95131         * modules/*: Add a description.
95132         * modules/strpbrk: Fix Makefile.am snippet.
95133         * modules/strtoimax: Fix dependencies.
95134         * modules/strtoumax: Likewise.
95135
95136 2003-01-13  Bruno Haible  <bruno@clisp.org>
95137
95138         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95139         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95140         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95141
95142 2003-01-13  Bruno Haible  <bruno@clisp.org>
95143
95144         * gnulib-tool (func_create_testdir): Store config/* files in the main
95145         directory.
95146         * config.rpath: Move to ...
95147         * config/config.rpath: ... here.
95148         * modules/gettext: Contains config/config.rpath, not config.rpath.
95149         * modules/iconv: Likewise.
95150
95151 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95152
95153         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95154         to avoid collisions with libcurses and libreadline.
95155
95156         * m4/getstr.m4: Remove.
95157         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95158
95159 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95160
95161         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95162         to avoid collisions with libcurses and libreadline.
95163
95164         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95165         * lib/getstr.h, getstr.c: Remove.
95166         * lib/getline.c: Include "getline.h", to check interface.
95167         Move body of old getstr.c here: this defines MIN_CHUNK and
95168         declares getdelim2, which is renamed from getstr.
95169         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95170
95171         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95172         All uses changed.
95173         * lib/linebuffer.h: Likewise.
95174         (readline): Remove backward-compatibility macro.
95175
95176 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95177
95178         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95179         to avoid collisions with libcurses and libreadline.
95180         * getstr: Remove.
95181         * MODULES.html.sh: Remove getstr.
95182         * modules/getline: Depend on unlocked-io, not getstr.
95183
95184 2003-01-12  Jim Meyering  <jim@meyering.net>
95185
95186         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95187
95188 2003-01-10  Bruno Haible  <bruno@clisp.org>
95189
95190         * modules/alloca: Change Makefile.am requirements. Simplify Include
95191         requirements. Add lib/alloca_.h to file list.
95192
95193 2003-01-10  Bruno Haible  <bruno@clisp.org>
95194
95195         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95196
95197 2003-01-10  Bruno Haible  <bruno@clisp.org>
95198
95199         * lib/alloca_.h: New file.
95200         * lib/getdate.y: Unconditionally include alloca.h.
95201         * lib/makepath.c: Likewise.
95202         * lib/setenv.c: Likewise.
95203         * lib/userspec.c: Likewise.
95204
95205 2003-01-09  Karl Berry  <karl@gnu.org>
95206
95207         * MODULES.html.sh: include `dirname $0` in PATH, to find
95208         gnulib-tool.
95209
95210 2003-01-09  Bruno Haible  <bruno@clisp.org>
95211
95212         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95213         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95214
95215 2003-01-09  Bruno Haible  <bruno@clisp.org>
95216
95217         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95218
95219 2003-01-09  Bruno Haible  <bruno@clisp.org>
95220
95221         * lib/stdbool.h.in: New file.
95222
95223 2003-01-09  Bruno Haible  <bruno@clisp.org>
95224
95225         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95226         * MODULES.html.sh: Likewise.
95227
95228 2003-01-08  Jim Meyering  <jim@meyering.net>
95229
95230         * lib/full-write.c: Undefine and define-away `const' after inclusion
95231         of errno.h, not before.  Suggestion from Bruno Haible.
95232
95233 2003-01-08  Bruno Haible  <bruno@clisp.org>
95234
95235         * modules/full-read: Depend on full-write.
95236
95237 2003-01-08  Bruno Haible  <bruno@clisp.org>
95238
95239         * lib/safe-read.c: Include specification header first, to ensure its
95240         selfcontainedness.
95241         * lib/full-write.c: Likewise.
95242
95243 2003-01-07  Jim Meyering  <jim@meyering.net>
95244
95245         * lib/full-write.c: Rework so that it may serve to define full_read,
95246         too.
95247         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95248
95249 2003-01-07  Bruno Haible  <bruno@clisp.org>
95250
95251         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95252         <inttypes.h>.
95253         * lib/xstrtol.h: Likewise.
95254         * lib/xstrtoimax.c: Likewise.
95255         * lib/xstrtoumax.c: Likewise.
95256         * lib/human.h: Likewise.
95257
95258         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95259         on systems that have <inttypes.h> but not <stdint.h>.
95260
95261 2003-01-07  Bruno Haible  <bruno@clisp.org>
95262
95263         * MODULES.html.sh: Add copyright notice.
95264         (missed_files): Omit CVS directory entries.
95265         (func_module): Make it work with sed-3.02.
95266         * MODULES.txt: Remove file.
95267
95268 2003-01-06  Jim Meyering  <jim@meyering.net>
95269
95270         * lib/version-etc.c: Update year in translatable copyright string.
95271
95272 2003-01-03  Karl Berry  <karl@gnu.org>
95273
95274         * config/config.{guess,sub}: update from prep.
95275
95276 2003-01-02  Karl Berry  <karl@gnu.org>
95277
95278         * doc/COPYING.DOC: belatedly updated to 1.2.
95279
95280 2003-01-01  Karl Berry  <karl@gnu.org>
95281
95282         * gnulib-tool (func_verify_module): report module name $module in
95283         error message, not $1.
95284         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95285         be created, only if it doesn't exist.
95286         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95287
95288 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95289
95290         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95291
95292 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95293
95294         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95295         memcmp if strcoll doesn't work.
95296
95297 2002-12-31  Bruno Haible  <bruno@clisp.org>
95298
95299         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95300         nonempty.
95301
95302 2002-12-31  Bruno Haible  <bruno@clisp.org>
95303
95304         * lib/memcoll.c (STRCOLL): New macro.
95305         (memcoll): Use it.
95306
95307 2002-12-31  Bruno Haible  <bruno@clisp.org>
95308
95309         * lib/localcharset.h: New file.
95310         * lib/localcharset.c: Include it.
95311         * lib/unicodeio.c: Likewise.
95312
95313 2002-12-31  Bruno Haible  <bruno@clisp.org>
95314
95315         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95316         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95317
95318 2002-12-31  Bruno Haible  <bruno@clisp.org>
95319
95320         * lib/getline.h: Include <stddef.h>, for size_t.
95321
95322         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95323         * lib/unicodeio.c: Don't include <stddef.h>.
95324
95325 2002-12-31  Bruno Haible  <bruno@clisp.org>
95326
95327         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95328         HAVE_TM_ZONE.
95329
95330 2002-12-24  Karl Berry  <karl@gnu.org>
95331
95332         * config/config.guess: update from prep.
95333
95334 2002-12-24  Bruno Haible  <bruno@clisp.org>
95335
95336         General infrasructure.
95337         * m4/README: Rewritten.
95338         * m4/onceonly.m4: New file.
95339         * m4/onceonly_2_57.m4: New file.
95340
95341         Module atexit.
95342         * m4/atexit.m4: New file.
95343
95344         Module strtod.
95345         * m4/strtod.m4: New file.
95346
95347         Module strtol.
95348         * m4/strtol.m4: New file.
95349
95350         Module strtoul.
95351         * m4/strtoul.m4: New file.
95352
95353         Module memchr.
95354         * m4/memchr.m4: New file.
95355
95356         Module memcmp.
95357         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95358         (jm_FUNC_MEMCMP): Invoke it.
95359
95360         Module memcpy.
95361         * m4/memcpy.m4: New file.
95362
95363         Module memmove.
95364         * m4/memmove.m4: New file.
95365
95366         Module memset.
95367         * m4/memset.m4: New file.
95368
95369         Module strcspn.
95370         * m4/strcspn.m4: New file.
95371
95372         Module strpbrk.
95373         * m4/strpbrk.m4: New file.
95374
95375         Module strstr.
95376         * m4/strstr.m4: New file.
95377
95378         Module strerror.
95379         * m4/strerror.m4: New file.
95380
95381         Module mktime.
95382         * m4/mktime.m4: Renamed from jm-mktime.m4.
95383         (gl_PREREQ_MKTIME): New macro.
95384         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95385
95386         Module malloc.
95387         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95388         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95389         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95390
95391         Module realloc.
95392         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95393         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95394         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95395
95396         Module strftime.
95397         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95398         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95399         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95400         gl_TM_GMTOFF.
95401         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95402
95403         Module xalloc.
95404         * m4/xalloc.m4: New file.
95405
95406         Module alloca.
95407         * m4/alloca.m4: New file.
95408
95409         Module putenv.
95410         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95411         (jm_FUNC_PUTENV): Invoke it.
95412
95413         Module setenv.
95414         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95415         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95416         when invoked twice.
95417         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95418         gt_FUNC_SETENV.
95419
95420         Module memrchr.
95421         * m4/memrchr.m4: New file.
95422
95423         Module stpcpy.
95424         * m4/stpcpy.m4: New file.
95425
95426         Module strcase.
95427         * m4/strcase.m4: New file.
95428
95429         Module strdup.
95430         * m4/strdup.m4: New file.
95431
95432         Module strnlen.
95433         * m4/strnlen.m4: New file.
95434
95435         Module strndup.
95436         * m4/strndup.m4: New file.
95437
95438         Module xstrtod.
95439         * m4/xstrtod.m4: New file.
95440
95441         Module xstrtol.
95442         * m4/xstrtol.m4: New file.
95443
95444         Module getdate.
95445         * m4/getdate.m4: New file.
95446
95447         Module unlocked-io.
95448         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95449         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95450         * m4/jm-glibc-io.m4n: Remove file.
95451
95452         Module long-options.
95453         * m4/long-options.m4: New file.
95454
95455         Module md5.
95456         * m4/md5.m4: New file.
95457
95458         Module sha.
95459         * m4/sha.m4: New file.
95460
95461         Module getstr.
95462         * m4/getstr.m4: New file.
95463
95464         Module getline.
95465         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95466         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95467         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95468         simply getline. Infoke gl_PREREQ_GETLINE.
95469
95470         Module obstack.
95471         * m4/obstack.m4: New file.
95472
95473         Module hash.
95474         * m4/hash.m4: New file.
95475
95476         Module readtokens.
95477         * m4/readtokens.m4: New file.
95478
95479         Module strverscmp.
95480         * m4/strverscmp.m4: New file.
95481
95482         Module stdbool.
95483         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95484         OSF/1.
95485
95486         Module strtoll.
95487         * m4/strtoll.m4: New file.
95488
95489         Module strtoull.
95490         * m4/strtoull.m4: New file.
95491
95492         Module strtoimax.
95493         * m4/strtoimax.m4: New file.
95494
95495         Module strtoumax.
95496         * m4/strtoumax.m4: New file.
95497
95498         Module xstrtoimax.
95499         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95500         jm_AC_PREREQ_XSTRTOIMAX.
95501         Moved the strtol prerequisites to strtol.m4.
95502         Moved the strtoll prerequisites to strtoll.m4.
95503         Moved the strtoimax prerequisites to strtoimax.m4.
95504
95505         Module xstrtoumax.
95506         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95507         jm_AC_PREREQ_XSTRTOUMAX.
95508         Moved the strtoul prerequisites to strtoul.m4.
95509         Moved the strtoull prerequisites to strtoull.m4.
95510         Moved the strtoumax prerequisites to strtoumax.m4.
95511
95512         Module chown.
95513         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95514         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95515
95516         Module dup2.
95517         * m4/dup2.m4: New file.
95518
95519         Module ftruncate.
95520         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95521         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95522
95523         Module getgroups.
95524         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95525         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95526
95527         Module gettimeofday.
95528         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95529         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95530         gl_PREREQ_GETTIMEOFDAY.
95531
95532         Module mkdir.
95533         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95534         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95535
95536         Module mkstemp.
95537         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95538         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95539         jm_AC_TYPE_UINTMAX_T.
95540         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95541
95542         Module stat.
95543         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95544         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95545
95546         Module lstat.
95547         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95548         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95549
95550         Module timespec.
95551         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95552         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95553         * m4/st_mtim.m4: Indentation.
95554
95555         Module nanosleep.
95556         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95557         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95558         gl_PREREQ_NANOSLEEP.
95559
95560         Module regex.
95561         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95562         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95563         (gl_REGEX): New macro.
95564
95565         Module rename.
95566         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95567         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95568
95569         Module rmdir.
95570         * m4/rmdir.m4: New file.
95571
95572         Module utime.
95573         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95574         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95575         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95576
95577         Module dirname.
95578         * m4/dirname.m4: New file.
95579
95580         Module getopt.
95581         * m4/getopt.m4: New file.
95582
95583         Module unistd-safer.
95584         * m4/unistd-safer.m4: New file.
95585
95586         Module fnmatch.
95587         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95588         declaration.
95589         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95590         (gl_FUNC_FNMATCH_POSIX): New macro.
95591         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95592         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95593         simply fnmatch.
95594
95595         Module exclude.
95596         * m4/exclude.m4: New file.
95597
95598         Module human.
95599         * m4/human.m4: New file.
95600
95601         Module acl.
95602         * m4/acl.m4: Nop.
95603
95604         Module backupfile.
95605         * m4/backupfile.m4: New file.
95606         * m4/d-ino.m4: Indentation.
95607
95608         Module fsusage.
95609         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95610         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95611         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95612
95613         Module dirfd.
95614         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95615         requirements.
95616
95617         Module euidaccess.
95618         * m4/euidaccess.m4: New file.
95619
95620         Module file-type.
95621         * m4/file-type.m4: New file.
95622
95623         Module fileblocks.
95624         * m4/fileblocks.m4: New file.
95625
95626         Module filemode.
95627         * m4/filemode.m4: New file.
95628
95629         Module isdir.
95630         * m4/isdir.m4: New file.
95631
95632         Module lchown.
95633         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95634         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95635
95636         Module makepath.
95637         * m4/makepath.m4: New file.
95638
95639         Module modechange.
95640         * m4/modechange.m4: New file.
95641
95642         Module mountlist.
95643         * m4/mountlist.m4: New file.
95644         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95645         Indentation.
95646
95647         Module path-concat.
95648         * m4/path-concat.m4: New file.
95649
95650         Module pathmax.
95651         * m4/pathmax.m4: New file.
95652
95653         Module same.
95654         * m4/same.m4: New file.
95655
95656         Module save-cwd.
95657         * m4/save-cwd.m4: New file.
95658
95659         Module savedir.
95660         * m4/savedir.m4: New file.
95661
95662         Module xgetcwd.
95663         * m4/xgetcwd.m4: New file.
95664         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95665
95666         Module xreadlink.
95667         * m4/xreadlink.m4: New file.
95668
95669         Module safe-read.
95670         * m4/safe-read.m4: New file.
95671
95672         Module safe-write.
95673         * m4/safe-write.m4: New file.
95674
95675         Module closeout.
95676         * m4/closeout.m4: New file.
95677
95678         Module stdio-safer.
95679         * m4/stdio-safer.m4: New file.
95680
95681         Module getpass.
95682         * m4/getpass.m4: New file.
95683
95684         Module getugroups.
95685         * m4/getugroups.m4: New file.
95686
95687         Module group-member.
95688         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95689         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95690
95691         Module idcache.
95692         * m4/idcache.m4: New file.
95693
95694         Module userspec.
95695         * m4/userspec.m4: New file.
95696
95697         Module gettime.
95698         * m4/clock_time.m4: New file.
95699         * m4/gettime.m4: New file.
95700
95701         Module settime.
95702         * m4/settime.m4: New file.
95703
95704         Module posixtm.
95705         * m4/posixtm.m4: New file.
95706
95707         Module gethostname.
95708         * m4/gethostname.m4: New file.
95709
95710         Module canon-host.
95711         * m4/canon-host.m4: New file.
95712
95713         Module gettext.
95714         * m4/codeset.m4: New file, from gettext-0.11.5.
95715         * m4/gettext.m4: New file, from gettext-0.11.5.
95716         * m4/glibc21.m4: New file, from gettext-0.11.5.
95717         * m4/iconv.m4: New file, from gettext-0.11.5.
95718         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95719         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95720         * m4/inttypes.m4: New file, from gettext-0.11.5.
95721         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95722         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95723         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95724         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95725         * m4/lib-link.m4: New file, from gettext-0.11.5.
95726         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95727         * m4/progtest.m4: New file, from gettext-0.11.5.
95728         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95729         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95730         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95731
95732         Module localcharset.
95733         * m4/localcharset.m4: New file.
95734
95735         Module hard-locale.
95736         * m4/hard-locale.m4: New file.
95737
95738         Module mbswidth.
95739         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95740         onceonly macros.
95741         * m4/mbrtowc.m4: Add comment.
95742
95743         Module memcasecmp.
95744         * m4/memcasecmp.m4: New file.
95745
95746         Module memcoll.
95747         * m4/memcoll.m4: New file.
95748
95749         Module unicodeio.
95750         * m4/unicodeio.m4: New file.
95751
95752         Module rpmatch.
95753         * m4/rpmatch.m4: New file.
95754
95755         Module yesno.
95756         * m4/yesno.m4: New file.
95757
95758         Module exitfail.
95759         * m4/exitfail.m4: New file.
95760
95761         Module c-stack.
95762         * m4/c-stack.m4 (gl_C_STACK): New macro.
95763         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95764
95765         Module error.
95766         * m4/error.m4 (gl_ERROR): New macro.
95767         (jm_PREREQ_ERROR): Use onceonly macros.
95768
95769         Module fatal.
95770         * m4/fatal.m4: New file.
95771
95772         Module getloadavg.
95773         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95774         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95775
95776         Module getpagesize.
95777         * m4/getpagesize.m4: New file.
95778
95779         Module getusershell.
95780         * m4/getusershell.m4: New file.
95781
95782         Module physmem.
95783         * m4/physmem.m4: New file.
95784
95785         Module posixver.
95786         * m4/posixver.m4: New file.
95787
95788         Module quotearg.
95789         * m4/quotearg.m4: New file.
95790
95791         Module quote.
95792         * m4/quote.m4: New file.
95793
95794         Module readutmp.
95795         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95796
95797         Module sig2str.
95798         * m4/sig2str.m4: New file.
95799
95800         Other.
95801         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95802         ulonglong.m4.
95803         * m4/intmax_t.m4: New file.
95804         * m4/d-type.m4: Indentation.
95805         * m4/jm-macros.m4: Update.
95806         * m4/prereq.m4 (jm_PREREQ): Update.
95807         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95808         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95809         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95810         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95811         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95812         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95813         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95814         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95815         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95816         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95817         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95818         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95819         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95820         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95821         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95822         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95823         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95824         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95825         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95826
95827 2002-12-24  Bruno Haible  <bruno@clisp.org>
95828
95829         * MODULES.txt: Update according to m4/ changes.
95830
95831         Module gettext.
95832         * config.rpath: New file, from gettext-0.11.5.
95833
95834         * modules/*: New module descriptions.
95835         * gnulib-tool: New file.
95836         * MODULES.html.sh: New file.
95837
95838 2002-12-21  Karl Berry  <karl@gnu.org>
95839
95840         * doc/fdl.texi: update to version 1.2.
95841
95842 2002-12-19  Karl Berry  <karl@gnu.org>
95843
95844         * config/config.guess: update from prep.
95845
95846 2002-12-18  Bruno Haible  <bruno@clisp.org>
95847
95848         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95849         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95850
95851 2002-12-17  Bruno Haible  <bruno@clisp.org>
95852
95853         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95854         stdlib.h, string.h.
95855
95856 2002-12-17  Bruno Haible  <bruno@clisp.org>
95857
95858         * lib/canon-host.c (strdup): Remove unused declaration.
95859
95860         * lib/fsusage.c: Include full_read.h.
95861         (get_fs_usage): Use full_read instead of safe_read.
95862
95863         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
95864
95865 2002-12-12  Karl Berry  <karl@gnu.org>
95866
95867         * config/config.guess: update from prep.
95868
95869 2002-12-11  Bruno Haible  <bruno@clisp.org>
95870
95871         * m4/setenv.m4: New file, from gettext-0.11.5.
95872
95873 2002-12-11  Bruno Haible  <bruno@clisp.org>
95874
95875         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
95876         not unsetenv().
95877         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
95878         modifications:
95879
95880         2002-12-11  Bruno Haible  <bruno@clisp.org>
95881
95882                 * setenv.c (alloca): Fall back to malloc.
95883                 (freea): New macro.
95884                 (setenv): Use freea() to free memory allocated with alloca().
95885
95886         2002-11-13  Bruno Haible  <bruno@clisp.org>
95887
95888                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
95889                 function declarations.
95890                 * unsetenv.c (unsetenv): Likewise.
95891
95892         2002-03-04  Bruno Haible  <bruno@clisp.org>
95893
95894                 Portability to AIX 4.3.3.
95895                 * unsetenv.c: New file, extracted from setenv.c.
95896                 * setenv.c: Move the unsetenv() function to unsetenv.c.
95897
95898         2001-12-20  Bruno Haible  <bruno@clisp.org>
95899
95900                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
95901                 use malloc instead. For SunOS 4.
95902
95903         2001-12-11  Bruno Haible  <bruno@clisp.org>
95904
95905                 * setenv.c: Declare alloca.
95906                 (compar_fn_t): New typedef.
95907                 (KNOWN_VALUE, STORE_VALUE): Use it.
95908
95909         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
95910         setenv.h.
95911
95912 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95913
95914         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95915         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95916         Choose values that are less likely to collide with system fnmatch
95917         options.
95918         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95919         defined (e.g., a pure POSIX system).
95920         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95921         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95922
95923 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95924
95925         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95926         a pain in practice to deal with generated m4 files.  This change
95927         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95928
95929         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95930         and jm-glibc-io.m4, as they are no longer a special case.
95931         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95932         kludge and the auto-generation stuff.  Check only whether the
95933         functions are declared, not whether they exist, since older hosts
95934         that don't declare the functions can't use the optimization anyway.
95935
95936 2002-12-06  Jim Meyering  <jim@meyering.net>
95937
95938         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95939
95940         Merge in changes from libc's misc/error.c, in preparation
95941         for the merge of gnulib's changes back into libc.
95942
95943         * lib/error.c (_): Define only if not already defined.
95944         Move definition to follow all #include directives.
95945         Include unlocked-io.h only if !_LIBC.
95946         [_LIBC]: Include <libio/libioP.h>.
95947         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95948         (fflush): Tweak definition to use INTUSE.
95949         (putc): Define.
95950
95951 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95952
95953         * lib/alloca.c [defined emacs]: Include "lisp.h".
95954         (xalloc_die) [defined emacs]: New macro.
95955         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95956         [! defined emacs]: Include <xalloc.h>.
95957         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95958         (pointer): Typedef to POINTER_TYPE *.
95959         (malloc): Remove decl; we now always use xmalloc.
95960         (alloca): Use old-style definition, since Emacs needs this.
95961         Check for arithmetic overflow when computing combined size.
95962
95963 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95964
95965         Do not generate unlocked-io.h automatically, since it's easier to
95966         maintain it by hand.
95967
95968         * lib/unlocked-io.h: New file, from GNU diffutils,
95969         but with proper copyright notice and attribution.
95970         * lib/gen-uio: Remove.
95971         * lib/Makefile.am: Add copyright notice.
95972         (libfetish_a_SOURCES): Add unlocked-io.h.
95973         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95974         (DISTCLEANFILES, io_functions): Remove macros.
95975         (EXTRA_DIST): Remove gen_uio.
95976         (unlocked-io.h): Remove rule.
95977
95978 2002-12-04  Jim Meyering  <jim@meyering.net>
95979
95980         Reflect the fact that stat.c and lstat.c are no longer generated.
95981         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95982         (DISTCLEANFILES): Likewise.
95983         (EXTRA_DIST): Likewise.
95984         (all_local): Don't depend on stat.c or lstat.c.
95985         (stat.c, lstat.c): Remove rules.
95986         (EXTRA_DIST): Remove xstat.in.
95987
95988         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95989         * lib/stat.c: New file.  Contents mostly from xstat.in.
95990         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95991         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95992
95993         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95994         too.
95995         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95996
95997 2002-12-03  Jim Meyering  <jim@meyering.net>
95998
95999         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96000         but not semantics, to minimize the differences between these two files.
96001         (safe_read): Change comment to mention SAFE_READ_ERROR.
96002
96003         * lib/safe-read.c (IS_EINTR): Define.
96004         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96005
96006 2002-12-02  Jim Meyering  <jim@meyering.net>
96007
96008         * lib/safe-read.c (EINTR): Define.
96009         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96010         (INT_MAX): Provide fallback.
96011         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96012
96013         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96014
96015 2002-12-02  Bruno Haible  <bruno@clisp.org>
96016
96017         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96018         Define, taken from safe-read.c.
96019         (INT_MAX): Provide fallback.
96020         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96021         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96022
96023         * lib/safe-read.c (EINTR): Remove definition.
96024         (safe_read): Don't use EINTR if it is absent.
96025
96026 2002-12-01  Jim Meyering  <jim@meyering.net>
96027
96028         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96029         zero.
96030         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96031
96032 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96033
96034         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96035         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96036         with `if (! (value < limit)) abort ();', for readability.
96037
96038 2002-11-26  Karl Berry  <karl@gnu.org>
96039
96040         * lib/strdup.c: copy from libc again, with jim's ok.
96041         * lib/.cppi-disable: re-add strdup.c
96042
96043 2002-11-25  Karl Berry  <karl@gnu.org>
96044
96045         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96046         instead of "strtol.c".
96047
96048 2002-11-25  Karl Berry  <karl@gnu.org>
96049
96050         * config/install-sh: update from automake for variable quoting, $0 in
96051         error msgs, etc.
96052
96053         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96054         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96055         entry.
96056
96057 2002-11-25  Jim Meyering  <jim@meyering.net>
96058
96059         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96060
96061 2002-11-24  Karl Berry  <karl@gnu.org>
96062
96063         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96064         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96065
96066 2002-11-24  Jim Meyering  <jim@meyering.net>
96067
96068         Update from coreutils:
96069
96070         * lib/mktime.c: Merge in changes from libc.
96071
96072         Avoid a link-time failure on some Linux systems.
96073         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96074         (otherwise).
96075         (__mon_yday): Declare with the STATIC attribute.
96076         (__mktime_internal): Likewise.
96077         Based on a report from Greg Schafer.
96078
96079 2002-11-23  Jim Meyering  <jim@meyering.net>
96080
96081         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96082         Use `unsigned', not `int', as type of index.
96083
96084         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96085
96086         * lib/fsusage.c: Remove unneeded parentheses around operands of
96087         `defined'.
96088
96089 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96090
96091         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96092         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96093         so that we can be included first.
96094         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96095         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96096         No need to include stddef.h or sys/types.h any more.
96097         Surround local include files with "", not "<>".
96098         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96099         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96100         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96101         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96102         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96103         (ISPRINT): Remove; no longer needed now that we assume C89.
96104
96105         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96106         Preserve errno.
96107
96108         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96109         quotearg_char): Use SIZE_MAX rather than
96110         (size_t) -1 when we are talking about "infinity".
96111
96112         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96113
96114 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96115
96116         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96117         hint that one should use `if (! x) abort ();' rather than `assert
96118         (x);', and anyway it's one less thing to worry about configuring.
96119         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96120         hash_rehash, hash_insert): Use abort rather than assert.
96121
96122 2002-11-22  Bruno Haible  <bruno@clisp.org>
96123
96124         * lib/safe-read.h: Assume C89. Add comments.
96125         (safe_read): Change return type to size_t.
96126         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96127         byte counts > SSIZE_MAX correctly.
96128         * lib/safe-write.h: New file.
96129         * lib/safe-write.c: New file.
96130         * lib/full-read.h: New file.
96131         * lib/full-read.c: New file.
96132         * lib/full-write.h: Assume C89. Add comments.
96133         * lib/full-write.c: Include safe-write.h.
96134         (full_write): Rewritten to use safe_write.
96135         Suggested by Jim Meyering and Paul Eggert.
96136
96137 2002-11-21  Jim Meyering  <jim@meyering.net>
96138
96139         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96140
96141         Merge in changes from the coreutils.
96142
96143         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96144         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96145         <stdint.h>.
96146         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96147         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96148         int.  Work more efficiently if X is the same width as uintmax_t.
96149         Do not compare X to -1, to avoid bogus compiler warning.
96150         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96151         Don't assume that f_frsize and f_bsize are the same type.
96152
96153         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96154         warning on FreeBSD.
96155
96156         * lib/makepath.c (make_path): Restore umask *before* creating the final
96157         component.
96158         (make_path): Minor reformatting.
96159
96160         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96161         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96162         HAVE_MALLOC/HAVE_REALLOC.
96163
96164         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96165         dummy ones.  At least on GNU/Linux systems, `auto' means something
96166         else.
96167         From Michael Stone.
96168
96169 2002-11-21  Bruno Haible  <bruno@clisp.org>
96170
96171         Remove case insensitive option matching.
96172         * lib/argmatch.h (argcasematch): Remove declaration.
96173         (ARGCASEMATCH): Remove macro.
96174         (__xargmatch_internal): Remove case_sensitive argument.
96175         (XARGMATCH): Update.
96176         (XARGCASEMATCH): Remove macro.
96177         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96178         case_sensitive argument.
96179         (argcasematch): Remove function.
96180         (__xargmatch_internal): Remove case_sensitive argument.
96181         (main): Use XARGMATCH instead of XARGCASEMATCH.
96182
96183         * lib/xmalloc.c: Change compile-time error message. Add comment about
96184         required autoconf version.
96185
96186 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96187
96188         Merge argmatch cleanups from Bison.  Assume C89.
96189
96190         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96191         Include stdlib.h, for EXIT_FAILURE.
96192         Always include <string.h>, since we assume C89.
96193         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96194         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96195         Include <stddef.h> instead, since it's all we need for size_t.
96196         (PARAMS): Remove.  All uses removed.
96197         (ARRAY_CARDINALITY): Do not bother to #undef.
96198         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96199         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96200         Remove unnecessary parentheses.
96201         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96202         Insert necessary parentheses.
96203         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96204         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96205
96206 2002-11-19  Bruno Haible  <bruno@clisp.org>
96207
96208         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96209         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96210
96211         * lib/mbswidth.h (PARAMS): Remove macro.
96212         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96213         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96214
96215         * lib/gcd.h (PARAMS): Remove macro.
96216         (gcd): Use ANSI C function declarations.
96217         * lib/gcd.c (gcd): Likewise.
96218
96219 2002-11-15  Bruno Haible  <bruno@clisp.org>
96220
96221         * lib/strcspn.c: Include <stddef.h>.
96222         (strcspn): Use ANSI C function declaration. Change return type to
96223         size_t. Use NULL.
96224         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96225         (strpbrk): Use NULL.
96226         * lib/strpbrk.h (PARAMS): Remove macro.
96227         (strpbrk): Use ANSI C function declaration.
96228         * lib/strstr.c: Don't include <sys/types.h>.
96229         * lib/strstr.h (PARAMS): Remove macro.
96230         (strstr): Use ANSI C function declarations.
96231
96232 2002-11-14  Karl Berry  <karl@gnu.org>
96233
96234         * config/mkinstalldirs: `do' on separate line, instead of
96235         `for var; do'.
96236
96237 2002-11-06  Bruno Haible  <bruno@clisp.org>
96238
96239         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96240         * lib/gcd.c (gcd): Likewise.
96241
96242 2002-11-05  Bruno Haible  <bruno@clisp.org>
96243
96244         * lib/gcd.h: New file, from gettext-0.11.5.
96245         * lib/gcd.c: New file, from gettext-0.11.5.
96246
96247 2002-11-05  Bruno Haible  <bruno@clisp.org>
96248
96249         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96250         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96251         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96252         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96253
96254         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96255         <libintl.h>.
96256         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96257         <libintl.h>.
96258
96259         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96260         * lib/human.c: Include gettext.h instead of <libintl.h>.
96261         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96262         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96263         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96264         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96265         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96266         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96267         (textdomain): Remove definition.
96268         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96269
96270         * lib/long-options.c: Remove include of <libintl.h> and definition of
96271         _.
96272         * lib/same.c: Remove include of <libintl.h> and definition of _.
96273
96274 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96275
96276         * lib/config.charset: A few additions for Solaris.
96277
96278 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96279
96280         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96281         * lib/localcharset.c (locale_charset): Declare as extern "C".
96282
96283 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96284
96285         * lib/config.charset: msdos in uk_UA uses CP1125.
96286
96287 2002-11-04  Bruno Haible  <bruno@clisp.org>
96288
96289         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96290         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96291         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96292         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96293         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96294
96295 2002-11-04  Bruno Haible  <bruno@clisp.org>
96296
96297         * lib/localcharset.c (locale_charset): Don't return an empty string.
96298
96299 2002-11-04  Bruno Haible  <bruno@clisp.org>
96300
96301         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96302         aliases.
96303
96304 2002-11-04  Bruno Haible  <bruno@clisp.org>
96305
96306         * lib/config.charset: Update for newest glibc. Add canonical names
96307         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96308
96309 2002-11-04  Bruno Haible  <bruno@clisp.org>
96310
96311         * lib/config.charset: Add support for NetBSD.
96312
96313 2002-11-04  Bruno Haible  <bruno@clisp.org>
96314
96315         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96316
96317 2002-11-01  Bruno Haible  <bruno@clisp.org>
96318
96319         * configure.in: Add AC_CONFIG_AUX_DIR call.
96320         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96321         test/Makefile.
96322         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96323
96324 2002-09-28  Karl Berry  <karl@gnu.org>
96325
96326         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96327         installed automake until the next release, since changes have been
96328         made.
96329
96330 2002-09-25  Karl Berry  <karl@gnu.org>
96331
96332         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96333         * lib/getopt*: copy from libc/posix.
96334         * lib/gettext.h: copy from gettext.
96335         * lib/.cppi-disable: add strdup.c, gettext.h.
96336
96337 2002-09-25  Karl Berry  <karl@gnu.org>
96338
96339         * config/srclist.txt: enable gettext.h check.
96340         * config/config.{guess,sub}: update from prep.
96341         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96342                 from automake 1.6.3.
96343         See srclist*.
96344
96345 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96346
96347         * regex.c (PATFETCH): Remove the translating fetch.
96348         (PATFETCH_RAW): Rename to PATFETCH.
96349         (set_image_of_range): New fun.
96350         (SET_RANGE_TABLE_WORK_AREA): Use it.
96351         (regex_compile): Don't translate the pattern chars so eagerly.
96352         Only do it when inserting an `exactn' bytecode or when handling
96353         a char-range.
96354         (mutually_exclusive_p): Avoid empty statement.
96355
96356 2002-07-06  Jim Meyering  <meyering@lucent.com>
96357
96358         * m4/README: Don't mention Makefile.am.in.
96359         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96360
96361 2002-07-01  Jim Meyering  <meyering@lucent.com>
96362
96363         * lib/c-stack.c: Include sys/time.h.
96364         From Volker Borchert.
96365
96366 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96367
96368         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96369
96370 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96371
96372         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96373         New macro.  Use it uniformly instead of
96374         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96375         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96376         reported by Vin Shelton.
96377
96378 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96379
96380         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96381         Do not assume SA_SIGINFO behavior.
96382         Bug reported by Jim Meyering on NetBSD 1.5.2.
96383
96384 2002-06-22  Jim Meyering  <meyering@lucent.com>
96385
96386         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96387         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96388
96389         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96390         now that configure.ac uses AC_GNU_SOURCE.
96391         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96392         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96393
96394         Update to latest tools.  Suggestions from Paul Eggert.
96395         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96396         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96397         * m4/fnmatch.m4: Likewise.
96398         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96399         to AC_HEADER_STDBOOL
96400
96401 2002-06-22  Jim Meyering  <meyering@lucent.com>
96402
96403         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96404         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96405
96406 2002-06-22  Jim Meyering  <meyering@lucent.com>
96407
96408         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96409
96410         * lib/exitfail.c, exitfail.h: Likewise.
96411         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96412
96413         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96414         of fnmatch.h.
96415         (EXTRA_DIST): Add fnmatch_loop.c.
96416         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96417
96418         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96419         * lib/fnmatch.c: Update from diffutils-2.8.2.
96420         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96421         * lib/fnmatch.h: Remove file.
96422
96423 2002-06-21  Jim Meyering  <meyering@lucent.com>
96424
96425         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96426         * m4/mbrtowc.m4: Likewise.
96427
96428         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96429         * m4/mbswidth.m4: Reflect name change:
96430         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96431         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96432
96433         * m4/lib-link.m4: Update from gettext-0.11.2.
96434         * m4/gettext.m4: Likewise.
96435
96436         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96437         From Alfred M. Szmidt.
96438
96439 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96440
96441         * lib/file-type.h: Report an error if neither S_ISREG nor
96442         S_IFREG is defined, instead of using a test specific to glibc
96443         2.2.  This should be safe, since POSIX requires S_ISREG and
96444         Unix Version 7 had S_IFREG.  We don't need to check for
96445         <sys/types.h> since we don't use any symbols that it defines.
96446
96447 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96448
96449         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96450         $@-t, so that each temporary file name is unique and valid in the first
96451         8 characters, for operation under DOS.
96452
96453 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96454
96455         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96456
96457 2002-06-15  Jim Meyering  <meyering@lucent.com>
96458
96459         Work even with DJGPP 2.03, which lacks support for symlinks.
96460         From Richard Dawe.
96461         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96462         is defined.
96463         * lib/lchown.c (S_ISLNK): Likewise.
96464
96465 2002-06-15  Jim Meyering  <meyering@lucent.com>
96466
96467         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96468         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96469         have been included before this file.
96470
96471 2002-06-14  Jim Meyering  <meyering@lucent.com>
96472
96473         * lib/file-type.h: Use the version from diffutils-2.8.2.
96474         * lib/file-type.c: Likewise.
96475
96476 2002-06-07  Jim Meyering  <meyering@lucent.com>
96477
96478         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96479         They're needed at least for NetBSD 1.5.2.
96480         ($statxfs_includes): Include those same headers.
96481         ($statxfs_includes): Include sys/vfs.h if available.
96482         ($statxfs_includes): Likewise for sys/statvfs.h.
96483         Check for the following members in both structs statfs and statvfs:
96484         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96485
96486 2002-06-01  Jim Meyering  <meyering@lucent.com>
96487
96488         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96489         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96490
96491 2002-05-28  Jim Meyering  <meyering@lucent.com>
96492
96493         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96494         Reported by Volker Borchert.
96495
96496 2002-05-27  Jim Meyering  <meyering@lucent.com>
96497
96498         Fix a problem seen only on nonconforming systems whereby ls.c's
96499         use of localtime, and then of gettimeofday would cause trouble:
96500         the localtime call used to initialize rpl_gettimeofday's save
96501         mechanism would clobber ls's current local time information so
96502         that in any long listing the first file would always be listed
96503         with date 1970-01-01.  Analysis by Volker Borchert.
96504
96505         * lib/gettimeofday.c (localtime): Undefine.
96506         (rpl_localtime): New function.
96507
96508 2002-05-27  Jim Meyering  <meyering@lucent.com>
96509
96510         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96511         localtime.
96512
96513         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96514         use the replacement function; it wouldn't resolve at link time.
96515         Reported by Volker Borchert.
96516
96517 2002-05-22  Jim Meyering  <meyering@lucent.com>
96518
96519         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96520         file-type.h.
96521         * lib/file-type.h: New file.
96522         * lib/file-type.c (file_type): New file/function.  Extracted from
96523         diffutils.
96524
96525 2002-04-30  Jim Meyering  <meyering@lucent.com>
96526
96527         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96528
96529 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96530
96531         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96532
96533 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96534
96535         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96536         Do not check for alloca.h (no longer used) or stdbool.h (was never
96537         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96538
96539 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96540
96541         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96542
96543 2002-04-29  Jim Meyering  <meyering@lucent.com>
96544
96545         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96546         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96547         Use AC_FUNC_STRNLEN here instead.
96548
96549         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96550         With autoconf-2.53a, it's part of AC_PROG_CC.
96551
96552 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96553
96554         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96555         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96556
96557 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96558
96559         * lib/sig2str.h, lib/sig2str.c: New files.
96560         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96561
96562 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96563
96564         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96565         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96566         of 127, since 64 is the largest conceivable number for ancient
96567         nonstandard hosts.
96568         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96569
96570 2002-04-28  Jim Meyering  <meyering@lucent.com>
96571
96572         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96573
96574 2002-04-24  Jim Meyering  <meyering@lucent.com>
96575
96576         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96577         (jm_PREREQ): Use it.
96578
96579         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96580         mach/mach.h fcntl.h.
96581         Check for this function: setlocale.
96582
96583 2002-04-24  Jim Meyering  <meyering@lucent.com>
96584
96585         * lib/gettext.h: New file, from Gettext.
96586         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96587         (libfetish_a_SOURCES): Add gettext.h.
96588
96589 2002-04-16  Jim Meyering  <meyering@lucent.com>
96590
96591         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96592         ut_pid, ut_id, ut_exit.
96593
96594 2002-04-16  Jim Meyering  <meyering@lucent.com>
96595
96596         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96597         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96598         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96599
96600 2002-04-12  Jim Meyering  <meyering@lucent.com>
96601
96602         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96603         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96604         existence of the getmntinfo function.  Needed for Darwin 5.3.
96605
96606         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96607         This is necessary at least on Darwin 5.3.
96608
96609         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96610         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96611         strnlen.o in the library, and that makes some versions of ranlib
96612         object.
96613
96614 2002-04-12  Jim Meyering  <meyering@lucent.com>
96615
96616         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96617
96618 2002-04-09  Jim Meyering  <meyering@lucent.com>
96619
96620         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96621         to be more precise.  Rather than saying we're checking whether the
96622         function `works', say what we're testing.
96623         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96624         Reported by Bruno Haible.
96625
96626 2002-03-10  Jim Meyering  <meyering@lucent.com>
96627
96628         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96629         Suggestion from Santiago Vila.
96630
96631 2002-03-08  Jim Meyering  <meyering@lucent.com>
96632
96633         * lib/rename.c: Mention that this wrapper is needed also on
96634         mips-dec-ultrix4.4 systems.
96635
96636 2002-03-02  Jim Meyering  <meyering@lucent.com>
96637
96638         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96639         not HAVE_CLOCK_SETTIME.
96640
96641 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96642
96643         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96644         Check for clock_settime.
96645
96646 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96647
96648         * lib/nanosleep.h: Rename to....
96649         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96650
96651         * lib/gettime.c: New file.
96652         * lib/settime.c: New file.
96653         * lib/stime.c: Remove.
96654
96655         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96656         timespec.h.  Remove nanosleep.h.
96657
96658 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96659
96660         * m4/acl.m4: New file.
96661         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96662         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96663
96664 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96665
96666         * lib/acl.c, lib/acl.h: New files.
96667         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96668
96669 2002-02-24  Jim Meyering  <meyering@lucent.com>
96670
96671         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96672         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96673         cause trouble.  Reported by Nelson Beebe.
96674
96675 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96676
96677         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96678         compilers that don't know that xalloc_die never returns.
96679
96680 2002-02-20  Jim Meyering  <meyering@lucent.com>
96681
96682         * lib/getdate.c: Regenerate using bison-1.33.
96683
96684 2002-02-17  Jim Meyering  <meyering@lucent.com>
96685
96686         * config/config.guess (main): Don't use `head -1'; it's no longer
96687         portable. Use `sed 1q' instead.
96688
96689 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96690
96691         * m4/codeset.m4: Upgrade to gettext-0.11.
96692         * m4/gettext.m4: Upgrade to gettext-0.11.
96693         * m4/glibc21.m4: Upgrade to gettext-0.11.
96694         * m4/iconv.m4: Upgrade to gettext-0.11.
96695         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96696         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96697         * m4/lib-ld.m4: New file, from gettext-0.11.
96698         * m4/lib-link.m4: New file, from gettext-0.11.
96699         * m4/lib-prefix.m4: New file, from gettext-0.11.
96700         * m4/progtest.m4: Upgrade to gettext-0.11.
96701
96702 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96703
96704         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96705         (jm_PREREQ): Use it.
96706
96707 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96708
96709         * lib/posixver.c, lib/posixver.h: New files.
96710         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96711
96712 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96713             Bruno Haible  <bruno@clisp.org>
96714
96715         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96716         (fwrite_success_callback): New declaration.
96717         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96718         print_unicode_char. Call failure callback instead of error.
96719         (fwrite_success_callback): New function.
96720         (exit_failure_callback): New function.
96721         (fallback_failure_callback): New function.
96722         (print_unicode_char): Call unicode_to_mb.
96723
96724 2002-01-26  Jim Meyering  <meyering@lucent.com>
96725
96726         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96727         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96728
96729 2002-01-26  Jim Meyering  <meyering@lucent.com>
96730
96731         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96732
96733 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96734
96735         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96736
96737 2002-01-22  Jim Meyering  <meyering@lucent.com>
96738
96739         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96740         Otherwise, some versions of automake would omit the rule that makes
96741         Makefile from Makefile.in.
96742
96743 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96744
96745         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96746         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96747         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96748         (memcoll): Set errno to zero if there is no error.
96749
96750         * lib/quotearg.c (quotearg_buffer_restyled):
96751         Fix bug with quoting buffers containing NUL when backslashing escapes.
96752         This bug was exposed by the other changes in this patch.
96753         (quotearg_n_options): New arg ARGSIZE.
96754         All callers changed.
96755         (quoting_options_from_style): New function.
96756         (quotearg_n_style): Use it.
96757         (quotearg_n_style_mem): New function.
96758
96759         * lib/quotearg.h (quotearg_n_style_mem): New function.
96760
96761 2002-01-19  Jim Meyering  <meyering@lucent.com>
96762
96763         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96764         Remove useless quotes: DF_PROG="df".
96765         * m4/strnlen.m4: New file.
96766
96767 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96768
96769         * lib/backupfile.c (ISDIGIT): Comment fix.
96770         * lib/getdate.y (ISDIGIT): Likewise.
96771         * lib/posixtm.c (ISDIGIT, year): Likewise.
96772         * lib/strverscmp.c (ISDIGIT): Likewise.
96773         * lib/userspec.c (ISDIGIT): Likewise.
96774
96775 2002-01-16  Jim Meyering  <meyering@lucent.com>
96776
96777         * lib/getdate.y: Add three semicolons, each just before a closing
96778         brace. Bison (as of version 1.31) no longer papers over that mistake.
96779
96780 2002-01-05  Jim Meyering  <meyering@lucent.com>
96781
96782         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96783
96784 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96785
96786         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96787         not silently exit merely because the output buffer happens to
96788         have nothing pending.
96789
96790 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96791
96792         See the big note in ../ChangeLog.
96793         * lib/human.c (suffixes): Prefer K to k for 1024.
96794         (generate_suffix_backwards): New function.
96795         (human_readable_inexact): Use it.
96796         * lib/xstrtol.c (__xstrtol): If there is no number but there
96797         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96798         Accept 'K' as well as 'k'.
96799
96800 2001-12-15  Jim Meyering  <meyering@lucent.com>
96801
96802         * lib/regex.h (__restrict_arr): Update from libc.
96803
96804         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96805         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96806         (STREQ): Define.
96807
96808 2001-12-14  Jim Meyering  <meyering@lucent.com>
96809
96810         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96811         Suggestion from Bruno Haible.
96812
96813 2001-12-10  Jim Meyering  <meyering@lucent.com>
96814
96815         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96816         xrealloc, Instead, include "xalloc.h".
96817         (initbuffer): Don't cast xmalloc return value to char*.
96818         (readline): Reword comment.
96819         Don't cast xrealloc return value to char*
96820         Return NULL, not 0.
96821
96822 2001-12-09  Jim Meyering  <meyering@lucent.com>
96823
96824         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96825         about `signed and unsigned type in conditional expression'.
96826         * lib/posixtm.c (posix_time_parse): Likewise.
96827
96828         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96829
96830         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96831         to avoid a pedantic warning.
96832
96833         * lib/getstr.c: Don't include assert.h.
96834         (getstr): Remove warning-evoking assertions.
96835         Return -1 if offset parameter is out of bounds.
96836         Change the type of a local from int to size_t.
96837
96838         * lib/strftime.c (my_strftime_localtime_r): Include this function
96839         definition in the `#if ! HAVE_TM_GMTOFF' block.
96840
96841         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96842         Include xalloc.h instead.
96843
96844 2001-12-02  Jim Meyering  <meyering@lucent.com>
96845
96846         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96847         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96848         included.
96849
96850         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96851         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96852
96853 2001-11-30  Akim Demaille  <akim@epita.fr>
96854
96855         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96856         before being defined.
96857
96858 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96859
96860         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96861         First arg is int, not unsigned.
96862         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
96863         (SIZE_MAX, UINT_MAX): New macros.
96864         (quotearg_n_options): Abort if N is negative.
96865         Avoid overflow check on hosts where size_t is 64 bits and int
96866         is 32 bits, as overflow is impossible there.
96867         Fix off-by-one typo that caused unnecessary reallocation.
96868
96869 2001-11-27  Jim Meyering  <meyering@lucent.com>
96870
96871         * lib/tempname.c: Merge with version from libc.
96872         * lib/regex.c: Likewise.
96873
96874         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
96875         systems for which STDC_HEADERS is 0, it was not included, resulting in
96876         a warning about an integer-to-pointer conversion problem with getenv.
96877         Reported by Volker Borchert.
96878
96879 2001-11-26  Jim Meyering  <meyering@lucent.com>
96880
96881         * lib/gtod.h: Remove file.
96882         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
96883         * lib/gettimeofday.c: Don't include gtod.h.
96884         (GTOD_init): Remove function.
96885         (rpl_gettimeofday): Do its job here instead, rather than aborting.
96886         Suggestion from Volker Borchert.
96887
96888 2001-11-23  Jim Meyering  <meyering@lucent.com>
96889
96890         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
96891         it.
96892         * lib/hash.c (struct hash_table): Define it here instead.
96893
96894 2001-11-22  Jim Meyering  <meyering@lucent.com>
96895
96896         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
96897
96898 2001-11-20  Jim Meyering  <meyering@lucent.com>
96899
96900         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
96901         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
96902
96903 2001-11-19  Jim Meyering  <meyering@lucent.com>
96904
96905         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
96906         directory.  Use "conftestXXXXXX" as the template.
96907         Suggestion from Paul Eggert.
96908
96909         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
96910         immediately, so the test doesn't mistakenly hit the max-open-files
96911         limit.
96912
96913 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96914
96915         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96916         (TEMPORARIES): New macro.
96917         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96918         removes an artificial limitation (e.g. HP-UX 10.20, where
96919         TMP_MAX is 17576).
96920
96921 2001-11-18  Jim Meyering  <meyering@lucent.com>
96922
96923         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96924
96925 2001-11-18  Jim Meyering  <meyering@lucent.com>
96926
96927         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96928         on SunOS 4.
96929
96930         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96931         files will be created before anything else.
96932
96933 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96934
96935         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96936         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96937
96938 2001-11-17  Jim Meyering  <meyering@lucent.com>
96939
96940         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96941         Prompted by a report from Bob Proulx.
96942
96943         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96944         Instead, require UTILS_FUNC_MKSTEMP.
96945
96946 2001-11-17  Jim Meyering  <meyering@lucent.com>
96947
96948         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96949         Now, that's done as part of AC_FUNC_STRTOD.
96950
96951 2001-11-17  Jim Meyering  <meyering@lucent.com>
96952
96953         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96954         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96955         rather than group writable.  Patch by Juan F. Codagnone.
96956
96957         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96958         xrealloc, Instead, include "xalloc.h".
96959
96960         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96961         Remove explicit declarations of xmalloc, xrealloc,
96962         and xstrdup.  Instead, include "xalloc.h".
96963
96964         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96965         unlocked-io.h.
96966         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96967         Likewise.
96968         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96969
96970         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96971         Reported by Padraig Brady.
96972
96973         * lib/mkstemp.c: #undef mkstemp.
96974         Include config.h.
96975         (rpl_mkstemp): Rename from mkstemp.
96976         Protoize.
96977
96978 2001-11-16  Jim Meyering  <meyering@lucent.com>
96979
96980         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96981         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96982         determine the amount of total physical memory, use pstat_getstatic.
96983         HPUX-11 doesn't define _SC_PHYS_PAGES.
96984         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96985         If sysconf couldn't be used to determine the amount of available
96986         physical memory, use both pstat_getstatic and pstat_getdynamic.
96987         Based on a patch from Bob Proulx.
96988
96989 2001-11-10  Jim Meyering  <meyering@lucent.com>
96990
96991         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96992         (jm_PREREQ): Use it.
96993
96994 2001-11-09  Jim Meyering  <meyering@lucent.com>
96995
96996         * m4/jm-macros.m4: Require autoconf-2.52f.
96997         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96998         Use these AC_-prefixed names, not the AM_-prefixed ones.
96999
97000         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97001
97002 2001-11-05  Jim Meyering  <meyering@lucent.com>
97003
97004         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97005
97006 2001-11-04  Jim Meyering  <meyering@lucent.com>
97007
97008         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97009         $DEFS.
97010
97011 2001-11-03  Jim Meyering  <meyering@lucent.com>
97012
97013         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97014         of AC_DEFUN.
97015
97016         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97017         know the name of the variable in the macro definition.
97018
97019 2001-11-03  Jim Meyering  <meyering@lucent.com>
97020
97021         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97022         in argmatch_to_argument call.
97023
97024         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97025         argument.
97026
97027         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97028         e.g., a fault due to an attempt to free a NULL pointer.
97029
97030 2001-11-01  Jim Meyering  <meyering@lucent.com>
97031
97032         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97033         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97034
97035 2001-11-01  Jim Meyering  <meyering@lucent.com>
97036
97037         * lib/dirfd.c, lib/dirfd.h: New files.
97038         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97039
97040         * lib/hash.c (hash_print) [TESTING]: Clean up.
97041
97042 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97043
97044         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97045         to avoid a warning if -Wall.
97046
97047 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97048
97049         * README: New file
97050         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97051         (per RMS's instructions, this is now the canonical source)
97052         * lgpl/, gpl/: New directories.
97053
97054 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97055
97056         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97057
97058 2001-10-21  Jim Meyering  <meyering@lucent.com>
97059
97060         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97061         this code would end up calling gettext even in packages built
97062         with --disable-nls.
97063         * lib/getopt.c (_): Likewise.
97064         * lib/regex.c (_): Likewise.
97065
97066 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97067
97068         * m4/error.m4 (jm_PREREQ_ERROR):
97069         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97070         AC_FUNC_STRERROR_R does that.
97071         Check for strerror declaration.
97072
97073         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97074         are supposed to have them these days.
97075         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97076         Merge changes from latest Autoconf CVS.
97077         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97078         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97079         POSIX decided to standardize on the int flavor of strerror_r.
97080
97081 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97082
97083         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97084         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97085         Use strerror_r that is only a macro, even if it is not a function.
97086         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97087         (private_strerror): Use prototypes, not old-style function definition.
97088         (print_errno_message): New function.
97089         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97090         char*-flavored one.
97091         (error_tail, error, error_at_line): Use it.
97092
97093 2001-10-11  Jim Meyering  <meyering@lucent.com>
97094
97095         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97096         and quote_n (1, ... to avoid clobbering a buffer.
97097
97098 2001-10-05  Jim Meyering  <meyering@lucent.com>
97099
97100         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97101         hash-pjw.h.
97102         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97103         * lib/hash-pjw.h: New file.
97104
97105 2001-09-30  Jim Meyering  <meyering@lucent.com>
97106
97107         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97108         `struct fsstat' has the `f_fstypename' member.
97109         Use that to define FS_TYPE, which is now used to make
97110         the getfsstat link test tighter.
97111
97112 2001-09-30  Jim Meyering  <meyering@lucent.com>
97113
97114         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97115         Include <sys/ucred.h>, for Apple Darwin.
97116         Include sys/mount.h and sys/fs_types.h only if available.
97117         (FS_TYPE): Define.
97118         (read_filesystem_list): Use FS_TYPE.
97119
97120 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97121
97122         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97123         a boolean context.
97124
97125 2001-09-29  Jim Meyering  <meyering@lucent.com>
97126
97127         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97128         [one-argument getmntent function]): Include stdio.h before mntent.h.
97129         SunOS 4.1.x needs it for the declaration of `FILE'.
97130         Patch by Volker Borchert.
97131
97132         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97133         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97134         sys/fs_types.h, and make the link-test for getfsstat guard #include
97135         directives with appropriate #if HAVE_*_H tests so that we can
97136         detect getfsstat on Apple Darwin1.3.7 systems.
97137         Reported by Nelson Beebe.
97138         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97139
97140 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97141
97142         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97143         #defines strtoimax.  Also treat the other strto* functions
97144         like strtoimax.
97145
97146         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97147         Check for strtoul and strtoumax,
97148         as those declarations are made even in the signed case.
97149         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97150         Likewise, for strtol and strtoimax.
97151
97152 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97153
97154         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97155         #defines strtoimax.  Also treat the other strto* functions
97156         like strtoimax.
97157
97158         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97159         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97160         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97161
97162 2001-09-26  Jim Meyering  <meyering@lucent.com>
97163
97164         Most macros in unlocked-io.h had the wrong number of arguments.
97165         * lib/gen-uio: New script.
97166         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97167         * lib/unlocked-io.hin: Remove file.
97168         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97169         rather than trying to embed it here.
97170         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97171         Reported by Padraig Brady.
97172
97173 2001-09-25  Volker Borchert  <bt@teknon.de>
97174
97175         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97176         `result'.
97177
97178 2001-09-24  Jim Meyering  <meyering@lucent.com>
97179
97180         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97181
97182 2001-09-23  Jim Meyering  <meyering@lucent.com>
97183
97184         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97185         instead of the mere test for existence of mntent.h.  The latter
97186         would get a false-positive on AIX 3.4 systems.
97187         In the outer getmntent if-block, don't die if neither of the getmntent
97188         tests succeeds.  Instead, just fall through and continue with the
97189         remaining tests.
97190
97191 2001-09-23  Jim Meyering  <meyering@lucent.com>
97192
97193         * lib/mountlist.c: Remove useless parentheses in #if directives.
97194         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97195         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97196
97197 2001-09-22  Jim Meyering  <meyering@lucent.com>
97198
97199         * m4/gettext.m4: New file.  From gettext.
97200         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97201         * m4/progtest.m4: Likewise
97202         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97203         * m4/glibc21.m4: Likewise.
97204
97205         * m4/libintl.m4: Remove.  No longer used.
97206
97207 2001-09-22  Jim Meyering  <meyering@lucent.com>
97208
97209         * lib/localcharset.c: Update from latest gettext.
97210         * lib/config.charset: Likewise.
97211
97212 2001-09-20  Jim Meyering  <meyering@lucent.com>
97213
97214         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97215         strtoimax.
97216         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97217         strtoumax.
97218
97219 2001-09-20  Jim Meyering  <meyering@lucent.com>
97220
97221         * lib/xstrtol.c (strtoimax): Guard declaration with
97222         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97223         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97224         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97225         (strtoumax): Likewise, for completeness (it wasn't necessary).
97226
97227 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97228
97229         * lib/strtoimax.c (HAVE_LONG_LONG):
97230         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97231         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97232         to work around bug in IBM C compiler.
97233
97234 2001-09-17  Jim Meyering  <meyering@lucent.com>
97235
97236         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97237         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97238         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97239         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97240         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97241         whenever the right hand side need not be expanded by the shell.
97242
97243 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97244
97245         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97246         library.  It's not correct, as some older glibcs are buggy.
97247         fnmatch wasn't fixed until glibc 2.2.
97248
97249         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97250         special shell magic here.
97251
97252 2001-09-16  Jim Meyering  <meyering@lucent.com>
97253
97254         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97255         * m4/jm-macros.m4: Require it.
97256
97257 2001-09-16  Jim Meyering  <meyering@lucent.com>
97258
97259         * lib/mkdir.c: New file.
97260
97261 2001-09-15  Jim Meyering  <meyering@lucent.com>
97262
97263         * m4/jm-macros.m4: Check for help2man.
97264
97265 2001-09-11  Jim Meyering  <meyering@lucent.com>
97266
97267         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97268         The body, by Paul Eggert, was moved here from configure.in.
97269         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97270
97271 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97272
97273         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97274         (jm_PREREQ): Use it.
97275
97276 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97277
97278         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97279         Use ssize_t, not int, to store result of readlink.
97280         Check for ssize_t overflow as well as size_t overflow,
97281         as POSIX says the result of readlink is implementation-defined
97282         when ssize_t overflows.
97283         Remove unnecessary cast to char*.
97284         Use free+malloc instead of realloc, as the storage doesn't need
97285         to be preserved and it's clearer and can be more efficient that way.
97286         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97287         * lib/xreadlink.h (xreadlink): Update prototype.
97288
97289 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97290
97291         * lib/xgetcwd.c: Revert some of the previous change; intead,
97292         fix the HAVE_GETCWD_NULL code to behave more like the
97293         !HAVE_GETCWD_NULL code used to.
97294
97295         Include "xalloc.h".
97296         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97297         invoke xalloc_die.
97298
97299 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97300
97301         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97302         sys/param.h, as pathmax.h includes them.
97303
97304 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97305
97306         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97307         (jm_PREREQ_XGETCWD): New macro.
97308
97309         * m4/getcwd.m4: New file.
97310
97311 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97312
97313         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97314         like the HAVE_GETCWD_NULL code.
97315         Include pathmax.h if not HAVE_GETCWD.
97316         Do not include xalloc.h.
97317         (INITIAL_BUFFER_SIZE): New symbol.
97318         Do not use xmalloc / xrealloc, since the caller is responsible for
97319         handling errors.  Preserve errno around `free' during failure.
97320         Do not overrun buffer when using getwd.
97321
97322 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97323
97324         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97325         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97326         getcwd (NULL, 0).
97327
97328 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97329
97330         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97331         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97332         spotted by Jim Meyering.
97333
97334 2001-09-03  Jim Meyering  <meyering@lucent.com>
97335
97336         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97337         failure.
97338
97339 2001-09-02  Jim Meyering  <meyering@lucent.com>
97340
97341         * lib/error.c: Update from GNU libc.
97342
97343 2001-09-01  Jim Meyering  <meyering@lucent.com>
97344
97345         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97346         Used by df.
97347
97348 2001-09-01  Jim Meyering  <meyering@lucent.com>
97349
97350         * lib/xreadlink.c: New file.
97351         * lib/xreadlink.h: New file.
97352         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97353         xreadlink.h.
97354
97355         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97356         doesn't conflict with sparc Solaris 7's definition in
97357         /usr/include/sys/int_types.h.
97358
97359         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97360         files.
97361         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97362         and strncasecmp as r-values.  Unixware didn't have declarations.
97363
97364 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97365
97366         * lib/xstrtol.h: Add copyright notice.
97367         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97368         LONGINT_INVALID_SUFFIX_CHAR.
97369
97370 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97371
97372         * lib/xstrtol.c (strtoimax): New decl.
97373
97374 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97375
97376         * lib/xgetcwd.c: Don't include pathmax.h.
97377         Include stdlib.h and unistd.h if available.
97378         Include xalloc.h.
97379         (xmalloc, xstrdup, free): Remove decls.
97380         (xgetcwd): Don't assume sizes fit in unsigned.
97381         Check for overflow when computing sizes.
97382         Simplify reallocation code.
97383
97384 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97385
97386         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97387         a directory's st_size can have an arbitrary value, so the old
97388         usage could waste an arbitrary amount of memory.  All uses
97389         changed.
97390         * lib/savedir.h: Update prototype.
97391
97392 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97393
97394         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97395
97396         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97397         old strtoimax.c.
97398
97399         Also, make the following further changes to make this file's
97400         configuration more similar to that of strtol.c:
97401         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97402         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97403         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97404         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97405         changed to signed values.
97406
97407         And make the following changes as well:
97408         Fix copyright notice, as 1999 was missing.
97409         (verify): New macro.
97410         (strtoimax): Check sizes at compile-time, not run-time.
97411         Prefer strtol to strtoll if both work.
97412         (main): Remove; it was not that useful and was a pain to maintain.
97413
97414         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97415
97416 2001-08-31  Jim Meyering  <meyering@lucent.com>
97417
97418         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97419         Use an initial, malloc'd, buffer of length 128 rather than
97420         a statically allocated one of length 1024.
97421
97422 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97423
97424         Simplify code, partly by assuming autoconf 2.52 semantics.
97425
97426         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97427
97428         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97429         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97430         All uses removed.
97431         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97432         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97433         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97434         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97435         jm_AC_HEADER_INTTYPES_H.
97436         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97437
97438         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97439
97440         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97441         Quote first arg of AC_DEFUN.
97442         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97443         since they are needed to parse the include file even if we need
97444         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97445         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97446         but with opposite signedness.
97447
97448 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97449
97450         Merge 'exclude' changes from tar 1.13.22.
97451         This fixes one or two unlikely storage allocation overflow bugs,
97452         but doesn't change user-visible behavior otherwise.
97453
97454 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97455
97456         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97457         (jm_PREREQ_EXCLUDE): New macro.
97458
97459 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97460
97461         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97462         tm to be declared.
97463
97464 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97465
97466         * lib/hash.c: Remove '2001' from copyright notice.
97467
97468 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97469
97470         * lib/full-write.h: New file.
97471         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97472         * lib/full-write.c: Correct credits, as cccp.c no longer
97473         exists and anyway it was so heavily changed from the old cccp
97474         code as to be unrecognizable.  Include full-write.h.
97475         (full_write): Return size_t, with short writes meaning failure.
97476         All callers changed.  This fixes a bug with large buffers
97477         on 64-bit hosts.
97478         * lib/utime.c: Include full-write.h.
97479
97480 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97481
97482         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97483         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97484         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97485         Include if available.
97486         (<xalloc.h>): Include
97487         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97488         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97489         collide with FNM macros.
97490         (struct patopts): New struct.
97491         (struct exclude): Use it, as exclude patterns now come with options.
97492         (new_exclude): Support above changes.
97493         (new_exclude, add_exclude_file):
97494         Initial size must now be a power of two to simplify overflow checking.
97495         (free_exclude, fnmatch_no_wildcards): New function.
97496         (excluded_filename): No longer requires options arg, as the options
97497         are determined by add_exclude.  Now returns bool, not int.
97498         (excluded_filename, add_exclude):
97499         Add support for the fancy new exclusion options.
97500         (add_exclude, add_exclude_file): Now takes int options arg.
97501         Check for arithmetic overflow when computing sizes.
97502         (add_exclude_file): xrealloc might modify errno, so don't
97503         realloc until after errno might be used.
97504
97505         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97506         New macros.
97507         (free_exclude): New decl.
97508         (add_exclude, add_exclude_file): Now takes int options arg.
97509         (excluded_filename): No longer requires options arg, as the options
97510         are determined by add_exclude.  Now returns bool, not int.
97511
97512 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97513
97514         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97515
97516 2001-08-27  Jim Meyering  <meyering@lucent.com>
97517
97518         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97519
97520         * lib/version-etc.c (N_): Remove definition.
97521         Revert most of last change.
97522         Instead, simply don't mark the `Copyright...' string for translation.
97523         Based on advice from Paul Eggert.
97524
97525         * lib/strtoxmax.c: Tweak comment.
97526
97527 2001-08-26  Jim Meyering  <meyering@lucent.com>
97528
97529         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97530
97531         * m4/xstrtoimax.m4: New file.
97532         * m4/xstrtoumax.m4: Add comments explaining why we
97533         AC_REPLACE_FUNCS(strtol).
97534
97535 2001-08-26  Jim Meyering  <meyering@lucent.com>
97536
97537         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97538         of copyright with `%s' so translators don't get an untranslated
97539         message in 2002.
97540         (COPYRIGHT_YEAR): Define.
97541         (version_etc): Use fprintf rather than fputs.
97542         Suggestion from Ulrich Drepper.
97543
97544         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97545
97546         * lib/strtoll.c: New file, from GNU libc.
97547         * lib/xstrtoimax.c: New file.
97548
97549         * lib/xstrtol.h: Add xstrtoimax.
97550         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97551         * lib/strtoimax.c: New file.  Likewise, but first define
97552         STRTOUXMAX_SIGNED.
97553
97554         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97555         ...
97556         * lib/strtoxmax.c: ... then renamed to this.
97557
97558 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97559
97560         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97561         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97562         (jm_AC_TYPE_INTMAX_T): New macro.
97563         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97564
97565         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97566
97567         * m4/longlong.m4: Renamed from ulonglong.m4.
97568         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97569         * m4/uintmax_t.m4: Removed.
97570
97571 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97572
97573         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97574         Port to Solaris 8, where 'sed' requires a space after the 'r'
97575         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97576         Redirect output to $tmp just once.
97577
97578 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97579
97580         * lib/addext.c (<errno.h>): Include.
97581         (errno): Declare if not defined.
97582         (addext): Work correctly when pathconf returns -1 and leaves
97583         errno alone because there is no limit.  Also, work even if
97584         pathconf returns a value greater than SIZE_MAX.
97585
97586 2001-08-12  Jim Meyering  <meyering@lucent.com>
97587
97588         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97589         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97590         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97591         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97592         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97593         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97594         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97595         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97596         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97597         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97598         utime.m4, utimes.m4, xstrtoumax.m4:
97599         Quote the first argument in each use of AC_DEFUN.
97600
97601 2001-08-12  Jim Meyering  <meyering@lucent.com>
97602
97603         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97604         Simply `return getcwd (NULL, 0);'.
97605         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97606         Use 1300 as initial value for length, not PATH_MAX.
97607
97608         * lib/pathmax.h: Clean up cpp syntax.
97609
97610 2001-08-12  Jim Meyering  <meyering@lucent.com>
97611
97612         * lib/gettimeofday.c: New file.
97613         * lib/gtod.h: New file.
97614         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97615
97616 2001-08-05  Jim Meyering  <meyering@lucent.com>
97617
97618         * m4/jm-macros.m4: Require autoconf-2.52.
97619
97620 2001-08-04  Jim Meyering  <meyering@lucent.com>
97621
97622         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97623         stmt, to get in sync with glibc.
97624
97625 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97626
97627         The following changes are from gettext 0.10.39 as maintained by
97628         Bruno Haible.
97629
97630         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97631         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97632         with inverted sense.  All uses changed.
97633
97634         * lib/mbswidth.c: Don't include <limits.h>.
97635         Include <stdlib.h> and <string.h> unconditionally.
97636         (iswcntrl, mbsinit, ISCNTRL): New macros.
97637         (mbsnwidth): Use K&R style function declarations.
97638         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97639         can optimize it when MB_CUR_MAX == 1.
97640         The width of control characters is zero, not 1.
97641
97642 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97643
97644         The following changes are from gettext 0.10.39 as maintained by
97645         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97646
97647         * m4/codeset.m4: Upgrade to serial AM1.
97648         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97649         all uses changed.  Quote first arg of AC_DEFUN.
97650         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97651
97652         * m4/iconv.m4: Upgrade to serial AM2.
97653         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97654         Add --with-libconv-prefix.
97655         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97656         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97657         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97658         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97659         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97660
97661         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97662         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97663         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97664         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97665         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97666         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97667         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97668         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97669         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97670
97671         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97672         string.h any more.
97673
97674         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97675         not the default value.
97676
97677         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97678         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97679         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97680         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97681         Also check for iswcntrl, used for wcwidth fallback.
97682         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97683         to Autoconf 2.13.
97684
97685 2001-08-03  Jim Meyering  <meyering@lucent.com>
97686
97687         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97688         as it was in the original.  Reported by Paul Eggert.
97689
97690 2001-07-16  Jim Meyering  <meyering@lucent.com>
97691
97692         * m4/gettimeofday.m4: New file.
97693         Prompted by a report from Bernhard Baehr.
97694
97695 2001-07-15  Jim Meyering  <meyering@lucent.com>
97696
97697         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97698         stuff. Now it's in ../Makefile.cfg.
97699
97700 2001-07-15  Jim Meyering  <meyering@lucent.com>
97701
97702         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97703         (BUILT_SOURCES): Add unlocked-io.h.
97704         (io_functions): Define.
97705         (unlocked-io.h): New rule.
97706         (DISTCLEANFILES): Add unlocked-io.h.
97707         (all-local): Depend on unlocked-io.h, to ensure it is created.
97708
97709         * lib/unlocked-io.hin: New file
97710
97711         * lib/regex.c: Update from glibc.
97712
97713 2001-07-05  Jim Meyering  <meyering@lucent.com>
97714
97715         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97716         recommendation.
97717         (libfetish_a_SOURCES): Put all .h files here instead.
97718         Remove a thus-exposed (better checks in automake) duplicate and
97719         two unnecessary .h files.
97720
97721 2001-07-04  Jim Meyering  <meyering@lucent.com>
97722
97723         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97724         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97725         distcheck failure.
97726
97727 2001-07-02  Jim Meyering  <meyering@lucent.com>
97728
97729         The following changes were prompted by suggestions from Bruno Haible.
97730
97731         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97732         is now generated.
97733         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97734         definition of EXTRA_DIST.
97735         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97736         ensure that the generated file is created/updated whenever the list
97737         of $(unlocked_functions) is changed.
97738         (jm-glibc-io.m4): New rule.
97739         (unlocked-io.h): New rule -- currently unused.
97740
97741 2001-06-24  Jim Meyering  <meyering@lucent.com>
97742
97743         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97744         unmatched right bracket, rather than kludging it with an extra,
97745         falsely-matching quote in a comment.  Patch by Akim Demaille.
97746
97747 2001-06-11  Jim Meyering  <meyering@lucent.com>
97748
97749         * lib/regex.c: Update from GNU libc.
97750
97751 2001-05-27  Jim Meyering  <meyering@lucent.com>
97752
97753         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97754         Check for ut_type in struct utmp.
97755
97756 2001-05-27  Jim Meyering  <meyering@lucent.com>
97757
97758         * lib/readutmp.h (UT_TYPE): Define.
97759
97760 2001-05-24  Jim Meyering  <meyering@lucent.com>
97761
97762         * lib/argmatch.c: Include "quote.h".
97763         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97764         quote function.  Reported by Göran Uddeborg.
97765
97766 2001-05-22  Jim Meyering  <meyering@lucent.com>
97767
97768         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97769         now that we use the package-supplied version unconditionally.
97770         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97771
97772 2001-05-21  Jim Meyering  <meyering@lucent.com>
97773
97774         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97775         shell syntax errors.
97776
97777 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97778
97779         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97780
97781 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97782
97783         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97784         Don't bother to check library strftime, since
97785         we'll be using our own my_strftime function anyway.
97786         Define my_strftime instead of strftime.
97787
97788 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97789
97790         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97791         which is not yet declared.
97792
97793 2001-05-15  Jim Meyering  <meyering@lucent.com>
97794
97795         * m4/regex.m4: Use proper quoting so brackets appear in the test
97796         program.
97797         Reported by, and with help from, Bruno Haible.
97798
97799 2001-05-13  Jim Meyering  <meyering@lucent.com>
97800
97801         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97802         undefined.
97803
97804 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97805
97806         dirname code cleanup.  base_name now behaves more compatibly
97807         with POSIX basename when given file names that have trailing
97808         slashes, and similarly for dir_name.  Add new primitives
97809         base_len and dir_len.  Put the directory-name-related decls
97810         into dirname.h.
97811
97812         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97813         * lib/backupfile.c (base_name): Likewise.
97814         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97815         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97816         * lib/makepath.c (strip_trailing_slashes): Likewise.
97817         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97818         ISSLASH): Likewise.
97819         * lib/rename.c (strip_trailing_slashes): Likewise.
97820         * lib/same.c (base_name): Likewise.
97821         * lib/stripslash.c (ISSLASH): Likewise.
97822
97823         * lib/addext.c: Include <dirname.h> after size_t is defined.
97824         * lib/backupfile.c: Likewise.
97825
97826         * lib/addext.c (addext): Use base_len to trim redundant
97827         trailing slashes instead of doing it ourselves.
97828         But do not trim the last slash if it is not redundant.
97829
97830         * lib/backupfile.c (find_backup_file_name,
97831         max_backup_version): Use base_len instead of rolling it ourselves.
97832         Handle the case of "" and (on DOS) "C:" correctly.
97833
97834         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97835         needed. Include <string.h>, <dirname.h>.
97836         (base_name): Allow file names ending in slashes, other than names
97837         that are all slashes.  In this case, return the basename followed
97838         by the slashes.  This is more general, and can be used in places
97839         where the original base_name purposely had an assertion failure.
97840         (base_len): New function.
97841
97842         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97843         Do not include <assert.h>; no longer needed.
97844         Include xalloc.h.
97845         (memrchr): Remove decl.
97846         (dir_name_r): Remove.
97847         (dir_len): Renamed from dirlen.  All callers changed.
97848         Rewrite in terms of base_name, for simplicity and consistency.
97849         (dir_name): Never return NULL.  All callers changed.
97850         Do not include <stdlib.h> in test program; no longer needed.
97851         return 0; is fine for test program.
97852
97853         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97854         New macros.
97855         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97856
97857         * lib/path-concat.c (path_concat): Use base_len to compute
97858         base length, not strlen; this means we cannot rely on memcpy
97859         to null-terminate.
97860
97861         * lib/same.c (STREQ): Remove.
97862         (same_name): Handle the case where the basename ends in trailing '/'.
97863
97864         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
97865         a slash was stripped.  Do not strip the last slash after a
97866         file system prefix.
97867
97868 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97869
97870         * lib/Makefile.am (libfetish_a_SOURCES):
97871         Add strftime.c, since we now compile it on all hosts.
97872
97873         * lib/strftime.c (my_strftime):
97874         Define to nstrftime if emacs, but only if my_strftime is not defined.
97875         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
97876         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
97877         Add one more extra argument: a nanoseconds value.
97878         All uses changed.
97879         (ns): New macro.
97880         (my_strftime function): Add %N format.
97881         (emacs_strftimeu): Renamed from emacs_strftime,
97882         with extra ut argument.
97883
97884 2001-05-09  Paul Eggert  <eggert@twinsun.com>
97885
97886         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
97887
97888 2001-04-21  Jim Meyering  <meyering@lucent.com>
97889
97890         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
97891         doesn't interfere.
97892
97893 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97894
97895         * m4/ftruncate.m4: Check for chsize.
97896         Link with ftruncate.o unconditionally if ftruncate is missing.
97897         This was required when cross-compiling to i586-mingw32msvc.
97898
97899 2001-04-08  Jim Meyering  <meyering@lucent.com>
97900
97901         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
97902         recomputed; that's necessary when the offset spans a DST transition.
97903         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
97904
97905 2001-04-02  Jim Meyering  <meyering@lucent.com>
97906
97907         * lib/regex.h, regex.c: Update from GNU libc.
97908
97909 2001-03-24  Jim Meyering  <meyering@lucent.com>
97910
97911         * m4/jm-macros.m4: Require autoconf-2.49d.
97912
97913 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97914
97915         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97916
97917 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97918
97919         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97920
97921 2001-03-17  Jim Meyering  <meyering@lucent.com>
97922
97923         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97924         now that the version in autoconf is equivalent.
97925         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97926
97927         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97928         Suggestion from Akim Demaille.
97929
97930         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97931         (jm_PREREQ_TEMPNAME): New function.
97932
97933 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97934
97935         * lib/tempname.c (uint64_t): Define to uintmax_t if
97936         not defined, and if UINT64_MAX is not defined.
97937         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97938         Reported by John David Anglin.
97939
97940 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97941
97942         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97943         resolve alias if codeset is empty.
97944         * lib/config.charset (BeOS): Use wildcard syntax.
97945
97946 2001-03-13  Jim Meyering  <meyering@lucent.com>
97947
97948         * lib/path-concat.c (path_concat)
97949         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97950         concatenating e.g., `C:' and `foo'.
97951         From Bruno Haible.
97952
97953 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97954
97955         * lib/localcharset.c (locale_charset): Don't use
97956         setlocale(LC_CTYPE,NULL). Don't return NULL.
97957         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97958
97959 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97960
97961         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97962         support for DOS/DJGPP.
97963
97964 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97965
97966         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97967         lacks mkstemp.  Compile our own tempname.c if we compile our own
97968         mkstemp.c, as mkstemp relies on tempname.
97969
97970 2001-03-01  Jim Meyering  <meyering@lucent.com>
97971
97972         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97973         AH_VERBATIM really does output its argument verbatim.
97974
97975 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97976
97977         * lib/Makefile.am (libfetish_a_SOURCES):
97978         Add dup-safer.c, fopen-safer.c.
97979         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97980
97981         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97982         * lib/unistd-safer.h: New files.
97983
97984 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97985
97986         The mkstemp replacement is taken from glibc 2.2.2, with some
97987         portability fixes for use outside glibc, as follows:
97988
97989         * lib/tempname.c (struct_stat64): New macro.
97990         (direxists, __gen_tempname): Use it.
97991         This avoids a portability problem with Solaris 8.
97992
97993         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97994         (<stddef.h>, <stdint.h>, <string.h>):
97995         Include only if STDC_HEADERS || _LIBC.
97996         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97997         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97998         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97999         (__set_errno): Define this macro if <errno.h> doesn't.
98000         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98001         Define these macros if <stdio.h> doesn't.
98002         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98003         Define these macros if <sys/stat.h>
98004         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98005         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98006         __xstat64): Define if not _LIBC.
98007         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98008         (__gen_tempname): Invoke gettimeofday only if
98009         HAVE_GETTIMEOFDAY || _LIBC;
98010         otherwise, fall back on plain "time".
98011         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98012
98013         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98014
98015         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98016
98017 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98018
98019         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98020
98021 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98022
98023         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98024         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98025         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98026         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98027
98028 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98029
98030         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98031         Remove workaround macros for hosts that have mbrtowc but not
98032         mbstate_t, as we now insist on proper declarations for both
98033         before using mbrtowc.
98034
98035 2001-02-17  Jim Meyering  <meyering@lucent.com>
98036
98037         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98038         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98039         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98040         UnixWare 7.1.1.
98041
98042         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98043         rather than AC_CACHE_VAL.
98044
98045 2001-02-17  Jim Meyering  <meyering@lucent.com>
98046
98047         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98048         around included file name.
98049
98050         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98051
98052         * lib/strftime.c: Update from GNU libc (the only changes were to
98053         comments).
98054
98055 2001-02-17  Jim Meyering  <meyering@lucent.com>
98056
98057         * lib/regex.c: Update from libc.
98058
98059 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98060
98061         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98062         clash.
98063
98064 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98065
98066         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98067         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98068         Reported by Mark Hounschell via Paul Eggert.
98069
98070 2001-02-07  Jim Meyering  <meyering@lucent.com>
98071
98072         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98073
98074 2001-02-05  Jim Meyering  <meyering@lucent.com>
98075
98076         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98077         it includes the patch required for `large file' support with at least
98078         HP-UX's 10.20 /bin/cc.
98079
98080 2001-02-03  Jim Meyering  <meyering@lucent.com>
98081
98082         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98083         AS_IF, now that it works once again (mysteriously).
98084         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98085
98086 2001-01-30  Jim Meyering  <meyering@lucent.com>
98087
98088         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98089         * m4/chown.m4: Rename conftestchown to conftest.chown.
98090         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98091         s/conftestdir2/conftest.d2/.
98092         * m4/utimes.m4: s/conftestdata/conftest.data/
98093         Inspired by Pavel Roskin's change in autoconf.
98094
98095 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98096
98097         * lib/config.charset: Update for FreeBSD 4.2.
98098
98099 2001-01-27  Jim Meyering  <meyering@lucent.com>
98100
98101         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98102         a use of AS_IF.
98103         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98104
98105 2001-01-26  Jim Meyering  <meyering@lucent.com>
98106
98107         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98108         quotearg.c includes it.
98109
98110 2001-01-26  Jim Meyering  <meyering@lucent.com>
98111
98112         * lib/quotearg.c: Include stddef.h.
98113         * lib/quote.c: Include stddef.h.
98114         Reported by Axel Kittenberger.
98115
98116         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98117         line in double quotes so that it evokes a better diagnostic.
98118         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98119         Reported by Axel Kittenberger.
98120
98121 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98122
98123         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98124         as if it was a `charset'.
98125
98126 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98127
98128         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98129         has const.
98130
98131 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98132
98133         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98134         to avoid a warning.  Add back 'const' to inptr.
98135
98136 2001-01-20  Jim Meyering  <meyering@lucent.com>
98137
98138         Be sure that headers are checked before used in code compiled
98139         for the type checks.
98140         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98141         In place of that, invoke jm_CHECK_ALL_TYPES.
98142         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98143         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98144         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98145         The check for ssize_t was mistakenly run before the test for unistd.h.
98146
98147         The configure-time check for stdbool.h was missing.
98148         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98149         (jm_PREREQ_HASH): New function.
98150
98151 2001-01-17  Jim Meyering  <meyering@lucent.com>
98152
98153         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98154         for autoconf-2.49c.
98155         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98156
98157 2001-01-16  Jim Meyering  <meyering@lucent.com>
98158
98159         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98160         From Bruno Haible.
98161
98162 2001-01-14  Jim Meyering  <meyering@lucent.com>
98163
98164         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98165         foo and bar.  Create conftestdir/ in the script, not in the C code.
98166         Remove directories in the script, not in the C code.
98167         Remove conftestdir{,2} before trying to create the directory.
98168         Make the entire configure script fail if the mkdir fails.
98169
98170 2001-01-14  Jim Meyering  <meyering@lucent.com>
98171
98172         * lib/rename.c: New file.  From Volker Borchert.
98173         Include stdlib.h, string.h or strings.h, and xalloc.h.
98174         Use strip_trailing_slashes rather than open-coding it.
98175
98176 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98177
98178         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98179
98180 2001-01-03  Jim Meyering  <meyering@lucent.com>
98181
98182         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98183         of local `inptr' to avoid warning with some system declarations of
98184         iconv.
98185
98186 2001-01-02  Volker Borchert  <bt@teknon.de>
98187
98188         * m4/rename.m4: New file.
98189         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98190
98191 2001-01-01  Jim Meyering  <meyering@lucent.com>
98192
98193         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98194         even on systems with utmpx.h.  It's necessary for the declaration of
98195         utmp's ut_user member.  Reported by Andreas Jaeger.
98196
98197         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98198         available. They are required for the declarations of getgrgid and
98199         getpwuid resp.
98200         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98201         Reported by Andreas Jaeger.
98202
98203 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98204
98205         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98206         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98207         so `make install' also works in VPATH builds.
98208
98209 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98210
98211         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98212         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98213         can be used in subdirectories.
98214
98215 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98216
98217         * lib/modechange.c: Do not assume that mode_t uses the
98218         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98219         the other-execute bit of FOO even if S_IXOTH != 1.
98220
98221         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98222         WOTH, XOTH, ALLM): New macros.
98223         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98224          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98225         Use them.
98226         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98227         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98228         (mode_compile):
98229         No need to use uintmax_t; unsigned long is long enough.
98230         Don't bother to get suffix since we don't use it.
98231
98232 2000-12-26  Jim Meyering  <meyering@lucent.com>
98233
98234         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98235         better with autoheader.
98236
98237 2000-12-24  Jim Meyering  <meyering@lucent.com>
98238
98239         * lib/hash.c (is_prime): Return explicit boolean values.
98240         (hash_get_first): Return NULL to appease Irix5.6's 89.
98241         Reported by Nelson Beebe.
98242
98243 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98244
98245         * lib/localcharset.c (locale_charset): Add support for Win32.
98246
98247 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98248
98249         * lib/physmem.h, lib/physmem.c: New files.
98250
98251         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98252         (noinst_HEADERS): Add physmem.h.
98253
98254         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98255         't' for compatibility with Solaris 8 sort.
98256
98257 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98258
98259         * lib/config.charset: Add support for BeOS.
98260
98261 2000-12-17  Jim Meyering  <meyering@lucent.com>
98262
98263         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98264         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98265
98266 2000-12-16  Jim Meyering  <meyering@lucent.com>
98267
98268         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98269         N and M) would have treated it like `chown N:N FILE'.
98270
98271         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98272
98273 2000-12-16  Jim Meyering  <meyering@lucent.com>
98274
98275         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98276         SHELLS_FILE to a file name that's useful on djgpp systems.
98277         Include stdlib.h.
98278         (ADDITIONAL_DEFAULT_SHELLS): Define.
98279         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98280         Based mostly on a patch from Prashant TR.
98281
98282 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98283
98284         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98285         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98286         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98287
98288 2000-12-08  Andreas Schwab  <schwab@suse.de>
98289
98290         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98291         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98292
98293 2000-12-07  Jim Meyering  <meyering@lucent.com>
98294
98295         * lib/stripslash.c (ISSLASH): Define.
98296         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98297         `/'.
98298         From Prashant TR.
98299
98300         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98301         (dir_name_r): Declare this function as static.
98302         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98303         manifest itself on a name containing a mix of slashes and
98304         backslashes.
98305         Make this function work with names starting with a DOS-style
98306         drive letter and colon prefix.
98307         (dir_name): Append `.' if necessary.
98308         Based mostly on patches from Prashant TR and Eli Zaretskii.
98309
98310         * lib/dirname.h (dir_name_r): Remove prototype.
98311
98312 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98313
98314         * m4/off_t-format.m4: Remove this file.
98315         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98316
98317 2000-12-06  Jim Meyering  <meyering@lucent.com>
98318
98319         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98320         replacement strtoull, we may well need the replacement strtoul, too.
98321         Check for declarations of strtoul and strtoull.
98322         Check for strtol.  Mainly as a cue to cause automake to include
98323         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98324         Check for limits.h -- strtol.c needs it.
98325
98326 2000-12-05  Jim Meyering  <meyering@lucent.com>
98327
98328         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98329
98330 2000-12-04  Jim Meyering  <meyering@lucent.com>
98331
98332         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98333         Also include memory.h, stdlib.h, unistd.h if appropriate.
98334         Reported by Andreas Jaeger (conflicting declaration of malloc).
98335
98336 2000-12-02  Jim Meyering  <meyering@lucent.com>
98337
98338         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98339         * m4/jm-macros.m4 (jm_MACROS): require it.
98340
98341 2000-12-02  Jim Meyering  <meyering@lucent.com>
98342
98343         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98344
98345 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98346
98347         * lib/memrchr.c: Include <config.h> before any system include file.
98348
98349 2000-11-30  Jim Meyering  <meyering@lucent.com>
98350
98351         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98352
98353 2000-11-30  Jim Meyering  <meyering@lucent.com>
98354
98355         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98356
98357 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98358
98359         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98360
98361 2000-11-26  Jim Meyering  <meyering@lucent.com>
98362
98363         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98364
98365 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98366
98367         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98368         size of (size_t) -1; it's not portable.
98369
98370 2000-11-17  Jim Meyering  <meyering@lucent.com>
98371
98372         * lib/strstr.c: Update from GNU libc.
98373
98374 2000-11-17  Akim Demaille  <akim@epita.fr>
98375
98376         * lib/obstack.h: Formatting changes.
98377         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98378         prevent type checking.
98379         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98380         cast the value to (void *): assigning a `foo *' to a `void *'
98381         variable is valid.
98382         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98383
98384 2000-11-16  Jim Meyering  <meyering@lucent.com>
98385
98386         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98387
98388 2000-11-11  Jim Meyering  <meyering@lucent.com>
98389
98390         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98391
98392 2000-11-10  Jim Meyering  <meyering@lucent.com>
98393
98394         * lib/obstack.h: Update from GNU libc.
98395         * lib/obstack.c: Likewise.
98396
98397 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98398
98399         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98400
98401 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98402
98403         * lib/getusershell.c (setusershell): Use rewind rather than
98404         fseek/fseeko, to avoid configuration hassles with fseeko.
98405         Don't bother opening SHELLS_FILE if shellstream is NULL;
98406         it's not necessary.
98407
98408 2000-11-05  Jim Meyering  <meyering@lucent.com>
98409
98410         * lib/makepath.h (make_dir): Declare.
98411         * lib/makepath.c (make_dir): Remove `static' attribute.
98412         Tweak a comment.
98413
98414 2000-11-04  Jim Meyering  <meyering@lucent.com>
98415
98416         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98417
98418 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98419
98420         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98421         last one in a bucket, advance to the next bucket.
98422
98423 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98424
98425         * lib/fnmatch.c: Do not comment out all the code if we are using
98426         the GNU C library, because in some cases we are replacing buggy
98427         code in the GNU C library itself.
98428
98429 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98430
98431         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98432         (regex_compile): Catch bogus \(\1\).
98433
98434 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98435
98436         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98437         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98438         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98439
98440 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98441
98442         * lib/error.h, getline.h, modechange.h:
98443         Remove "2000" from Copyright line, as the file hasn't been
98444         changed this year other than in the copyright notice.
98445
98446         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98447         was changed this year.
98448
98449 2000-10-29  Jim Meyering  <meyering@lucent.com>
98450
98451         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98452         renaming.
98453         * m4/ls-mntd-fs.m4: Likewise
98454
98455 2000-10-29  Jim Meyering  <meyering@lucent.com>
98456
98457         * lib/xstat.in: Fix grammar in comment.
98458
98459 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98460
98461         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98462         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98463         doesn't define __restrict_arr.
98464
98465 2000-10-28  Jim Meyering  <meyering@lucent.com>
98466
98467         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98468         (jm_PREREQ_MEMCHR): New function.
98469
98470 2000-10-28  Jim Meyering  <meyering@lucent.com>
98471
98472         * lib/memchr.c: Update from libc.
98473         Adjust for portability:
98474         [HAVE_STDLIB_H]: Include stdlib.h.
98475         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98476         Undef __memchr, too.
98477         [!weak_alias]: Define __memchr to memchr.
98478
98479         * lib/regex.c: Update from libc.
98480         * lib/regex.h: Likewise.
98481         * lib/getopt1.c: Likewise.
98482         * lib/memcmp.c: Likewise.
98483
98484         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98485         Avoid using fseek, when possible -- it's broken by design.
98486         Patch by Ulrich Drepper.
98487
98488 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98489
98490         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98491         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98492         Giving in to popular pressure to shut up the compiler with casts.
98493
98494 2000-10-26  Jim Meyering  <meyering@lucent.com>
98495
98496         * lib/strftime.c: Update from libc.
98497
98498 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98499
98500         * regex.c: More `unsigned char' -> `re_char' changes.
98501         Also change several `int' into `re_wchar_t'.
98502         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98503         (PUSH_FAILURE_POINTER): Don't cast any more.
98504         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98505         We want GCC to complain, since this piece of code makes
98506         re_match non-reentrant, which *should* be fixed.
98507         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98508         (EXTEND_BUFFER): Use RETALLOC.
98509         (SET_LIST_BIT): Don't cast.
98510         (re_wchar_t): New type.
98511         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98512         that those two functions will always properly return.
98513         (IMMEDIATE_QUIT_CHECK): Cast to void.
98514         (analyse_first): Use recursion rather than an explicit stack.
98515         (re_compile_fastmap): Can't fail anymore.
98516         (re_search_2): Don't check re_compile_fastmap for failure.
98517         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98518         Now also sets the new value (passed in a new argument).
98519         (re_match_2_internal): Use it.
98520         Also, use a new var `reg' of type size_t when looping through regs
98521         rather than reuse the inappropriate `mcnt'.
98522
98523 2000-10-25  Jim Meyering  <meyering@lucent.com>
98524
98525         * lib/obstack.c: Update from libc.
98526
98527 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98528
98529         * regex.c (regex_compile): Change the way of handling a range from
98530         a char less than 256 to a char not less than 256.
98531
98532 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98533
98534         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98535         NT-Emacs only.
98536         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98537         so that re_search functions only quit when callers expect them to.
98538
98539 2000-10-23  Jim Meyering  <meyering@lucent.com>
98540
98541         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98542         wrong.  That set_locale call must not have any side effects.
98543         From Paul Eggert.
98544
98545 2000-10-22  Jim Meyering  <meyering@lucent.com>
98546
98547         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98548         [CYCLIC]: Remove now-unused definition.
98549
98550         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98551         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98552         Suggestion from Ulrich Drepper.
98553
98554 2000-10-21  Jim Meyering  <meyering@lucent.com>
98555
98556         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98557         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98558         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98559
98560 2000-10-21  Jim Meyering  <meyering@lucent.com>
98561
98562         * lib/dirname.c (memrchr): Declare if necessary.
98563         (dir_name): Remove the restriction that there be no
98564         trailing slashes.  Now, this code skips past them, effectively
98565         ignoring them.
98566         [TEST_DIRNAME] (main): New unit tests.
98567
98568         * lib/memrchr.c: New file from GNU libc.
98569         Undef __memrchr, too.
98570         [!weak_alias]: Define __memrchr to memrchr.
98571         Guard weak_alias use with `#ifdef weak_alias'.
98572
98573 2000-10-21  Jim Meyering  <meyering@lucent.com>
98574
98575         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98576         (dir_name): Use dir_name_r.
98577         * lib/dirname.h (dir_name_r): Declare it.
98578
98579 2000-10-17  Jim Meyering  <meyering@lucent.com>
98580
98581         * lib/quote.h (PARAMS): Define and use.
98582         Reported by Akim Demaille.
98583
98584         * lib/getopt.c: Update from libc.
98585
98586 2000-10-16  Jim Meyering  <meyering@lucent.com>
98587
98588         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98589         setlocale.
98590         From Jan Fedak.
98591
98592 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98593
98594         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98595
98596 2000-09-25  Jim Meyering  <meyering@lucent.com>
98597
98598         * lib/md5.h (rol): Define (from GnuPG).
98599
98600         * lib/sha.c: Give credit (GnuPG) where due.
98601         (M): Use rol rather than open-coding it.
98602         Add a FIXME comment.
98603
98604 2000-09-21  Jim Meyering  <meyering@lucent.com>
98605
98606         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98607         Reported by Michael Stone.
98608
98609 2000-09-20  Jim Meyering  <meyering@lucent.com>
98610
98611         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98612         (noinst_HEADERS): Add sha.h.
98613         Based on code from Scott G. Miller and from GnuPG.
98614
98615 2000-09-18  Jim Meyering  <meyering@lucent.com>
98616
98617         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98618         LIBS. Otherwise, everyone ends up linking with -lelf for some
98619         configurations.
98620         Reported by Mike Stone.
98621
98622 2000-09-15  Jim Meyering  <meyering@lucent.com>
98623
98624         * lib/regex.c: Update from libc.
98625
98626 2000-09-10  Jim Meyering  <meyering@lucent.com>
98627
98628         * lib/getopt.c (_getopt_internal): Update from glibc.
98629
98630 2000-09-09  Jim Meyering  <meyering@lucent.com>
98631
98632         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98633         think it should be used as a general replacement for isascii.
98634         * lib/fnmatch.c: Likewise.
98635         * lib/mbswidth.c: Likewise
98636         * lib/regex.c: Likewise.
98637
98638         Don't use atoi.
98639         * lib/userspec.c: Include sys/param.h and limits.h.
98640         Include xstrtol.h.
98641         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98642         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98643         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98644         UID, GID.  Check range.
98645
98646 2000-09-06  Jim Meyering  <meyering@lucent.com>
98647
98648         * lib/getopt.c (_getopt_internal): Update from glibc.
98649
98650 2000-08-30  Jim Meyering  <meyering@lucent.com>
98651
98652         * lib/strftime.c: Merge in changes from GNU libc.
98653
98654 2000-08-26  Jim Meyering  <meyering@lucent.com>
98655
98656         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98657         * m4/fpending.m4: New file.
98658
98659 2000-08-26  Jim Meyering  <meyering@lucent.com>
98660
98661         * lib/closeout.c: Include "__fpending.h".
98662         (close_stdout_status): Return right away if there's nothing to flush.
98663
98664         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98665         * lib/__fpending.c: New file.
98666         * lib/__fpending.h: New file.
98667
98668 2000-08-20  Jim Meyering  <meyering@lucent.com>
98669
98670         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98671         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98672         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98673
98674 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98675
98676         Improve fileutils installation on systems where running
98677         programs (like install) can't be unlinked.
98678         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98679         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98680
98681 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98682
98683         Standardize on "memory exhausted" instead of "Memory exhausted"
98684         or "virtual memory exhausted".
98685         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98686         "virtual memory exhausted".
98687         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98688         our own message.
98689         * lib/userspec.c (parse_user_spec): Likewise.
98690         * lib/bumpalloc.h: comment fix
98691         * lib/same.c, userspec.c: Include xalloc.h.
98692
98693         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98694         not char *const and pointing to a constant array.
98695         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98696         (xrealloc): Comment fix.
98697
98698         * lib/userspec.c (parse_user_spec):
98699         Don't translate a message until just before returning,
98700         to avoid unnecessary translation.
98701
98702 2000-08-07  Jim Meyering  <meyering@lucent.com>
98703
98704         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98705         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98706         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98707         getgroups.c, gethostname.c, getopt.h, group-member.c,
98708         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98709         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98710         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98711         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98712         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98713         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98714         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98715         yesno.c: Back out Copyright date changes for each file with no change
98716         this year.  This eases coordination with other programs using the same
98717         source code modules.  From Paul Eggert.
98718
98719 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98720
98721         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98722         not char, for compatibility with glibc 2.1.3 strftime.c.
98723
98724 2000-08-03  Greg McGary  <greg@mcgary.org>
98725
98726         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98727         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98728         (EXTEND_BUFFER): Use them.
98729
98730 2000-08-01  Jim Meyering  <meyering@lucent.com>
98731
98732         * lib/dirname.c (ISSLASH): Define.
98733         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98734         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98735         both `\' and `/' may be use as path separators.
98736         Based on a patch from Prashant TR.
98737
98738 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98739
98740         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98741         slot vector a constant, since it might get modified.
98742
98743 2000-07-31  Jim Meyering  <meyering@lucent.com>
98744
98745         * lib/xmalloc.c: Use `virtual memory exhausted', not
98746         `Memory exhausted'.
98747         * lib/obstack.c (print_and_abort): Likewise.
98748
98749 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98750
98751         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98752         buffer, so that the caller can always quote one small
98753         component of a "memory exhausted" message in slot 0.
98754         From a suggestion by Jim Meyering.
98755
98756 2000-07-30  Jim Meyering  <meyering@lucent.com>
98757
98758         * lib/makepath.c (make_path): Quote the other instance, too.
98759
98760         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98761         (STATIC_BUF_SIZE): Define.
98762         (quotearg_n_options): Use only statically allocated storage when
98763         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98764         than STATIC_BUF_SIZE.
98765
98766 2000-07-29  Jim Meyering  <meyering@lucent.com>
98767
98768         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98769         * lib/dirname.c (dir_name): Likewise.
98770
98771         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98772         `/'.
98773
98774         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98775         (dir_name): Assert that there are no trailing slashes.
98776
98777 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98778
98779         * lib/mbswidth.h (mbswidth): Add a flags argument.
98780         (mbswidth): New declaration.
98781         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98782         * lib/mbswidth.c (mbswidth): Add a flags argument.
98783         (mbsnwidth): New function.
98784
98785 2000-07-24  Jim Meyering  <meyering@lucent.com>
98786
98787         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98788
98789 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98790
98791         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98792
98793 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98794
98795         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98796         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98797         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98798         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98799         invoke multibyte primitives.
98800
98801 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98802
98803         * lib/quotearg.c:
98804         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98805         so that mbstate_t is always defined.
98806
98807         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98808         be 1 in at least one GCC installation, and this configuration
98809         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98810         performance on hosts that have mbrtowc but have only unibyte
98811         locales, but I assume these hosts are rare.
98812
98813 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98814
98815         * lib/mbswidth.c (_XOPEN_SOURCE):
98816         Don't define; this causes problems on Solaris 7.
98817         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98818
98819 2000-07-23  Jim Meyering  <meyering@lucent.com>
98820
98821         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98822         too: getgrgid, getpwuid, getuid.
98823
98824 2000-07-23  Jim Meyering  <meyering@lucent.com>
98825
98826         * lib/basename.c (base_name): Add an assertion.
98827
98828 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98829
98830         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98831         shadow its mbsinit function.
98832
98833 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98834
98835         * lib/mbswidth.h: New file.
98836         * lib/mbswidth.c: New file.
98837         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98838         (noinst_HEADERS): Add mbswidth.h.
98839
98840 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98841
98842         * lib/config.charset: Add support for FreeBSD. Improve support for
98843         HP-UX and IRIX 6.
98844
98845 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98846
98847         * m4/mbswidth.m4: New file.
98848         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98849
98850 2000-07-15  Jim Meyering  <meyering@lucent.com>
98851
98852         * lib/makepath.c: Include quote.h.
98853         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98854         corresponding argument in a `quote (...)' call.
98855         Give better diagnostics.
98856
98857         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98858         (noinst_HEADERS): Add quote.h.
98859
98860         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98861         from tar's src/misc.c.
98862         * lib/quote.h: New file.  Prototypes for same.
98863
98864 2000-07-14  Paul Eggert  <eggert@twinsun.com>
98865
98866         From a suggestion by Bruno Haible.
98867         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
98868         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
98869         to decide whether to define the BeOS workaround macro;
98870         this adjusts to the change to AC_MBSTATE_T.
98871
98872 2000-07-14  Jim Meyering  <meyering@lucent.com>
98873
98874         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
98875         jm_AC_TYPE_UINTMAX_T.
98876
98877 2000-07-13  Paul Eggert  <eggert@twinsun.com>
98878
98879         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
98880
98881         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
98882         quotearg_buffer_restyled): Add support for
98883         clocale_quoting_style.  Undo previous change to
98884         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
98885         and "{RIGHT QUOTATION MARK}" msgids.
98886
98887 2000-07-10  Paul Eggert  <eggert@twinsun.com>
98888
98889         From a suggestion by Bruno Haible.
98890         * m4/mbstate_t.m4 (AC_MBSTATE_T):
98891         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
98892         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
98893         and mbstate_t, to a single-part test that simply defines mbstate_t.
98894         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
98895         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
98896
98897 2000-07-10  Jim Meyering  <meyering@lucent.com>
98898
98899         * m4/strerror_r.m4: Mirror the correction made in autoconf.
98900
98901         * m4/gnu-source.m4: Output to confdefs.h directly.
98902         Suggestion from Akim Demaille.
98903
98904 2000-07-09  Paul Eggert  <eggert@twinsun.com>
98905
98906         The old behavior of quoting `like this' doesn't look good with
98907         newer, ISO-style fonts.  See:
98908         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
98909
98910         Instead, quote "like this" by default.  Let the translator
98911         tailor the locale-specific quoting behavior by providing
98912         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98913
98914         * lib/quotearg.c (N_): New macro.
98915         (gettext_default): New function.
98916         (quotearg_buffer_restyled): Use
98917         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98918         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98919
98920 2000-07-09  Jim Meyering  <meyering@lucent.com>
98921
98922         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98923         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98924
98925         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98926         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98927
98928 2000-07-09  Jim Meyering  <meyering@lucent.com>
98929
98930         * lib/Most files: Update copyright dates to include 2000.
98931
98932 2000-07-08  Jim Meyering  <meyering@lucent.com>
98933
98934         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98935         if not defined.
98936         (xgethostname): Remove now-unnecessary #ifdef.
98937         Move declaration of `err' into loop where it's used.
98938
98939 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98940         and Bruno Haible  <haible@clisp.cons.org>
98941
98942         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98943         only if the test for an object-type mbstate_t fails.  This
98944         prevents us from mistakenly reporting that mbstate_t is a
98945         system object type after we "#define mbstate_t int" to work
98946         around its lack.
98947
98948 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98949         and Bruno Haible  <haible@clisp.cons.org>
98950
98951         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98952
98953 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98954
98955         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98956         to strerror_r.
98957         Include <ctype.h> for use of isalpha.
98958
98959 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98960
98961         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98962         by allocating a larger buffer. Test the gethostname return value for
98963         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98964         returns an error and ENAMETOOLONG isn't defined.
98965
98966 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98967
98968         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98969         dimension.
98970
98971 2000-07-04  Jim Meyering  <meyering@lucent.com>
98972
98973         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98974         of the deprecated AC_CHECKING.
98975
98976 2000-07-04  Jim Meyering  <meyering@lucent.com>
98977
98978         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98979         Reported by Bruno Haible.
98980
98981 2000-07-04  Jim Meyering  <meyering@lucent.com>
98982
98983         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98984         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98985         lacks mbrtowc.
98986
98987 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98988
98989         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98990         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98991
98992 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98993         and Bruno Haible  <haible@clisp.cons.org>
98994
98995         * lib/quotearg.c (mbrtowc):
98996         Assign to *pwc, and return 1 only if result is nonzero.
98997         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98998
98999 2000-07-03  Jim Meyering  <meyering@lucent.com>
99000
99001         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99002
99003 2000-07-03  Jim Meyering  <meyering@lucent.com>
99004
99005         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99006         This is necessary to get a definition of e.g., UTMP_FILE on
99007         HP-UX 10.20.
99008         From Bob Proulx.
99009
99010 2000-07-02  Jim Meyering  <meyering@lucent.com>
99011
99012         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99013
99014         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99015         AC_LIBOBJ(function_name).
99016         * m4/chown.m4: Likewise.
99017         * m4/fnmatch.m4: Likewise.
99018         * m4/ftruncate.m4: Likewise.
99019         * m4/getgroups.m4: Likewise.
99020         * m4/getline.m4: Likewise.
99021         * m4/group-member.m4: Likewise.
99022         * m4/jm-macros.m4: Likewise.
99023         * m4/lstat.m4: Likewise.
99024         * m4/malloc.m4: Likewise.
99025         * m4/memcmp.m4: Likewise.
99026         * m4/nanosleep.m4: Likewise.
99027         * m4/putenv.m4: Likewise.
99028         * m4/realloc.m4: Likewise.
99029         * m4/regex.m4: Likewise.
99030         * m4/stat.m4: Likewise.
99031         * m4/strftime.m4: Likewise.
99032
99033 2000-07-02  Jim Meyering  <meyering@lucent.com>
99034
99035         * lib/quotearg.c (mbstate_t): Don't define here.
99036
99037 2000-07-02  Jim Meyering  <meyering@lucent.com>
99038
99039         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99040
99041 2000-07-01  Jim Meyering  <meyering@lucent.com>
99042
99043         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99044
99045 2000-07-01  Jim Meyering  <meyering@lucent.com>
99046
99047         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99048         problem.
99049
99050 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99051
99052         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99053         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99054
99055 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99056
99057         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99058         per change in ../m4/ls-mntd-fs.m4.
99059         (read_filesystem_list): Ignore symbolic links.
99060
99061 2000-06-29  Jim Meyering  <meyering@lucent.com>
99062
99063         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99064         for declaration of strcmp.
99065
99066         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99067
99068         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99069         Avoid warning by casting result to `char *' to remove `const'.
99070
99071 2000-06-28  Jim Meyering  <meyering@lucent.com>
99072
99073         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99074         included by quotearg.c, for which we perform this test.  From
99075         Bruno Haible.
99076
99077 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99078
99079         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99080         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99081         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99082
99083 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99084
99085         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99086
99087 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99088
99089         savedir now sets errno on failure and invokes xmalloc to get memory.
99090         Fix a couple of other minor bugs while we're at it.
99091
99092         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99093         (NAMLEN): Remove macro.
99094         (malloc, realloc): Remove decls.
99095         (stpcpy): Likewise.
99096         ("xalloc.h"): Include.
99097         (NAME_SIZE_DEFAULT): New macro.
99098         (savedir): Use xmalloc / xrealloc to allocate memory.
99099         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99100         Skip "" directory entries.
99101         Use strlen to calculate directory entry length, since the old method
99102         is rarely used these days and isn't worth supporting.
99103         Don't use a pointer after freeing it.
99104         Check for integer overflow when calculating allocation size.
99105         Use memcpy to copy entries, instead of stpcpy.
99106         Set errno properly when returning NULL.
99107         Check for readdir error.
99108
99109 2000-06-26  Jim Meyering  <meyering@lucent.com>
99110
99111         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99112
99113 2000-06-25  Jim Meyering  <meyering@lucent.com>
99114
99115         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99116         Linux header bug when _XOPEN_SOURCE is defined to 500.
99117
99118 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99119
99120         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99121         deficiency.
99122
99123 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99124
99125         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99126         Include xalloc.h.
99127         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99128
99129 2000-06-24  Jim Meyering  <meyering@lucent.com>
99130
99131         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99132         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99133         for which strerror does return char*, but which lacks a conveniently
99134         accessible declaration of the function.  If the compile-test says
99135         strerror_r doesn't work, then resort to a `run'-test that works on
99136         BeOS and segfaults on DEC Unix.
99137
99138 2000-06-24  Jim Meyering  <meyering@lucent.com>
99139
99140         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99141
99142 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99143
99144         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99145         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99146
99147 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99148
99149         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99150         (mbrtowc, mbstate_t): Define substitutes if
99151         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99152         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99153         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99154
99155 2000-06-23  Jim Meyering  <meyering@lucent.com>
99156
99157         * m4/afs.m4: Add missing AC_MSG_RESULT.
99158         Reported by Bruno Haible.
99159
99160         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99161         Suggestion from Bruno Haible.
99162
99163 2000-06-23  Jim Meyering  <meyering@lucent.com>
99164
99165         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99166
99167 2000-06-21  Jim Meyering  <meyering@lucent.com>
99168
99169         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99170
99171 2000-06-21  Jim Meyering  <meyering@lucent.com>
99172
99173         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99174         (noinst_HEADERS): Add getstr.h.
99175
99176         * lib/getline.c (getstr): Move into a separate file.
99177         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99178         the following changes: new parameter, delim2; both delim[12]
99179         parameters have type `int', not `char'.  The latter would lose
99180         with 8-bit delimiters.
99181         * lib/getstr.h: New file.
99182
99183 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99184
99185         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99186         than 1024, return a memory chunk of least possible size, instead
99187         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99188         Use free/xmalloc instead of xrealloc to avoid copying for very long
99189         paths.
99190
99191 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99192
99193         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99194         the empty string.
99195
99196 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99197
99198         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99199         address, not strdup.  Include <stdlib.h> and don't declare free().
99200
99201 2000-06-19  Jim Meyering  <meyering@lucent.com>
99202
99203         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99204
99205 2000-06-18  Jim Meyering  <meyering@lucent.com>
99206
99207         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99208
99209         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99210         `checking whether...' message to be consistent with that of the
99211         lstat test.
99212
99213 2000-06-18  Jim Meyering  <meyering@lucent.com>
99214
99215         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99216         Besides, these days every porting target provides a mkdir function.
99217
99218         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99219         needed. (this snippet comes from src/system.h).
99220
99221 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99222
99223         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99224
99225 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99226
99227         * lib/human.c (adjust_value): New function.
99228         (human_readable_inexact): Apply rounding style even when
99229         printing approximate values.
99230
99231 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99232
99233         * lib/human.c (human_readable_inexact): Allow an input block
99234         size that is not a multiple of the output block size, and vice versa.
99235         Reported by Piergiorgio Sartor.
99236
99237 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99238
99239         * lib/getdate.y (get_date): Apply relative times after time
99240         zone indicator, not before.  Reported by Todd A. Jacobs.
99241
99242 2000-06-13  Jim Meyering  <meyering@lucent.com>
99243
99244         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99245
99246         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99247
99248 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99249
99250         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99251
99252 2000-06-12  Jim Meyering  <meyering@lucent.com>
99253
99254         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99255         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99256         optional argument.
99257         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99258         the optional argument, `lib'.
99259
99260 2000-06-08  Jim Meyering  <meyering@lucent.com>
99261
99262         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99263
99264 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99265
99266         Rewrite largefile configuration so that we don't need to run
99267         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99268         AC_CANONICAL_HOST in configure.in -- jmm]
99269
99270         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99271         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99272         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99273         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99274         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99275         All uses changed.
99276         Instead of inspecting the output of getconf, try to compile the
99277         test program without and with the macro definition.
99278         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99279         for getconf.  Instead, check for the needed flags by compiling
99280         test programs.
99281
99282 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99283
99284         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99285
99286 2000-06-04  Jim Meyering  <meyering@lucent.com>
99287
99288         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99289         SunOS 4.1.4 for which gid_t is an unsigned type.
99290
99291 2000-06-03  Jim Meyering  <meyering@lucent.com>
99292
99293         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99294         now that autoconf requires that.
99295
99296         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99297         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99298         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99299
99300 2000-06-03  Jim Meyering  <meyering@lucent.com>
99301
99302         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99303
99304 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99305
99306         * m4/glibc21.m4: New file.
99307         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99308
99309 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99310
99311         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99312         newer, don't install charset.alias.
99313         * lib/config.charset: Change the Linux/glibc rules so they become empty
99314         on glibc-2.1 or newer.
99315
99316 2000-06-02  Jim Meyering  <meyering@lucent.com>
99317
99318         * lib/mountlist.c: Back out last change.  Instead, do this...
99319         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99320         me_dummy member using the same `ignore'-testing code.
99321         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99322         fs_type strings.
99323         From Mark D. Roth.
99324
99325 2000-05-29  Jim Meyering  <meyering@lucent.com>
99326
99327         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99328         mounts with the `ignore' attribute.  Based on a patch from
99329         Mark D. Roth.
99330
99331 2000-05-28  Jim Meyering  <meyering@lucent.com>
99332
99333         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99334         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99335         * m4/stat.m4: Likewise.
99336         * m4/lstat.m4: Likewise.
99337         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99338
99339         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99340         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99341
99342 2000-05-26  Jim Meyering  <meyering@lucent.com>
99343
99344         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99345
99346 2000-05-24  Jim Meyering  <meyering@lucent.com>
99347
99348         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99349         autoconf requires that.
99350         * m4/lib-check.m4: Likewise.
99351         * m4/jm-macros.m4: Likewise.
99352         * m4/strftime.m4: Likewise.
99353
99354         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99355         AC_CHECK_DECLS, now that autoconf requires that.
99356
99357 2000-05-22  Jim Meyering  <meyering@lucent.com>
99358
99359         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99360         * m4/lstat.m4: Likewise.
99361
99362 2000-05-22  Jim Meyering  <meyering@lucent.com>
99363
99364         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99365
99366 2000-05-20  Jim Meyering  <meyering@lucent.com>
99367
99368         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99369         (jm_PREREQ): Use it.
99370
99371 2000-05-18  Jim Meyering  <meyering@lucent.com>
99372
99373         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99374         back, too, since it may have been modified by allocate_entry.
99375         (hash_delete): Rewrite to use neither the assignment operator
99376         nor the comma operator in an if-expression.
99377
99378 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99379
99380         * lib/closeout.c:
99381         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99382         Remove; no longer needed.
99383         "quotearg.h": Add include.
99384         (file_name): Do not bother to explicitly initialize to NULL; it's less
99385         efficient on some hosts.
99386         (close_stdout_status): Remove test as to whether stdout was already
99387         closed; it breaks for the case "echo x | sort >&-".
99388         Quote file name colons.
99389         Do not assume that _("write error") lacks format strings.
99390
99391 2000-05-15  Jim Meyering  <meyering@lucent.com>
99392
99393         * lib/version-etc.c (version_etc_copyright): Update the copyright
99394         string used in all --version output.
99395
99396 2000-05-14  Jim Meyering  <meyering@lucent.com>
99397
99398         * lib/closeout.c (close_stdout_set_file_name): New function.
99399         (close_stdout_status): Use new file-scoped global.
99400         Return right away if fstat says the stdout file descriptor is invalid.
99401         * lib/closeout.h (close_stdout_set_file_name): Declare.
99402
99403 2000-05-10  Jim Meyering  <meyering@lucent.com>
99404
99405         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99406         (close_stdout_set_status): New function.
99407         * lib/closeout.h (close_stdout_set_status): Declare.
99408
99409 2000-05-09  Jim Meyering  <meyering@lucent.com>
99410
99411         * m4/gettext.m4: Rename this...
99412         * m4/libintl.m4: ...to this.
99413
99414 2000-05-08  Jim Meyering  <meyering@lucent.com>
99415
99416         * lib/long-options.c: Don't include closeout.h.
99417         (parse_long_options): Don't call close_stdout for --version.
99418
99419 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99420
99421         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99422         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99423         2.1.3 bug.  This avoids a clash when files like regex.c define
99424         _GNU_SOURCE.
99425
99426 2000-05-06  Jim Meyering  <meyering@lucent.com>
99427
99428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99429         (AC_REPLACE_FUNCS): Add strnlen.
99430
99431         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99432         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99433
99434         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99435         AC_SEARCH_LIBS call for nanosleep.
99436         (LIB_NANOSLEEP): Set and AC_SUBST.
99437
99438 2000-05-06  Jim Meyering  <meyering@lucent.com>
99439
99440         * lib/strnlen.c: Undefine __strnlen and strnlen.
99441         [!weak_alias]: Define __strnlen to strnlen.
99442
99443         * lib/atexit.c: New file, from libiberty.
99444
99445 2000-05-06  Jim Meyering  <meyering@lucent.com>
99446
99447         * lib/closeout.c (close_stdout_status): Also check for errors on the
99448         stderr stream.
99449
99450 2000-05-05  Jim Meyering  <meyering@lucent.com>
99451
99452         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99453         AC_SEARCH_LIBS call for clock_gettime.
99454         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99455
99456         * m4/search-libs.m4: Update from autoconf.
99457
99458         su doesn't work on Solaris 2.6.
99459         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99460         <shadow.h>.  Reported by Dragos Harabor.
99461
99462 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99463
99464         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99465         memcpy instead of xmalloc, xrealloc, path_concat.
99466         (locale_charset): Treat empty environment variables as absent.
99467         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99468
99469 2000-05-04  Jim Meyering  <meyering@lucent.com>
99470
99471         * lib/getopt.c: Update from glibc.
99472         * lib/obstack.c: Likewise.
99473         * lib/obstack.h: Likewise.
99474         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99475         file
99476
99477         * lib/regex.h: Likewise.
99478         * lib/strndup.c: Likewise.
99479         * lib/strnlen.c: New file, from glibc.
99480
99481 2000-05-03  Jim Meyering  <meyering@lucent.com>
99482
99483         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99484
99485 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99486
99487         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99488         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99489         compile-time test, rather than inspecting host and OS, to
99490         decide whether to define _LARGEFILE_SOURCE.
99491
99492 2000-05-01  Jim Meyering  <meyering@lucent.com>
99493
99494         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99495
99496         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99497         Based on a patch from Bruno Haible.
99498
99499 2000-05-01  Jim Meyering  <meyering@lucent.com>
99500
99501         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99502
99503 2000-04-29  Jim Meyering  <meyering@lucent.com>
99504
99505         * lib/path-concat.c: Declare strdup only if it's not defined.
99506         * lib/canon-host.c: Likewise.
99507
99508 2000-04-28  Jim Meyering  <meyering@lucent.com>
99509
99510         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99511         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99512         is included first, then limits.h is included by locale.h by libintl.h.
99513         From John David Anglin.
99514
99515 2000-04-25  Jim Meyering  <meyering@lucent.com>
99516
99517         * lib/makepath.c (S_IRWXUGO): Define.
99518         (make_path): Always perform explicit chmod if MODE specifies any
99519         of the `special' permission bits.  Prompted by a bug report against
99520         install from Mate Wierdl and Joost van Baal.
99521
99522 2000-04-18  Jim Meyering  <meyering@lucent.com>
99523
99524         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99525         (jm_PREREQ): Use it.
99526
99527 2000-04-18  Jim Meyering  <meyering@lucent.com>
99528
99529         * lib/README: New file.
99530
99531         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99532         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99533
99534 2000-04-17  Jim Meyering  <meyering@lucent.com>
99535
99536         Get it right :-)
99537         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99538         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99539         Suggestion from Akim Demaille.
99540
99541 2000-04-17  Jim Meyering  <meyering@lucent.com>
99542
99543         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99544         the definition of it to rpl_strftime also defined-away the system's
99545         declaration.
99546
99547 2000-04-15  Jim Meyering  <meyering@lucent.com>
99548
99549         Use `C' to denote so-called `contiguous' files, the same way
99550         that tar does.
99551         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99552         (ftypelet): Use S_ISCTG.
99553         From Michael Deutschmann.
99554
99555 2000-04-14  Jim Meyering  <meyering@lucent.com>
99556
99557         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99558         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99559         clobbered.
99560
99561 2000-04-14  Jim Meyering  <meyering@lucent.com>
99562
99563         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99564
99565 2000-04-13  Jim Meyering  <meyering@lucent.com>
99566
99567         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99568         AH_VERBATIM to insert required #ifndef into config.h.in.
99569         Suggestion from Akim Demaille.
99570
99571 2000-04-12  Jim Meyering  <meyering@lucent.com>
99572
99573         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99574         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99575         Christian Krackowizer.
99576
99577         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99578         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99579         (AC_SYS_LARGEFILE): Require.
99580         (AM_C_PROTOTYPES): Require.
99581
99582 2000-04-08  Jim Meyering  <meyering@lucent.com>
99583
99584         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99585         names don't conflict.  Reported by Eli Zaretskii.
99586
99587 2000-04-07  Jim Meyering  <meyering@lucent.com>
99588
99589         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99590         sys/types.h, to work around system header problems on AIX 3.2.5.
99591         From Bruno Haible.
99592
99593 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99594
99595         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99596         bug.  Deal with the different error behavior of Irix iconv.
99597
99598 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99599
99600         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99601         IRIX if the installer said otherwise.
99602
99603 2000-04-05  Jim Meyering  <meyering@lucent.com>
99604
99605         Portability tweaks required for ultrix4.3.
99606         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99607         (jm_CHECK_DECLS): Add getutent to the list of functions.
99608         (_jm_DECL_HEADERS): Add utmpx.h.
99609         From John David Anglin.
99610
99611         * m4/strftime.m4: Back out the 2000-04-02 change.
99612         Instead of that change, simply undefine putenv in the test program.
99613
99614 2000-04-05  Jim Meyering  <meyering@lucent.com>
99615
99616         Portability tweaks required for ultrix4.3.
99617         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99618         getutent.
99619         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99620         * lib/canon-host.c: Declare strdup.
99621         * lib/path-concat.c: Likewise.
99622         From John David Anglin.
99623
99624 2000-04-04  Jim Meyering  <meyering@lucent.com>
99625
99626         Be more DOS 8.3-friendly.
99627         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99628         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99629         * lib/Makefile.am: Reflect renaming.
99630         Reported by Eli Zaretskii.
99631
99632         Use a temporary file name that won't clash with `charset.alias'
99633         in the DOS 8.3 name space.
99634         * lib/Makefile.am (charset_tmp): Define.
99635         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99636         (uninstall-local): Likewise.
99637         Reported by Eli Zaretskii.
99638
99639 2000-04-03  Jim Meyering  <meyering@lucent.com>
99640
99641         * m4/gettext.m4: Fix typo in comment.
99642
99643         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99644         textutils/configure.in).  Suggestion from Paul Eggert.
99645         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99646
99647 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99648
99649         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99650         variable in the shell rather than using putenv, which isn't
99651         portable.  This avoids the configure-time inter-test dependency
99652         on the potentially-renamed putenv function.
99653
99654 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99655
99656         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99657         before checking struct stat.st_blksize, so that
99658         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99659
99660 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99661
99662         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99663         since strftime.c uses HAVE_STRFTIME to decide whether to use
99664         the underlying strftime.
99665
99666 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99667
99668         * lib/time/strftime.c (my_strftime): Make sure we call the system
99669         strftime, not ourselves, when invoking the underlying strftime.
99670
99671 2000-03-24  Jim Meyering  <meyering@lucent.com>
99672
99673         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99674         (charset_alias): Define.
99675         (install-exec-local): Factor out common code.
99676         (uninstall-local): Split lines longer than 80.
99677         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99678         (SUFFIXES): Define.
99679         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99680         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99681
99682 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99683
99684         * lib/config.charset: Output a line containing "Packages using this
99685         file".
99686         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99687         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99688         ref-del.sed): New rules.
99689
99690 2000-03-17  Jim Meyering  <meyering@lucent.com>
99691
99692         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99693         Otherwise, include <strings.h>
99694
99695 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99696
99697         * lib/unicodeio.c (utf8_wctomb): New function.
99698         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99699         format instead of in UCS-4 with platform dependent endianness.
99700
99701 2000-03-10  Jim Meyering  <meyering@lucent.com>
99702
99703         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99704         From Marco Franzen.
99705
99706 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99707
99708         * lib/savedir.c (savedir): Work even if directory size is
99709         negative; this can happen with some screwy NFS configurations.
99710
99711 2000-03-06  Jim Meyering  <meyering@lucent.com>
99712
99713         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99714         if it's NULL (because we ran out of memory).  From Bruno Haible.
99715
99716 2000-03-05  Jim Meyering  <meyering@lucent.com>
99717
99718         * lib/localcharset.c ("path-concat.h"): Include.
99719         (get_charset_aliases): Use path_concat instead of ANSI string
99720         concatenation.
99721
99722         * lib/unicodeio.h (PARAMS): Define.
99723         Use it to guard prototype.
99724
99725 2000-03-04  Jim Meyering  <meyering@lucent.com>
99726
99727         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99728         for lib/localcharset.c.
99729
99730 2000-03-04  Jim Meyering  <meyering@lucent.com>
99731
99732         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99733         installing into it.
99734         (uninstall-local): Uncomment this rule so `make distcheck' works
99735         once again.
99736
99737         * lib/unicodeio.c (<errno.h>): Include it.
99738         (errno): Declare if not defined.
99739
99740         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99741
99742         * lib/config.charset: New version, incorporating remarks from a linux
99743         i18n mailing list.  From Bruno Haible.
99744
99745 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99746
99747         * m4/codeset.m4: New file.
99748         * m4/iconv.m4: New file.
99749         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99750
99751 2000-03-03  Jim Meyering  <meyering@lucent.com>
99752
99753         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99754
99755 2000-03-02  Jim Meyering  <meyering@lucent.com>
99756
99757         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99758         the messages come out on separate lines.
99759
99760         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99761         rather than jm_CHECK_DECLARATIONS.
99762         * m4/decl.m4: Remove now-unused file.
99763
99764         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99765         geteuid.
99766
99767 2000-03-02  Jim Meyering  <meyering@lucent.com>
99768
99769         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99770
99771 2000-03-01  Jim Meyering  <meyering@lucent.com>
99772
99773         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99774         * lib/unicodeio.c: Likewise.
99775
99776 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99777
99778         * lib/config.charset: New file.
99779         * lib/localcharset.c: New file.
99780         * lib/unicodeio.h, lib/unicodeio.c: New files.
99781         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99782         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99783         (noinst_HEADERS): Add unicodeio.h.
99784         (all-local, install-exec-local, charset.alias): New targets.
99785
99786 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99787
99788         * lib/quotearg.c (ALERT_CHAR): New macro.
99789         (quotearg_buffer_restyled): Use it.
99790
99791 2000-02-27  Jim Meyering  <meyering@lucent.com>
99792
99793         * m4/check-decl.m4: Add getenv to the list.
99794
99795 2000-02-27  Jim Meyering  <meyering@lucent.com>
99796
99797         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99798         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99799
99800         * lib/backupfile.c: Guard inclusion of stdlib.h with
99801         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99802         Declare malloc if needed.
99803
99804         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99805         `#ifndef HAVE_DECL..'
99806         now that autoconf always defines the HAVE_DECL_ symbols.
99807         * lib/human.c: Likewise.
99808         * lib/same.c: Likewise.
99809         * lib/strtoumax.c: Likewise.
99810
99811         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99812         declaration check was not run.
99813         * lib/hash.c: Likewise.
99814         * lib/human.c: Likewise.
99815         * lib/same.c: Likewise.
99816         * lib/strtoumax.c: Likewise.
99817
99818         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99819         `.', then first look up the entire `.'-containing string as a login
99820         name.
99821
99822 2000-02-23  Jim Meyering  <meyering@lucent.com>
99823
99824         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99825         in place of my hack.
99826
99827 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99828
99829         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99830         (textint): New typedef.
99831         (parser_control): Member year changed from int to textint.
99832         All uses changed.
99833         (YYSTYPE): Removed; replaced by %union with int and textint members.
99834         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99835         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99836         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99837         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99838         (date, number, to_year): Use width of number in digits, not its value,
99839         to determine whether it's a 2-digit year, or a 2-digit time.
99840         (yylex): Store number of digits of numeric tokens.
99841         Reported by John Kendall.
99842
99843         (parser_control): Changed from struct parser_control to typedef (for
99844         consistency).  All uses changed.
99845
99846         (tID): Removed; not used.
99847         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99848
99849 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99850
99851         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99852         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99853
99854 2000-02-12  Jim Meyering  <meyering@lucent.com>
99855
99856         * lib/userspec.c (ISDIGIT): Define it.
99857         (isdigit): Remove definition.
99858         (is_number): Use ISDIGIT, not isdigit.
99859         <libintl.h>: Include.
99860         (_ and N_): Define.
99861         (parse_user_spec): Mark translatable strings.
99862
99863 2000-02-10  Jim Meyering  <meyering@lucent.com>
99864
99865         With these changes, nanosleep.[ch] are finally enough like the other
99866         lib/* replacement files to compile on a few more losing systems.
99867
99868         * lib/nanosleep.h: Don't include config.h.
99869         Remove prototype from declaration of nanosleep.
99870         (PARAMS): Remove now-unneeded definition.
99871         * lib/nanosleep.c: #undef nanosleep.
99872         (rpl_nanosleep): Rename from nanosleep.
99873
99874 2000-02-10  Jim Meyering  <meyering@lucent.com>
99875
99876         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
99877         gnu_nanosleep to rpl_nanosleep.
99878
99879 2000-02-09  Jim Meyering  <meyering@lucent.com>
99880
99881         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
99882         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
99883
99884 2000-02-08  Akim Demaille  <akim@epita.fr>
99885
99886         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
99887         `[' and `]' and remove uses of `changequote'.
99888         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
99889         (AC_SYS_LARGEFILE): Likewise.
99890         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
99891         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
99892         of changequote.
99893         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
99894         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
99895         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
99896         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
99897
99898 2000-02-05  Jim Meyering  <meyering@lucent.com>
99899
99900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
99901         Remove explicit use of AC_HEADER_TIME.  It is required by
99902         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
99903         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
99904         in autoconf whereby the expansion of the latter ended up preceding
99905         the expansion of its prerequisite, AC_HEADER_TIME.
99906         Reported by Volker Borchert.
99907
99908 2000-02-03  Jim Meyering  <meyering@lucent.com>
99909
99910         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99911
99912 2000-02-03  Jim Meyering  <meyering@lucent.com>
99913
99914         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99915         rather than with `#if HAVE_UTMPNAME'.
99916
99917 2000-02-02  Jim Meyering  <meyering@lucent.com>
99918
99919         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99920         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99921         Reported by Eli Zaretskii.
99922
99923 2000-02-01  Jim Meyering  <meyering@lucent.com>
99924
99925         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99926
99927 2000-01-31  Jim Meyering  <meyering@lucent.com>
99928
99929         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99930         functions.  Add the time.h and sys/time.h headers along with the
99931         AC_REQUIRE'ment of AC_HEADER_TIME.
99932
99933 2000-01-31  Jim Meyering  <meyering@lucent.com>
99934
99935         * lib/nanosleep.h (nanosleep): Guard declaration with
99936         `#if ! HAVE_DECL_NANOSLEEP'.
99937         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99938         the declaration in that vendor's sys/timers.h.
99939         Reported by Christian Krackowizer.
99940
99941         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99942         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99943         (ISPRINT): Likewise.
99944         Reported by Tom Tromey.
99945
99946 2000-01-30  Jim Meyering  <meyering@lucent.com>
99947
99948         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99949
99950         * m4/prereq.m4 (utmp_includes): Define.
99951         Check for ut_user and ut_name members in both struct utmpx
99952         and struct utmp.
99953
99954 2000-01-30  Jim Meyering  <meyering@lucent.com>
99955
99956         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99957         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99958         header files where only utmpx.ut_user is declared.
99959
99960         * lib/readutmp.h (UT_USER): Define.
99961
99962 2000-01-29  Jim Meyering  <meyering@lucent.com>
99963
99964         * m4/lib-check.m4: New file containing library-related checks from
99965         fileutils and sh-utils (textutils had none).
99966
99967 2000-01-28  Jim Meyering  <meyering@lucent.com>
99968
99969         * m4/perl.m4: Change format of warning message to look more like that
99970         from the missing script.  Suggestion from François Pinard.
99971
99972 2000-01-25  Jim Meyering  <meyering@lucent.com>
99973
99974         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99975         well as time.h in the compile check.
99976         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99977         Fix typo in cross-compiling case: s/yes/no/.
99978
99979 2000-01-23  Jim Meyering  <meyering@lucent.com>
99980
99981         * m4/jm-macros.m4: Move df-related tests here from
99982         fileutils/configure.in
99983
99984         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99985         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99986
99987         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99988         s/space/ac_fsusage_space/.
99989         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99990
99991         * m4/ftruncate.m4: New file (derived from part of
99992         fileutils/configure.in).
99993         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99994         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99995
99996         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99997         AC_SUBST these here, rather than just in sh-util/configure.in, so
99998         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99999         all the same.
100000         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100001         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100002         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100003         (AC_SUBST(POW_LIBM)): Likewise.
100004         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100005
100006 2000-01-23  Jim Meyering  <meyering@lucent.com>
100007
100008         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100009         obstack.c.
100010
100011 2000-01-22  Jim Meyering  <meyering@lucent.com>
100012
100013         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100014
100015         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100016
100017         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100018         configure.in
100019         (AC_CHECK_HEADERS): Likewise for sh-utils.
100020         (AC_CHECK_HEADERS): Likewise for textutils.
100021         Merge the three lists of headers.
100022
100023         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100024         from fileutils' configure.in.
100025
100026         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100027         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100028         check-decl.m4.
100029
100030         * m4/check-decl.m4: Use #if rather than #ifdef.
100031         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100032         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100033         (_jm_DECL_HEADERS): Define new function.
100034         (jm_CHECK_DECLARATIONS): Require it.
100035
100036 2000-01-22  Jim Meyering  <meyering@lucent.com>
100037
100038         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100039         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100040         Required for some AIX systems.  Reported by Christian Krackowizer.
100041         [TESTING] (main): New function.
100042
100043         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100044         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100045         letters.
100046
100047         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100048         iswprint.
100049
100050         * lib/strverscmp.c (ISDIGIT): Define.
100051         (strverscmp): Use ISDIGIT, not isdigit.
100052
100053 2000-01-19  Jim Meyering  <meyering@lucent.com>
100054
100055         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100056         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100057         defines `struct timespec' in <sys/time.h>
100058
100059         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100060         Thanks to Akim for explaining.
100061
100062 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100063
100064         * lib/nanosleep.c (nanosleep):
100065         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100066         POSIX.1 doesn't require SA_INTERRUPT and some systems
100067         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100068         it's been part of POSIX.1 since day 1 (in 1988).
100069
100070 2000-01-17  Jim Meyering  <meyering@lucent.com>
100071
100072         * lib/interlock: Remove unused file.  Reported by François Pinard.
100073
100074 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100075
100076         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100077         alert, backslash, formfeed, and vertical tab unnecessarily in
100078         shell quoting style.
100079
100080 2000-01-16  Jim Meyering  <meyering@lucent.com>
100081
100082         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100083         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100084         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100085         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100086
100087 2000-01-16  Jim Meyering  <meyering@lucent.com>
100088
100089         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100090         because the latter didn't work.
100091
100092 2000-01-15  Jim Meyering  <meyering@lucent.com>
100093
100094         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100095         (AC_REPLACE_FUNCS): Add memcpy and memset.
100096         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100097         Add strpbrk.
100098         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100099
100100 2000-01-12  Jim Meyering  <meyering@lucent.com>
100101
100102         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100103         (jm_PREREQ): Use it.
100104         (jm_PREREQ_READUTMP): New macro.
100105         (jm_PREREQ): Use it.
100106
100107 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100108
100109         Quote multibyte characters correctly.
100110         * m4/c-bs-a.m4: New file.
100111         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100112         (jm_PREREQ): Use it.
100113
100114 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100115
100116         * m4/uintmax_t.m4: Port to autoconf 2.13.
100117
100118 2000-01-08  Jim Meyering  <meyering@ascend.com>
100119
100120         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100121         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100122
100123 2000-01-04  Jim Meyering  <meyering@ascend.com>
100124
100125         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100126         jm_STRUCT_DIRENT_D_TYPE.
100127         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100128         jm_STRUCT_DIRENT_D_INO.
100129         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100130         jm_STRUCT_UTIMBUF.
100131         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100132         renamings.
100133         * m4/utime.m4: Likewise.
100134
100135         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100136         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100137
100138 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100139
100140         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100141         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100142
100143 2000-01-02  Jim Meyering  <meyering@ascend.com>
100144
100145         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100146         remember if this is necessary.
100147
100148 1999-12-26  Jim Meyering  <meyering@ascend.com>
100149
100150         * m4/jm-macros.m4: Use it here.
100151         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100152
100153 1999-12-23  Jim Meyering  <meyering@ascend.com>
100154
100155         * m4/jm-macros.m4: Check for clock_gettime (moved from
100156         fileutils/configure.in)
100157         Check for gettimeofday.
100158
100159 1999-12-20  Jim Meyering  <meyering@ascend.com>
100160
100161         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100162         autoconf-2.14a-1999-12-20.
100163
100164 1999-12-19  Jim Meyering  <meyering@ascend.com>
100165
100166         * m4/lstat-slash.m4: New file.
100167         * m4/jm-macros.m4: Use the new macro:
100168         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100169
100170 1999-12-07  Jim Meyering  <meyering@ascend.com>
100171
100172         * m4/perl.m4: Require that File::Compare be available, too.
100173         Too many systems seem to lack it.
100174
100175         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100176         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100177
100178 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100179
100180         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100181         problem with the QNX 4.25 shell, which doesn't propagate exit
100182         status of failed commands inside shell assignments.
100183
100184 1999-11-17  Jim Meyering  <meyering@ascend.com>
100185
100186         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100187
100188 1999-11-07  Jim Meyering  <meyering@ascend.com>
100189
100190         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100191
100192 1999-11-06  Jim Meyering  <meyering@ascend.com>
100193
100194         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100195         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100196
100197 1999-11-05  Jim Meyering  <meyering@ascend.com>
100198
100199         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100200         configure.in of textutils, fileutils, and sh-utils into this one
100201         (shared between those packages) file.
100202         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100203         AC_STRUCT_ST_BLKSIZE.
100204
100205 1999-11-03  Jim Meyering  <meyering@ascend.com>
100206
100207         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100208         of AC_CHECK_TYPE checks includes unistd.h.
100209         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100210         Suggestion from Akim Demaille.
100211
100212 1999-10-30  Jim Meyering  <meyering@ascend.com>
100213
100214         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100215         m4-quoted string.
100216         * m4/ls-mntd-fs.m4: Likewise.
100217         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100218         * m4/jm-winsz1.m4: Likewise.
100219
100220         * m4/const.m4: Remove file, since the fix made it into the experimental
100221         version of autoconf.
100222         * m4/mktime.m4: Likewise.
100223
100224         * m4/check-type.m4: Remove file, now that the latest version of
100225         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100226
100227         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100228         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100229         AC_CHECK_TYPE.
100230
100231 1999-10-04  Jim Meyering  <meyering@ascend.com>
100232
100233         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100234
100235 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100236
100237         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100238         2.95.1 bug with HP-UX 10.20.
100239
100240 1999-09-17  Jim Meyering  <meyering@ascend.com>
100241
100242         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100243         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100244         due to missing strdup (against sh-utils-2.0).
100245
100246 1999-08-29  Jim Meyering  <meyering@ascend.com>
100247
100248         * m4/jm-macros.m4: Require jm_BISON.
100249         * m4/bison.m4: New file.
100250
100251 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100252
100253         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100254         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100255
100256 1999-08-05  Jim Meyering  <meyering@ascend.com>
100257
100258         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100259         to avoid conflicts with `conftest' on 8+3 filesystems.
100260         Suggestion from Eli Zaretskii.
100261
100262 1999-08-04  Jim Meyering  <meyering@ascend.com>
100263
100264         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100265         fileutils and sh-utils (textutils's getline test was inadequate).
100266         (AM_FUNC_GETLINE): Run this test.
100267         (AC_CHECK_FUNCS): Check for getdelim.
100268         Reported by Bob Proulx.
100269
100270 1999-08-02  Jim Meyering  <meyering@ascend.com>
100271
100272         * m4/jm-macros.m4: Add a comment.
100273
100274 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100275
100276         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100277         <inttypes.h> defines strtoumax as a macro (and not as a
100278         function).
100279
100280 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100281
100282         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100283         that we can shift, multiply and divide unsigned long long
100284         values; Ultrix cc can't do it.
100285
100286 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100287
100288         * m4/mktime.m4: New file, which is a preview of what should appear
100289         in the next public autoconf release.
100290
100291 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100292
100293         * m4/lfs.m4: Remove this file.
100294         * m4/largefile.m4: New file.  It contains the old contents of
100295         lfs.m4, except that all names with prefix AC_LFS have been
100296         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100297         compatible with future autoconf versions.  Also, some minor m4
100298         quoting problems have been fixed.
100299
100300 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100301
100302         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100303         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100304         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100305         and simplify the shell code.
100306
100307 1999-08-01  Jim Meyering  <meyering@ascend.com>
100308
100309         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100310         m4.
100311
100312 1999-07-20  Jim Meyering  <meyering@ascend.com>
100313
100314         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100315
100316 1999-07-15  Jim Meyering  <meyering@ascend.com>
100317
100318         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100319
100320 1999-05-22  Jim Meyering  <meyering@ascend.com>
100321
100322         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100323
100324 1999-05-20  Jim Meyering  <meyering@ascend.com>
100325
100326         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100327         Add a colon after each `then' in case $4 is empty.
100328
100329 1999-05-16  Jim Meyering  <meyering@ascend.com>
100330
100331         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100332
100333 1999-05-10  Jim Meyering  <meyering@ascend.com>
100334
100335         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100336
100337         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100338         AC_FUNC_MKTIME.
100339
100340 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100341
100342         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100343
100344 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100345
100346         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100347         not CPPFLAGS, so that linking works correctly in IRIX.
100348
100349 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100350
100351         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100352
100353 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100354
100355         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100356         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100357         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100358         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100359         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100360
100361         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100362
100363 1999-04-20  Jim Meyering  <meyering@ascend.com>
100364
100365         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100366         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100367         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100368
100369 1999-04-18  Jim Meyering  <meyering@ascend.com>
100370
100371         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100372         * m4/jm-macros.m4: Use it.
100373
100374 1999-04-06  Jim Meyering  <meyering@ascend.com>
100375
100376         * m4/strftime.m4: Remove test for %f.
100377
100378 1999-03-29  Jim Meyering  <meyering@ascend.com>
100379
100380         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100381         superset of the AC_TYPE_* checks in the textutils, fileutils,
100382         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100383         AC_TYPE_PID_T.
100384
100385 1999-03-28  Jim Meyering  <meyering@ascend.com>
100386
100387         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100388         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100389         replaced e.g., in the *.sh files of the sh-utils.
100390
100391 1999-03-20  Jim Meyering  <meyering@ascend.com>
100392
100393         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100394         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100395         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100396
100397 1999-03-19  Jim Meyering  <meyering@ascend.com>
100398
100399         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100400
100401 1999-03-12  Jim Meyering  <meyering@ascend.com>
100402
100403         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100404
100405 1999-03-07  Jim Meyering  <meyering@ascend.com>
100406
100407         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100408         declared.
100409
100410 1999-02-17  Jim Meyering  <meyering@ascend.com>
100411
100412         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100413         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100414
100415 1999-02-07  Jim Meyering  <meyering@ascend.com>
100416
100417         * m4/group-member.m4: New file -- extracted from sh-utils'
100418         configure.in.
100419
100420         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100421         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100422
100423 1999-02-06  Jim Meyering  <meyering@ascend.com>
100424
100425         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100426         * m4/fnmatch.m4: Likewise.
100427         * m4/getgroups.m4: Likewise.
100428         * m4/lstat.m4: Likewise.
100429         * m4/malloc.m4: Likewise.
100430         * m4/putenv.m4: Likewise.
100431         * m4/realloc.m4: Likewise.
100432         * m4/regex.m4: Likewise.
100433         * m4/stat.m4: Likewise.
100434         * m4/strftime.m4: Likewise.
100435         Suggestion from Alain Magloire.
100436
100437         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100438         * m4/fnmatch.m4: Likewise.
100439         * m4/getgroups.m4: Likewise.
100440         * m4/getline.m4: Likewise.
100441         * m4/lstat.m4: Likewise.
100442         * m4/malloc.m4: Likewise.
100443         * m4/memcmp.m4: Likewise.
100444         * m4/putenv.m4: Likewise.
100445         * m4/realloc.m4: Likewise.
100446         * m4/regex.m4: Likewise.
100447         * m4/stat.m4: Likewise.
100448         * m4/strftime.m4: Likewise.
100449         Suggestion from Alain Magloire.
100450
100451         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100452         an argument.
100453
100454         * m4/regex.m4: Add a run-time Test for proper operation of
100455         re_compile_pattern.
100456
100457 1999-01-31  Jim Meyering  <meyering@ascend.com>
100458
100459         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100460
100461 1999-01-30  Jim Meyering  <meyering@ascend.com>
100462
100463         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100464
100465         * m4/jm-mktime.m4: Make this a wrapper around the official
100466         AM_FUNC_MKTIME rather than my private copy, now that the official one
100467         is up to date.
100468         * m4/mktime.m4: Remove file.
100469
100470         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100471         * m4/uptime.m4: Likewise.
100472         * m4/uintmax_t.m4: Likewise.
100473
100474 1999-01-28  Jim Meyering  <meyering@ascend.com>
100475
100476         * m4/jm-macros.m4: Use jm_AFS.
100477         * m4/afs.m4: New file (from fileutils' configure.in).
100478
100479         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100480         * m4/chown.m4: Likewise.
100481         * m4/d-ino.m4: Likewise.
100482         * m4/d-type.m4: Likewise.
100483         * m4/fnmatch.m4: Likewise.
100484         * m4/getgroups.m4: Likewise.
100485         * m4/gettext.m4: Likewise.
100486         * m4/jm-mktime.m4: Likewise.
100487         * m4/jm-winsz2.m4: Likewise.
100488         * m4/lcmessage.m4: Likewise.
100489         * m4/ls-mntd-fs.m4: Likewise.
100490         * m4/malloc.m4: Likewise.
100491         * m4/memcmp.m4: Likewise.
100492         * m4/putenv.m4: Likewise.
100493         * m4/realloc.m4: Likewise.
100494         * m4/st_mtim.m4: Likewise.
100495         * m4/strftime.m4: Likewise.
100496
100497 1999-01-16  Jim Meyering  <meyering@ascend.com>
100498
100499         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100500         (ARGMATCH_DIE_DECL): Define.
100501
100502 1999-01-12  Jim Meyering  <meyering@ascend.com>
100503
100504         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100505         Reported by Lars Hecking.
100506
100507 1999-01-10  Jim Meyering  <meyering@ascend.com>
100508
100509         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100510         gross kludge.
100511         * m4/inttypes_h.m4: Likewise.
100512         * m4/lstat.m4: Likewise.
100513         * m4/malloc.m4: Likewise.
100514         * m4/readdir.m4: Likewise.
100515         * m4/realloc.m4: Likewise.
100516         * m4/st_dm_mode.m4: Likewise.
100517         * m4/stat.m4: Likewise.
100518         * m4/utimbuf.m4: Likewise.
100519         * m4/utimes.m4: Likewise.
100520
100521         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100522         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100523         comments in config.h.in are meaningful.
100524
100525         * m4/jm-macros.m4: Require autoconf-2.13 here.
100526
100527         * m4/regex.m4: By default, don't use the included regex.c on systems
100528         with glibc 2.  Suggestion from Uli Drepper.
100529
100530 1999-01-02  Jim Meyering  <meyering@ascend.com>
100531
100532         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100533
100534 1998-12-18  Jim Meyering  <meyering@ascend.com>
100535
100536         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100537         Based on a suggestion from Lars Hecking.
100538
100539 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100540
100541         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100542
100543 1998-11-16  Jim Meyering  <meyering@ascend.com>
100544
100545         * m4/lfs.m4: Double-quote the `uname...` expression.
100546
100547 1998-11-14  Jim Meyering  <meyering@ascend.com>
100548
100549         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100550         * m4/stat.m4: Likewise.
100551
100552 1998-11-03  Jim Meyering  <meyering@ascend.com>
100553
100554         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100555         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100556
100557 1998-10-18  Jim Meyering  <meyering@ascend.com>
100558
100559         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100560
100561 1998-10-17  Jim Meyering  <meyering@ascend.com>
100562
100563         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100564         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100565         calls for those previously hard-coded headers.  Instead, take a new
100566         parameter.
100567         (jm_CHECK_DECLARATIONS): Reflect interface change.
100568         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100569         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100570
100571         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100572
100573 1998-10-14  Jim Meyering  <meyering@ascend.com>
100574
100575         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100576         instead of "TZ=America/Vancouver".  From Paul Eggert.
100577
100578 1998-10-11  Jim Meyering  <meyering@ascend.com>
100579
100580         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100581         This adds a test for a recently added compatibility fix for mktime.c.
100582         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100583
100584 1998-09-27  Jim Meyering  <meyering@ascend.com>
100585
100586         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100587
100588         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100589         ../configure.in, including a change from Gordon Matzigkeit to allow
100590         cross-compiling for the Hurd.
100591
100592         * m4/glibc.m4: New file/macro to test for the GNU C Library
100593         versions 1 and 2.  From Gordon Matzigkeit.
100594         Indent.
100595
100596 1998-09-21  Jim Meyering  <meyering@ascend.com>
100597
100598         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100599
100600 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100601
100602         Port nanosecond-resolution times to UnixWare 2.1.2 and
100603         pedantic Solaris 2.6.
100604
100605         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100606         AC_STRUCT_ST_MTIM.
100607         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100608         Generate name of ns member, instead of just 1 or undef.
100609         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100610
100611 1998-08-15  Jim Meyering  <meyering@ascend.com>
100612
100613         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100614         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100615         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100616         instead of jm_TYPE_SSIZE_T.
100617
100618 1998-08-12  Jim Meyering  <meyering@ascend.com>
100619
100620         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100621
100622 1998-08-02  Jim Meyering  <meyering@ascend.com>
100623
100624         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100625         in acconfig.h manually.
100626
100627 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100628
100629         * m4/st_mtim.m4: New file.
100630
100631 1998-07-28  Jim Meyering  <meyering@ascend.com>
100632
100633         * m4/utimes.m4: Undef stat.
100634
100635 1998-07-25  Jim Meyering  <meyering@ascend.com>
100636
100637         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100638         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100639
100640 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100641
100642         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100643         uid and gid actually remain unchanged.
100644
100645 1998-07-07  Jim Meyering  <meyering@ascend.com>
100646
100647         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100648
100649 1998-07-04  Jim Meyering  <meyering@ascend.com>
100650
100651         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100652         to prove that this macro can be used in packages without regex.c.
100653
100654 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100655
100656         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100657         is to be used.
100658
100659 1998-07-03  Jim Meyering  <meyering@ascend.com>
100660
100661         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100662
100663         * m4/gettext.m4: New file -- from gettext-0.10.35.
100664         * m4/lcmessage.m4: Likewise.
100665         * m4/progtest.m4: Likewise.
100666
100667         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100668         * m4/jm-macros.m4: Require the new macro.
100669
100670 1998-06-29  Jim Meyering  <meyering@ascend.com>
100671
100672         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100673         for the definition of NGROUPS (used in a system header included
100674         by sys/mount.h).
100675
100676 1998-06-28  Jim Meyering  <meyering@ascend.com>
100677
100678         * m4/ls-mntd-fs.m4: New file.
100679         * m4/fstypename.m4: New file.
100680
100681         * m4/jm-macros.m4: Require the new macro.
100682         * m4/jm-glibc-io.m4: New file.
100683
100684 1998-05-19  Jim Meyering  <meyering@ascend.com>
100685
100686         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100687         * m4/lchown.m4: New file.
100688
100689         * m4/Makefile.am.in: New file.
100690         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100691
100692 1998-05-14  Jim Meyering  <meyering@ascend.com>
100693
100694         * m4/Makefile.am (EXTRA_DIST): Add them.
100695         * m4/jm-macros.m4: New file.
100696         * m4/utimbuf.m4: New file.
100697
100698 1998-05-12  Jim Meyering  <meyering@ascend.com>
100699
100700         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100701
100702 1998-05-11  Jim Meyering  <meyering@ascend.com>
100703
100704         * m4/isc-posix.m4: New file.
100705
100706 1998-05-10  Jim Meyering  <meyering@ascend.com>
100707
100708         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100709
100710 1998-05-09  Jim Meyering  <meyering@ascend.com>
100711
100712         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100713         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100714         with automake.
100715
100716         * m4/ssize_t.m4: New file.
100717         * m4/mktime.m4: Remove file -- the new automake has this now.
100718
100719 1998-04-26  Jim Meyering  <meyering@ascend.com>
100720
100721         * m4/assert.m4: New file.
100722         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100723
100724 1998-04-05  Jim Meyering  <meyering@ascend.com>
100725
100726         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100727         (jm_PREREQ): Use it here.
100728
100729 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100730
100731         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100732         in acconfig.h.
100733
100734 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100735
100736         * m4/prereq.m4: New file.
100737         * m4/error.m4: New file.
100738         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100739
100740 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100741
100742         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100743         cache-check for the same variable -- that defeated the purpose of
100744         the test; the test program was never run.  This was a problem only
100745         on systems with losing getline functions -- HP-UX 10.20 is one.
100746         Reported by Bjorn Helgaas.
100747
100748 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100749
100750         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100751
100752 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100753
100754         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100755
100756         * m4/const.m4: New file.  Use an initializer in this declaration
100757         typedef int charset[2]; const charset x;
100758         Reported by Bob Glickstein.
100759
100760 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100761
100762         * m4/chown.m4: Fix reversed types on -1 args to chown.
100763         From Kaveh Ghazi.
100764
100765 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100766
100767         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100768         Add lseek and memchr.
100769
100770         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100771         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100772         have a 20-character limit on names.
100773
100774 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100775
100776         * m4/inttypes_h.m4: New file.
100777         * m4/uintmax_t.m4: New file.
100778         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100779
100780
100781         -----
100782
100783         Local Variables:
100784         coding: utf-8
100785         End:
100786
100787         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100788
100789         Copying and distribution of this file, with or without
100790         modification, are permitted provided the copyright notice
100791         and this notice are preserved.